Skip to content

Commit 1f7ce36

Browse files
committed
fix(tui): add missing addUser to EventHandlerChatLog type
The live-tail user-message handler (handleChatEvent) calls chatLog.addUser(text) to display inbound messages from remote senders, but addUser was not declared in the EventHandlerChatLog interface, causing a TypeScript compile error: Property 'addUser' does not exist on type 'EventHandlerChatLog'. src/tui/tui-event-handlers.ts#L207 addUser(text: string) is already implemented in ChatLog (src/tui/components/chat-log.ts:59) and called from tui-command-handlers.ts and tui-session-actions.ts. Add the missing declaration to the local interface to fix the type error.
1 parent 2a7dccf commit 1f7ce36

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/tui/tui-event-handlers.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ type EventHandlerChatLog = {
1010
result: unknown,
1111
options?: { partial?: boolean; isError?: boolean },
1212
) => void;
13+
addUser: (text: string) => void;
1314
addSystem: (text: string) => void;
1415
updateAssistant: (text: string, runId: string) => void;
1516
finalizeAssistant: (text: string, runId: string) => void;

0 commit comments

Comments
 (0)