OK, run clippy again, check there are no warnings, then commit.

Found it: the session’s saved reasoning_effort was carried over unchanged on the switch to Claude Code, and the CLI exits on a level it does not know.

What changed

  1. Drop inherited reasoning parameters when switching to an external agent, keeping only interaction_mode.
  2. Pass only the levels the model declares to --effort.
This only affects sessions switched from a TopxAI model to Claude Code.
FilesAddedRemoved
claude_code.rs+14−3
claude_code_effort.rs+4−1

Details are in the commit message.

Claude Sonnet 5.516:0419k token$0.06