mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 19:04:40 +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
8663f5070c
commit
6b3a620fa4
32 changed files with 9193 additions and 38 deletions
|
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"info": {
|
||||
"id": "msg_c31b349c3001C3jUz57fj5vRae",
|
||||
"sessionID": "ses_3ce4cbd76ffeHVa3mLvB00FXDV",
|
||||
"role": "assistant",
|
||||
"time": {
|
||||
"created": 1770360359363,
|
||||
"completed": 1770360359565
|
||||
},
|
||||
"error": {
|
||||
"name": "APIError",
|
||||
"data": {
|
||||
"message": "Unauthorized: {\"type\":\"error\",\"error\":{\"type\":\"AuthError\",\"message\":\"Invalid API key.\"}}",
|
||||
"statusCode": 401,
|
||||
"isRetryable": false,
|
||||
"responseHeaders": {
|
||||
"cf-placement": "local-SJC",
|
||||
"cf-ray": "9c98b01658355024-SJC",
|
||||
"connection": "keep-alive",
|
||||
"content-length": "74",
|
||||
"content-type": "text/plain;charset=UTF-8",
|
||||
"date": "Fri, 06 Feb 2026 06:45:59 GMT",
|
||||
"server": "cloudflare"
|
||||
},
|
||||
"responseBody": "{\"type\":\"error\",\"error\":{\"type\":\"AuthError\",\"message\":\"Invalid API key.\"}}",
|
||||
"metadata": {
|
||||
"url": "https://opencode.ai/zen/v1/models/gemini-3-pro:streamGenerateContent?alt=sse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parentID": "msg_c31b349c2001kJD7I7MRSAVo57",
|
||||
"modelID": "gemini-3-pro",
|
||||
"providerID": "opencode",
|
||||
"mode": "build",
|
||||
"agent": "build",
|
||||
"path": {
|
||||
"cwd": "/home/nathan/sandbox-agent/research/opencode-compat",
|
||||
"root": "/home/nathan/sandbox-agent"
|
||||
},
|
||||
"cost": 0,
|
||||
"tokens": {
|
||||
"input": 0,
|
||||
"output": 0,
|
||||
"reasoning": 0,
|
||||
"cache": {
|
||||
"read": 0,
|
||||
"write": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"parts": []
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue