v0.1.5
RightNow-AI/openfangv0.1.5Feb 27, 2026by jaberjaber23
AI Summary
Critical UTF-8 string handling fixes addressing panics with Chinese/multi-byte characters and improved LLM error messaging.
Key Highlights
- Fixed panic when truncating Chinese/multi-byte text (#38)
- Improved LLM failure error messages (#35)
- 14 UTF-8 boundary fixes across multiple components
- Added safe_truncate_str utility with 7 unit tests
New Features
- safe_truncate_str utility for char-boundary-aware string truncation
Full Release Notes
## Fixes - **Fix #38**: Panic when truncating Chinese/multi-byte text — `cap_str` was slicing by byte index, causing `byte index is not a char boundary` panic with Chinese characters, emoji, or other multi-byte UTF-8 text - **Fix #35**: Improved error message for LLM failures — was showing "Invalid request format. This may be a bug" which confused users; now shows "Check your API key and model configuration in Settings" - **13 additional UTF-8 boundary fixes** across compactor, session_repair, loop_guard, image_gen, tool_runner, tts, and workspace_context — all string truncation sites now use safe char-boundary-aware slicing - Added `safe_truncate_str` utility with 7 unit tests for safe multi-byte string truncation Closes #38, #35