F6: diff-view toggle (Feature #17) #18
Reference in New Issue
Block a user
Delete Branch "f6-diff-view-toggle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements F6 — diff-view toggle (Feature #17) from the graduated Solution Design
vscode-cowriting-plugin-content/specs/coauthoring-diff-view.md.One gesture (Cmd/Ctrl-Alt-D / Cowriting: Toggle Diff View) flips a tracked document into a native
vscode.diffagainst a coauthoring baseline — readonly baseline left, the live editable document right — and back. The baseline initializes at first track, advances automatically at every machine landing (the seam is the single ingress, INV-9/18), and can be pinned on demand. Pure view, repo-free: the baseline lives in VS Code workspace storage, never the repo (INV-19) —.threads/, the cross-rung contract (INV-14..17), andSCHEMA_VERSIONare untouched.Slices (spec §7.2)
BaselineStore(vscode-free) + vitest unit suite.onDidApplyAgentEditseam event (INV-9/18);DiffViewControllercontent provider + baseline lifecycle (ensure/advance/pin) + storage-unavailable fallback.extension.ts;package.jsoncommands +ctrl+alt+d.Verification
npm run typecheckclean.npx vitest run— 103 unit pass (incl. newbaselineStore).npm run test:e2e— 27 + 3 host E2E pass (exit 0), incl. the new F6 suite: opened baseline → toggle openscowriting-baselinediff → type (baseline steady) → accept advances past the landing (INV-18) → operator delta → pin → on-disk baseline outside.threads/(INV-19) → toggle closes → untracked warns.docs/MANUAL-SMOKE-F6.md) is the one remaining operator gesture.Session 0018. Plan:
docs/superpowers/plans/2026-06-11-f6-diff-view-toggle.md.🤖 Generated with Claude Code