Repository navigation
ACP profile: llm-deepseek-account writes non-JSON log to stdout and breaks ACP clients #11222
ppq2020-ai
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
On
@deepseek-ai/dsh0.2.1-rc.2 withdsh --profile acp, thellm-deepseek-accountplugin prints a non-JSON line to stdout in the middle of ACP JSON-RPC traffic:Strict ACP clients (e.g. T3 Code's ACP registry probe) then treat the stream as corrupt and fail with ACP protocol terminated / cannot create a test session.
Why this is a dsh bug
The ACP app docs state that stdout is reserved for newline-delimited ACP JSON-RPC frames, and call out that user plugins can violate stdout purity. This log comes from a shipped plugin (
llm-deepseek-account), not a user plugin.The package README for
@deepseek-ai/dsh-llm-deepseek-accountalso documents that listing load/fail events are written to the console with the[llm-deepseek-account]tag.Reproduction
@deepseek-ai/dsh@0.2.1-rc.2(Windows repro used Node +lib/bin.js).~/.dsh/.credentials.yamlso account model listing runs.{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{"fs":{"readTextFile":true,"writeTextFile":true}},"clientInfo":{"name":"repro","version":"0.0.1"}}} {"jsonrpc":"2.0","method":"initialized","params":{}} {"jsonrpc":"2.0","id":3,"method":"session/new","params":{"cwd":"/absolute/path","mcpServers":[]}}[llm-deepseek-account] model listing...plain-text line (stderr empty in our capture).Impact
Any ACP client that parses stdout as pure JSON-RPC (T3 Code and similar) fails session creation even though
session/newitself can succeed if the client ignores the stray line. Local ACP health / Needs attention probes break.Suggested fix
[llm-deepseek-account]console listing logs to stderr, or a logger that never touches stdout; and/orEnvironment
@deepseek-ai/dsh0.2.1-rc.2node …/dsh/lib/bin.js --profile acpAll reactions