mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
f3ea18ae3a
Add extended thinking/reasoning support for Anthropic and OpenAI models: - ThinkingLevel type (off/minimal/low/medium/high) with token budgets - Stream reasoning deltas via OnReasoningDelta through SDK→TUI event pipeline - Render thinking blocks in StreamComponent (muted italic, collapsible) - ctrl+t toggles thinking visibility, shift+tab cycles thinking level - /thinking slash command with tab-completion for level names - --thinking-level CLI flag and config file support - Map ThinkingLevel to OpenAI ReasoningEffort for Responses API - Auto-bump Anthropic max_tokens when thinking budget exceeds it - Fix ResponseCompleteEvent prematurely resetting stream in streaming mode - Status bar displays current thinking level