Skip to content

Commit ac47ebb

Browse files
author
svc-control-panel
committed
README + plugin header: cite upstream issue anomalyco/opencode#58354
1 parent ad8c3cd commit ac47ebb

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ That failure is worse than it sounds: the offending tool result is already in
1717
session history, so **every subsequent turn fails too** — the session is
1818
permanently poisoned until you manually roll messages back.
1919

20+
Tracked upstream as
21+
[anomalyco/opencode#58354](https://github.com/anomalyco/opencode/issues/58354)
22+
— reproduction confirmed through `dev` (`09399e3`); see also
23+
[#51351](https://github.com/anomalyco/opencode/issues/51351) (NUL in the shell
24+
*command* hangs the tool) and
25+
[#57833](https://github.com/anomalyco/opencode/issues/57833) (`read` and
26+
invalid UTF-8).
27+
2028
Common sources of NUL bytes in tool output:
2129

2230
- Raw git protocol output. Git's pkt-line protocol separates the ref list

‎src/index.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// nul-guard: strips NUL bytes out of tool output before it reaches the model.
22
//
3+
// Upstream: anomalyco/opencode#58354 (shell tool output with NUL bytes bricks
4+
// the session with "Invalid request parameters"; reproduced through dev).
5+
//
36
// Raw git protocol output (git-upload-pack / serv handshakes), binaries catted
47
// to stdout, and similar sources contain literal \0 bytes. Providers such as
58
// venice/z-ai validate request content and reject any string containing NUL

0 commit comments

Comments
 (0)