Skip to content

fix(web): drop a file from the filtered diff view as soon as it is staged or unstaged - #101

Merged
MTVaught merged 1 commit into
mainfrom
t3code/diff-stage-optimistic-hide
Sep 20, 2026
Merged

MTVaught merged 1 commit into
mainfrom
t3code/diff-stage-optimistic-hide

Conversation

@MTVaught

Copy link
Copy Markdown
Owner

Problem

In the diff panel's Unstaged view, staging a file left it on screen until the server had rerun git status and regenerated both diffs. That round-trip read as lag on every click. The Staged view had the same delay when unstaging.

Fix

Hide the file locally the moment the action starts when it leaves the active filter. The hidden set is keyed to the preview it came from, so the next real refresh replaces it cleanly instead of fighting it. If the git command fails, the file returns alongside the error toast.

Follow-up to #100.

Built with Claude Fable 5.1 via Claude Code in T3 Code.

@github-actions github-actions Bot added size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Sep 19, 2026
@github-actions

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 13.6 KiB 13.6 KiB −68 B (−0.5%) 15.1 KiB ✅
Codex Thread snapshot wire 7.1 KiB 7.1 KiB −2 B (−0.0%) 7.3 KiB ✅
Codex Live turn WebSocket wire 6.6 KiB 6.5 KiB −66 B (−1.0%) 7.8 KiB ✅
Codex Live turn WebSocket decoded 57.1 KiB 57.0 KiB −88 B (−0.2%) 66.4 KiB ✅
Codex Live turn messages 10 8 −2 (−20.0%) 21 ✅
Claude Total thread wire 13.6 KiB 13.6 KiB +7 B (+0.1%) 15.1 KiB ✅
Claude Thread snapshot wire 7.1 KiB 7.1 KiB −6 B (−0.1%) 7.3 KiB ✅
Claude Live turn WebSocket wire 6.5 KiB 6.6 KiB +13 B (+0.2%) 7.8 KiB ✅
Claude Live turn WebSocket decoded 57.8 KiB 57.9 KiB +44 B (+0.1%) 66.4 KiB ✅
Claude Live turn messages 9 10 +1 (+11.1%) 21 ✅

Baseline: 4582eb4 · PR result: a0fe4b1 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 113.9 KiB
  • Claude decoded thread snapshot: 114.6 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@MTVaught
MTVaught merged commit 3332115 into main Sep 20, 2026
19 checks passed
@MTVaught
MTVaught deleted the t3code/diff-stage-optimistic-hide branch September 20, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant