Galaxy Shell / docs
Docs / Decisions and plans

Super mode, focus and the three states of the chat (the part that did not land)

openspec/changes/super-mode/design.md · Edit on GitHub ↗

This document records decisions, plans or evidence from a project stage. It does not imply that every item is implemented or validated in the current version.

On this page

Super mode, focus and the three states of the chat (the part that did not land)

The landed part and the current rules are in openspec/specs/super-mode/spec.md. The sections below are the original text of the doc, unchanged.

Status and decision record

  • Status: specification approved by the project owner on 2026-11-04, after a usability review and a question round. Phase 1 implemented on 2026-11-04, the compositor in one worktree and the core, the host and the docs in another, against one wire contract (section "Wire contract (phase 1, as built)" below, which wins where the text above it differs). Phases 2 and 3 are not implemented. The live session takes it at the next login after the publish and the synchronization of the active checkout.
  • Date: 2026-11-04.
  • Origin: the usability review of 2026-11-03 (a heuristic judgement made in a Codex session, 6 of 10, not a user test). Its first finding: the chat starts hidden on a new Canvas workspace and the main function of the product depends on discovering and remembering the Super key. On 2026-11-04 the user confirmed the problem ("hoje em dia ainda tá bem difícil controlar o sistema") and asked for a user flow that makes sense, not a key swap.
  • Replaces: the Super tap of 2026-11-02 and 2026-11-03 (show or hide the chat plus the fit all), the hidden chat as the only state besides the full chat, Ctrl+Shift+N, Super+Shift+F, and the sentence "a new canvas starts with the chat hidden". Those statements in the other documents are history once phase 1 lands.
  • Keeps: the click outside that hides the chat, the approval that brings it back, the chat_hold, Canvas by default, the agent camera limits, the chat with no inner collapse button, and the rejection of dragging windows between overview cards (2026-10-28).

The user's words (2026-11-04, Portuguese, quoted)

  • "proponho que em vez do chat aparecer com Super, ele apareça com Super + C, e o Super fica reservado ao zoom out que já é feito junto com o chat". This was the first proposal. It became the Super mode below, and Super+C was dropped ("super C?") because the mode covers it.
  • "melhor, super + digitar mostra o chat inteiro, super mostra só a caixa de texto e as janelas".
  • "scroll + windows alterna entre janelas como alt tab"; then "ahh verdade, win + scroll da zoom né, então alt scroll".
  • "scroll dentro do overview centraliza nas janelas e alterna entre janelas (de longe)".
  • "Ah sim, abre a janela em um lado e o chat no outro, tinha um modo assim no grid legado".
  • "Travamos o zoom, praticamente não tem como parar a tela em um ponto sem janelas, se este for o caso, a semântica do que é foco deve ser, janelas que estão visíveis na tela, isto dito, talvez devamos fazer grids como foco 'agrupado', como editores de imagens agrupam camadas, isso facilitaria pousar em uma grid, em vez de o modelo de grid que temos hoje".
  • On the name: "não chamaria de pouso não"; the term is "foco".
  • On the Grid margin: "continua sem célula, a gente dá um espaço em branco lá e coloca ele".
  • "Arrastar uma janela para dentro da outra no overview faz um grupo com split screen", with the clarification that the rejected drag of 2026-10-28 is the one between workspace cards.

Phases

Phase 1: the Super mode

One change, in one commit, compositor, core, host and docs together (the chat state and the fit are compositor rules; the texts are host rules; nothing has a setting):

  • Compositor (native/smithay/src/input.rs, desktop/canvas_mode.rs, desktop/context_actions.rs, canvas.rs, desktop/layout.rs for the Grid margin): the tap, the box state on the wire (chat_dock gains state: "box" beside expanded and collapsed; capabilities.chatBox), the return of the camera, Alt+scroll, the placement rule of the whole chat by window count, the Grid margin, the agent placement from afar and from near, the removal of Super+Shift+F, Super+N as an input request (new_chat).
  • Core (web-shell/core/smithay.js, workspace-navigation.js, server.js, context-actions.js): the new request kind new_chat (correction: no chat_box request; the tap keeps chat_focus), the state box in the validation and in desktopState, the labels of the actions, the side setting back in /api/chat-dock-side with its settings control.
  • Host (vendor/interface/host/host.js, ui-src/host/bars.jsx, onboarding-tips.jsx, first-run-color.jsx, settings.jsx, desktop-actions.jsx): the box look of the composer (no history, no welcome, no pins), typing and Enter in the box, the chat button, the welcome lines, the inverted card, the side control, a rebuild of the host bundles.
  • Docs: canvas-windows.md, grid-on-canvas.md, contextual-actions.md, usability.md, smithay-development.md, architecture-decisions.md, AGENTS.md, the work log.
  • Version skew: a host of phase 1 on a compositor without capabilities.chatBox never gets a box state; its chat button and Escape still work through expanded and collapsed. Correction (as built): a compositor of phase 1 with an older core is no working pair, because the older core refuses a state with a box chat and drops the connection, and a new workspace starts in the box; scripts/check-host-skew.py refuses that pair and warns about the reverse one. Roll the compositor, the core and the host back together.

Phase 2: groups

A specification of its own, after phase 1 ships. Its decisions so far: a group is a set of windows with a cell formation that moves and frames as one focus, like grouped layers in an image editor; a canvas can hold several groups and loose windows; the workspace stops having a layout. A group forms with Super+G over the current focus (the visible windows become a group), with "Agrupar" in the Actions menu on the target window, with the agent arrange_windows grid on named windows, and with a drag of one window onto another on the panned-out canvas. Super+G over a group ungroups it. Alt+scroll steps between focuses; inside the focused group the grid keys and Alt+Tab step between cells.

The drag of one window onto another on the panned-out canvas of the same workspace is not the drag rejected on 2026-10-28, which moves a window between the cards of the workspace overview to another workspace. That rejection stays.

Phase 3: a switch and a new conversation during a response

A switch, as built on 2026-11-06 (the user: "Libero também a troca de abas durante uma resposta?", "Sim, liberar aqui"). A selection of an open workspace runs during a response: a tab, a dot, a card of the overview, Super+1..0, Super+Left/Right, Super+Shift+scroll, the wheel of the bar and the swipe. The turn reads its own conversation (desktop.turnWorkspace), so the response goes on in its workspace, one turn at a time as before.

  • WorkspaceNavigation.selectionBlocked() is the single answer, in selectBlocked of the states of the chat and the bars. A turn stops a selection only under a compositor without the live workspace_outputs lease, while a dialog waits (chatHoldWanted: a tool approval, a theme card, a schedule, the review card, a profile CSS candidate) and while an agent open_application, open_path or arrange_windows runs, because they read the workspace of the primary output. In reverse, a call of these three tools during a switch is refused with a text to try again. Model selection, a change, an account login, a switch and the login restore stop it as before.
  • A selection changes the live state in place. It no longer puts its copy over the state, because a turn holds the objects of the live state and writes to them during the slide.
  • The tab and the dot of a workspace with a response show its activity (conversationActivity, in the title and the label too): working, an approval, and a finished response until that workspace opens.
  • The chat of another workspace says "O agente está respondendo no workspace N" and has no stop button. Its send stays off. The way back shows the response with its stop button. A voice interruption cancels only the response of its own conversation.
  • An approval that arrives after the user left shows in the primary chat (chatShowsApprovals, as for a conversation that no output chat shows), and the selection then waits for the answer. Each card says where it comes from with a fixed line that no agent text sets: the tool dialog shows the workspace number beside the conversation, and the tool, schedule and theme dialogs and the review card add "Pedido pela conversa do workspace N, não pela que está na tela" while it is not the conversation on the screen. The line follows the screen. A schedule proposal keeps its conversation in approval.conversation and a source proposal in its record (conversation, in the summary of the state), because both can wait after the turn ends.
  • A new window of the agent stays with its response (agent_route, capabilities.agentRoute, control connection only, ended with it). The core names the workspace of the turn and the roots: OpenCode, and the processes that this turn started through the core (a job of execute_command, open_application, open_path), at most 32, forgotten when the turn ends. A new window without a parent, of a process below a root, opens on that workspace and neither takes the keyboard nor moves the camera of the workspace where the user works. A process leaves the roots when it ends, and past 32 the newest stay. The first connection that sets the route holds it. A window of the client that has the keyboard stays with the user, whoever opened it: those keys already go to that client (Ctrl+N or a popup in the agent browser). A route to a workspace that no output shows closes a new window once 32 windows of any kind are there, so a flood cannot use up the windows of the session where nobody sees it. capabilities.agentRouteRoots says that the compositor takes roots; a core sends one root (OpenCode) to a compositor without it, and a newer compositor still takes root from an older core, so neither order of an update drops the connection. Update the two together to route the jobs of a turn; scripts/check-host-skew.py warns about the pair. On Canvas it takes its spot and the keyboard, once, when that workspace shows again. On a workspace that shows on another output it opens there and leaves the keys alone. Before this route such a window opened over the user and took the keys in the middle of what they typed (the security review of 2026-11-06).
  • open_path is refused with workspace_on_output when the workspace of the turn is not the one of the primary output, and with workspace_not_focused when the user works on another output, because the associated application can answer through a process outside the route (D-Bus). open_application of an installed application or of the browser gets the same workspace_not_focused, because an installed application goes through gio and a browser can go through it or hand off to a process that already runs; a plain executable is a real child of the core and stays routed. While the connection comes back without the lease, a desktop tool of a turn that the user left is refused with a text to try again, because the tools would read the workspace of the user; list_applications and list_directory read no compositor and still run.
  • The contextual actions keep workspace_* during a response and drop them with the selection, as the keys do. The overview action still waits.
  • Limits: an agent open_application and arrange_windows of a turn whose workspace left the primary output are refused with workspace_on_output, and a window action on a window of a workspace that no output shows is refused with "Window belongs to an inactive workspace", as the agent reads them. So a response that opens an application needs its workspace on the primary output. A tab of the bar of an extra output moves a workspace to that output, so it still waits for the response and stays disabled. What the route does not reach, and so can still open over the user with the keyboard unless they are typing (since 2026-11-06, openspec/specs/canvas-windows/spec.md, A window that opens while the user types): a process that left the tree of its root (a daemon, or gio open answered through D-Bus), an application that was already running and gets a new window from outside, and a window that maps after its turn ended. execute_command runs as the user in any case (openspec/specs/self-maintenance/spec.md, What a job can still reach). A browser window on a workspace that no output shows gets no frame callbacks, because the compositor sends them only to mapped windows. Chrome keeps working there: in a nested QA of 2026-11-06 a Playwright client over CDP loaded a page, took a screenshot in 162 ms, saw 120 animation frames in 2 s and clicked a button, with the user on another workspace. Other browsers were not tested. The grant of read_window_text names only the window, so a grant while the user looks at another workspace also reaches the running response; the protected settings say so while that response runs.
  • A dialog of a response that the user left does not pull the keys. It shows at once in a chat that floats, and the chat takes the keyboard after 2 s with no input of the user (lastInputMs). A wait that started goes on through the end of the turn, a reconnect and a lock, then one focus goes out; if that focus fails, or the dialog arrives while the session is locked, the dialog takes a click. Permitir arms only with the keyboard, so nothing runs meanwhile. Under an immersive application in the Focus layout the chat shows only when it takes the keyboard, so that dialog waits for the same 2 s, with the activity of the tab as the only sign. An agent window_action on the chat window of a turn that the user left is refused with chat_elsewhere. The delay of a dialog starts again when a slide ends and when the box becomes the whole chat. A profile CSS candidate waits for the end of a slide before its answer.

Still blocked: /api/create, /api/archive and /api/unarchive are refused while a turn runs, so "+", Super+N and the archive buttons wait. The "Nova conversa" button explains the refusal in its title.

Verification

  • The gates of the project in a dedicated worktree: the Rust gates through the preparer (fmt, test with the session feature, clippy with warnings denied) and npm run format:check, npm run check, npm test in web-shell.
  • Rust tests: the tap shows the box and fits; the second tap returns the camera and hides the box; typing in the box (a chat_dock to expanded from the host) leaves the camera; Alt+scroll steps the focus in spatial order from near and from afar and reaches no client; a Grid workspace recenters on the tap and ignores Alt+scroll; the whole chat is centered with no window and at the side with one; the Grid margin is no cell; the agent placement from afar keeps the zoom and from near centers; Super+N queues new_chat; Super+Shift+F reaches the client.
  • JS tests: the request kinds, the box state, the labels, the chat button, the essentials order and texts, the welcome lines, the side control.
  • Nested QA (scripts/nested-qa.py, one output, no gestures, no provider): a new conversation shows the box; / opens an application and the box hides; Super shows the box and pans out, Super again returns; typing shows the whole chat centered; a window opened by open_application from a synthetic turn moves the chat to the right and takes the rest; Alt+scroll steps between two windows; Super+N opens a conversation; the first-run card in the new order. Report it as nested proof.
  • The live session is not restarted: the change applies at the next login after the publish to main and the synchronization of the active checkout.