claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Conversations that have errors during chat title generation (i.e., what the chat is about) don't appear in --resume list

Open asfires opened this issue 1 year ago • 4 comments

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 a conversation file (.jsonl) contains an entry indicating that it failed to generate a chat title (e.g., "Refactor plan for foo.py"), it doesn't appear in the conversation history when running claude --resume.

What Should Happen?

Conversations should still appear in the --resume history despite failing to generate a chat title. Maybe fall back to the most recent valid chat title if this happens?

Error Messages/Logs


Steps to Reproduce

  1. Have a conversation that generates an error during chat title creation or updating (e.g., "API error with thinking strategy")
  2. The conversation file ends up with a summary error:
{"type":"summary","summary":"API Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"`clear_thinking_20251015` strategy requires `thinking` to be enabled\"},\"request_id\":\"req_...\"}","leafUuid":"..."}
  1. Quit and run claude --resume
  2. The conversation doesn't appear in the list

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.0.36 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Workarounds:

  1. Resume directly by session ID: claude --resume <session-id> (the uuid in the offending .jsonl file name)
  2. Manually edit the .jsonl file to remove the error summary line

asfires avatar Nov 08 '25 00:11 asfires

@asfires It happened to me numerous times on custom /slash-commands, but by adding ultrathink to the /slash-command the error disappears.

LorenzoNava99 avatar Nov 12 '25 17:11 LorenzoNava99

the problem is that ultrathink keyword works but it burns extra tokens specifically 32K extra so why can't think just come back to normal? is this a ploy to just get users to burn more tokens?

RbkGh avatar Nov 21 '25 20:11 RbkGh

Numerous times here

1337hero avatar Nov 22 '25 04:11 1337hero

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 22 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 21 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 28 '26 14:01 github-actions[bot]