Skip to content

Commit 7c5e776

Browse files
committed
fix(claude): Steer reaches the agent while a command is running
Claude holds a `now` message until a running tool call returns, so a steer sent while a command ran was read only after the command finished. steerTurn now interrupts the turn without closing the query and then offers the steer, as Esc then send does in Claude Code. The interrupt is sent only for a user's own message while a tool call is open and no permission or question callback is in flight, its acknowledgement wait is bounded at five seconds, and a turn that ended meanwhile refuses the steer instead of receiving it. Ports the approach of nekohasekai's #12541 to the V2 adapter.
1 parent efecd3c commit 7c5e776

2 files changed

Lines changed: 510 additions & 6 deletions

File tree

0 commit comments

Comments
 (0)