@@ -10,7 +10,7 @@ src/agent_chat_cli/
1010├── core/
1111│ ├── actions.py # User action handlers
1212│ ├── agent_loop.py # Claude Agent SDK client wrapper
13- │ ├── message_bus .py # Message routing from agent to UI
13+ │ ├── renderer .py # Message routing from agent to UI
1414│ ├── ui_state.py # Centralized UI state management
1515│ └── styles.tcss # Textual CSS styles
1616├── components/
@@ -43,7 +43,7 @@ The application follows a loosely coupled architecture with four main orchestrat
4343┌─────────────────────────────────────────────────────────────┐
4444│ AgentChatCLIApp │
4545│ ┌───────────┐ ┌───────────┐ ┌─────────┐ ┌───────────┐ │
46- │ │ UIState │ │MessageBus │ │ Actions │ │ AgentLoop │ │
46+ │ │ UIState │ │ Renderer │ │ Actions │ │ AgentLoop │ │
4747│ └─────┬─────┘ └─────┬─────┘ └────┬────┘ └─────┬─────┘ │
4848│ │ │ │ │ │
4949│ └──────────────┴─────────────┴──────────────┘ │
@@ -63,9 +63,9 @@ Centralized management of UI state behaviors. Handles:
6363- Tool permission prompt display/hide
6464- Interrupt state tracking
6565
66- This class was introduced in PR #9 to consolidate scattered UI state logic from Actions and MessageBus into a single cohesive module.
66+ This class was introduced in PR #9 to consolidate scattered UI state logic from Actions and Renderer into a single cohesive module.
6767
68- ** MessageBus ** (` core/message_bus .py ` )
68+ ** Renderer ** (` core/renderer .py ` )
6969Routes messages from the AgentLoop to appropriate UI components:
7070- ` STREAM_EVENT ` : Streaming text chunks to AgentMessage widgets
7171- ` ASSISTANT ` : Complete assistant responses with tool use blocks
@@ -92,7 +92,7 @@ Manages the Claude Agent SDK client lifecycle:
92921 . User types in ` UserInput ` and presses Enter
93932 . ` Actions.submit_user_message() ` posts to UI and enqueues to ` AgentLoop.query_queue `
94943 . ` AgentLoop ` sends query to Claude Agent SDK and streams responses
95- 4 . Responses flow through ` MessageBus.handle_agent_message ()` to update UI
95+ 4 . Responses flow through ` Actions.render_message ()` to update UI
96965 . Tool use triggers permission prompt via ` UIState.show_permission_prompt() `
97976 . User response flows back through ` Actions.respond_to_tool_permission() `
9898
@@ -118,7 +118,7 @@ Modal prompt for tool permission requests:
118118- Manages focus to prevent input elsewhere while visible
119119
120120** ChatHistory** (` components/chat_history.py ` )
121- Container for message widgets, handles ` MessagePosted ` events .
121+ Container for message widgets.
122122
123123** ThinkingIndicator** (` components/thinking_indicator.py ` )
124124Animated indicator shown during agent processing.
0 commit comments