Uh oh!
There was an error while loading. Please reload this page.
feat(server): agent runtime core — provider seam, Claude Code provider, command dispatcher - #10
Merged
Merged
Conversation
AgentClient/AgentSession/PersistenceHandle seam under server/agent, disk-backed handle store for cross-restart resume, agent-manager for session lifecycle + event stamping, and the first provider: Claude Code via @anthropic-ai/claude-agent-sdk with a tool-call normaliser. Co-authored-by: opencode-agent <hello@sst.dev>
session.start/resume/send/abort and workspace.open/refresh now run end-to-end; unimplemented commands return explicit error frames; hello_ack advertises actually-registered providers. Adds daemon E2E tests with a fake provider covering the full session lifecycle. Co-authored-by: opencode-agent <hello@sst.dev>
johnnyhuy added a commit
that referenced
this pull request
Aug 9, 2026
…r, command dispatcher (#10) * feat(server): agent provider seam + Claude Code provider AgentClient/AgentSession/PersistenceHandle seam under server/agent, disk-backed handle store for cross-restart resume, agent-manager for session lifecycle + event stamping, and the first provider: Claude Code via @anthropic-ai/claude-agent-sdk with a tool-call normaliser. Co-authored-by: opencode-agent <hello@sst.dev> * feat(server): wire command dispatcher + workspace registry into daemon session.start/resume/send/abort and workspace.open/refresh now run end-to-end; unimplemented commands return explicit error frames; hello_ack advertises actually-registered providers. Adds daemon E2E tests with a fake provider covering the full session lifecycle. Co-authored-by: opencode-agent <hello@sst.dev> --------- Co-authored-by: opencode-agent <hello@sst.dev>
johnnyhuy added a commit
that referenced
this pull request
Aug 9, 2026
…r, command dispatcher (#10) * feat(server): agent provider seam + Claude Code provider AgentClient/AgentSession/PersistenceHandle seam under server/agent, disk-backed handle store for cross-restart resume, agent-manager for session lifecycle + event stamping, and the first provider: Claude Code via @anthropic-ai/claude-agent-sdk with a tool-call normaliser. Co-authored-by: opencode-agent <hello@sst.dev> * feat(server): wire command dispatcher + workspace registry into daemon session.start/resume/send/abort and workspace.open/refresh now run end-to-end; unimplemented commands return explicit error frames; hello_ack advertises actually-registered providers. Adds daemon E2E tests with a fake provider covering the full session lifecycle. Co-authored-by: opencode-agent <hello@sst.dev> --------- Co-authored-by: opencode-agent <hello@sst.dev>
johnnyhuy added a commit
that referenced
this pull request
Aug 9, 2026
…r, command dispatcher (#10) * feat(server): agent provider seam + Claude Code provider AgentClient/AgentSession/PersistenceHandle seam under server/agent, disk-backed handle store for cross-restart resume, agent-manager for session lifecycle + event stamping, and the first provider: Claude Code via @anthropic-ai/claude-agent-sdk with a tool-call normaliser. Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> * feat(server): wire command dispatcher + workspace registry into daemon session.start/resume/send/abort and workspace.open/refresh now run end-to-end; unimplemented commands return explicit error frames; hello_ack advertises actually-registered providers. Adds daemon E2E tests with a fake provider covering the full session lifecycle. Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> --------- Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
johnnyhuy added a commit
that referenced
this pull request
Aug 9, 2026
…r, command dispatcher (#10) * feat(server): agent provider seam + Claude Code provider AgentClient/AgentSession/PersistenceHandle seam under server/agent, disk-backed handle store for cross-restart resume, agent-manager for session lifecycle + event stamping, and the first provider: Claude Code via @anthropic-ai/claude-agent-sdk with a tool-call normaliser. Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> * feat(server): wire command dispatcher + workspace registry into daemon session.start/resume/send/abort and workspace.open/refresh now run end-to-end; unimplemented commands return explicit error frames; hello_ack advertises actually-registered providers. Adds daemon E2E tests with a fake provider covering the full session lifecycle. Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> --------- Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
This was referenced Aug 9, 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 freeto 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.
Summary
server/agent/agent-sdk-types.ts):AgentClient/AgentSession/PersistenceHandleper docs/providers.md, plus a disk-backedHandleStore(<supaplaneHome>/agents/<sanitized-cwd>/<session-id>.json) for cross-restart resume.@anthropic-ai/claude-agent-sdk— streaming-inputquery(), async prompt queue, init handshake captures upstream session id, resume support, modes → permission modes, tool-call normaliser mapping SDK messages toAgentEvents.session.start/resume/send/abortandworkspace.open/refreshnow run end-to-end; unimplemented commands return explicit error frames instead of silence;hello_ackadvertises actually-registered providers.daemon-e2e/): real daemon + realSupaplaneClient+ fake provider covering the full session lifecycle, plus unit tests for the tool-call mapper and handle store.Consequences
@anthropic-ai/claude-agent-sdkin@echohello/server.claudeCLI on PATH; permission prompts are not yet surfaced (permission.resolvestill a stub).Testing
bun run typecheckclean,bun run lint0 errors