Skip to content

Commit e3dd44c

Browse files
feat(checkpoints): land the unit on upstream/main 332d30f
Refresh (task-106): the unit tree carries this branch's content merged with upstream/main 332d30f at the two conflicting paths, resolved as a union that keeps each side's payload. Shaped as a one-parent commit so the mutation gate prices the unit delta against main rather than main's own payload (mutation-testing.yml lines 52-56).
1 parent 332d30f commit e3dd44c

43 files changed

Lines changed: 3721 additions & 43 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎packages/types/src/global-settings.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ export const MAX_CHECKPOINT_TIMEOUT_SECONDS = 60
114114
*/
115115
export const DEFAULT_CHECKPOINT_TIMEOUT_SECONDS = 15
116116

117+
/**
118+
* Whether per-write checkpoints and task-start baseline are enabled by default.
119+
* Master switch for the B cluster of checkpoint features.
120+
* @default true
121+
*/
122+
export const DEFAULT_PER_WRITE_CHECKPOINTS = true
123+
117124
/**
118125
* GlobalSettings
119126
*/
@@ -223,6 +230,12 @@ export const globalSettingsSchema = z.object({
223230
.min(MIN_CHECKPOINT_TIMEOUT_SECONDS)
224231
.max(MAX_CHECKPOINT_TIMEOUT_SECONDS)
225232
.optional(),
233+
/**
234+
* Whether to record a shadow-git checkpoint after every successful write_to_file,
235+
* edit_file, and apply_patch (per-write checkpoints), plus a task-start baseline.
236+
* @default true
237+
*/
238+
perWriteCheckpoints: z.boolean().optional(),
226239

227240
ttsEnabled: z.boolean().optional(),
228241
ttsSpeed: z.number().optional(),

‎packages/types/src/vscode-extension-host.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ export type ExtensionState = Pick<
370370

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

‎src/core/checkpoints/__tests__/changeJournal.spec.ts‎

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)