mirror of
https://github.com/volcengine/OpenViking.git
synced 2026-09-30 17:28:07 +08:00
Coding-agent plugins capped a tool part's `tool_output` at 2000 chars before
POSTing it to `/api/v1/sessions/{id}/messages`. That cap sits below the server's
own externalization threshold (`tool_output_externalization.threshold_chars`,
default 20000), so output in the 2k-20k band was destroyed for no reason and
anything larger never reached `ToolResultStore` - leaving `tool_output_ref`
permanently empty and the `/tool-results` read-back path unusable.
Raise the `captureToolMaxChars` default to 1000000 (a guard against pathological
payloads, not a truncation policy) and lift the opencode/pi clamps that would
otherwise pin it back to 20000. claude-code had no knob at all - two hardcoded
`TOOL_OUTPUT_PART_MAX_CHARS = 2000` constants - so it gains the same config
entry and both capture scripts now read it.
Also stop pi from sending tool output twice: for a tool-only payload the
rawText-derived text part re-rendered the same output the tool part carries.
29 lines
694 B
JSON
29 lines
694 B
JSON
{
|
|
"enabled": true,
|
|
"syncTurns": true,
|
|
"recallTokenBudget": 2000,
|
|
"recallMaxContentChars": 500,
|
|
"recallPreferAbstract": true,
|
|
"scoreThreshold": 0.35,
|
|
"minQueryLength": 3,
|
|
"profileTokenBudget": 10000,
|
|
"resumeContextBudget": 32000,
|
|
"commitTokenThreshold": 20000,
|
|
"commitKeepRecentCount": 10,
|
|
"takeover": {
|
|
"enabled": true,
|
|
"tokenThreshold": 30000,
|
|
"keepRecentTurns": 3,
|
|
"overviewBudget": 3000,
|
|
"overviewPollMs": 2000,
|
|
"overviewPollMax": 15
|
|
},
|
|
"captureToolResults": false,
|
|
"captureMode": "semantic",
|
|
"captureMaxLength": 24000,
|
|
"captureToolMaxChars": 1000000,
|
|
"captureAssistantTurns": true,
|
|
"bypassPatterns": [],
|
|
"logLevel": "error"
|
|
}
|