Skip to content

Surface provider error details and make verifier temperature configurable - #145

Merged
Akash-nath29 merged 4 commits into
mainfrom
dev
Jul 29, 2026
Merged

Akash-nath29 merged 4 commits into
mainfrom
dev

Conversation

@Akash-nath29

Copy link
Copy Markdown
Owner

This pull request makes several improvements to cross-platform console output, workflow configuration, and error handling. The most significant changes are the introduction of robust handling for terminal encodings (especially on Windows), improved test coverage for console output, and minor enhancements to workflow and configuration files.

Console output improvements:

  • Updated the Console class in src/coderrr/ui/console.py to automatically detect when the output stream cannot encode certain Unicode glyphs (such as on legacy Windows consoles). It now falls back to an ASCII icon set and ensures that unencodable model-generated text is gracefully degraded instead of raising exceptions. Supporting helper functions and logic were added for this detection and fallback. [1] [2] [3] [4]

  • Added a comprehensive test suite in tests/test_console.py to verify icon selection, encoding detection, and that console output does not crash on streams with limited encoding support. These tests cover both decision logic and integration scenarios across platforms.

Workflow and configuration updates:

  • Refined the GitHub Actions workflow in .github/workflows/v2.yml:

    • Improved concurrency handling and permissions.
    • Simplified and clarified the test matrix to focus on the most relevant OS/Python combinations.
    • Added timeouts and environment variables for consistency.
    • Ensured the build fails if no distribution files are found. [1] [2] [3] [4] [5]
  • Added a temperature parameter to the verifier configuration in src/coderrr/config.py and used it in src/coderrr/verify.py to make verification less brittle to deterministic false negatives. [1] [2]

Error handling improvements:

  • Improved error messages for HTTP errors in all LLM provider modules (src/coderrr/llm/anthropic.py, src/coderrr/llm/google.py, src/coderrr/llm/openai_compat.py) to ensure that empty exception messages are replaced with the exception class name, preventing uninformative output. [1] [2] [3]

Documentation:

  • Added CLAUDE.md to clarify git usage restrictions and the plan-first workflow for contributors.

Copilot AI review requested due to automatic review settings July 29, 2026 21:10
@github-actions

Copy link
Copy Markdown

🚀 Thanks for opening a Pull Request!

A maintainer will review this soon.

Meanwhile:
✔ Ensure tests are passing
✔ Link related issues
✔ Code follows the project guidelines

Your contribution helps make this project better!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Akash-nath29
Akash-nath29 merged commit 42dab8d into main Jul 29, 2026
8 checks passed
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