Skip to content

fix(main): log errors from run() helper β€” closes #51#93

Merged
jpleva91 merged 1 commit intomainfrom
fix/run-silent-errors-51
Mar 31, 2026
Merged

fix(main): log errors from run() helper β€” closes #51#93
jpleva91 merged 1 commit intomainfrom
fix/run-silent-errors-51

Conversation

@jpleva91
Copy link
Copy Markdown
Contributor

Summary

  • Fixes run() helper silently ignoring all command errors (brew, ollama, npm, etc.)
  • Adds log.Printf on cmd.Run() failure so install/setup failures are visible
  • No signature change β€” all callers continue to work without modification

Test plan

  • go build ./cmd/shellforge/ passes
  • go test ./... β€” 25/25 pass (governance, intent, normalizer)
  • No call-site changes needed (void return preserved)

πŸ€– Generated with Claude Code

run() silently swallowed all command errors via the ignored return
value from cmd.Run(). Add log.Printf on failure so install/setup
failures are visible in the terminal output.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jpleva91 added a commit that referenced this pull request Mar 31, 2026
Recovered broken worktree (incomplete WIP #51 fix left build broken).
Stashed WIP, fixed #51 properly in PR #93 (log run() errors).
PR #89 merged β€” 25 tests, closes #68 + #66.
Issue #92 (Preflight/Goose) triaged P2.
PR budget 2/3. Sprint: P2 bug sweep (#52, #65) + dogfood readiness.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jpleva91 added a commit that referenced this pull request Mar 31, 2026
Closed stale PR #91 (DIRTY merge conflict, superseded by #94).
Fixed #65 (scheduler WriteFile error). PR budget 3/3 β€” queue at limit.
Human review of #93 and #94 (both CI green) needed to unblock.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jpleva91 jpleva91 merged commit 378f788 into main Mar 31, 2026
5 checks passed
@jpleva91 jpleva91 deleted the fix/run-silent-errors-51 branch March 31, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant