[BUG] /resume crashes: "undefined is not an object (evaluating 'q.thinking.trim')"

Resolved 💬 0 comments Opened May 27, 2026 by SorasakiRin219 Closed May 27, 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?

Running /resume crashes with TypeError: undefined is not an object (evaluating 'q.thinking.trim'). The thinking
field on some object is undefined but .trim() is called without a null check.

What Should Happen?

claude should resume a previous conversation without error.

Error Messages/Logs

ERROR  undefined is not an object (evaluating 'q.thinking.trim')

 B:/~BUN/root/src/entrypoints/cli.js:7854:2733

 - Hx5 (B:/~BUN/root/src/entrypoints/cli.js:7854:2733)
 - tW_ (B:/~BUN/root/src/entrypoints/cli.js:7855:2832)
 - <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:9742:15898)
 - l5 (B:/~BUN/root/src/entrypoints/cli.js:571:30351)
 - <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:558:9671)
 - b6f (B:/~BUN/root/src/entrypoints/cli.js:9742:15615)
 - pO (B:/~BUN/root/src/entrypoints/cli.js:571:21158)
 - fj (B:/~BUN/root/src/entrypoints/cli.js:571:39928)
 - qKH (B:/~BUN/root/src/entrypoints/cli.js:571:50740)
 - $4 (B:/~BUN/root/src/entrypoints/cli.js:571:87775)

Steps to Reproduce

  1. Use Claude Code normally (interactive session)
  2. Exit Claude Code
  3. Run claude or open VS Code extension
  4. Execute /resume

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.152

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗