fix: restore conversation when loading checkpoints - #1370
saksham-rathore wants to merge 1 commit into
Conversation
nc-review: needs work — 1 blocking, 3 important, 1 nit@saksham-rathore — there is a blocking item below. The PR fixes the documented bug (workspace files restored but conversation messages discarded) by wiring 🔴 blocking · The new test file does 🟠 important ·
🟠 important · The diff deletes the only if (status.isDefault) return {branch: status.branch, marker: 'default'};The 🟠 important · The diff replaces ~250 lines of pre-existing tests (help rendering, create/list/load/delete subcommand paths, multi-word checkpoint names, handler-returns-React-element checks, alias handling, unknown-subcommand error path, case-insensitive dispatch, etc.) with only four new tests covering ⚪ nit · The changeset body is literally 🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
7d5485e to
4e2de1c
Compare
Description
Fix checkpoint loading so that both workspace files and conversation messages are restored from the selected checkpoint.
Previously, loading a checkpoint restored the workspace files but did not restore the conversation state.
Fixes #1242
Type of Change
Changeset
pnpm changeset) describing this change for the changelogTesting
Automated Tests
.spec.ts/tsxfilespnpm test:allcompletes successfully)Manual Testing
Checklist