Repository navigation
V5 migration and memory-system improvements - #114
Draft
Prasanna721 wants to merge 1 commit into
Draft
Prasanna721 wants to merge 1 commit into
Prasanna721 wants to merge 1 commit into
Conversation
Prasanna721
force-pushed
the
v5-migration
branch
2 times, most recently
from
October 14, 2026 00:56
f26185c to
e98560e
Compare
Send the session to the V5 /ns/{tag}/document route and let the server
derive memory from it, instead of summarizing on the client. Preserves the
existing memory metadata and entity context so recall is unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Prasanna721
force-pushed
the
v5-migration
branch
from
October 14, 2026 02:27
e98560e to
ab75f01
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Send a session's new messages to the V5 route and let the server build the memory text, for both the v1 and v2 runtimes.
Before: the plugin batched turns on the client and posted each batch as its own document.
After: the plugin posts new messages unchanged, one document per session, and the server formats them. Metadata and entity context are preserved, so recall is unchanged.
Files
src/services/capture.ts(v1),src/v2/runtime.ts(v2): send the new messages; the cursor advances only after a 2xx.src/services/session.ts: per-session cursor; detects a shrunk or rewritten history and restarts.src/services/client.ts:addSession().src/services/capture.test.ts,src/v2/runtime.test.ts: remove the tests for the client-side batching this replaces.Verified
bun run typecheckclean,bun test25/25.🤖 Generated with Claude Code