Summary
DeepSeek Harness incremental thread imports derive the thread title from each delta batch. The same stable thread can therefore receive a different --title on every import, and the reconciliation retry can submit a payload whose title does not match the already-built CLI arguments.
Current behavior
buildThreadImportDelta derives payload.title from the delta message list. importSession then captures that title once in baseImportArgs.
Consequences:
- A later delta whose first user message differs can rename the same stable thread.
- After an optimistic append conflict, the full reconciliation payload replaces
payload, but baseImportArgs retains the earlier delta title.
Expected behavior
- Thread identity and title remain session-scoped across incremental batches.
- A reconciliation import builds arguments from the reconciliation payload rather than stale delta metadata.
- Exact replay and optimistic append behavior remain unchanged.
Reproduction
- Build a DSH session with at least two user turns that have different text.
- Import the first batch and retain its acknowledged cursor.
- Import the second batch using that cursor.
- Observe that the second delta derives its title from the later batch rather than the session's first user message.
- Force an expected-message-count conflict and observe that the reconciliation payload is rewritten while the original
baseImportArgs title is reused.
Environment
Acceptance criteria
Discovery
Found while reviewing PR #513. Kept separate because the affected code is already on main and is not part of that PR's final diff.
Summary
DeepSeek Harness incremental thread imports derive the thread title from each delta batch. The same stable thread can therefore receive a different
--titleon every import, and the reconciliation retry can submit a payload whose title does not match the already-built CLI arguments.Current behavior
buildThreadImportDeltaderivespayload.titlefrom the delta message list.importSessionthen captures that title once inbaseImportArgs.Consequences:
payload, butbaseImportArgsretains the earlier delta title.Expected behavior
Reproduction
baseImportArgstitle is reused.Environment
nowledge-co/communitynowledge-mem-deepseek-harness-plugin3a9b3637c/ PR fix(plugins): make automatic session capture incremental #514Acceptance criteria
Discovery
Found while reviewing PR #513. Kept separate because the affected code is already on
mainand is not part of that PR's final diff.