Repository navigation
Commit 1f7ce36
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments