Repository navigation
fix(mapping-store): keep a Thread's recency when only its checkpoints change - #946
Conversation
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
… change Opening an external Thread aligns its Turn mappings with the Harness Snapshot. The DeepSeek Harness writes its version into every checkpoint, so after a DSH upgrade each old Thread rewrote all of its mappings on the first open. That write moved updatedAt, which clients use as the Thread's recency, and the Thread jumped to the top of the Desktop and Web sidebars although nothing new was said in it. Reconciliation now keeps updatedAt when the same Turns stay in the same order and only what the Harness records about them changed. Added, removed or reordered Turns still count as activity. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8be5850 to
b2eeda1
Compare
|
Merged, thanks @sduhantao-maker! Verified against #973 (merged just before): Turn start/end advance recency through the default update path, while your reconciliation keeps the original time when only checkpoints change, and both PRs' tests pass together. |
Summary
Opening an old DeepSeek Harness Thread moved it to the top of the Desktop and Web sidebars, though nothing new was said in it.
Opening an external Thread aligns its Turn mappings with the Harness Snapshot. DSH writes its version into every checkpoint locator, so after a DSH upgrade the first open of an old Thread rewrote all of its mappings. That write moved
updatedAt, which clients use as the Thread's recency.Reconciliation now keeps
updatedAtwhen the same Turns stay in the same order and only what the Harness records about them changed. Added, removed or reordered Turns still count as activity.Related issues
N/A
Test plan
Rebased on
main(ce6c90a), Node 24.13.1, macOS 27.2.1 (arm64):npx vitest run --config tests/vitest.config.js packages/mapping-store: 155 passed, including the checkpoint-only case inindex.test.ts.npm run typecheck,npm run lint,npx prettier --check .: passed. Fullvitest: no failures beyond thosemainhas on this machine (a missingcargo, locally installed apps).nativeCheckpointRef.locator.dshVersiondiffered, yetupdatedAthad moved. Replaying reconciliation on a copy of that store with this change keptupdatedAt.updatedAtdid not change.🤖 Generated with Claude Code