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>
63 lines
1,020 B
JSON
63 lines
1,020 B
JSON
{
|
|
"defaultModel": "gpt-5.3-codex",
|
|
"models": [
|
|
{
|
|
"id": "gpt-5.3-codex",
|
|
"name": "gpt-5.3-codex"
|
|
},
|
|
{
|
|
"id": "gpt-5.3-codex-spark",
|
|
"name": "GPT-5.3-Codex-Spark"
|
|
},
|
|
{
|
|
"id": "gpt-5.2-codex",
|
|
"name": "gpt-5.2-codex"
|
|
},
|
|
{
|
|
"id": "gpt-5.1-codex-max",
|
|
"name": "gpt-5.1-codex-max"
|
|
},
|
|
{
|
|
"id": "gpt-5.2",
|
|
"name": "gpt-5.2"
|
|
},
|
|
{
|
|
"id": "gpt-5.1-codex-mini",
|
|
"name": "gpt-5.1-codex-mini"
|
|
}
|
|
],
|
|
"defaultMode": "read-only",
|
|
"modes": [
|
|
{
|
|
"id": "read-only",
|
|
"name": "Read Only"
|
|
},
|
|
{
|
|
"id": "auto",
|
|
"name": "Default"
|
|
},
|
|
{
|
|
"id": "full-access",
|
|
"name": "Full Access"
|
|
}
|
|
],
|
|
"defaultThoughtLevel": "high",
|
|
"thoughtLevels": [
|
|
{
|
|
"id": "low",
|
|
"name": "Low"
|
|
},
|
|
{
|
|
"id": "medium",
|
|
"name": "Medium"
|
|
},
|
|
{
|
|
"id": "high",
|
|
"name": "High"
|
|
},
|
|
{
|
|
"id": "xhigh",
|
|
"name": "Xhigh"
|
|
}
|
|
]
|
|
}
|