Repository navigation
feat: host-owned session transcripts out of the workspace (#79 1a) - #80
Merged
Merged
Conversation
SessionStore gains transcript I/O (loadMessages/saveMessages, host-minted ids) under data/sessions/<agentId>/ — openclaw's split of state-root sessions from the workspace. Gateway and channels load the prior transcript into ContainerInput.messages and persist the returned ContainerOutput.messages; chat.history reads the host store; reset deletes the transcript. The agent workspace is now identity + memory only. Companion: jsclaw-agent-micro stateless runner.
This was referenced Jun 12, 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.
Phase 1a of #79 (option B, chosen because the workspace is becoming a publishable/anchored identity unit). Session transcripts move from inside the agent workspace (
agents/<id>/.jsclaw-micro/sessions/) to the state root (data/sessions/<agentId>/), and the host owns them: SessionStore gainsloadMessages/saveMessages(host-minted ids); gateway + channels thread the transcript throughContainerInput.messages/ContainerOutput.messages;chat.historyreads the store;resetdeletes the transcript. Runner-agnostic — the SDK (Claude Code) runner keeps its own sessionId continuity, agent-micro goes stateless (companion agent-micro#12). The workspace is now identity + memory only, the clean boundary for card.jsonld + git/gitmark (Phase 2). Verified live: continuity held across turns with the runner persisting nothing; workspace stayed clean. Tests 159/159.