feat: add --debug flag for Claude Code debug logging - #911
Conversation
Add --debug [filter] flag to fullsend run that enables Claude Code debug logging inside the sandbox and extracts the log to the run output directory. - --debug enables all debug categories via --debug-file - --debug=api,hooks enables filtered categories via --debug-file combined with --debug '<filter>' - Debug log extracted to <iteration-dir>/claude-debug.log alongside transcripts - Off by default with zero overhead when not used Uses NoOptDefVal="*" for optional-value flag semantics: --debug alone gives all categories, --debug=<filter> gives filtered output. Closes fullsend-ai#909 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
fullsend review is working on this — view logs |
Site previewPreview: https://48caae6f-site.fullsend-ai.workers.dev Commit: |
ReviewBoth prior review findings have been addressed:
No findings. Previous runReview: #911Head SHA: 8555598 SummaryClean, well-scoped feature addition that correctly implements the FindingsMedium / Low / Info
FooterOutcome: comment-only Previous run (2)Review: #911Head SHA: a735252 SummaryClean, well-scoped implementation of FindingsMedium
Info
FooterOutcome: approve |
Match the convention used by adjacent extraction steps (transcripts, output files) which warn with printer.StepWarn on failure instead of silently ignoring. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
fullsend review is working on this — view logs |
- Move claudeDebugLog and maxContextScanDepth constants to top-of-file const block - Factor out common --debug-file flag to reduce duplication in buildClaudeCommand - Quote --debug-file path for consistency with --model, --agent, --plugin-dir - Add TestBuildClaudeCommand_DebugEscapesQuotes for single-quote escaping coverage Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
All changes in commit cf683ff
|
rh-hemartin
left a comment
There was a problem hiding this comment.
Looks good to me. I think we need a followup issue to separate the commands with spaces and remove the trailing spaces from the commands itself. I don't like to rely on every new command remembering to add a trailing space.
Add --debug [filter] flag to fullsend run that enables Claude Code debug logging inside the sandbox and extracts the log to the run output directory.
Uses NoOptDefVal="*" for optional-value flag semantics: --debug alone gives all categories, --debug= gives filtered output.
Closes #909