You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tracking B3b: change cards webview UI and rollback buttons #1402
Tracking issue for the B3b PR (branch feat/change-cards-webview-b3b; PR to be opened after review).
Part of the file-write safety series — plan: easonLiangWorldedtech/Zoo-Code#33, epic: #1375. Item: B3b — Change cards webview UI + rollback buttons. Stacks on the B3a PR (#1401); the card payloads and rollback actions already exist on the extension host.
Scope
Render the per-step change card in the checkpoint chat message: the summary line ("N files changed this step") + per-file rows; when changeCardDetail === "full" the per-file unified diff is expandable.
Rollback buttons: per-file ("restore this file") and per-step ("restore this step"), posting the B3a checkpointRestoreFile / checkpointRestoreStep messages, with a confirm step and the existing error surfacing on failure.
The changeCardDetail select control in the Checkpoints settings section (the round trip already exists from B3a) with i18n labels in every locale.
Acceptance
Card renders for summary-only payloads (no diff rows) and for full payloads (expandable diffs); suppressed checkpoints still render in history
Rollback buttons post the exact B3a payloads; a failed rollback surfaces the B3a i18n error string
Settings select binds to cachedState (not live state) and saves via handleSubmit
Behavioral webview tests (Vitest JSDOM) for render + button dispatch; CI green (ubuntu unit-test gate), 100% codecov patch coverage on the webview-ui flag
Addendum from lane n20-2237 leg 147 (2026-11-16), for tracking issue #1402 and pull #1412 - compressed 2026-11-27 to one screen under the comment economy. Part 1 of 3. Was 5910 cp; created and last-updated 2026-11-16T17:31:14Z; body digest at supersession dfc24d7a9d7d991a; verbatim original lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1402-issue-6923957512-v0.md (file digest 0e5659ff). Every number in this series is a print from lane s3-1395 leg 502 (tmp-b1-1404/u502-heads, -plan, -piece-rows, -gate-rows, -cover-13-final), not re-priced; the addendum was draft-only.
Footing (fork point, CI reproduction, price basis, advisory-gate facts): part 2 of this series, and the authoritative copy on #1401 - #1401 (comment) (series parts 1-6).
Back-pointer for PR #1412 (unit B3b of the checkpoint / change-card series): the PR body was compressed on 2026-11-27 from 42,626 cp to 1,177 cp. Nothing was lost - the record moved to 9 comments on the PR (parts 1-9 of 9, starting at #1412 (comment)), and the verbatim pre-compression body is kept lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1412-pr-body-v0.md (file digest 1cdc7567; body digest at supersession f20b78fd8c5f7743, head e1aeb51, updated_before_rewrite 2026-11-26T22:21:29Z).
Tracking issue #1402 addendum, part 2 of 3 (compressed 2026-11-27).
#1412 splits into five whole-file pieces in cap order - 396, 466, 203 extension lines, 468 webview, 53 types: piece 1 b635431cf is 396 over 32 ranges (webviewMessageHandler.ts 207, changeJournal.ts 189); piece 2 37a382a15 is 466 over 133 (checkpoints/index.ts 189, ApplyPatchTool.ts 164, rollback.ts 113); piece 3 4639a338e is 203 over 77; piece 4 88373b4fc is 468 over 11 in webview (ChangeCard.tsx 417, CheckpointSettings.tsx 41, SettingsView.tsx 6, ChatRow.tsx 2, ExtensionStateContext.tsx 2); piece 5 c5461b5cf is 53 over 10 in types. Whole head as one piece prints the refusal at 1,065; order test printed too: after piece 1 alone the remainder reads extension has 669 changed executable lines (limit 500) - the extension bucket clears only once all three of its pieces merge. Largest single-file prices 417 (ChangeCard.tsx) and 207 (webviewMessageHandler.ts), both under 500 - no file cut in half; census 0 of 58 files touched by more than one commit.
Tracking issue #1402 addendum, part 3 of 3 (compressed 2026-11-27).
Control counts: piece 1 is the weakest piece in the plan and this issue should say so - 18 names whose declarations land in a later-merging piece (highest of the run), naming checkpointDiff and buildChangeCardPayload; lane s3's own judgement is that pairing the message handler with the journal is thin as a commit at that count. Pieces 2-5 carry 4, 8, 7 and 0.
Shared method, the two instrument facts and the review arithmetic: authoritative copy on #1401, parts 5 and 6 of 6 (#1401 (comment) and #1401 (comment)).
Activity
easonLiangWorldedtech commentedon Nov 16, 2026
Addendum from lane n20-2237 leg 147 (2026-11-16), for tracking issue #1402 and pull #1412 - compressed 2026-11-27 to one screen under the comment economy. Part 1 of 3. Was 5910 cp; created and last-updated 2026-11-16T17:31:14Z; body digest at supersession dfc24d7a9d7d991a; verbatim original lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1402-issue-6923957512-v0.md (file digest 0e5659ff). Every number in this series is a print from lane s3-1395 leg 502 (tmp-b1-1404/u502-heads, -plan, -piece-rows, -gate-rows, -cover-13-final), not re-priced; the addendum was draft-only.
Footing (fork point, CI reproduction, price basis, advisory-gate facts): part 2 of this series, and the authoritative copy on #1401 - #1401 (comment) (series parts 1-6).
easonLiangWorldedtech commentedon Nov 27, 2026
Back-pointer for PR #1412 (unit B3b of the checkpoint / change-card series): the PR body was compressed on 2026-11-27 from 42,626 cp to 1,177 cp. Nothing was lost - the record moved to 9 comments on the PR (parts 1-9 of 9, starting at #1412 (comment)), and the verbatim pre-compression body is kept lane-locally at .dsh/workflow/20261122-1551/evidence/relocated/1412-pr-body-v0.md (file digest 1cdc7567; body digest at supersession f20b78fd8c5f7743, head e1aeb51, updated_before_rewrite 2026-11-26T22:21:29Z).
easonLiangWorldedtech commentedon Nov 27, 2026
Tracking issue #1402 addendum, part 2 of 3 (compressed 2026-11-27).
#1412 splits into five whole-file pieces in cap order - 396, 466, 203 extension lines, 468 webview, 53 types: piece 1 b635431cf is 396 over 32 ranges (webviewMessageHandler.ts 207, changeJournal.ts 189); piece 2 37a382a15 is 466 over 133 (checkpoints/index.ts 189, ApplyPatchTool.ts 164, rollback.ts 113); piece 3 4639a338e is 203 over 77; piece 4 88373b4fc is 468 over 11 in webview (ChangeCard.tsx 417, CheckpointSettings.tsx 41, SettingsView.tsx 6, ChatRow.tsx 2, ExtensionStateContext.tsx 2); piece 5 c5461b5cf is 53 over 10 in types. Whole head as one piece prints the refusal at 1,065; order test printed too: after piece 1 alone the remainder reads extension has 669 changed executable lines (limit 500) - the extension bucket clears only once all three of its pieces merge. Largest single-file prices 417 (ChangeCard.tsx) and 207 (webviewMessageHandler.ts), both under 500 - no file cut in half; census 0 of 58 files touched by more than one commit.
easonLiangWorldedtech commentedon Nov 27, 2026
Tracking issue #1402 addendum, part 3 of 3 (compressed 2026-11-27).
Control counts: piece 1 is the weakest piece in the plan and this issue should say so - 18 names whose declarations land in a later-merging piece (highest of the run), naming checkpointDiff and buildChangeCardPayload; lane s3's own judgement is that pairing the message handler with the journal is thin as a commit at that count. Pieces 2-5 carry 4, 8, 7 and 0.
Shared method, the two instrument facts and the review arithmetic: authoritative copy on #1401, parts 5 and 6 of 6 (#1401 (comment) and #1401 (comment)).