Repository navigation
Conversation
jujn
approved these changes
Oct 30, 2026
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.
AgentScope-Java Version
2.1.0-SNAPSHOT
Summary
Windows session replay through
LocalSessionStorage.readAllcurrently opens one SQLite connection per object. Delegate the batch to the existing SQLite implementation after validating every path, so five objects use one connection. POSIX keeps the interface's default per-object reads.Refs #3834 (slice 09). This shared tracking issue remains open for the other slices.
Evidence
expected: <1> but was: <5>connections for five existing objects.After: The same outer storage batch uses one real SQLite connection, with matching bytes and versions. Missing objects are omitted, an empty batch opens no connection, and traversal outside the root is rejected.
mvn -B -T1C -pl agentscope-harness -am test -Dtest=LocalSessionStorageTest,SqliteSessionStorageTest -Dsurefire.failIfNoSpecifiedTests=false: 9 passed, 2 POSIX-only tests skipped on Windows.mvn -B -T1C -pl agentscope-harness -am spotless:checkandgit diff --check: passed.clean verifyrun had one failure inMemorySearchToolTest.errorLookingMemoryIsData, also reproduced without this change. The full suite was not rerun after the review simplifications. POSIX execution remains for CI.Merge Danger
Door: Two-way
Blast Radius: Local
Only local session batch reads change. The existing SQLite batch implementation, journal format, and path guards are reused; no migration or additional dependency is needed.