Commit Graph

16 Commits

Author SHA1 Message Date
Shantur Rathore
89dbe43d87 Commit - use types from SDK 2025-11-11 21:06:37 +00:00
Shantur Rathore
34dec16e22 Fix Diff view + Caching 2025-11-11 11:09:06 +00:00
Shantur Rathore
d277d50ed7 Fix shiki and diff caching 2025-11-10 21:54:01 +00:00
Shantur Rathore
910249ff25 Session info + Todo formatting 2025-11-10 20:57:29 +00:00
Shantur Rathore
81ab3a40ed add diff viewer prefs and task session shortcut 2025-11-08 12:53:51 +00:00
Shantur Rathore
4b2cb9d212 Improve session sidebar UX and tool rendering 2025-11-07 22:53:45 +00:00
Shantur Rathore
7193103646 Track tool part versions for reliable updates 2025-11-07 15:12:21 +00:00
Shantur Rathore
9f95730357 Prune redundant tool scroll effect 2025-11-04 23:37:40 +00:00
Shantur Rathore
09f846b064 Tool call scrolling and updates 2025-11-04 22:14:04 +00:00
Shantur Rathore
5cd9bca97f Disable syntax highlighting while tool calls stream 2025-11-03 16:23:51 +00:00
Shantur Rathore
cf3f5a1209 Standardize tool call markdown rendering 2025-10-30 15:48:14 +00:00
Shantur Rathore
d18e44f721 Cache markdown render output per message part 2025-10-28 14:41:09 +00:00
Shantur Rathore
40cb17d0eb Fix syntax highlighting by upgrading to Shiki v3 with all languages
- Upgrade shiki from ^1.0.0 to ^3.13.0
- Use shiki/bundle/full with all bundled languages (200+)
- Change getHighlighter to createHighlighter (v3 API)
- Fix CodeBlockInline to track reactive dependencies (theme, code, language)
- Add markdown code block detection in tool call outputs
- Render tool outputs with Markdown component when they contain code blocks
- Support syntax highlighting for bash, webfetch, and default tool outputs
2025-10-23 21:38:16 +01:00
Shantur Rathore
b836086978 Add markdown rendering with syntax highlighting and copy buttons
- Implement markdown parser using marked with Shiki syntax highlighting
- Add CodeBlockInline component for tool call outputs with syntax highlighting
- Add Markdown component for assistant message text with code blocks
- Add ThemeProvider for light/dark mode support
- Add copy buttons to all code blocks (markdown and tool calls)
- Support 20+ languages: TypeScript, JavaScript, Python, Bash, JSON, HTML, CSS, C++, Java, C, C#, Rust, Go, PHP, Ruby, Swift, Kotlin, and more
- Auto-detect language from file extensions in tool call outputs
- Apply consistent styling for code blocks across the application
- Fix whitespace handling in markdown-rendered text
- Add language labels to all code blocks
2025-10-23 10:07:17 +01:00
Shantur Rathore
d7f619486e Implement comprehensive tool call rendering with state persistence
- Implement tool-specific rendering for all 14 tool types (read, edit, write, bash, webfetch, todowrite, task, etc.)
- Each tool shows contextually relevant information (file previews, diffs, command output, todo lists)
- Add metadata-driven content display using preview, diff, output, and todos from tool state
- Implement status-based rendering (pending, running, completed, error) with animations
- Create global state store for expandable items (tool calls and reasoning sections)
- Fix state persistence: expanded tool calls and reasoning sections remain expanded when new messages arrive
- Fix scroll position preservation during live message updates
- Fix reasoning toggle loop by replacing native details element with custom expandable
- Add comprehensive documentation in TOOL_CALL_IMPLEMENTATION.md
- Reduce font sizes for better readability in expanded tool content
- Add proper keying to For loops to prevent component recreation
- Match TUI patterns for tool names, actions, and content formatting
2025-10-23 01:18:25 +01:00
Shantur Rathore
fa77b4e82e Working messages display 2025-10-22 22:10:51 +01:00