Skip to content

Conversation

@andyrewlee
Copy link
Owner

@andyrewlee andyrewlee commented Jan 27, 2026

The dashboard maintains its own statusCache separate from the StatusManager cache. When git status was invalidated (e.g., after git rebase), only the StatusManager cache was cleared, leaving the dashboard with stale data showing a dirty indicator while the sidebar showed no files.

Add InvalidateStatus method to dashboard that clears its local cache and marks the workspace as loading. Call this method from:

  • handleFileWatcherEvent: when file changes trigger status refresh
  • handleWorkspacePreviewed: when there's a cache miss in StatusManager

Open with Devin

The dashboard maintains its own statusCache separate from the
StatusManager cache. When git status was invalidated (e.g., after
git rebase), only the StatusManager cache was cleared, leaving the
dashboard with stale data showing a dirty indicator while the sidebar
showed no files.

Add InvalidateStatus method to dashboard that clears its local cache
and marks the workspace as loading. Call this method from:
- handleFileWatcherEvent: when file changes trigger status refresh
- handleWorkspacePreviewed: when there's a cache miss in StatusManager

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@andyrewlee andyrewlee merged commit 4daab9b into main Jan 27, 2026
1 check passed
@andyrewlee andyrewlee deleted the fix-dirty-indicator branch January 27, 2026 11:01
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional flags.

Open in Devin Review

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