Skip to content

fix: drain pending batch after concurrent terminal, fix [object Objec…#86

Merged
davi0015 merged 1 commit into
mainfrom
fix/terminal-approval-freeze
Jul 10, 2026
Merged

fix: drain pending batch after concurrent terminal, fix [object Objec…#86
davi0015 merged 1 commit into
mainfrom
fix/terminal-approval-freeze

Conversation

@davi0015

Copy link
Copy Markdown
Owner

…t] title

When a terminal tool was approved via approveToolRequest (concurrent path), non-terminal siblings like read_file stayed stuck as tool_request forever — _checkAndContinueAfterConcurrentResolution blindly set 'awaiting_user' instead of draining the remaining batch. Now calls _tryDrainPendingBatch so non-approval tools run automatically and only genuinely approval-required tools pause.

Also fixes [object Object] in tool titles during running_now state when the tool was part of a batch. loadingTitleWrapper returns a React element, but the batch prefix path used template literal concatenation which stringified it. Now wraps in a fragment.

…t] title

When a terminal tool was approved via approveToolRequest (concurrent
path), non-terminal siblings like read_file stayed stuck as
tool_request forever — _checkAndContinueAfterConcurrentResolution
blindly set 'awaiting_user' instead of draining the remaining batch.
Now calls _tryDrainPendingBatch so non-approval tools run automatically
and only genuinely approval-required tools pause.

Also fixes [object Object] in tool titles during running_now state
when the tool was part of a batch. loadingTitleWrapper returns a React
element, but the batch prefix path used template literal concatenation
which stringified it. Now wraps in a fragment.
@davi0015
davi0015 merged commit 59e832f into main Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant