[BUG] /resume <shortname> causes OOM Abort trap, but just /resume or claude --resume <shortname> works

Resolved 💬 5 comments Opened Jan 6, 2026 by scottleibrand Closed Feb 21, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

On 2.0.76 (Claude Code), when I try to /resume <shortname> I always get the OOM crash below (after it takes several seconds attempting to load conversations). If I do bare /resume and select the same session, it works (and faster than the Loading conversations… that eventually crashes. If I launch claude --resume <shortname> it also works relatively quickly.

What Should Happen?

/resume <shortname> should load the session the same way as --resume <shortname> or /resume (select session)

Error Messages/Logs

> /resume
✶  Loading conversations…

<--- Last few GCs --->

[72361:0x118008000]    48289 ms: Mark-sweep 4050.4 (4136.6) -> 4041.6 (4131.2) MB, 100.4 / 0.0 ms  (average mu = 0.242, current mu = 0.226) allocation failure; scavenge might not succeed
[72361:0x118008000]    48400 ms: Mark-sweep 4048.7 (4138.1) -> 4044.6 (4134.3) MB, 105.4 / 0.0 ms  (average mu = 0.155, current mu = 0.048) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x104e5d1dc node::Abort() [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 2: 0x104e5d3d8 node::ModifyCodeGenerationFromStrings(v8::Local<v8::Context>, v8::Local<v8::Value>, bool) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 3: 0x104f9174c v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 4: 0x104f916fc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 5: 0x1050f3e8c v8::internal::EmbedderStackStateScope::EmbedderStackStateScope(v8::internal::Heap*, v8::internal::EmbedderStackStateScope::Origin, cppgc::EmbedderStackState) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 6: 0x1050f6b50 v8::internal::Heap::MarkCompactPrologue() [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 7: 0x1050f464c v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 8: 0x1050f265c v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
 9: 0x1050ea5e8 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
10: 0x1050eade4 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
11: 0x1050d535c v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
12: 0x1050d0478 v8::internal::MaybeHandle<v8::internal::SeqTwoByteString> v8::internal::FactoryBase<v8::internal::Factory>::NewRawStringWithMap<v8::internal::SeqTwoByteString>(int, v8::internal::Map, v8::internal::AllocationType) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
13: 0x1050d7638 v8::internal::Factory::NewStringFromUtf8(v8::base::Vector<char const> const&, v8::internal::AllocationType) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
14: 0x104faa894 v8::String::NewFromUtf8(v8::Isolate*, char const*, v8::NewStringType, int) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
15: 0x104f0c5c0 node::(anonymous namespace)::MakeString(v8::Isolate*, char const*, unsigned long, node::encoding) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
16: 0x104f0c4c8 node::StringDecoder::DecodeData(v8::Isolate*, char const*, unsigned long*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
17: 0x104f0c860 node::(anonymous namespace)::DecodeData(v8::FunctionCallbackInfo<v8::Value> const&) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
18: 0x1055b1a34 Builtins_CallApiCallback [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
19: 0x129eecb2c
20: 0x1055e1ef4 Builtins_AsyncFunctionAwaitResolveClosure [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
21: 0x105670838 Builtins_PromiseFulfillReactionJob [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
22: 0x1055d3c4c Builtins_RunMicrotasks [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
23: 0x1055ae3a4 Builtins_JSRunMicrotasksEntry [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
24: 0x1050930c4 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
25: 0x105093500 v8::internal::(anonymous namespace)::InvokeWithTryCatch(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
26: 0x105093674 v8::internal::Execution::TryRunMicrotasks(v8::internal::Isolate*, v8::internal::MicrotaskQueue*, v8::internal::MaybeHandle<v8::internal::Object>*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
27: 0x1050b253c v8::internal::MicrotaskQueue::RunMicrotasks(v8::internal::Isolate*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
28: 0x1050b23c0 v8::internal::MicrotaskQueue::PerformCheckpointInternal(v8::Isolate*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
29: 0x104db8a50 node::InternalCallbackScope::Close() [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
30: 0x104db86c4 node::InternalCallbackScope::~InternalCallbackScope() [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
31: 0x104e59354 node::fs::FSReqPromise<node::AliasedBufferBase<double, v8::Float64Array>>::Resolve(v8::Local<v8::Value>) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
32: 0x104e62544 node::fs::AfterInteger(uv_fs_s*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
33: 0x104e59ee4 node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper(uv_fs_s*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
34: 0x1071f6e0c uv__work_done [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
35: 0x1071fa6bc uv__async_io [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
36: 0x10720abd0 uv__io_poll [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
37: 0x1071fab58 uv_run [/opt/homebrew/Cellar/libuv/1.51.0/lib/libuv.1.dylib]
38: 0x104db9518 node::SpinEventLoop(node::Environment*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
39: 0x104e94dbc node::NodeMainInstance::Run(int*, node::Environment*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
40: 0x104e94ac8 node::NodeMainInstance::Run() [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
41: 0x104e2e73c node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
42: 0x104e2e908 node::Start(int, char**) [/opt/homebrew/Cellar/node@18/18.20.8/bin/node]
43: 0x1945b6b98 start [/usr/lib/dyld]
Abort trap: 6

Steps to Reproduce

(presumably, have a large session history)
name a session with /rename shortname
launch claude
run /resume shortname
wait 10-15 seconds
observe crash

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.76 (Claude Code)

Platform

Google Vertex AI

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗