mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 18:03:56 +00:00
fix: opencode compat tool call rendering and default to no-token
- Fix tool name lost on ToolResult events (persist via tool_name_by_call) - Fix tool input lost on ToolResult events (persist via tool_args_by_call) - Fix tool output in wrong field (error -> output) - Fix text doubling in streaming (defer emit to ItemCompleted) - Fix missing delta field in text streaming events - Default server mode to no-token when --token not specified - Add install-fast-sa and install-fast-gigacode justfile targets
This commit is contained in:
parent
a02393436c
commit
5744712f06
32 changed files with 9193 additions and 38 deletions
|
|
@ -318,6 +318,35 @@ fn codex_thread_id_from_server_notification(notification) -> Option<String> {
|
|||
}
|
||||
```
|
||||
|
||||
## Model Discovery
|
||||
|
||||
Codex exposes a `model/list` JSON-RPC method through its app-server process.
|
||||
|
||||
### JSON-RPC Method
|
||||
|
||||
```json
|
||||
{
|
||||
"jsonrpc": "2.0",
|
||||
"id": 1,
|
||||
"method": "model/list",
|
||||
"params": {
|
||||
"cursor": null,
|
||||
"limit": null
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Supports pagination via `cursor` and `limit` parameters. Defined in `resources/agent-schemas/artifacts/json-schema/codex.json`.
|
||||
|
||||
### How to Replicate
|
||||
|
||||
Requires a running Codex app-server process. Send the JSON-RPC request to the app-server over stdio. The response contains the list of models available to the Codex instance (depends on configured API keys / providers).
|
||||
|
||||
### Limitations
|
||||
|
||||
- Requires an active app-server process (cannot query models without starting one)
|
||||
- No standalone CLI command like `codex models`
|
||||
|
||||
## Notes
|
||||
|
||||
- SDK is dynamically imported to reduce bundle size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue