Repository navigation
Description
Summary
Part of #1943. Rooms reach the desktop (inference-gateway/desktop#741), but the chat TUI has no way to enter one. This adds a Room indicator to the status bar. Activating it opens a dropdown of the rooms, and picking one switches the chat into that room. Picking No room switches back to the plain chat.
The indicator works like the existing Agent indicator, which opens the agent dropdown under the status row (chat_agent_picker.go). It shows Room: - in a plain chat and Room: <name> inside a room. It can be activated two ways:
- Keyboard: focus the status row, select the indicator, press Enter, as every actionable indicator works today
- Mouse: click the indicator. No indicator takes mouse clicks today, even though the chat runs with
tea.MouseModeCellMotion. This adds a hit test of the status row that every actionable indicator then shares.
The dropdown lists No room first, then every room the daemon reports with its member count. The current room is selected. Up and down move, Enter switches, Esc closes.
Inside a room:
- The conversation view shows the room's log, then new posts and member activity as they arrive. Each post is labelled with its author.
- Submitting the composer posts to the room instead of running the chat's agent.
- The composer's menus come from the
roomcontext ofcomposer.yaml(@lists agents first), not thechatone.
Leaving the room unfollows it and brings back the plain chat's conversation untouched.
The daemon owns rooms (#1946), so the TUI reaches them through its daemon client whatever chat.daemon says. If the daemon isn't reachable, the dropdown says so and the chat stays where it is, the way the agent dropdown reports "No agents to switch to".
Seams:
internal/presentation/tui/components/input_status_bar.go: aRoompart ingetAllIndicatorPartswith a newtui.StatusIndicatorActionRoomSelection, and the dropdown rendered under the status row likeagentPickerinternal/presentation/tui/app/chat.go:activateSelectedIndicatoropens the room dropdown, and the mouse click lands there toointernal/presentation/tui/components/agent_picker.go: the dropdown to reuse or generalise for roomsinternal/presentation/tui/daemonthread: the TUI's daemon client gainslist_rooms,follow_room(room_snapshot,room_post,room_activity),post_roomandleave_roomfrom [FEATURE] The daemon hosts rooms: post, deliver to members and log their replies #1946Autocomplete.SetTriggerSourceswithconfig.ComposerContextRoomon entering a room, andComposerContextChaton leavingconfig.StatusBarIndicators: aroomtoggle undercomposer.status_bar.indicators
Needs: #1944 (rooms config and log) and #1946 (the daemon hosts rooms and serves the room requests).
Open questions
!and!!run bash and tools in the chat's own agent. Inside a room they could either stay local or be turned off with a status message.- The Agent and Model indicators describe the chat's own agent. Inside a room they could stay, hide, or give way to the room's members.
Out of scope
- Creating or editing rooms in the TUI.
rooms.yamland the desktop ([FEATURE] Create and edit rooms desktop#742) cover that. - A
/roomsslash shortcut. The Agent dropdown has none either.
Acceptance Criteria
- The status bar shows a
Roomindicator,Room: -in a plain chat andRoom: <name>in a room, switchable withcomposer.status_bar.indicators.room(defaulttrue) - Enter on the focused indicator and a mouse click on it both open the dropdown: No room, then every room the daemon lists with its member count, the current one selected
- Picking a room follows it: the conversation view shows its log and then live posts and member activity, each post under its author
- Submitting the composer inside a room posts to it through the daemon, and the composer's menus use the
roomcontext ofcomposer.yaml - Picking No room leaves the room and restores the plain chat's conversation and
chattrigger table - With the daemon unreachable, the dropdown reports it and the chat does not change
- Clicking any actionable status indicator activates it, not only the Room one
-
docs/configuration-reference.mdlists theroomindicator anddocs/shortcuts-guide.mddescribes switching rooms - Tests cover the indicator text, the dropdown's rows and selection, switching in and out of a room (trigger table and conversation restored), posting through a faked daemon client, and the mouse hit test
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Nov 23, 2026
Scope added while planning, shipping in the same PR:
@allreaches every member with no router model. Without a mention, the routing decision asks one more question, "is this post for everyone in the room?", and a yes reaches every member pastmax_members. So "Hi all" gets a hi from each member.join_roomframe follows the room likefollow_room. The first time the user ever enters a room, it logs akind: joinpost and up tomax_membersmembers welcome them.follow_room, and with it a reconnect, never welcomes.Decided:
!and!!are off inside a room, and/still works.Later, once rooms have several users: a notice when someone else enters.
Cross-repo: inference-gateway/desktop#741 can send
join_roomto get the welcome and renderkind: join. The docs for rooms (inference-gateway/docs#1291) should cover@alland the welcome.