You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TASK] Refactor re-arm the TUI chat listener centrally and drop the isDomainEvent type list #1152
Every chat event handler in internal/presentation/tui/handlers/chat_handler.go must re-arm the chat listener (ListenForChatEvents) by hand, and every new event type must also be added to isDomainEvent in internal/presentation/tui/app/chat.go. Missing either silently kills the event chain: in PR #1148 the judge verdict event was missing from both, and the TUI dropped every event after the first verdict, leaving the tool card stuck at "queued".
Re-arm the listener once in the dispatcher after any domain event, and replace the hand-maintained isDomainEvent type list with a check against the agentdomain.ChatEvent interface, so a new event needs zero registrations to keep the chain alive.
Acceptance Criteria
ChatHandler.Handle (or the app dispatcher) re-arms the chat listener centrally; per-handler ListenForChatEvents calls are removed
isDomainEvent no longer enumerates event types; domain events are recognised by interface
A test proves an unknown ChatEvent implementation still keeps the listener chain alive
Activity
feat(agent): add auto-with-judge mode with an LLM judge as the tool a…
edenreich commentedon Sep 2, 2026
Duplicate of #1150, resolved by #1159 (438c9fb).