Background shell tasks return empty logs; provider errors (too_many_images, timeouts) and subagent failures stall long coding sessions
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne bei den CLI-Einstiegspunkten für shell_command mit run_in_background=true und reproduziere die Gradle- und PowerShell-Fälle, wobei du die erfasste Ausgabe mit dem Daemon-Log und dem Exit-Status vergleichst. Verfolge dann die Provider-Bildbudgetfehler und die Fehlerbehandlung von Subagents, und verwende, sofern verfügbar, die aufgeführten trace IDs. Erledigt ist die Aufgabe, wenn Fehler im Hintergrund Status und stderr offenlegen, Provider-Limits behandelt werden und fehlerhafte Subagents Teilberichte bewahren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Long coding session crippled by tooling failures: empty background-task output, provider errors, lost subagent reports
Environment
- Windows 11, Command Code CLI (npm, v1.39.x line at the time)
- Large Android/Gradle project; long-running builds (1–5 min per gradle invocation)
- One long single-session refactor task (~15 files edited + verification builds + CI screenshot step)
Summary
A large but well-scoped coding task stretched for hours almost entirely because of harness/infra failures, not task complexity. Four classes of failure, each reproducible within the session:
1. Background shell commands return empty output logs (most damaging)
shell_commandwithrun_in_background=truerunninggradlew ... > file.log 2>&1or piped through| powershell ...produced 0-byte output logs for 20–60+ minutes while gradle had actually failed in 40 seconds.- Exit status was never surfaced; the log stayed empty; the only way to learn the real failure was to manually read
~/.gradle/daemon/9.5.0/daemon-*.out.log(the daemon's own log containede: file:///...kt:NN Unresolved reference...compile errors all along). - Piping task output through PowerShell (
| powershell -Command "$input | Select-Object -Last N") also silently lost everything. - Cost: this failure mode alone consumed the majority of the session, with multiple redundant 5–10-minute polling loops staring at empty files.
- Expected: background tasks should surface real exit codes/stderr (or at minimum, the streamed log should contain the process's output as it appears).
2. Repeated mid-session provider errors, each requiring a manual "continue"
Error: 200 Failed to process successful responseError: 500 Cannot connect to API: Connect Timeout Error (172.65.90.20-23:443)Error: 400 Invalid_request_error ... [too_many_images] GLM requests accept at most 8 inline PNG/JPEG/WEBP/GIF ...— a session that reviews screenshots (dev workflow!) becomes unsendable until the user manually compacts. The model can't fix this itself.
3. Subagent runs errored and lost their reports
- One
generalsubagent returned[sub-agent stopped early: the run errored]after 20 minutes, mid-task (had made real edits already). - A separate audit subagent died entirely with its report lost; had to be relaunched from scratch.
- Expected: partial output preserved on subagent error, or automatic retry.
4. Tool-schema friction
search_toolsrepeatedly returnedtodo_writeschema, but calling it kept failing/looping for several turns before it finally worked.
Trace IDs (from the error banners in one session)
- 6b481a97ce2ad552cb4802dc72d0b0ef
- 39a179d53c81ee36fea47ff7f116d066
- 52c2bcc5f22d1a3815bb7b6a4ce81356
- ca6c03357b892c7ca6e9042e6ecb6367
- 2cc56255ce5d8e9aab41e69325ec4e81
Ask
- Surface real exit status + stderr of background and piped shell tasks; don't let empty logs masquerade as "still running."
- Handle the image budget proactively (auto-compact or drop stale images before the provider hard-fails the whole conversation).
- Preserve subagent partial reports when a run errors.
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 4k
- Forks
- 350
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CommandCodeAI/command-code
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CommandCodeAI/command-code#855 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
CommandCodeAI/command-code#841 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CommandCodeAI/command-code#655 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CommandCodeAI/command-code#608 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 70/100
CommandCodeAI/command-code#893 ·
Alle Issues in CommandCodeAI/command-code
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
JuliusBrussee/caveman#1102 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
use-agent-os/agent-os#3263 ·
-
[Bug]: context-limit error parsing has no pattern for llama.cpp's "context size (N tokens)" phrasing Offenarea/compression area/local-models area/sessions comp/agent duplicate P2 sweeper:risk-session-state type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
NousResearch/hermes-agent#117793 · 1 Kommentar ·
-
possible bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Mintplex-Labs/anything-llm#6415 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100