You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating Rex to 0.1.0-preview.23 (API revision 19), Axel no longer detects that it's running inside Rex. axel now runs inline instead of opening the floating pane, and switching between sessions with Tab no longer works. Is anyone else seeing this?
Found the cause. Rex Server 0.1.0-preview.23 stopped exporting REX_SESSION in new terminals. From its changelog:
REX_BLOCK replaces REX_SESSION. New terminals no longer set REX_SESSION. Commands run in a Rex terminal find their session from REX_BLOCK, and anywhere a session goes, including -s, you can pass a full block ID to mean the session that holds that block.
A fresh pane now only gets REX_SERVER, REX_BLOCK and REX_BIN_DIR. rex::detect() in crates/rex/src/lib.rs requires REX_SESSION, so it returns None and the launcher runs inline (which is what axel doctor reports: "not detected (REX_SESSION unset)"). The session filter in crates/axel/src/cmd/reconcile.rs depends on it too, which is why Tab switching breaks.
Suggested fix: when REX_SESSION is unset but REX_BLOCK is set, resolve the session from the block, e.g. via rex whoami --json (it returns session_id), or pass the block ID wherever a session is expected, since Rex now accepts that.
Workaround in ~/.zshrc until then (confirmed new panes get REX_SESSION again):
Activity
FionnD commentedon Nov 25, 2026
Found the cause. Rex Server
0.1.0-preview.23stopped exportingREX_SESSIONin new terminals. From its changelog:A fresh pane now only gets
REX_SERVER,REX_BLOCKandREX_BIN_DIR.rex::detect()incrates/rex/src/lib.rsrequiresREX_SESSION, so it returnsNoneand the launcher runs inline (which is whataxel doctorreports: "not detected (REX_SESSION unset)"). The session filter incrates/axel/src/cmd/reconcile.rsdepends on it too, which is why Tab switching breaks.Suggested fix: when
REX_SESSIONis unset butREX_BLOCKis set, resolve the session from the block, e.g. viarex whoami --json(it returnssession_id), or pass the block ID wherever a session is expected, since Rex now accepts that.Workaround in
~/.zshrcuntil then (confirmed new panes getREX_SESSIONagain):Caveat: if a pane is later moved to another session, the exported value goes stale.
lgalabru commentedon Nov 26, 2026
thanks @FionnD, haven't updated yet, will take a look
jonleopard commentedon Nov 26, 2026
Had this happen as well after the recent Rex updates. Some upstream Rex changes caused some breakage. Submitting #4 for your consideration @lgalabru