Skip to content

fix(#403): surface non-fatal warnings in all modes - #415

Merged
admarble merged 1 commit into
mainfrom
feature/403-surface-error-logging-in-non-verbose-mode
Mar 24, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/403-surface-error-logging-in-non-verbose-mode

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • State reconciliation, state lookup, and metrics recording failures now always log a one-line yellow warning regardless of --verbose
  • Verbose mode continues to show additional error details (stack trace / full error object)
  • Extracted logNonFatalWarning helper for DRY consistency across all three catch blocks
  • Added 3 unit tests for the warning pattern

Pre-PR AC Verification

AC Description Status Evidence
AC-1 State reconciliation warnings in all modes ✅ run.ts:443 — removed verbose guard
AC-2 Metrics recording warnings in all modes ✅ run.ts:873 — removed verbose guard
AC-3 State guard logs which issue failed and why ✅ run.ts:478 — includes #${issueNumber} in message
AC-4 Verbose shows additional detail ✅ logNonFatalWarning logs chalk.gray detail only when verbose=true
AC-5 No change to control flow ✅ All catch blocks still continue execution
AC-6 Tests pass + new coverage ✅ 3 new tests for logNonFatalWarning

Test plan

  • npm run build passes
  • npm run lint passes
  • npm test — 123/123 pass in run.test.ts (3 pre-existing timeouts in unrelated state tests)
  • Manual: sequant run with corrupt .sequant/state.json shows warning without --verbose
  • Manual: sequant run --verbose shows warning + error details

Closes #403

🤖 Generated with Claude Code

State reconciliation, state lookup, and metrics recording failures now
always show a one-line yellow warning. Verbose mode adds error details.
Extracted logNonFatalWarning helper for consistency and testability.

Entire-Checkpoint: 10d132859a4e
@admarble
admarble force-pushed the feature/403-surface-error-logging-in-non-verbose-mode branch from 6c58d95 to f24f8df Compare March 24, 2026 20:58
@admarble
admarble merged commit ccd369c into main Mar 24, 2026
5 checks passed
@admarble
admarble deleted the feature/403-surface-error-logging-in-non-verbose-mode branch March 24, 2026 20:58
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.

Surface error logging in non-verbose mode

1 participant