Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Replace the arbitrary 30-second countdown timer with event-driven refresh triggered by file-modifying tool completions.

Changes

  • Add onToolCallEnd subscription to WorkspaceStore
  • Subscribe to tool-call-end events in ReviewPanel
  • Trigger refresh 3s after file_edit_* or bash tool completes (debounced)
  • Pause auto-refresh while user is focused on panel
  • Fire pending refresh when user blurs panel
  • Remove countdown UI from ReviewControls

Benefits

  • No arbitrary timing - refresh only when files actually change
  • Better SSH workspace UX - no countdown freezing during slow fetches
  • Respects user interaction - won't disrupt active review work
  • Simpler code - removes polling interval and countdown state

Generated with mux • Model: anthropic:claude-opus-4-5 • Thinking: high

…n refresh

Replace the arbitrary 30-second countdown timer with event-driven refresh
triggered by file-modifying tool completions.

Changes:
- Add onToolCallEnd subscription to WorkspaceStore
- Subscribe to tool-call-end events in ReviewPanel
- Trigger refresh 3s after file_edit_* or bash tool completes (debounced)
- Pause auto-refresh while user is focused on panel
- Fire pending refresh when user blurs panel
- Remove countdown UI from ReviewControls

Benefits:
- No arbitrary timing - refresh only when files actually change
- Better SSH workspace UX - no countdown freezing during slow fetches
- Respects user interaction - won't disrupt active review work
- Simpler code - removes polling interval and countdown state
@ammario ammario merged commit ad4525e into main Dec 20, 2025
20 checks passed
@ammario ammario deleted the refresh-2hj3 branch December 20, 2025 18:46
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.

2 participants