Skip to content

feat: enrich error reporting in Telegram and structlog#19

Merged
nathanschram merged 3 commits intomasterfrom
fix/enriched-error-reporting
Feb 27, 2026
Merged

feat: enrich error reporting in Telegram and structlog#19
nathanschram merged 3 commits intomasterfrom
fix/enriched-error-reporting

Conversation

@nathanschram
Copy link
Contributor

Summary

  • Enriched error messages across all 4 engines (Claude, Codex, OpenCode, Pi) and all error paths
  • Claude errors now show session ID, resumed/new status, turn count, cost, and API duration
  • Non-zero exit codes show signal name (e.g. SIGTERM for rc=-15) and captured stderr excerpt
  • runner.completed structlog includes num_turns, total_cost_usd, duration_api_ms
  • Startup message formatting uses hard breaks for consistent rendering
  • Updated CLAUDE.md test counts

Closes #14

Test plan

  • 888 tests pass (17 new tests added)
  • Coverage 80.71% (above 80% threshold)
  • ruff check clean
  • ruff format clean
  • uv lock --check passes

🤖 Generated with Claude Code

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

nathanschram and others added 3 commits February 27, 2026 15:55
Error messages across all engines now include session ID, resume status,
exit code with signal name, captured stderr excerpt, and usage fields.
Claude errors additionally show turn count, cost, and API duration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nathanschram nathanschram force-pushed the fix/enriched-error-reporting branch from ce38f34 to 3d0be98 Compare February 27, 2026 04:56
@nathanschram nathanschram merged commit 81e32f2 into master Feb 27, 2026
16 checks passed
@nathanschram nathanschram deleted the fix/enriched-error-reporting branch February 27, 2026 04: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.

Enrich error reporting in Telegram messages and structlog

1 participant