---
name: Unified Chat UI for Claude Code and Regular Chat
---

# Story 43: Unified Chat UI for Claude Code and Regular Chat

## User Story

As a user, I want the Claude Code chat to display the same rich, structured conversation UI as the regular Anthropic/Ollama chat, so that tool calls, file reads, and code edits are shown as collapsible sections rather than a flat text blob.

## Acceptance Criteria

- [ ] Claude Code stream-json output is parsed on the backend to extract tool use events (file reads, writes, shell commands, etc.)
- [ ] Claude Code tool use events are mapped to the same Message structure (tool_calls + tool role messages) used by Anthropic/Ollama providers
- [ ] The frontend renders Claude Code conversations with the same visual structure as regular chat: tool call badges, collapsible tool output, and interleaved assistant text
- [ ] Streaming content from Claude Code shows incremental progress the same way regular chat does
- [ ] Both chat modes are visually indistinguishable in terms of layout and styling

## Out of Scope

- TBD
