test(review): pin the git-branch backend in enableReviewAgent · Entire
test(review): pin the git-branch backend in enableReviewAgent
e80ea80→main·
peyton-alt·11h ago·1 file·+4 added/-1 removed
Defensive, matching sha256_repo_test.go: this file's helpers (readCheckpointSummary/readSessionMetadata) resolve checkpoint content from the v1 metadata branch. Today the tests pass either way — their TestEnv pre-writes .entire/settings.json, so enable --agent is not a first run and the git-refs default never fires — but the pin makes the backend assumption explicit instead of depending on that setup detail.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Changes
1
cmd/entire/cli/integration_test
Mreview_test.go+4/-1
289 unmodified lines
290
291
292
293
293
294
295
296
297
298
299
289 unmodified lines
func enableReviewAgent(t *testing.T, env *TestEnv, name string) {
t.Helper()
env.RunCLI("enable", "--agent", name, "--telemetry=false")
// Pin the git-branch backend: readCheckpointSummary/readSessionMetadata
// resolve checkpoint content from the v1 metadata branch, and first-run
// enable now defaults new setups to git-refs.
env.RunCLI("enable", "--agent", name, "--telemetry=false", "--checkpoint-backend", "branch")
}
func readCheckpointSummary(t *testing.T, env *TestEnv, checkpointID string) checkpoint.CheckpointSummary {
Mcmd/entire/cli/integration_test/review_test.go+4/-1