Repository navigation
docs: documentation overhaul and universal schema reference - #10
Merged
Merged
Conversation
- Add quickstart with multi-platform examples (E2B, Daytona, Docker, local) - Add environment variables setup with platform-specific tabs - Add Python SDK page (coming soon) - Add local deployment guide - Update E2B/Daytona/Docker guides with TypeScript examples - Configure OpenAPI auto-generation for API reference - Add CORS configuration guide - Update manage-sessions with Rivet Actors examples - Fix SDK method names and URLs throughout - Add icons to main documentation pages - Remove outdated universal-api and http-api pages
- Create universal-schema.mdx with full event/item schema reference - Create agent-compatibility.mdx mirroring README feature matrix - Rename glossary.md to universal-schema.mdx - Update CLAUDE.md with sync requirements for new docs - Add links in README to building-chat-ui, manage-sessions, universal-schema - Fix CLI docs link (rivet.dev -> sandboxagent.dev)
railway-app
Bot
temporarily deployed
to
sandbox-agent / sandbox-agent-pr-10
January 28, 2026 12:55
Destroyed
|
🚅 Deployed to the sandbox-agent-pr-10 environment in sandbox-agent
|
railway-app
Bot
temporarily deployed
to
sandbox-agent / sandbox-agent-pr-10
January 28, 2026 13:02
Destroyed
WellDunDun
added a commit
to WellDunDun/sandbox-agent
that referenced
this pull request
Jan 31, 2026
Two bugs prevented the daemon from streaming events from OpenCode >= 1.1.x:
1. Wrong API endpoints: The daemon called GET /event/subscribe and
POST /session/{id}/prompt, but OpenCode serves GET /event and
POST /session/{id}/message. Unrecognized routes return the SPA HTML
catch-all, silently failing with zero events.
2. Untagged enum mis-dispatch: The generated Event enum uses
#[serde(untagged)]. EventServerConnected (variant rivet-dev#5) has empty
properties, matching ANY event JSON before EventMessageUpdated (rivet-dev#10)
is tried. All events deserialize as ServerConnected, then
event_to_universal() returns "unsupported opencode event" for every
single event.
Fix:
- Correct the two endpoint paths to match OpenCode's actual API
- Replace serde_json::from_value::<Event>() with manual type-field
dispatch that extracts the "type" field and deserializes directly
into the correct variant struct, bypassing the broken untagged enum
Tested with OpenCode 1.1.48 + Kimi K2.5:
- Before: 0 events
- After: 54 correctly parsed events (session.started, item.delta
streaming, item.completed, session.idle)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
This branch was successfully deployed
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.
Summary
Documentation improvements and additions:
universal-schema.mdxwith complete event/item schema referenceagent-compatibility.mdxmirroring README feature matrixTest plan
mintlify dev