You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parser fallback truncates to 500 chars on parse failure — LLM gets near-empty output #620
When the parser encounters an unexpected tier or panics, src/parser/mod.rs:92,99 truncates output to 500 characters as a "safe fallback".
500 chars is almost nothing — a typical error message from vitest, playwright, or cargo test is 2-5x that size. Claude receives a truncated error with no way to diagnose it, then loops trying different commands.
Root cause
src/parser/mod.rs:92,99:
// When tier > max, fallback to first 500 chars
output[..500.min(output.len())].to_string()
Impact
Vitest/Playwright failure messages are cut mid-sentence
Claude can't see the actual assertion failure or stack trace
Claude retries the test command, generating duplicate truncated output
Loop continues until context limit or user intervention
Proposed fix
Two options (pick one or both):
Option A — Raise truncation limit:
Change 500 → 3000 chars. Enough to show full error messages.
Option B — Passthrough on failure (preferred):
When the parser fails, return the unmodified raw output instead of truncating. RTK's contract is "smaller output or the same output" — never less signal than the raw command.
Acceptance criteria
Parse failure returns ≥ the full output of the underlying command
No test failure message is truncated mid-way
RTK never returns less information than the raw command on parser error
Activity
fix: raise output caps for grep, git status, and parser fallback (#617,
fix: raise output caps for P0 bugs (#617, #618, #620) (#630)
pszymkowiak commentedon Mar 17, 2026
Fixed in v0.30.0 — parser fallback truncation raised from 500 to 2000 chars. Verified with release binary.
Release v0.31.0 — develop → master (#666)
fix: raise output caps for P0 bugs (#617, #618, #620) (#630)
fix: raise output caps for P0 bugs (#617, #618, #620) (#630)
Release v0.31.0 — develop → master (rtk-ai#666)
Release v0.31.0 — develop → master (rtk-ai#666)