Skip to content

feat(agent_terminal): add countdown timer to tool approval dialog (#4960)#4975

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4960
Apr 17, 2026
Merged

feat(agent_terminal): add countdown timer to tool approval dialog (#4960)#4975
mrveiss merged 1 commit intoDev_new_guifrom
issue-4960

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 17, 2026

Closes #4960

Summary

  • Added toolApprovalSecondsLeft ref tracking remaining seconds in ChatInterface.vue
  • _startCountdown(timeoutSeconds) starts a 1s setInterval; _stopCountdown() clears it on approve/deny/unmount
  • watch(pendingToolApproval, ...) starts/stops countdown automatically when approval arrives or clears
  • Template: progress bar (shrinks linearly, turns red at ≤10s) + "Auto-denying in Xs" label inside dialog
  • Added toolApprovalCountdown i18n key in en.json

Test Status

PASS — no new TypeScript errors introduced

)

Show remaining seconds and a shrinking progress bar in the agent-loop
tool approval dialog, counting down from timeout_seconds to 0.
Bar turns red at ≤10 s; interval is cleared on approve/deny/unmount.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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