  
|
2f4eb08613
|
fix: sanitize tool error results before llm injection (#1639)
* fix: sanitize tool error results before llm injection
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>
* fix: wrap preflight tool rejection errors for llm safety
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>
* style: apply rustfmt to error-path regressions
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <[email protected]>
* fix: preserve wrapped tool errors in history replay
* fix: address review findings on PR #1639
- Simplify legacy error handling in rebuild_chat_messages_from_db:
remove redundant "Error: " prefix since legacy errors already contain
descriptive text (e.g. "Tool 'http' failed: timeout"). Both wrapped
(new) and plain (legacy) errors now pass through as-is.
- Update existing test assertion to match simplified format.
- Restore error-path doc line on process_tool_result.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
* fix: satisfy clippy on builder tool safety helper
---------
Co-authored-by: Sisyphus <[email protected]>
Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
|
2026-03-27 10:49:28 +03:00 |
|