fix(harness): avoid local files in remote mode#2184
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
oss-maintainer
left a comment
There was a problem hiding this comment.
Summary
Fixes remote deployments creating host-local transcript caches. When remoteFilesystemSpec is set, session persistence is now disabled to avoid duplicate storage.
Findings
- [Info]
HarnessAgent.java:2044-2048— AddedsessionTranscriptEnabledflag based onremoteFilesystemSpec. Correct. - [Info]
CompactionMiddleware.javaandMemoryFlushMiddleware.java— Both now acceptsessionPersistenceEnabledparameter. Good separation of concerns. - [Info]
ConversationCompactor.java:156— Offload step skipped when persistence disabled. Prevents redundant writes.
Verdict
Important fix for remote deployments. LGTM.
Automated review by github-manager
AgentScopeJavaBot
left a comment
There was a problem hiding this comment.
🤖 AI Review
Well-designed fix for issue #2182 that prevents unnecessary local file creation when using RemoteFilesystemSpec. Three key changes: (1) stops auto-creating .index/workspace.db; (2) disables local session transcripts for remote agents; (3) allows explicit WorkspaceIndex injection when needed. The AgentStateStore persistence path is correctly left unaffected.
All four new tests pass and cover the key scenarios. The sub-agent propagation logic is correct. The fallback to distributed-store scans when no local index exists is properly guarded.
One suggestion: since this is a behavioral change (previously local index was auto-created), consider noting it in release notes so users who relied on the old behavior can explicitly opt in via .workspaceIndex(WorkspaceIndex.open(workspace)).
AgentScopeJavaBot
left a comment
There was a problem hiding this comment.
🤖 AI Review
Well-designed fix for issue #2182 that prevents unnecessary local file creation when using RemoteFilesystemSpec. Three key changes: (1) stops auto-creating .index/workspace.db; (2) disables local session transcripts for remote agents; (3) allows explicit WorkspaceIndex injection when needed. The AgentStateStore persistence path is correctly left unaffected.
All four new tests pass and cover the key scenarios. The sub-agent propagation logic is correct. The fallback to distributed-store scans when no local index exists is properly guarded.
One suggestion: since this is a behavioral change (previously local index was auto-created), consider noting it in release notes so users who relied on the old behavior can explicitly opt in via .workspaceIndex(WorkspaceIndex.open(workspace)).
Summary
.index/workspace.dbby default when usingRemoteFilesystemSpec.AgentStateStorepersistence unaffected.disableSessionPersistence()cover both memory-flush and compaction offload paths.WorkspaceIndexwhen needed.Testing
HarnessAgentTest: 39 tests passedgit diff --checkpassedFixes #2182