Commit Graph

4 Commits

Author SHA1 Message Date
Noe
8ab862ad1b hive(05-full-verification-and-doc-alignment): Brought this task branch up to dependency state by 2026-02-20 17:30:43 +00:00
Noe
94e42e3e3d feat: add quota checking and management options to documentation 2026-01-26 20:38:42 +00:00
Noe
e698fa4f62 Improves Claude thinking block handling
Refactors how Claude thinking blocks are handled to improve reliability and address signature validation issues.

- Removes the deprecated `KEEP_THINKING_BLOCKS` constant and associated environment variable.
- Introduces runtime configuration for `keep_thinking` to control whether thinking blocks are preserved.
- Implements logic to inject a sentinel value (`SKIP_THOUGHT_SIGNATURE`) when a thinking block's signature is invalid or missing, allowing the API to bypass validation. This addresses scenarios like cache misses, session mismatches, and plugin restarts.

This change enhances the robustness of Claude integrations by providing a mechanism to handle signature issues gracefully.
2026-01-16 12:15:26 +00:00
tctinh
6c1e3b7b40 feat: Implement session recovery module for handling recoverable errors
- Added recovery functionality for tool_result_missing, thinking_block_order, and thinking_disabled_violation errors.
- Introduced constants and types for session recovery.
- Created storage utilities for reading and writing session data.
- Enhanced debug logging capabilities in debug.ts.
- Refactored debug state management for better initialization and access.
2025-12-26 02:09:15 +07:00