Skip to content

feat(ux): add actionable error guidance for common failures#44

Open
thinkingjet wants to merge 2 commits into
codesoda:mainfrom
thinkingjet:feat/issue-13-actionable-errors-v2-20260419000134
Open

feat(ux): add actionable error guidance for common failures#44
thinkingjet wants to merge 2 commits into
codesoda:mainfrom
thinkingjet:feat/issue-13-actionable-errors-v2-20260419000134

Conversation

@thinkingjet
Copy link
Copy Markdown

Implements issue #13 by improving first-run error messages without touching claude_code.rs.

Changes:

  • main: missing test-file errors now suggest running bugatti test for discovery

  • main: no-tests-discovered message now links to getting-started docs

  • main: provider init errors add Claude Code install hint when binary is missing from PATH

  • config: parse/read errors now include actionable guidance and docs link

  • tests: add focused unit tests for new message helpers and config error text

Validation:

  • cargo test -q --all-targets

  • cargo run --quiet -- test does-not-exist

  • empty-dir discovery run prints getting-started hint

Implements issue codesoda#13 by improving first-run error messages without touching claude_code.rs.

Changes:

- main: missing test-file errors now suggest running bugatti test for discovery

- main: no-tests-discovered message now links to getting-started docs

- main: provider init errors add Claude Code install hint when binary is missing from PATH

- config: parse/read errors now include actionable guidance and docs link

- tests: add focused unit tests for new message helpers and config error text

Validation:

- cargo test -q --all-targets

- cargo run --quiet -- test does-not-exist

- empty-dir discovery run prints getting-started hint
Copilot AI review requested due to automatic review settings April 18, 2026 14:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves first-run CLI UX by making common failure modes (missing test file, no tests discovered, provider init failures, and config read/parse failures) more actionable via clearer guidance and relevant documentation links.

Changes:

  • Add centralized helper messages in main for missing test files, no discovered root tests, and provider init errors (including Claude Code install hint when claude is missing from PATH).
  • Enhance ConfigError display text to include actionable remediation guidance + config format docs link.
  • Add focused unit tests covering the new message helpers and updated config error strings.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/main.rs Adds user-facing message helpers, wires them into error paths, and introduces unit tests for the new message behavior.
src/config.rs Updates config read/parse error text to include guidance + docs link, and adds tests validating the new wording.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main.rs Outdated
Match on ProviderError::InitializationFailed(inner) and inspect inner message directly; keep fallback to err.to_string() for other variants.

Adds test to ensure install hint is not duplicated when already present.
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.

2 participants