fix: catch ENOSPC errors and fix false positive SUCCESS message (Issue #1212)#1213
Open
fix: catch ENOSPC errors and fix false positive SUCCESS message (Issue #1212)#1213
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #1212
Document the timeline, root causes, and proposed solutions for the ENOSPC error during log upload that resulted in a false positive SUCCESS message. Includes full solve session log from the incident. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…#1212) - Add isENOSPC() utility to lib.mjs for detecting disk space errors - Fix solve.results.lib.mjs to show PARTIAL SUCCESS when errorDuringExecution is true instead of unconditional SUCCESS - Add ENOSPC-specific error messages in token-sanitization.lib.mjs with actionable guidance (e.g., cleanup ~/.claude/debug) - Add pre-operation disk space check in github.lib.mjs before log upload - Detect ENOSPC in claude.lib.mjs error_during_execution errors array - Change log upload failure messages from verbose-only to always visible across solve.mjs (3 locations) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… (Issue #1212) Add changeset for version bump and update case study with links to upstream issues filed at anthropics/claude-code#22584 and link-foundation/gh-upload-log#23. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit d313608.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
|
🤖 AI Work Session Started Starting automated work session at 2026-02-02T19:57:26.005Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
…ssue #1212) Condense ENOSPC detection in executeClaudeCommand to use the shared isENOSPC() utility from lib.mjs instead of inline checks, bringing claude.lib.mjs back within the 1500-line CI limit. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the false positive
🎉 SUCCESSmessage when disk space runs out during execution. The tool now:⚠️ PARTIAL SUCCESSwhenerrorDuringExecutionis true instead of unconditional🎉 SUCCESS~/.claude/debug)--verbosemode)error_during_executionerrors array using sharedisENOSPC()utilityChanges
src/lib.mjsisENOSPC()utility for detecting disk space errorssrc/solve.results.lib.mjserrorDuringExecutionis truesrc/token-sanitization.lib.mjssrc/github.lib.mjssrc/claude.lib.mjserror_during_executionerrors array (using sharedisENOSPC())src/solve.mjsdocs/case-studies/issue-1212/experiments/test-enospc-detection.mjsisENOSPC()utilityUpstream Issues Filed
error_during_executionshould provide actionable guidanceTest plan
isENOSPC()utility tested with 11 test cases (experiments/test-enospc-detection.mjs)claude.lib.mjsstays within 1500-line CI limit (exactly 1500 lines)🤖 Generated with Claude Code
Fixes #1212