mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 10:05:18 +00:00
* feat: add configuration for model, mode, and thought level
* docs: document Claude effort-level filesystem config
* fix: prevent panic on empty modes/thoughtLevels in parse_agent_config
Use `.first()` with safe fallback instead of direct `[0]` index access,
which would panic if the Vec is empty and no default is set.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: harden session lifecycle and align cli.mdx example with claude.json
- destroySession: wrap session/cancel RPC in try/catch so local cleanup
always succeeds even when the agent is unreachable
- createSession/resumeOrCreateSession: clean up the remote session if
post-creation config calls (setMode/setModel/setThoughtLevel) fail,
preventing leaked orphan sessions
- cli.mdx: fix example output to match current claude.json (model name,
model order, and populated modes)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: harden session lifecycle and align config persistence logic
- resumeOrCreateSession: Remove destroy-on-error for the resume path. Config
errors now propagate without destroying a pre-existing session. The destroy
pattern remains in createSession (where the session is newly created and has
no prior state to preserve).
- setSessionMode fallback: When session/set_mode returns -32601 and the
fallback uses session/set_config_option, now keep modes.currentModeId
in sync with the updated currentValue. Prevents stale cached state in
getModes() when the fallback path is used.
- persistSessionStateFromMethod: Re-read the record from persistence instead
of using a stale pre-await snapshot. Prevents race conditions where
concurrent session/update events (processed by persistSessionStateFromEvent)
are silently overwritten by optimistic updates.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* fix: correct doc examples with valid Codex modes and update stable API list
- Replace invalid Codex mode values ("plan", "build") with valid ones
("auto", "full-access") in agent-sessions.mdx and sdk-overview.mdx
- Update CLAUDE.md stable method enumerations to include new session
config methods (setSessionMode, setSessionModel, etc.)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add OpenAPI annotations for process endpoints and fix config persistence race
Add summary/description to all process management endpoint specs and the
not_found error type. Fix hydrateSessionConfigOptions to re-read from
persistence after the network call, and sync mode-category configOptions
on session/update current_mode_update events.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
130 lines
2.4 KiB
JSON
130 lines
2.4 KiB
JSON
{
|
|
"$schema": "https://mintlify.com/docs.json",
|
|
"theme": "willow",
|
|
"name": "Sandbox Agent SDK",
|
|
"appearance": {
|
|
"default": "dark",
|
|
"strict": true
|
|
},
|
|
"colors": {
|
|
"primary": "#ff4f00",
|
|
"light": "#ff4f00",
|
|
"dark": "#ff4f00"
|
|
},
|
|
"favicon": "/favicon.svg",
|
|
"logo": {
|
|
"light": "/logo/light.svg",
|
|
"dark": "/logo/dark.svg"
|
|
},
|
|
"integrations": {
|
|
"posthog": {
|
|
"apiKey": "phc_6kfTNEAVw7rn1LA51cO3D69FefbKupSWFaM7OUgEpEo",
|
|
"apiHost": "https://ph.rivet.gg",
|
|
"sessionRecording": true
|
|
}
|
|
},
|
|
"navbar": {
|
|
"links": [
|
|
{
|
|
"label": "Gigacode",
|
|
"icon": "terminal",
|
|
"href": "https://github.com/rivet-dev/sandbox-agent/tree/main/gigacode"
|
|
},
|
|
{
|
|
"label": "Discord",
|
|
"icon": "discord",
|
|
"href": "https://discord.gg/auCecybynK"
|
|
},
|
|
{
|
|
"type": "github",
|
|
"href": "https://github.com/rivet-dev/sandbox-agent"
|
|
}
|
|
]
|
|
},
|
|
"navigation": {
|
|
"tabs": [
|
|
{
|
|
"tab": "Documentation",
|
|
"pages": [
|
|
{
|
|
"group": "Getting started",
|
|
"pages": [
|
|
"quickstart",
|
|
"sdk-overview",
|
|
{
|
|
"group": "Deploy",
|
|
"icon": "server",
|
|
"pages": [
|
|
"deploy/local",
|
|
"deploy/computesdk",
|
|
"deploy/e2b",
|
|
"deploy/daytona",
|
|
"deploy/vercel",
|
|
"deploy/cloudflare",
|
|
"deploy/docker",
|
|
"deploy/boxlite"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"group": "Agent",
|
|
"pages": [
|
|
"agent-sessions",
|
|
"attachments",
|
|
"skills-config",
|
|
"mcp-config",
|
|
"custom-tools"
|
|
]
|
|
},
|
|
{
|
|
"group": "System",
|
|
"pages": ["file-system"]
|
|
},
|
|
{
|
|
"group": "Orchestration",
|
|
"pages": [
|
|
"architecture",
|
|
"session-persistence",
|
|
"observability",
|
|
"multiplayer",
|
|
"security"
|
|
]
|
|
},
|
|
{
|
|
"group": "Reference",
|
|
"pages": [
|
|
"agent-capabilities",
|
|
"cli",
|
|
"inspector",
|
|
"opencode-compatibility",
|
|
{
|
|
"group": "More",
|
|
"pages": [
|
|
"credentials",
|
|
"daemon",
|
|
"cors",
|
|
"session-restoration",
|
|
"telemetry",
|
|
{
|
|
"group": "AI",
|
|
"pages": ["ai/skill", "ai/llms-txt"]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tab": "HTTP API",
|
|
"pages": [
|
|
{
|
|
"group": "HTTP Reference",
|
|
"openapi": "openapi.json"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|