Repository navigation
v0.11.6
Release v0.11.6
Release Notes
Overview
This release focuses on increasing reliability, configurability, and cross-platform support for Hexai. We have added new tests to ensure robust model and environment selection behavior, improved concurrency handling in the Language Server Protocol (LSP) communications, and introduced platform-specific file locking for global statistics operations. These enhancements provide users with a more stable, predictable, and multi-platform experience.
Improvements
1. Robust Model Selection & Environment Overrides
-
Consistent Model Alias Resolution:
Added tests ensure that custom model presets and aliases defined in configuration files are resolved correctly. For example, aliases likecodex = "gpt-5-codex"will now properly resolve in actual model selection. -
Reliable Environment Variable Overrides:
New tests verify that setting environment variables likeHEXAI_MODEL,HEXAI_OPENAI_MODEL, orHEXAI_MODEL_FORCEaccurately influence the model used, including proper precedence and forced overrides.
Why this matters: Users can now be confident that CLI flags and environment variables for model selection behave predictably, making it easier to automate or script Hexai in different environments.
2. Improved CLI Model Handling
- CLI Model Override Test Coverage:
Ensures that overriding the AI model via environment variables in the CLI applies as expected, and the selection is reflected in output and logs.
Why this matters: Prevents unexpected behavior or confusion when running the CLI with different configuration strategies.
3. LSP Output Concurrency and Integrity
- Serialized Server Output:
New concurrency tests validate that the LSP server serializes all output sent to client editors, avoiding data races or message interleaving.
Why this matters: Ensures that code completions, diagnostics, and other LSP features function correctly and reliably, even under heavy parallel load or rapid user input.
4. Cross-Platform Global Statistics Locking
- Platform-Specific File Locking Implemented:
Introduced robust, atomic file-locking implementations for both Unix-like systems (usingflock) and Windows (using Windows API), protecting global statistics aggregation./internal/stats/lock_posix.go: Uses POSIX flocking for safe updates on Unix systems./internal/stats/lock_windows.go: Uses Windows file locking APIs.
Why this matters: Users running Hexai on any desktop platform now benefit from accurate and safe statistics reporting and aggregation, with no risk of data corruption due to competing processes.
Other Changes
- Housekeeping:
- Removed obsolete lines from
SCRATCHPAD.mdto better reflect current project status and reduce clutter. - No user-facing changes or breakages in this release.
- Removed obsolete lines from
Notes
- No Breaking Changes:
There are no breaking changes or required migrations in this update. - For Contributors:
Greater test coverage and improved modularity will speed up future feature development and bug fixing. - Platform Support:
Windows users now have parity with Unix systems for global stats aggregation.
Thank you to all contributors and users for your feedback and support! If you encounter any issues, please review the updated tests and documentation, or open an issue for assistance.