You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Fix] Zoo prompts about command output when short foreground commands emit output (Zoo-Code-Org#1043)
* fix(terminal): delay command_output ask for short foreground commands
The command_output ask fired on the first output chunk of any foreground
command, prompting users even for commands about to complete. Schedule the
ask instead so it only fires when the command is still running after a
5s delay, preserving the interrupt/feedback path for long-running commands
while letting short commands finish without prompting.
ClosesZoo-Code-Org#1042
* fix(terminal): anchor command_output ask delay to execution start
Anchor the ask-delay timer to onShellExecutionStarted (falling back to the
pre-runCommand timestamp) so shell-integration startup on cold terminals
does not consume the grace period, and expand ask-policy tests to cover
the agent-timeout cancel, re-anchor reschedule, ask error handling, and
non-message responses to restore patch coverage.
* test(terminal): cover fallback anchor for command_output ask delay
* fix(terminal): clean up pending command_output ask on completion
- Supersede a still-pending command_output ask in onCompleted so it
resolves immediately instead of lingering until the next interactive
message, and clear the Proceed/Kill controls in the webview when the
final non-partial command_output say arrives.
- Continue the process for any ask answer, not just typed messages, so a
non-message response actually backgrounds the command and the tool
resolves before the process completes.
- Strengthen ask-policy tests: assert the rescheduled ask still fires at
the re-anchored deadline, assert early resolution for non-message
answers, and cover ask supersession on completion.
* test(terminal): note synthetic yesButtonClicked in non-message ask test
---------
Co-authored-by: Roomote <roomote@roomote.dev>
0 commit comments