Skip to content

Feature/zoo 480 clear command approval buttons on auto exec#107

Merged
krzychdre merged 1 commit into
mainfrom
feature/zoo-480-clear-command-approval-buttons-on-auto-exec
Jun 17, 2026
Merged

Feature/zoo 480 clear command approval buttons on auto exec#107
krzychdre merged 1 commit into
mainfrom
feature/zoo-480-clear-command-approval-buttons-on-auto-exec

Conversation

@krzychdre

Copy link
Copy Markdown
Owner

No description provided.

…c (#480)

When a command/tool ask is auto-approved or auto-denied, the old flow added
the ask message (showing approval buttons) and then posted a separate
clearApprovalButtons message. The extension-host -> webview channel is
fire-and-forget, so the clear could arrive before React rendered the buttons,
leaving them stuck on-screen. Resolve checkAutoApproval() before adding the
message and stamp isAnswered:true on it for immediate approve/deny; the
webview's button-setup effect early-returns on isAnswered, so the buttons
never appear. Add a clearApprovalButtons useCallback in ChatView shared by the
click handlers, a pulsing dot on the running-command indicator, and a
module-level statusCache in CommandExecution so a component mounting after the
"started" event can recover the running status.

Our ask() logic lives in TaskAskSay (not Task), so the backend change is
hand-adapted there; the new backend test is rewired to the askSay harness.

Ported from Zoo-Code PR #480 (cb3e93d52).

Co-authored-by: Andrew Schmeder <149117631+awschmeder@users.noreply.github.com>
Co-authored-by: Naved Merchant <naved.merchant@gmail.com>
@krzychdre krzychdre force-pushed the feature/zoo-480-clear-command-approval-buttons-on-auto-exec branch from 98251af to 9037c2f Compare June 17, 2026 21:05
@krzychdre krzychdre merged commit 6b6ece4 into main Jun 17, 2026
5 of 7 checks passed
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