Skip to content

feat: host-owned session transcripts out of the workspace (#79 1a) - #80

Merged
melvincarvalho merged 1 commit into
gh-pagesfrom
issue-79-1a-sessions
Jun 12, 2026
Merged

melvincarvalho merged 1 commit into
gh-pagesfrom
issue-79-1a-sessions

Conversation

@melvincarvalho

Copy link
Copy Markdown
Contributor

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 gains loadMessages/saveMessages (host-minted ids); gateway + channels thread the transcript through ContainerInput.messages / ContainerOutput.messages; chat.history reads the store; reset deletes 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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant