[Bug] Build output grepping loses full logs, causing redundant rebuilds on failures
Resolved 💬 3 comments Opened Mar 30, 2026 by haumacher Closed Mar 30, 2026
Bug Description
Claude builds multiple times, if build fails, because it only greps the output instead of keeping the whole build log to analyze errors later on. For large module this wastes a crazy amount of time and resources:
● Bash(mvn -B install -DskipTests=true -pl com.top_logic.basic.shared,com.top_logic.graph.layouter,com.top_logic.react.flow.common,com.top_logic.react.flow.server
2>&1…)
⎿ [INFO] BUILD FAILURE
⎿ (timeout 5m)
● Bash(mvn -B install -DskipTests=true -pl com.top_logic.basic.shared,com.top_logic.graph.layouter,com.top_logic.react.flow.common,com.top_logic.react.flow.server
2>&1…)
⎿ [INFO] tl-react-flow-common ............................... FAILURE [ 3.829 s]
[INFO] BUILD FAILURE
⎿ (timeout 5m)
● Bash(mvn -B install -DskipTests=true -pl com.top_logic.react.flow.common 2>&1 | grep "ERROR\|FAILURE\|cannot find\|SocketException" | grep -v "Name cannot\|No
defini…)
⎿ [ERROR] COMPILATION ERROR :
[ERROR] /home/bhu/devel/tl-engine/.worktrees/agent-a/com.top_logic.react.flow.common/src/main/java/com/top_logic/react/flow/operations/layout/GraphLayoutOpera
tions.java:[129,4] error: cannot find symbol
… +5 lines (ctrl+o to expand)
⎿ (timeout 2m)
One can try to convince him to tee the log to a file, but in sandbox mode he also struggles finding a location where to put the log without asking for permission again and again, which is even more anoying.
Environment Info
- Platform: linux
- Terminal: gnome-terminal
- Version: 2.1.87
- Feedback ID: db66ace6-087f-4138-bdb0-fa76871784d1
Errors
[{"error":"MaxFileReadTokenExceededError: File content (11051 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at E97 (/$bunfs/root/src/entrypoints/cli.js:4279:5251)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-30T07:08:26.366Z"},{"error":"MaxFileReadTokenExceededError: File content (11051 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at E97 (/$bunfs/root/src/entrypoints/cli.js:4279:5251)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-30T07:08:55.612Z"},{"error":"MaxFileReadTokenExceededError: File content (13280 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at E97 (/$bunfs/root/src/entrypoints/cli.js:4279:5251)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-30T09:22:47.028Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:150:13347)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:149:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:152:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-30T10:27:16.001Z"},{"error":"Error: 1P event logging: 22 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:404:2574)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-30T10:27:26.416Z"},{"error":"Error: {\"message\":\"Failed to export 22 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"404\",\"originalColumn\":\"1668\",\"line\":\"404\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 22 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n at doExport (/$bunfs/root/src/entrypoints/cli.js:404:1668)\\n at processTicksAndRejections (native:7:39)\",\"name\":\"Error\"}\n at error (/$bunfs/root/src/entrypoints/cli.js:2787:4366)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:398:36562)\n at lY4 (/$bunfs/root/src/entrypoints/cli.js:398:37106)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:399:19103)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-30T10:27:26.417Z"},{"error":"Error: 1P event logging: 7 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:404:2574)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-30T10:28:00.188Z"},{"error":"Error: {\"message\":\"Failed to export 7 events (code=ECONNABORTED, timeout of 10000ms exceeded)\",\"originalLine\":\"404\",\"originalColumn\":\"1668\",\"line\":\"404\",\"column\":\"1668\",\"sourceURL\":\"/$bunfs/root/src/entrypoints/cli.js\",\"stack\":\"Error: Failed to export 7 events (code=ECONNABORTED, timeout of 10000ms exceeded)\\n at doExport (/$bunfs/root/src/entrypoints/cli.js:404:1668…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗