[log] Add debug logging to 5 files for improved troubleshooting #2788
  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
Added debug logging statements to 5 files to improve troubleshooting capabilities and help developers understand the execution flow during development:
pkg/cli/run.go: Added logging for workflow run cancellation operations
pkg/workflow/fetch.go: Added logging for MCP fetch server configuration
pkg/workflow/npm.go: Added logging for npm package validation
pkg/workflow/pip.go: Added logging for pip/uv package validation
pkg/workflow/env.go: Added logging for header writing operations
Guidelines Followed
All changes follow the project's logging guidelines from AGENTS.md:
✅ Logger naming convention:
pkg:filenamepattern (e.g.,cli:cancel,workflow:fetch)✅ Logger arguments have no side effects or computations
✅ Logging messages are meaningful and helpful for debugging
✅ Logs added at function entry, control flow decisions, and important operations
✅ No test files modified (
*_test.go)✅ Maximum 5 files per PR maintained
Test Plan
make buildpasses without errorsDEBUG=* ./gh-aw compile devshows new logging outputrunLogtocancelLogin run.go)Example Debug Output
🤖 Generated with Claude Code