Skip to content

[FEATURE] Rooms in the TUI: a Room status indicator with a dropdown to switch rooms #1954

Done

Description

@edenreich

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 room context of composer.yaml (@ lists agents first), not the chat one.

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: a Room part in getAllIndicatorParts with a new tui.StatusIndicatorActionRoomSelection, and the dropdown rendered under the status row like agentPicker
  • internal/presentation/tui/app/chat.go: activateSelectedIndicator opens the room dropdown, and the mouse click lands there too
  • internal/presentation/tui/components/agent_picker.go: the dropdown to reuse or generalise for rooms
  • internal/presentation/tui/daemonthread: the TUI's daemon client gains list_rooms, follow_room (room_snapshot, room_post, room_activity), post_room and leave_room from [FEATURE] The daemon hosts rooms: post, deliver to members and log their replies #1946
  • Autocomplete.SetTriggerSources with config.ComposerContextRoom on entering a room, and ComposerContextChat on leaving
  • config.StatusBarIndicators: a room toggle under composer.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

Acceptance Criteria

  • The status bar shows a Room indicator, Room: - in a plain chat and Room: <name> in a room, switchable with composer.status_bar.indicators.room (default true)
  • 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 room context of composer.yaml
  • Picking No room leaves the room and restores the plain chat's conversation and chat trigger 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.md lists the room indicator and docs/shortcuts-guide.md describes 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

Activity

  1. added
    enhancement
    on Nov 23, 2026
  2. edenreich commented on Nov 23, 2026

    @edenreich
    ContributorAuthor

    Scope added while planning, shipping in the same PR:

    • Members talk like teammates. The member turn reads like a Slack channel: answer what a post asks, and keep greetings and small talk to one short line.
    • Posts for the whole room. @all reaches 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 past max_members. So "Hi all" gets a hi from each member.
    • Welcome on the first visit. A new join_room frame follows the room like follow_room. The first time the user ever enters a room, it logs a kind: join post and up to max_members members welcome them. follow_room, and with it a reconnect, never welcomes.
    • Slack-like room view in the TUI. It shows a channel header, author and time over each message, grouping of consecutive posts, a join line, and a "tester is working..." footer.

    Decided:

    • ! and !! are off inside a room, and / still works.
    • The Agent and Model indicators stay.
    • A plain chat only connects to an already running daemon.

    Later, once rooms have several users: a notice when someone else enters.

    Cross-repo: inference-gateway/desktop#741 can send join_room to get the welcome and render kind: join. The docs for rooms (inference-gateway/docs#1291) should cover @all and the welcome.

  3. moved this from Todo to In progress in 2026on Nov 23, 2026
  4. moved this from In progress to QA in 2026on Nov 23, 2026
  5. moved this from QA to Done in 2026on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions