Repository navigation
Replies: 1 comment
|
Companion report: #12913. Because single tool results are unreliable, the agent re-verifies by default, which feeds the runaway-loop problem described there. |
0 replies
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.
Repo: deepseek-ai/deepseek-harness
Affected:
@deepseek-ai/dsh0.2.2-rc.1 (desktop;dsh-tool-bash,dsh-agent-tool-presentation0.2.2-rc.1), LinuxSeverity: High. The model receives output that does not match what the command printed. It cannot tell a failing test from a passing one, so it retries in loops (see the companion report on loop guards).
Symptom
When a bash command's output contains a line shaped like
path:line:(traceback frames,grep -nhits, vitest stack frames), the tool result the model receives is no longer the command output. It is a search-result summary:Every line that doesn't match that shape is dropped, including the actual error message. The exit code is still reported correctly.
Observed cases (same session, 2026-11-09 / 11-10)
uv run pytest tests/test_ledger.py -q 2>&1 | tail -304 matches in 4F: … 34: in <module>ImportError while loading conftest … E SyntaxError: unmatched ')'(the cause, dropped)pnpm exec vitest run 2>&1 | tail -124 matches in 4F: [file] Start at 16 (1): 09: 39 …Transform failed … Expected ")" but found "const"grep -E "Test Files|Tests |✓|×|FAIL" /tmp/fout2.txt | tail -20clean — nothing to commitFAIL. The returned text came from a different command entirely.node -e "…print package.json repository…"; grep -n -i "issue|github" README*.mdls -laSummary: 7 files, 10 dirs (2 no ext, …)git status | head; git branch -a; git log …* preview\nclean — nothing to commitThe workaround that always worked:
cmd > /tmp/out.txt 2>&1; echo EXIT=$?and then read the file with thereadtool.Expected
The bash tool returns the command's stdout/stderr verbatim. Tail truncation with a spill-file path is fine; it is documented in the tool description and is not this bug. No reformatting, no line filtering, no substitution of another command's output.
Where to look
dsh-tool-bashitself only truncates (lib/index.js~L134–137:[output truncated; full output: …]). So the rewrite is probably downstream, in the tool-result presentation or summarization layer (dsh-agent-tool-presentation, or a host-side result compactor). It looks like a summarizer for search results is being applied based on content shape, not on which tool produced the output.clean — nothing to commitrow suggests a cached or keyed summary being returned for the wrong call. Please check whether summaries are keyed by tool-call id and not by something coarser.Impact
4 matchesinstead ofSyntaxError, so it cannot diagnose failures. It reruns the same command or writes to a file and reads it back, which doubles the step count for every check.All reactions