Repository navigation
Rex backend: show, attach, and create Rex sessions - #73
Merged
Merged
Conversation
A HostStore handed its own directory isolated hosts.json but still mirrored every added host into the simulator's real synchronizable Keychain. The app adopted them on its next launch: the test simulators had accumulated 100 and 86 box / devbox hosts, and a deck screenshot showed NO SIGNAL tiles instead of the seeded host. The mirror is now a value, HostRecordMirror. The app's store uses the Keychain; a store with an injected directory gets a private in-memory mirror, and a test that reads back what a store mirrored passes its own. One test still touches the real Keychain, with a payload that cannot decode as a host, so even a killed run cannot add one. The shipped app is unchanged. A simulator that already accumulated hosts is cleared with `xcrun simctl keychain <udid> reset` and one launch; the recipe is in docs/agents/sync-and-widgets.md.
Rex (superlogical.com/rex) sessions on a host appear on the deck beside its tmux and herdr ones: one tile per session, its windows on the spine, its terminal blocks as panes, the fronted block's screen as the miniature. The rail offers + REX when discovery finds sessions, and Host Settings lists REX under Backends. Programs that report status through OSC 7501 drive RUNNING and NEEDS YOU directly. Rex ships no terminal client, so a Rex tab is a third transport beside the SSH PTY and mosh. RexSession speaks the server's own WebSocket protocol (WebSocketCodec, RexWire) through `rex __internal dial-stdio` on a PTY-less SSH channel: the screen, colors, cursor and scrollback are restored on attach, and a link lost to suspension re-attaches on return. One tab is one terminal. The tab's REX key lists the session's terminals and switches to another; Open Terminal in the tile menu opens one as its own tab. A window's split layout is not drawn. New Session's Runs on bar, a Rex tab's + TAB, and an external `action=agent&backend=rex` create a Rex session in one exec (`rex do -e <lua> --args <json>`). What the user typed travels as JSON arguments, never as script text. The label is settled against the live list, and the setup script and launch line ride `initial_input`. Multiplex never starts a Rex server: every invocation carries REX_AUTOSTART=0, and a create with no server running says so and makes nothing. Because the default backend must answer on an idle host, Rex is never a host's default (`canBeDefault`); the record demotes it to a secondary on every path that could set it. Measured against Rex 0.1.0-preview.19 (API revision 14). The decisions and the measurements behind them are in docs/agents/backends-and-probe.md.
…x code
A cleanup pass over the Rex backend. Three things behave differently.
A Rex tab's write now queues and returns; a drain task makes the calls.
The input pump awaits each write, so a write that waited for the
server's answer made every keystroke its own round trip, queued behind
the last, and the batching the code described never happened.
Whether a tab rides mosh is asked in one place (`ridesMosh`). A Rex tab
rides SSH whatever the host prefers, but scrollback, FILE and the bar's
MOSH badge read the host's preference directly: on a mosh host a Rex tab
had no scrollback, no FILE, and a MOSH badge.
Helper chips on a Rex tab follow the wall probe's record. They polled a
focused-pane query that has no Rex answer and never left their first
value.
Duplication removed:
- The Rex run is the SSH run with a different open step, not a copy.
- RexOneShot was OneShotGate; the Rex attention fallback was the tmux
verdict; the agent-name map was herdr's; base64url had a helper.
- The "nobody named this window" rule lives once, in RexWire, for the
deck's spine and a tab's Switch Terminal list. Session id vetting
moved there too, so TerminalRoute no longer calls into a service.
- One factory for attach modes, one sentence for a failed create, one
spelling of the product's name ("Rex", not "rex", in the offer alert).
- A mint no longer settles its label twice; the script's pass against
the live list is the one that counts.
Less work on the terminal's path:
- The WebSocket decoder stopped copying the rest of its buffer after
every frame, and frames are masked in place.
- Stream output with no server message in it passes through uncopied.
- The alternate-screen watch no longer allocates per ESC byte.
- The two screen reads of an attach are asked together.
Also gone: `reportsClientCount` and `shortcutBackend`, which nothing
needed, and a no-op exec the file viewer made for a Rex tab.
The agent bar read the session's fronted pane (`activeAgent`). That is right for a tmux or herdr tab, which shows the whole session, and wrong for a Rex tab, which is one terminal: the bar left a tab still showing Claude Code as soon as the Rex app fronted another window, and never appeared on a tab opened or switched to a terminal that was not in front. A Rex tab now asks for the agent in the terminal it is showing (`TmuxSession.agent(inPane:)`), and finds its session by id rather than by a label another session can take. The controller learns the terminal when the attach settles on one (`rexBlockID`, which replaces the switch-only override), so a reconnect returns to it as well. This takes back part of the previous commit. The bar already followed the wall probe through the window's own observation, with its grace before hiding; the loop added for backends with no focused-pane query duplicated that and skipped the grace. Such a backend now runs no loop. Reproduced and checked on the Vision Pro simulator against a throwaway Rex server running a real `claude`: with another window fronted in Rex, a tab on the agent's terminal keeps its bar; a tab on a plain terminal shows none and gains it when switched to the agent's.
The shortcut key opens a panel whose switch list may hold one row or ten, and nothing on the key said which. It now lights (primary ink and the signal border, the UMD chips' `prominent`; not the latch's fill, which means ON) while the list has somewhere else to go. `TmuxSession.hasSwitchChoices` states the rule: more than one window (herdr: workspace), or on Rex more than one terminal, since a Rex tab is one terminal and a single split window already has a second row. The window reads it off the wall probe's record (`probedSession(for:)`, which the agent bar's lookup now shares), so the key trails a new or closed window by up to one probe tick. Both rails re-ink the existing control rather than rebuild: the probe moves this while the key's own panel may be open (New Window is a row there), and a rebuilt UMD bar would pull the chip from under its popover. `shortcutHasChoices` therefore stays out of the bar's presentation key. Checked on the iPad simulator against the dev-sshd harness: a tab on the three-window `main` session shows the TMUX key lit. The unlit state, the in-place change and the Rex rule are covered by unit tests only; the REX key was not run against a live Rex server.
A Rex terminal open in Multiplex and in the Rex app at once flickered in the app: the two clients kept trading the terminal's size. The Rex server keeps the terminal and answers its queries itself. The tab's SwiftTerm reads the same output and answered too, and that answer went out as a terminal.write, which is also what claims the size. So a tab nobody was touching took the terminal back whenever the program asked something, and a program that asks on every resize made it a loop. The program also read each reply twice. SwiftTerm handed the host one send() for what a person did and for what the terminal said by itself, so the fork now marks the first kind (Terminal.isSendingUserInput) and the iOS view routes the rest to a new TerminalViewDelegate.sendTerminalReport, which defaults to send(). A Rex tab drops those; keys, mouse events and prompt clicks still go and still claim. Other tabs are unchanged. Measured against a throwaway server with a stand-in client that reclaims the block whenever it loses it: 82 owner changes in 0.6 s before, and after only the stand-in's own take, with no terminal.write from the idle tab. Typing in the tab still takes the size.
# Conflicts: # fastlane/testflight-whats-new.txt
Two ways a Rex tab ended up with stray characters, both reproduced against a throwaway Rex server. Switching the tab between two terminals that each run a full-screen program left the first one's screen under the second. Every redraw of a Rex tab is RIS plus a rendering, and SwiftTerm's RIS did not empty the alternate screen: the buffer is emptied only on the way out of it, and is not blanked on the way back in once it has rows. With two stand-in full-screen programs the whole first screen stayed. The fork's reset now clears the alternate buffer too. A shell on either side hid it, which is why the first switch tests passed. While another client held a terminal at a different size, the tab went on parsing its output at the pane's own grid. Since the tab stopped answering the terminal's queries, nothing claims the size back until someone types, so this lasted as long as the Mac was the one in use. The stream says what size the terminal is and whose; a size that is another client's is now followed. The session holds the stream, waits for the repaint a resize sets off to go quiet, has the emulator take the grid, and draws the screen again, without replaying the held bytes the rendering already contains. The pane gives SwiftTerm the grid by giving it the frame: text shrinks until the grid fits, and the room left over comes off the trailing and bottom edges. The grids reported on the way are never sent on as the tab's own. Typing in the tab still claims the size, and the pane is its own again. Redraws now run one at a time; two sharing a hold let the first release the stream under the second.
Rex speaks a preview server's protocol, which moved from API revision 14 to 18 within a week, so nobody should meet it by accident. Settings gains an Experimental section with a "Rex sessions" switch, off by default. The switch is per device and a host's record is not: `secondaryBackends` keeps `rex` whatever the switch says, because records sync and another device may have it on. The gate sits where the record is read (`SessionBackend.isAvailable`, asked by `monitoredBackends`, `monitors` and `showsBackendIdentity`), so the probe loop, tiles, New Session, widgets and external actions follow without checks of their own. The discovery riders and Host Settings' check bar list backends directly and use `availableCases`; the check bar carries a hidden checked `rex` through an edit. Nothing observes the switch: the hub re-reads the host on every refresh. `MULTIPLEX_REX=1` forces it on; the unit-test scheme sets it so tests that build Rex hosts do not depend on a simulator's defaults. Also records why a Rex tab cannot ride mosh yet and what to re-measure: Rex ships no terminal client (`rex block stream` still answers "not implemented" on preview.21), and a throwaway PTY client run by a real mosh-server met four traps that are now written down for whoever builds it once upstream does.
A Rex tab showed one terminal of its session and reached the others through a list. It now draws the whole Rex window it was opened on: one emulator per terminal block, laid out as the server's split tree, with a frame around the pane the keyboard is on. Dragging the line between two panes resizes them, and the REX panel's rows split the focused pane right or down, zoom it, close it, or open a new Rex tab. Nothing above the transport is Rex's. `PaneLayout` is the app's own pane tree and its geometry; `PanedTerminalTransport` is what a backend that hands its panes out one stream each looks like to a tab; `TerminalScreen` is one emulator endpoint, of which a tab has one, or one per pane; and `PaneSplitView` sits where the single emulator view sat, so keyboard avoidance, bottom chrome and the key rail are shared. "The terminal" of a tab is its active screen's view, so the chrome that read it follows the focus from pane to pane without a second version. tmux, herdr, shell and mosh tabs keep the single-emulator path. docs/agents/panes.md records the seam and what a second backend (tmux control mode, herdr) would have to do; neither was measured or built. `RexSession` now holds one control connection and one data connection per terminal. The layout is the server's: the tab asks (`session.new_split`, `resize_pane`, `block.close`, `new_window`) and hears the answer in the view like any other client's change. Measured against a throwaway server at the pinned API revision: - A pane is laid out before its terminal is opened, because a screen is rendered for the size it will be drawn at. - The tab's focus is its own. `focus_block`, and `focus: true` on a new split or window, also make that window the session's active one, which is the tab the Rex app on the host is showing. - Zoom is the tab's own for the same reason: the server's cannot be aimed at the tab's focused pane without moving the session. The hidden panes keep their size and their output. - A drag sends only the newest ratio, and the server's answer to an earlier one no longer pulls the line back. - Typing claims every pane another client holds. A pane another client just made is drawn at its owner's size until then. - The line is dragged by a press with no delay. A pan recognizer lost the first twenty points of a drag. Attaching now takes the size of every pane of the window, not of one terminal. Each pane is an SSH channel, so sshd's MaxSessions caps a tab near nine panes; one that cannot be opened says so in its own pane. Rows of the switch list that would read the same are counted, since a window split three ways is three shells with one label. A panel row with no key behind it shows no empty keycap. Real touches (the tap that moves focus, the finger on a line) are covered by `RexPanesUITests`, outside the unit scheme and CI: it needs a Rex server.
Rex is at 0.1.0-preview.25 and API revision 24; the hello still asked for revision 14, the one the client was first written against. A server settles on the newest revision both sides speak and translates to it, so the hello now says the newest this client knows (24) and the oldest it can use (14), and the welcome's answer is read. Every call and event a tab makes or handles was sent at 14 and at 24 to one preview.25 server, and at 19 to a preview.23 one. The answers differ only in ids, so the parser is unchanged. The probe and mint scripts, `ls -q`, `kill` and the stdio bridge run unchanged with the preview.25 CLI, which also probes a preview.23 server. A server with no revision in common closes the connection with a reason that names the side to update, which is already the tab's ended line (measured by asking a preview.25 server for 25 to 30). One from before revisions were negotiated welcomes at its own revision; the attach now fails there and says to update Rex. Only a fake server has shown a server that old: nothing before preview.23 is installed any more. Two fixtures captured off preview.25, the probe's output and the head of a terminal stream, each get a test beside the preview.19 ones, and the fake server negotiates the way a real one does. What revisions 20 to 24 added is recorded with what this client does about it. Undoable closes and `client.undo_close` are not sent, `session.transfer_window` ends a tab drawing that window like any closed window, and a window's second zoom is ignored like the first. A tab's reaction to another client's undoable close and to a transferred window was measured on the iPad simulator. Also brings docs/store-metadata.md's Rex rows up to what a tab has drawn since panes landed.
The switch was there because a preview server's protocol had moved under the client twice in a week. The client now states a range of revisions and was read against the newest, so the gate goes. Settings loses its Experimental section, and a host shows Rex once its record lists it (the rail's + REX offer, or the box in Host Settings), as it did before the switch. This is the switch's commit reversed. `ExperimentalFeatures`, `SessionBackend.isAvailable` and `availableCases`, the hidden-backend carry in Host Settings, the three strings, the tests and the `MULTIPLEX_REX` override are gone, and the code they touched is back to what it was. A record that listed `rex` while a device had the switch off is monitored on that device now. The stored preference is left where it is; nothing reads it. The TestFlight notes drop the switch from the Rex entry and its steps.
Opening a new Rex tab from a paned tab lost the top of the new pane's screen about three times in five: a shell's first line was missing and the prompt sat a row low. It happened against Rex preview.23 as well as preview.25. The pane with the keyboard was removed first and the keyboard claimed for its successor a turn later. In between, UIKit dismissed the keyboard with its first responder, and the layout pass the transport is answered from measured the panes without it. The new pane's terminal was opened, sized and rendered at 73 rows, and the pane was back at 51 before that rendering was fed, so its blank rows scrolled the emulator. Closing the focused pane removes its cell the same way. `PaneSplitView.apply` now runs a closure once the new cells are in and before the old ones go, and `syncPanes` moves the keyboard there whenever the tab had it. Only an attach's first claim still waits a turn. The coordinator is pointed at the new pane before the claim, because keyboard avoidance acts only on the terminal it names. With the handover in place the new pane was opened at 51 rows in each of seven runs on the iPad simulator. In its final shape, one claim for every case, it was checked by a screenshot of a new tab and by the real-touch test (tap to focus, drag a line). Two things are left as they were and written down in docs/agents/panes.md. UIKit still reports the keyboard hidden and shown again about 270 ms later, which costs the terminal two more resizes and the screen nothing. And nothing yet ties a rendering to the grid its emulator has when it is fed.
Closing the Rex tab a Multiplex tab was showing ended the Multiplex tab: DETACHED and RECONNECT, while the session's other tabs were one press away. Open a new Rex tab, exit its shell, and the tab you came from was gone from the screen. A tab whose window is gone now moves to the window Rex itself shows next. Rex's rule for a closed active window is the one after it, or the one before it if it was last; the tab walks the same way from the closed window's place in the tab order it last read, passing windows with no terminal. A tab and a Rex app that were both on the window land on the same one. A window that only lost the layer the tab drew keeps the tab. The tab ends, cleanly as before, only when no window of the session has a terminal left. The move is neither an attach nor a choice from the panel, so it claims only terminals nobody owns and the window's own focused pane takes the keyboard. Measured on the iPad simulator against Rex preview.25. New Tab then Close Pane came back to the window the tab had left. `exit` in the first of three windows put the tab and the session's active window on the second. `exit` in a window the tab was not drawing left it alone, and `exit` in the last one ended it with RECONNECT.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rex becomes a third backend beside tmux and herdr: its sessions are shown on the deck, attached as tabs, and created from the app. Rex is never a host's default backend, and Multiplex never starts a Rex server. Written against Rex 0.1.0-preview.25 (API revision 24) and first measured against preview.19 (revision 14).
+ REXoffer, or the box in Host Settings ▸ Backends. A per-device Settings ▸ Experimental switch gated it for a few commits on this branch and is removed again; a record that listedrexwhile a device had it off is monitored there now.RexWire.apiRevision24,minimumAPIRevision14). A preview server gains a revision every few days, so what matters is which shapes the client reads: every call and event a tab makes or handles was sent at 14 and at 24 to one preview.25 server, and at 19 to a preview.23 one, and the answers differ only in ids. The probe and mint scripts run unchanged with the preview.25 CLI. A server with no revision in common closes with a reason that names the side to update, which is the tab's ended line; one too old to negotiate fails the attach with a message. What revisions 20 to 24 added (undoable closes,session.transfer_window, a second zoom per window) is recorded with what the client does about each; none is sent.RexProbe, pure). One exec per probe (rex do -e <lua> --json): one tile per session, windows on the spine, terminal blocks as panes, the fronted block's screen as the miniature.+ REXwhen discovery finds sessions; Host Settings ▸ Backends lists REX.session.attach_all, so it is not listed as a client of any session.RexSession,RexWire,WebSocketCodec). Rex ships no terminal client, so a Rex tab is a third transport beside the SSH PTY and mosh.rex __internal dial-stdioon PTY-less SSH channels (SSHConnection.openPipe): one for control and one per pane.ridesMosh), so on a mosh host it keeps scrollback and FILE and shows no MOSH badge.TmuxSession.agent(inPane:)), not the one the session is fronting, so it stays when the Rex app shows another window.TerminalViewDelegate.sendTerminalReport), and a Rex tab drops them; other tabs are unchanged.TerminalGridFit), and the room left over stays empty. The tab only follows; typing in it still takes the size.other, so a user'srex doautomation still finds exactly one app client.docs/agents/panes.md). A Rex tab draws the whole window it was opened on: one emulator per terminal block in the server's split tree, a frame around the pane the keyboard is on.PaneLayout(the app's own pane tree and geometry, pure),PanedTerminalTransport(a backend that hands its panes out one stream each),TerminalScreen(one emulator endpoint; a tab has one, or one per pane) andPaneSplitView(in the single emulator's place, so keyboard avoidance and the rail are shared). tmux, herdr, shell and mosh tabs keep the single-emulator path. The doc says what a second backend (tmux control mode, herdr) would have to do; neither was measured or built.session.new_split,resize_pane,block.close,new_window) and hears the answer in the view like another client's change. A pane is laid out before its terminal is opened, because a screen is rendered for the size it is drawn at.focus_block,focus: trueon a new split or window, andzoom_blockby block all make that window the session's active one, which is the tab the Rex app on the host is showing; none is sent.RexProbe.mintCommand→createRexSession). New Session's "Runs on" bar, a Rex tab's+ TAB, andmultiplex://…&action=agent&backend=rexcreate a session in one exec.--argsJSON, never as script text.apitaken →api-2); a+ TABsibling starts in the source session's directory.initial_input.REX_AUTOSTART=0. A create with no server running says so and makes nothing.canBeDefaultkeeps Rex out of every surface that picks a host's default, and the record demotes a Rex primary to a secondary.HostStoremirrored every added host into the simulator's real Keychain, and the app adopted them (100 and 86 hosts on the test simulators). The mirror is now injected (HostRecordMirror); the shipped app is unchanged.docs/agents/backends-and-probe.md(the Rex adaptation),panes.md(native panes),architecture.md,e2e-headless.md,sync-and-widgets.md,docs/store-metadata.md. The TestFlight note is added. Strings are translated (zh-Hant, ja) and reviewed.Testing
ruby Tools/check-metadata.rb: OK.RexProbeTests(probe parsing from a captured fixture, naming, mint command and outcomes),RexWireTests, andRexSessionTestsagainst an in-memory fake Rex server that keeps a real layout tree (attach, input order, panes coming and going, split, close, ratio, new window, link drop, another client's size),PaneLayoutTests(tree and geometry),TerminalPaneSplitUIKitTests(the real controller and surface over a recording transport: arrangement, focus, drag, zoom, a tab moving windows),TerminalGridFitTests,TerminalFullResetTests. Added with the last four commits: revision negotiation against a fake server that negotiates like a real one, a probe fixture and a stream fixture captured off preview.25, where a closed window's tab goes, and the keyboard changing hands before a pane's cell is dropped.RexPanesUITests(XCUITest, real touches, iPad): a tap moves focus to the pane under it, checked by what each Rex terminal received; a 180 pt finger drag moves the line 180 pt and the server's ratio with it. Outside the unit scheme and CI like the Arrange Keys one: it needs a Rex server, and one run is about twelve minutes because XCUITest waits out its idle timeout on every step.+ TABfrom a Rex tabapicreatedapi-2in the same directory and opened it as a second live tab.backend=rexlaunch showed the no-server message and started nothing.claude(2.1.325) in the Rex terminal: the Agent Bar shows; it stays on that tab after another window is fronted in Rex; a tab on a plain terminal shows none and gains it when switched to the agent's terminal.MULTIPLEX_AUTO_PANE_ACTIONS): split right and down, ratio, focus, zoom and back, close, new tab. Host-side after each: the layout tree, every block owned by the tab, each terminal at its own pane's columns × rows, and the session's active window unmoved. A split made from the host withrex splitappeared in the tab; output printed into a pane hidden behind a zoom was there when the zoom ended.claudeat 170x50 and types into it. Before, the tab (132x44) showed overlapping fragments; after, it shows the same screen asrex capturein smaller text, and returns to its own grid and text size when the stand-in leaves.MULTIPLEX_REX: a fresh install showed the host's Rex sessions as tiles, and a tab attached.undoable: the tab drew two. Six seconds later it calledclient.undo_close: the pane was back with its screen.session.transfer_windowon the window a tab drew, with no other window in the session: the tab ended with RECONNECT and its client left the server at once.exitin the first of three windows: the tab and the session's active window were both on the second.exitin a window the tab was not drawing: no change.exitin the last: ENDED with RECONNECT.RexPanesUITests(real touches) passed on the keyboard change: both taps typed into their own pane, and a 180 pt drag moved the line 180 pt.Not exercised end to end
The third commit (a cleanup pass) ran against the unit suites and the in-memory fake server only, not a real Rex server. It changes two behaviors: queued typing and the mosh-host rule above.
Vision Pro against preview.25: the last four commits ran there as unit tests only. That includes the keyboard change, whose claim also activates the scene on visionOS.
A real server older than preview.23. Both too-old paths (no revision in common; a welcome below the minimum) were shown by a fake server, and the first also by asking a preview.25 server for revisions 25 to 30.
A closed window's tab landing in a window another client owns (it is drawn at that client's size until someone types, by the same rule as a pane another client adds), and a tab that drew a floating layer when that layer closed (unit-tested on the wire).
The New Session sheet's REX choice by press (form state is unit-tested), and a setup script or agent launch typed through the app (measured through the CLI only).
Open Terminal on a named block in the app, and the Switch Terminal rows by press (New Tab takes the same road and was run).
Panes with the real Rex app as the other client, real touches on Vision Pro, the ALL PANES chip by touch, a paned tab moved between windows and a file dropped on a pane (both unit-tested only), more than nine panes (fake server only), and iPhone.
Size contention and size following with the real Rex app itself (both measured with a stand-in client; when the Rex app chooses to reclaim a terminal is not known), a tab whose pane is off screen when the size changes hands, and mouse input on a Rex tab after the fork change (unit-tested on the wire only).
The plain-text tail for very large scrollback, and file drop on a Rex tab.
Rex on Linux, a fish login shell, and whether real agents emit OSC 7501 while working (Claude Code reported no status at its folder-trust prompt; the other tests used a stand-in program).
The ja strings were not run through textlint; zh-Hant was linted with zhtw-mcp.
Known limits
MaxSessionscaps a tab near nine panes. A pane past that says so in its own pane; the rest of the tab is unaffected.rex block streamanswersnot implementedon preview.21); recorded as a todo waiting on upstream indocs/agents/backends-and-probe.md, with what a prototype PTY client ran into.rex __internal dial-stdio). If Rex renames it, the tab fails and shows the reason.docs/agents/panes.mdand not built.Open for the maintainer
docs/store-metadata.mdrecords the surface; the listing copy underfastlane/metadata/does not mention Rex../Tools/build.sh stringsre-sorted the whole file and marked keys stale, so its output was not kept; the catalog was instead compared with both builds'.stringsdata(no key missing, none unused).+ TAB. A Rex tab's New Tab lives in the REX panel only, following the recorded rule that remote structure belongs to the shortcut panel (herdr's+ TABrow exists for its setup-script rider). Say if it should be in+ TABtoo.client.undo_close). Not adopted: only the client that closed can undo, so it needs a row of its own, and the reopened pane's window becomes the session's active one, which every other call here avoids. Say if it is wanted.