Repository navigation
fix(threads): keep local changes stable between visits - #918
Merged
Merged
Conversation
Restore the shared Git status snapshot immediately and refresh it in the background. Keep cached counters visible on refresh failures and move Pull beside Refresh as an icon action with a target or disabled-reason tooltip. Fixes: #900
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Returning to a thread remounted Local changes with no visible data, so the counters disappeared until Git status loaded again. Restore the thread's last result from the existing bounded query cache immediately, then refresh in the background without a spinner. A failed refresh preserves the counters and exposes its error in the tooltip; first loads and manual refreshes retain their loading indicator.
Move Pull into the Local changes header as an icon beside Refresh. Both actions keep their positions before loading and without a checkout. Pull's accessible label and tooltip identify the target branch; unavailable actions explain their restriction. Update the workspace and UI API documentation.
Fixes: #900
Validation
bun run --filter @canopy/web typecheck.git diff --checkis clean.Copy audit
Passed all 10 items in
docs/copy.md§8. Visible “Pull” → icon with “Pull from origin/” as both accessible label and normal tooltip, preserving the action and its target without a separate row. Added “Open a Git checkout to pull changes.” for the disabled non-Git state. Existing restriction/error messages remain available in tooltips; no new terminology or duplicate visible copy. Checked short/long names and both viewport sizes.