[BUG] undefined is not an object (evaluating '_.thinking.trim')

Resolved 💬 2 comments Opened Jun 4, 2026 by kevinmiao Closed Jun 7, 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?

when I use claude in Mac Os Termial , to do the previous work.This problem will arise.
i find a Similar issue in Issues(Operating System: Windows)

What Should Happen?

Use Claude Code normally
use /resume and Select a session.
send “Continue the previous work.”

Error Messages/Logs

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

 /$bunfs/root/src/entrypoints/cli.js:7797:2733

 - fxL (/$bunfs/root/src/entrypoints/cli.js:7797:2733)
 - OX1 (/$bunfs/root/src/entrypoints/cli.js:7798:2832)
 - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9708:15898)
 - lL (/$bunfs/root/src/entrypoints/cli.js:551:30351)
 - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:538:9671)
 - B85 (/$bunfs/root/src/entrypoints/cli.js:9708:15615)
 - UO (/$bunfs/root/src/entrypoints/cli.js:551:21158)
 - fY (/$bunfs/root/src/entrypoints/cli.js:551:39928)
 - AqH (/$bunfs/root/src/entrypoints/cli.js:551:50740)
 - AK (/$bunfs/root/src/entrypoints/cli.js:551:87775)

Steps to Reproduce

Use Claude Code normally (interactive session)
run claude in termial
Execute /resume a session
send “Continue the previous work.”

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.152 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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