Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
bbaeb3d
feat(checkpoints): per-write checkpoints, task-start baseline, and pe…
easonliang28 Aug 27, 2026
e0232f7
fix(fws): export the webview initializer and test the pre-hydration c…
easonliang28 Aug 28, 2026
31b3872
chore(ci): empty commit — re-trigger CI and the CodeRabbit current-he…
easonliang28 Aug 30, 2026
1ad5aae
fix(checkpoints): skip task-start baseline on history resume
easonliang28 Oct 12, 2026
a26cd2f
fix(checkpoints): skip baseline on aborted task; share default constant
easonliang28 Oct 12, 2026
d037c30
fix(checkpoints): recheck cancellation after the baseline state lookup
easonliang28 Oct 12, 2026
2e382a9
fix(checkpoints): await write-path checkpoint saves before state handoff
easonliang28 Oct 12, 2026
68e4fa7
test(checkpoints): pin one-checkpoint-per-patch for multi-file patches
easonliang28 Oct 12, 2026
2947505
fix(tools): defer the queued-message handoff until the patch checkpoi…
easonliang28 Oct 13, 2026
d1c2a4b
fix(task): never dequeue queued messages for an aborted task
easonliang28 Oct 13, 2026
50eb720
test(tools): pin the partial-failure handoff semantics of the patch c…
easonliang28 Oct 13, 2026
330ed9a
chore: remove carried-over Stryker suppression directives from touche…
easonliang28 Oct 14, 2026
06944fb
test: strengthen the early-return handoff assertions
easonliang28 Oct 15, 2026
bcf450d
test: assert the in-place update checkpoint contract
easonliang28 Oct 15, 2026
1a7a3c9
fix(apply-patch): fail moves when source deletion fails; checkpoint p…
easonliang28 Oct 16, 2026
2a49feb
fix(tools): checkpoint retained writes before handoff after a handler…
easonliang28 Oct 17, 2026
c66f406
fix(task): task-start checkpoint baseline errors no longer abort task…
easonliang28 Oct 17, 2026
6c0ff52
fix(checkpoints): restore a clobbered move destination when source de…
easonliang28 Oct 18, 2026
635d134
fix(checkpoints): harden task-start baseline and service init per review
easonliang28 Oct 18, 2026
74751ae
fix(task): bound the task-start baseline save; report a failed move r…
Oct 21, 2026
840f647
fix(tools): make the apply_patch move transactional with atomic stagi…
easonLiangWorldedtech Oct 22, 2026
c90dce6
fix(tools): preserve destination identity and permissions in the atom…
easonLiangWorldedtech Oct 22, 2026
71a5eed
fix(checkpoints): serialize per-task checkpoint saves
easonLiangWorldedtech Oct 22, 2026
df1b966
fix(tools): keep staging owner-only and make partial patch mutations …
easonLiangWorldedtech Oct 22, 2026
6e539cc
style: apply prettier formatting to the staging and mutation-tracking…
easonLiangWorldedtech Oct 22, 2026
38148a9
fix(tools): track committed mutations outside the handler-return boun…
easonLiangWorldedtech Oct 22, 2026
9a45231
chore: re-trigger CI after the e2e restart-phase timeout
easonLiangWorldedtech Oct 22, 2026
c5b2857
test+fix(checkpoints): correct the delete-ordering mock, kill the han…
easonLiangWorldedtech Nov 8, 2026
45cb682
fix(per-write-checkpoints): lock restores, track retained writes, nam…
easonLiangWorldedtech Nov 9, 2026
48f50d9
test(task): raise the abort latch through requestAbort in the three c…
easonLiangWorldedtech Nov 9, 2026
cbe254b
Fix the two checkpoint-queue findings the review raised, and stop a s…
easonLiangWorldedtech Nov 9, 2026
6b80340
test(webview): carry perWriteCheckpoints in the postMessageToWebview …
Nov 10, 2026
a552160
test(vscode-e2e): regenerate the chat-dark visual baseline for the ac…
easonLiangWorldedtech Nov 11, 2026
c9234e7
test(checkpoints): assert shadow git contents for checkpointSave
easonLiangWorldedtech Nov 11, 2026
b2db0b0
fix(checkpoints): hand an expired caller back to the initialization s…
easonLiangWorldedtech Nov 11, 2026
e6b4200
fix(checkpoints): decline to publish a baseline a write overtook rath…
easonLiangWorldedtech Nov 11, 2026
8f1d2d3
style(checkpoints): format the premise gate and its test
easonLiangWorldedtech Nov 11, 2026
f449849
test(checkpoints): cover the dropped save and the retry behind it in …
easonLiangWorldedtech Nov 11, 2026
c076807
fix(checkpoints): let the premise setup infer its return type rather …
easonLiangWorldedtech Nov 11, 2026
c9f3649
fix(apply-patch): write a move through a destination symlink
easonLiangWorldedtech Nov 11, 2026
657a113
test(apply-patch): carry toolCallId in the callback fixtures at the r…
easonLiangWorldedtech Nov 11, 2026
24c0b45
fix(checkpoints): refuse a read-only destination before the atomic re…
easonLiangWorldedtech Nov 12, 2026
1f1615f
test(checkpoints): pin the per-write default and the label and descri…
easonLiangWorldedtech Nov 12, 2026
8101951
test(webview-ui): pin the per-write-checkpoints default at the save b…
easonLiangWorldedtech Nov 12, 2026
3196afc
fix(apply-patch): create the staging entry exclusively
Nov 12, 2026
7666316
test(apply-patch): follow the destination link before writing the mov…
Nov 12, 2026
2a0ec65
test(checkpoints): call the save path with its own content premise
Nov 12, 2026
58a9276
i18n(webview): say saving a file from the editor registers no checkpo…
easonLiangWorldedtech Nov 13, 2026
1beda5d
test(core): prove a restore queued behind an in-flight save waits for…
easonLiangWorldedtech Nov 13, 2026
1534042
fix(checkpoints,apply-patch): release a queued caller at its deadline…
easonLiangWorldedtech Nov 13, 2026
27bcd30
checkpoints: latch the deadline release so a released save cannot sta…
easonLiangWorldedtech Nov 13, 2026
0ea0f69
checkpoints: drop duplicated refusal arms so the extension package cl…
easonLiangWorldedtech Nov 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions packages/types/src/__tests__/global-settings.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
DEFAULT_ALWAYS_DENY_UNAPPROVED_COMMANDS,
DEFAULT_DESTRUCTIVE_COMMAND_GUARD_ENABLED,
DEFAULT_PER_WRITE_CHECKPOINTS,
GLOBAL_SETTINGS_KEYS,
globalSettingsSchema,
} from "../global-settings.js"
Expand Down Expand Up @@ -51,3 +52,18 @@ describe("collapseCommandOutputByDefault global setting", () => {
expect(globalSettingsSchema.safeParse({ collapseCommandOutputByDefault: "true" }).success).toBe(false)
})
})

describe("perWriteCheckpoints global setting", () => {
it("is on by default", () => {
expect(DEFAULT_PER_WRITE_CHECKPOINTS).toBe(true)
})

it("accepts and exposes the persisted setting", () => {
expect(globalSettingsSchema.parse({ perWriteCheckpoints: false })).toEqual({ perWriteCheckpoints: false })
expect(GLOBAL_SETTINGS_KEYS).toContain("perWriteCheckpoints")
})

it("rejects non-boolean setting values", () => {
expect(() => globalSettingsSchema.parse({ perWriteCheckpoints: "true" })).toThrow()
})
})
13 changes: 13 additions & 0 deletions packages/types/src/global-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ export const MAX_CHECKPOINT_TIMEOUT_SECONDS = 60
*/
export const DEFAULT_CHECKPOINT_TIMEOUT_SECONDS = 15

/**
* Whether per-write checkpoints and task-start baseline are enabled by default.
* Master switch for the B cluster of checkpoint features.
* @default true
*/
export const DEFAULT_PER_WRITE_CHECKPOINTS = true
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

/**
* GlobalSettings
*/
Expand Down Expand Up @@ -226,6 +233,12 @@ export const globalSettingsSchema = z.object({
.min(MIN_CHECKPOINT_TIMEOUT_SECONDS)
.max(MAX_CHECKPOINT_TIMEOUT_SECONDS)
.optional(),
/**
* Whether to record a shadow-git checkpoint after every successful write_to_file,
* edit_file, and apply_patch (per-write checkpoints), plus a task-start baseline.
* @default true
*/
perWriteCheckpoints: z.boolean().optional(),

ttsEnabled: z.boolean().optional(),
ttsSpeed: z.number().optional(),
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/vscode-extension-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ export type ExtensionState = Pick<

enableCheckpoints: boolean
checkpointTimeout: number // Timeout for checkpoint initialization in seconds (default: 15)
perWriteCheckpoints: boolean
maxOpenTabsContext: number // Maximum number of VSCode open tabs to include in context (0-500)
maxWorkspaceFiles: number // Maximum number of files to include in current working directory details (0-500)
showRooIgnoredFiles: boolean // Whether to show .rooignore'd files in listings
Expand Down
Loading
Loading