Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

When file-modifying tools (file_edit_*, bash) complete while a workspace's ReviewPanel is not mounted, the panel now correctly fetches fresh data on mount instead of using stale cached data.

Changes

  • Track file-modifying tool completion timestamps in WorkspaceStore
  • ReviewPanel checks timestamp on mount to skip cache if tools ran while closed
  • Simplified from dual mechanism (callbacks + timestamps) to single MapStore-based approach

How it works

  1. Tool completes → store timestamp + bump MapStore subscription
  2. If panel open: subscription fires → debounced refresh
  3. If panel was closed: on mount, detects timestamp → skips cache → fresh fetch

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

…letion

When file-modifying tools (file_edit_*, bash) complete while a workspace's
ReviewPanel is not mounted, the panel now correctly fetches fresh data
on mount instead of using stale cached data.

## Changes

- Track file-modifying tool completion timestamps in WorkspaceStore
- ReviewPanel checks timestamp on mount to skip cache if tools ran while closed
- Simplified from dual mechanism (callbacks + timestamps) to single MapStore-based approach

## How it works

1. Tool completes → store timestamp + bump MapStore subscription
2. If panel open: subscription fires → debounced refresh
3. If panel was closed: on mount, detects timestamp → skips cache → fresh fetch

---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high`_
@ammario ammario merged commit b049fae into main Dec 20, 2025
20 checks passed
@ammario ammario deleted the auto-refresh-6kar branch December 20, 2025 19:48
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