Skip to content

docs: documentation overhaul and universal schema reference - #10

Merged
NathanFlurry merged 5 commits into
mainfrom
wip
Jan 28, 2026
Merged

NathanFlurry merged 5 commits into
mainfrom
wip

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member

Summary

Documentation improvements and additions:

  • Add universal-schema.mdx with complete event/item schema reference
  • Add agent-compatibility.mdx mirroring README feature matrix
  • Rewrite CLI reference documentation
  • Update manage-sessions with database comparison table (Rivet Actors, PostgreSQL, Redis)
  • Add CodeGroup/CardGroup formatting throughout
  • Fix broken links and add cross-references in README
  • Update CLAUDE.md with sync requirements for new docs

Test plan

  • Verify docs build locally with mintlify dev
  • Check all internal links resolve correctly
  • Confirm README links point to correct pages

- 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
railway-app Bot temporarily deployed to sandbox-agent / sandbox-agent-pr-10 January 28, 2026 12:55 Destroyed
@railway-app

railway-app Bot commented Jan 28, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the sandbox-agent-pr-10 environment in sandbox-agent

Service Status Web Updated (UTC)
inspector ✅ Success (View Logs) Web Jan 28, 2026 at 1:02 pm
website ✅ Success (View Logs) Web Jan 28, 2026 at 1:02 pm

@railway-app
railway-app Bot temporarily deployed to sandbox-agent / sandbox-agent-pr-10 January 28, 2026 13:02 Destroyed
@NathanFlurry
NathanFlurry merged commit 08d299a into main Jan 28, 2026
@NathanFlurry
NathanFlurry deleted the wip branch January 28, 2026 13:07
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

No deployments
sandbox-agent / sandbox-agent-pr-10 — 8e67c30b Deployed Jan 28, 2026 by railway-app[bot]
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