Skip to content

[DOCS] Rooms in the chat TUI - the room switcher, @all, the first-visit welcome, member mode, approvals in the room and infer rooms clear #1305

Description

@edenreich

Summary

The chat TUI enters the rooms the CLI daemon hosts, and a room reads like a Slack channel. Room members talk like teammates there, one member picks up each request, a room sets the agent mode its members run in, a member's escalated tool call is approved or rejected right in the room, and infer rooms clear empties a room (inference-gateway/cli#1954 with PR inference-gateway/cli#1957, inference-gateway/cli#1958 with PR inference-gateway/cli#1963, part of inference-gateway/cli#1943).

This extends the Rooms docs from #1297 and #1302. It is part of #1291, which stays open for the desktop Rooms work.

Acceptance Criteria

  • The Rooms section in cli.md covers rooms in the chat TUI: the Room: - / Room: #<room> status bar indicator, opened with Enter on the focused indicator or a left click, and its dropdown with No room first, then every room with its member count. A left click now opens every actionable status bar indicator, not only Room.
  • It describes the room view: a header with what the room spent, such as 48.2k tokens - $0.031 (what the posts in its log cost: the members' turns, and the tokens of routing, which carry no cost, so a cleared room starts over), and each member's presence (idle, working, waiting for approval), each message under its author and time with an author's consecutive messages grouped, joins and room notes as quiet lines, and a " is working..." line under the posts.
  • It covers the composer inside a room: a message posts to the room, the room trigger table of composer.yaml drives the menus, and the placeholder reads Message #<room>. ! and !! commands and messages with an image stay in the composer, and / commands work as usual. Ctrl+L, /clear and /new clear nothing inside a room, since other people read it too, and point to infer rooms clear <room> or No room. No room brings the chat back untouched.
  • It states that a plain chat reaches rooms only through a daemon that already runs. It never starts one, and the status bar says so when none runs.
  • Routing covers @all, which reaches every member without a router model and is the only way to reach them all, and the pickup of a post that pings nobody, a greeting included. The rooms.yaml reference gains a room's pickup. With offer (the default) the post goes to the best match first, which answers it or replies exactly PASS, and a PASS notes <member> passed it on - offered to <next>. and offers the post to the next best, up to router.max_members. When the last one passes, the room says nobody picked it up. With top the best match alone gets it. infer rooms post prints Offered to researcher (0.94), then tester (0.81). for such a post.
  • The rooms.yaml reference shows router.model defaulting to ollama_cloud/clef:27b, the decision model that routes a post that pings nobody. An empty router.model keeps @mentions-only routing. Without an ollama_cloud key, a post that pings nobody reaches nobody and the author gets a notice to ping a member. The cli-managed gateway now starts with DECISIONS_ENABLED=true by default, since the router needs it.
  • It covers the first-visit welcome: the first time the user enters a room, a kind: join post is logged and the first router.max_members members welcome the user in one short line. A client sends join_room to get the welcome. follow_room never welcomes.
  • The rooms.yaml reference gains mode: the agent mode a room's members run in, standard, plan, auto or auto-with-judge. The default is auto-with-judge, where an LLM judge decides a member's gated tool calls and only a call it escalates waits for the user, in the room. The judge is judge.model, else the model the member runs on, so it works after a fresh infer init. mode: standard keeps the user on every approval. Link the judge mode docs.
  • It notes that the posts a member missed reach it quoted as context, so neither the member nor its judge takes them for the request.
  • It covers approving a member's tool call from the room. A member whose run waits on a tool call, in auto-with-judge one the judge rejected and the member escalated, posts it to the room: <member> wants to run <tool> <arguments>, the judge's reason and the member's justification, and [ Approve ] [ Reject ]. A click on either decides the call, and alt+y approves or alt+n rejects the newest open one (chat_room_approve and chat_room_reject in keybindings.yaml). The room logs who decided, such as You approved tester's Bash call., and the member's run continues. The first decision wins, from the room or from the member's own chat (session room-<room>-<agent>), and a later one is refused with <member>'s call was already decided. A call decided in the member's own chat, or one whose run ended first, is closed in the room with a line saying so. The room offers Approve and Reject only, never Auto-Approve. A member asking the user a question still waits in its own chat, and the room notes it.
  • infer rooms clear <room> is documented in the Rooms section and in the infer rooms row of the command reference. Through a running daemon it empties the log and the view of every client following the room. With no daemon listening it clears the log where it runs. A daemon that listens but does not answer keeps its log, and the command fails. Members drop the posts they held and keep their own sessions, and the next visit is welcomed again.
  • "*" in a room's agents seats the user's own agents only. The built-ins (main, explore, general-purpose, plan) join a room only by name, also once infer init seeded their files. Correct any page that still says "*" seats every agent, built-ins included.
  • The client frames table gains join_room, clear_room, room_cleared, decide_room_approval and room_approval_decided, linking the binding protocol's Rooms section.
  • The client frames notes cover the approval posts. A member's call waiting for the user is a post of kind: approval by the member, whose text is the judge's reason and the member's justification and whose approval names the call (id, tool, arguments). A client decides it with decide_room_approval (room, member, tool_call_id, decision: approve or reject), answered with room_approval_decided, or RUN_ERROR for a call that was already decided or no longer waits. The room then logs a kind: decision post with the same approval.id and approval.decision, absent when the call was decided outside the room. An approval is open until such a decision post follows it.
  • The client frames notes cover what a room spent: every post carries usage (tokens, cost), the input tokens of routing it for the user's post, with no cost, and the member's turn for its answer or for the room's note that it passed a post on. A turn that failed ends on RUN_ERROR, which reports no spend, so its note has no usage. A room's total is the usage of every post in its log, and cost stays 0 for a model without a price.
  • The headless AG-UI output reference lists runTokens and runCost in the RUN_FINISHED result: what the session spent during the run, a run that paused on an approval included.
  • The configuration reference gains composer.status_bar.indicators.room (default true).
  • Examples run as written against a released CLI that includes feat(rooms): rooms in the TUI, like a Slack channel, with members that talk like teammates cli#1957 and feat(rooms): approve or reject a member's tool call from the room cli#1963, and use plain ASCII.

Activity

  1. added
    documentation
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
  3. moved this to Todo in 2026on Nov 24, 2026
  4. edenreich commented on Nov 24, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this?

  5. inference-gateway-maintainer commented on Nov 24, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 52s —— View job • docs/issue-1305-20261124-1204 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1305-20261124-1204?quick_pull=1&title=Issue%20%231305%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231305%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented rooms in the chat TUI - PR #1306

    What changed

    • Status bar: added the Room: - / Room: #<room> indicator. Added a note that a left click opens every actionable indicator.
    • New "Rooms in the chat TUI" section: the dropdown, the room view (spend header, member presence, grouped messages, the is working... line), the composer inside a room, why Ctrl+L / /clear / /new clear nothing there, and that rooms need a daemon that already runs.
    • rooms.yaml reference:
      • router.model now defaults to ollama_cloud/clef:27b.
      • New mode and pickup fields.
      • "*" seats only your own agents. The built-ins join only by name.
    • Routing: @all, offer / top with the PASS hand-off, the notice when there is no ollama_cloud key, and DECISIONS_ENABLED=true by default.
    • Members: missed posts reach a member quoted as context, a new room mode subsection, and a first-visit welcome subsection.
    • Room log: documented the kind and usage fields.
    • infer rooms: post now shows the Offered to ... output. Added a new infer rooms clear section and updated the command reference row.
    • Client frames: added join_room, clear_room and room_cleared, plus notes on usage.
    • AG-UI RUN_FINISHED: added runTokens and runCost.
    • Judge: updated how the judge model is chosen, with the room mode linking to it.
    • configuration.md: added composer.status_bar.indicators.room.

    Not done or worth checking

    • I could not run any of the examples. cli#1957 is still open and not released, so docs(cli): document rooms in the chat TUI, pickup, mode and rooms clear #1306 should merge after a CLI release that includes it.
    • The issue says the room's note that a member failed carries usage. The CLI PR says a failed turn reports no spend, so the failure note has none. I followed the CLI.
    • The quick-start example used @main. main is a built-in and no longer joins public through "*", so I changed it to @all.
    • I listed the room indicator as TUI-only (Desktop: no), because the desktop Rooms work is still open.
    • Branch - PR #1306
  6. moved this from Todo to In progress in 2026on Nov 24, 2026
  7. moved this from In progress to QA in 2026on Nov 24, 2026
  8. moved this from QA to Done in 2026on Nov 24, 2026
  9. changed the title [-][DOCS] Rooms in the chat TUI - the room switcher, @all, the first-visit welcome, member mode and infer rooms clear[/-] [+][DOCS] Rooms in the chat TUI - the room switcher, @all, the first-visit welcome, member mode, approvals in the room and infer rooms clear[/+] on 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

    documentation

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions