@vibelord/lanes 1.8.0 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/payload/lanes/README.md +29 -11
- package/payload/lanes/VERSION +1 -1
- package/payload/lanes/bin/lanes +159 -59
- package/payload/lanes/bin-rs/BINARIES.json +2 -17
- package/payload/lanes/client/lanes-launch +51 -2
- package/payload/lanes/container/lane +142 -19
- package/payload/lanes/container/lane-mcp +168 -55
- package/payload/lanes/container/lane-peerd +6 -6
- package/payload/lanes/container/lane-signal +48 -3
- package/payload/lanes/container/lane_core.py +1040 -164
- package/payload/lanes/container/throttle-pulse +13 -4
- package/payload/lanes/docs/AGENTS-lanes.md +15 -7
- package/payload/lanes/docs/ARCHITECTURE.md +478 -101
- package/payload/lanes/docs/DESIGN.md +7 -2
- package/payload/lanes/docs/INSTALL.md +20 -3
- package/payload/lanes/docs/PLAN-1.9.1-SIDEBAR-CODEX.md +128 -0
- package/payload/lanes/docs/RUNBOOK.md +1428 -107
- package/payload/lanes/docs/USERGUIDE.md +488 -86
- package/payload/lanes/holders/tmux.sh +3 -3
- package/payload/lanes/install/services.py +68 -11
- package/payload/lanes/libexec/agent_state.py +2 -5
- package/payload/lanes/libexec/attach.py +11 -3
- package/payload/lanes/libexec/cursor_sync.py +22 -2
- package/payload/lanes/libexec/docsd.py +38 -4
- package/payload/lanes/libexec/lanes_lib.py +377 -39
- package/payload/lanes/libexec/mdlite.py +43 -3
- package/payload/lanes/libexec/notify.py +69 -26
- package/payload/lanes/libexec/registrations.py +5 -0
- package/payload/lanes/libexec/session_actions.py +114 -27
- package/payload/lanes/libexec/sidebar.py +246 -64
- package/payload/lanes/libexec/site_hooks.py +65 -0
- package/payload/lanes/libexec/statusd.py +139 -189
- package/payload/lanes/libexec/studio_host.py +8 -2
- package/payload/lanes/libexec/tokens.py +6 -2
- package/payload/lanes/libexec/update.py +13 -5
- package/payload/lanes/libexec/view.sh +39 -4
- package/payload/lanes/libexec/workspace_keys.py +54 -0
- package/payload/lanes/site/protocol.py +15 -5
- package/payload/lanes/site/relay.py +5 -2
- package/payload/lanes/site/server.py +29 -18
- package/payload/lanes/systemd/lanes-economy.service +3 -1
- package/payload/lanes/tokens/README.md +10 -0
- package/payload/lanes/tokens/generate.py +1 -1
- package/payload/lanes/web/Caddyfile +9 -2
- package/payload/lanes/web/README.md +2410 -95
- package/payload/lanes/web/browser.css +2 -0
- package/payload/lanes/web/browser.js +18 -6
- package/payload/lanes/web/directory.js +1 -1
- package/payload/lanes/web/docs.js +23 -0
- package/payload/lanes/web/links.js +157 -0
- package/payload/lanes/web/manifest.webmanifest +0 -2
- package/payload/lanes/web/mobile.css +30 -32
- package/payload/lanes/web/mobile.js +286 -227
- package/payload/lanes/web/upload.js +65 -22
- package/payload/lanes/web/workspace-keys.js +65 -0
- package/payload/lanes/zellij/config.kdl +1 -1
- package/payload/manifest.json +5 -22
- package/payload/lanes/bin-rs/THIRD-PARTY-NOTICES +0 -18953
- package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-hook +0 -0
- package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-terminal +0 -0
|
@@ -470,7 +470,9 @@ reports as `FAIL`:
|
|
|
470
470
|
can: a view whose tabs the new release lays out differently is rebuilt when no client is attached to it; one you are
|
|
471
471
|
looking at keeps running and its sidebar footer says `update ready · reload (r)` — press `r` in the sidebar (or run
|
|
472
472
|
`lanes rebuild <device>`) when it suits you: the window reconnects. Close the window instead and
|
|
473
|
-
`lanes-ensure.timer` rebuilds it within a minute. A
|
|
473
|
+
`lanes-ensure.timer` rebuilds it within a minute. A phone's picker says ` update ready` alone, because `r` types
|
|
474
|
+
there (E2, BEY-8667; not yet checked on a device): run `lanes rebuild <device>`, or close the page and let the timer
|
|
475
|
+
do it; a tap for it is a follow-up (BEY-8675). A full `--server` install does not run that step: run `lanes
|
|
474
476
|
ensure --if-layout-changed` yourself afterwards.
|
|
475
477
|
A layout built by 1.2.0 or later names its sidebar and viewports through `~/.local/share/lanes/current`, so running
|
|
476
478
|
views move onto the new release by themselves: each sidebar notices the new version within 30 s and, as soon as
|
|
@@ -537,8 +539,9 @@ would put the bad release back, is refused (install it by hand with `npx @vibelo
|
|
|
537
539
|
- The sidebar: `?` shows `lanes <installed> · view <running>` on the key sheet's first row. A server update installs a
|
|
538
540
|
new tree and points `~/.local/share/lanes/current` at it, while each running sidebar keeps the tree it started from;
|
|
539
541
|
until it runs the new one its footer says ` server 1.2.0 · view 1.1.0 — press ?` (below the health banner; at 36
|
|
540
|
-
columns ` —
|
|
541
|
-
|
|
542
|
+
columns ` — ?`; on a phone the two versions alone, since it has no `?` sheet, E2, not yet checked on a device). The
|
|
543
|
+
installed version is read every 30 s, so the note appears within half a minute. A checkout install is its own tree
|
|
544
|
+
and never shows it.
|
|
542
545
|
- `lanes hello [device]` on the server prints `ok device=<device> version=<version> boards=<n>`. The client
|
|
543
546
|
installer calls it to prove the SSH path, the key and the server version; an answer without that greeting is
|
|
544
547
|
reported as "an older server?". A client that adds its own release, `lanes hello --client-version 1.1.0`, gets
|
|
@@ -685,7 +688,8 @@ drops, the server drops a slow client, or the server refuses, it says so, waits
|
|
|
685
688
|
configuration defines, first `lanes-ip` (the server's tailnet address, when `lanes` names it by its MagicDNS name), then
|
|
686
689
|
`lanes-public` (when the site defines one), and after the last it goes back to `lanes`. Exits 64–78 are server refusals and retry after 60 s. Its log is
|
|
687
690
|
`~/.local/state/lanes-client/launch-<target>.log`. When the server rebuilt the view, the client reconnects straight
|
|
688
|
-
away. Before it connects, a window may first
|
|
691
|
+
away. Keys typed before the display appears are dropped; type after it paints. Before it connects, a window may first
|
|
692
|
+
update its own client from npm ([Versions](#versions)).
|
|
689
693
|
|
|
690
694
|
A window on a slow link (a laptop over the tailnet with a large window, where the view repaints faster than the link
|
|
691
695
|
carries it) stays connected. Once more than 1 MiB of the view's output is waiting for your terminal, the server drops
|
|
@@ -762,7 +766,9 @@ browser view). `lanes user show <login>` prints it.
|
|
|
762
766
|
registered lane out of your lists (a running unregistered session is always listed); `unpin` and `show` undo them.
|
|
763
767
|
The sidebar keys do the same where you are looking: `p` pins or unpins the cursor lane, `h` hides it and `H` hides
|
|
764
768
|
this board (each asks first; Enter confirms, since 1.7.7) and `o` shows what you hid, faint, until you press it
|
|
765
|
-
again; while lanes are hidden the list ends with `── hidden (n) · o shows them`.
|
|
769
|
+
again; while lanes are hidden the list ends with `── hidden (n) · o shows them`. On a phone's picker those letters
|
|
770
|
+
type since E2 (BEY-8667; not yet checked on a device): there the hidden row says `tap shows them` and is tapped
|
|
771
|
+
instead of `o`, and the rest is done with the commands above. Every sidebar of yours
|
|
766
772
|
follows within a tick (pinned lanes first, hidden ones out); the tabs take the board order and close a hidden
|
|
767
773
|
board's tab at the next `lanes upgrade-session` — `H` starts one at once, and every `lanes sync` (2-minute timer) and
|
|
768
774
|
`lanes ensure` (1-minute timer) runs one.
|
|
@@ -854,11 +860,11 @@ Top to bottom, a desktop sidebar is:
|
|
|
854
860
|
(needs approval, needs input, working, done; zeros left out; a `done` you have opened is not counted). Without
|
|
855
861
|
agents it says `N lanes`. The counts are dimmed while the footer warns that status is old.
|
|
856
862
|
2. **Body**: **Needs you** (`◆` `✗` `◇`, most urgent first, then in the order the lanes started needing you),
|
|
857
|
-
**Working** (in the order they started working), **Done** (the newest first), then the workspace's other lanes
|
|
863
|
+
**Working** (in the order they started working), **Done, not seen** (the newest first), then the workspace's other lanes
|
|
858
864
|
under its own title (`── Sakio (25) ──`). Once any lane runs an agent, the **Needs you** and **Working** headers
|
|
859
865
|
stay on screen even when empty (`── ▸ Working (0)`, glyph dimmed; a header with lanes says its name in its section's
|
|
860
866
|
colour in truecolor and 256 colours), so a lane moving between them never pushes the
|
|
861
|
-
rows below it around; **Done** appears only when a lane is in it. A pending approval or an error sorts to the top
|
|
867
|
+
rows below it around; **Done, not seen** appears only when a lane is in it. A pending approval or an error sorts to the top
|
|
862
868
|
of Needs you while it lasts; after that (a question, an approval prompt, the question again) the lane is back in
|
|
863
869
|
the place it entered at. A lane moves up a section at once (a question or an approval is never delayed) and down
|
|
864
870
|
only after the new state has held: 8 s to leave Needs you, 5 s to leave Working or Done (the status daemon looks
|
|
@@ -923,7 +929,12 @@ sockets repair`) · the version note ` server 1.2.0 · view 1.1.0 — press ?` w
|
|
|
923
929
|
the installed one (at 36 columns ` — ?`; section [Versions](#versions)) · ` ⚠ registry: …` · the last message · the undo offer ` Unregistered ‘name’ · z undo` (10 s after
|
|
924
930
|
`u`) · the legend ` ⏎ open · / find · x close · ? keys`. The phone
|
|
925
931
|
draws the same footer (its picker says ` Choose a workspace · Tap Cancel`, and ` Swipe to scroll · Tap to open` when
|
|
926
|
-
idle)
|
|
932
|
+
idle), save that since E2 (BEY-8667; not yet checked on a device) it names no key its picker lacks:
|
|
933
|
+
` Typing? Tap a lane to type in it`, ` update ready` with no ` · reload (r)`, and the version note with no
|
|
934
|
+
` — press ?`. An empty workspace shows `no lanes declared · + New shell` on its New shell row. Since E11a (BEY-8667; not
|
|
935
|
+
yet checked on a device) a swipe on the phone's lane list scrolls it one lane at a time and stops at both ends, and a
|
|
936
|
+
tap then opens the lane under your finger. The first part of a swipe, about 24 px, moves nothing: that is the web
|
|
937
|
+
client's own threshold before it reports any scroll, not something Lanes sets.
|
|
927
938
|
|
|
928
939
|
**Sidebar keys** (`?` shows the short form of this table in place of the list until the next key; that key only closes
|
|
929
940
|
the sheet). Its first row says which lanes: `lanes <installed version> · view <the version this sidebar runs>`. The sheet puts companion keys on one line (`J K`, `Tab S-Tab`, `/ @`, `+ U d`, `u z`, `R m`, `p o`, `h H`, `r i ?`; a `⏎` after an action — `rename ⏎`, `hide lane / tab ⏎` — means it asks first and `Enter` confirms), leaves `PageUp` / `PageDown`
|
|
@@ -945,11 +956,12 @@ to this table and ends with `Ctrl-Alt-l` — not a sidebar key but the chord tha
|
|
|
945
956
|
| `g` / `G` | First / last row |
|
|
946
957
|
| `+` | New persistent shell in this workspace |
|
|
947
958
|
| `a` | Add the cursor session to a workspace |
|
|
959
|
+
| `,` | Cycle this device's sidebar order through Attention first, Coordinator first and Pinned first. Tap Order on the phone picker. |
|
|
948
960
|
| `x` | Close the cursor session: `y` arms, `Enter` closes, any other key cancels (on a registered lane: ` registered: u to unregister first`) |
|
|
949
961
|
| `u` | Unregister the cursor session added with `a`: it moves back to **Unregistered**, still running, and the cursor goes with it; on a lane a repository's `terminals.json` declares, take its terminal out of that file |
|
|
950
962
|
| `z` | Undo that unregister (within 10 s) |
|
|
951
963
|
| `R` | Rename the cursor lane: it asks first (` › rename ‘name’? ⏎ confirms · Esc`), `Enter` opens the name field (` › Rename: …█`), any other key cancels; `Enter` in the field renames |
|
|
952
|
-
| `m` | Message the cursor lane: one line in the footer (` › Message: █`), `Enter` sends it —
|
|
964
|
+
| `m` | Message the cursor lane: one line in the footer (` › Message: █`), `Enter` sends it — into the lane's inbox, where it waits for the lane's agent; never typed into the lane (BEY-7538; ` message … queued — it waits in the lane's inbox until its agent reads it`); `Esc` or an empty line sends nothing (see **Addresses, handles and messages**) |
|
|
953
965
|
| `P` | Promote (register) the cursor session in the repository's `terminals.json`: the name first (`Enter` accepts), then `y` and `Enter` |
|
|
954
966
|
| `p` | Pin / unpin the cursor lane: on every device you own it leads its section, marked `▲` (`^` in ASCII), and never falls below `⋮ N more` |
|
|
955
967
|
| `h` | Hide the cursor lane on every device you own: it asks first (` › hide ‘name’? ⏎ confirms · Esc`), `Enter` hides it (` Hid ‘name’ · o shows it`), any other key — `y` too — cancels; on a hidden lane `o` shows, show it again at once |
|
|
@@ -998,8 +1010,10 @@ back. On a device nobody owns there is no profile: `p`, `h` and `H` say ` no own
|
|
|
998
1010
|
**Where did my lane go?** A hidden lane is never invisible (1.7.7): while you hide lanes of a workspace its list ends
|
|
999
1011
|
with one row, `── hidden (n) · o shows them` (a count, no names). If a lane vanished from every board of yours, it is
|
|
1000
1012
|
probably hidden: press `o` in the sidebar, put the cursor on it and press `h` (it shows again at once), or, on the
|
|
1001
|
-
server, run `lanes lane show <lane-id> --login <login>` (`lanes user show <login>` lists your hidden lanes).
|
|
1002
|
-
|
|
1013
|
+
server, run `lanes lane show <lane-id> --login <login>` (`lanes user show <login>` lists your hidden lanes). On the
|
|
1014
|
+
phone the row says `hidden (n) · tap shows them`, and a tap on it shows them, faint (E2, BEY-8667; not yet checked on
|
|
1015
|
+
a device); the phone's `h` types, so show one for good with `lanes lane show` on the server. Before 1.7.7 a sentence
|
|
1016
|
+
typed into the sidebar could hide the cursor lane with its first `h`; since then `h` asks first (see
|
|
1003
1017
|
**A sentence typed into the sidebar is no command** below).
|
|
1004
1018
|
|
|
1005
1019
|
Mouse: a click opens a lane; the wheel moves the cursor three rows; a click on `×` asks to close, on `+` starts Add to
|
|
@@ -1036,10 +1050,36 @@ own, and the rest kept acting (`o`, `p`, `m`, `R`). Now:
|
|
|
1036
1050
|
nothing — that `Enter` cancels, so a second one opens the lane. A field a letter opened (`m`'s message line, `P`'s
|
|
1037
1051
|
name) takes no letter in that time: `make it so⏎` sends nothing. `Esc` cancels at any time. `x` still asks for `y`,
|
|
1038
1052
|
then `Enter`.
|
|
1053
|
+
- On a phone picker the rule is stricter (E2, BEY-8667; read from the code and the unit suite, which feeds the sidebar
|
|
1054
|
+
the bytes **Type here** sends; not yet checked on a device). **Type here** sends one letter at a time, at a person's
|
|
1055
|
+
pace, so there the first printable key starts the typing state and acts on nothing. The footer says
|
|
1056
|
+
` Typing? Tap a lane to type in it`. The state lasts until 2 s of silence, `Enter`, a tap, or `Esc` from a hardware
|
|
1057
|
+
keyboard. An `Enter` within 2 s of the last letter ends the sentence and opens nothing. A second `Enter` within 2 s
|
|
1058
|
+
of that one opens nothing either: a blank line acts on nothing. After 2 s of silence `Enter` opens the cursor lane.
|
|
1059
|
+
A tap ends the state, then does what a tap does: a tap on a lane opens it, and **Type here** then types into it.
|
|
1060
|
+
- On the phone `j`, `k` and `/` are still never counted. `j` and `k` move the cursor, so a sentence that starts with
|
|
1061
|
+
one moves it first (INFERRED from the code). `/` opens the filter: `/compact` then `Enter` filters for `compact`,
|
|
1062
|
+
and that `Enter` opens the top match, if a lane matches. `Space`, `y`, `+` and `r` count like any letter. `r` types
|
|
1063
|
+
even while an update is ready, so the phone's footer then says ` update ready` and names no `(r)`. Such a view is
|
|
1064
|
+
rebuilt by `lanes-ensure.timer` within a minute once no client is attached, or by `lanes rebuild <device>` on the
|
|
1065
|
+
server; a tap for it is a follow-up (BEY-8675).
|
|
1066
|
+
- The phone's questions still take `y` then `⏎` from the quick row. A close question (a tap on `×`) takes `y` then
|
|
1067
|
+
`⏎` as on the desktop: they close, and any other key cancels. A tap on `×` right after typed letters ends their
|
|
1068
|
+
typing state first, so its `y` then `⏎` still close. At Add to workspace `y` is not counted, so `y` then `⏎` adds the
|
|
1069
|
+
session to the workspace the cursor is on; `j` and `k` move the cursor, and every other letter types.
|
|
1070
|
+
- So the phone picker takes taps, not letter commands: `p`, `h`, `H`, `o`, `R`, `P`, `u`, `z`, `m` and the rest type.
|
|
1071
|
+
Do their work on a desktop, or on the server: `lanes lane pin|unpin|hide|show <lane-id> --login <login>` to pin,
|
|
1072
|
+
hide, or show a hidden lane for good; `lanes workspaces hide <id> --login <login>` for `H` (`--login` names the
|
|
1073
|
+
person, as no `$LANES_DEVICE` does outside a view); `lanes rename <lane-id> <new-name>` for `R`;
|
|
1074
|
+
`lanes unregister <lane-id>` for `u` (`lanes register <lane-id>` undoes it); `lanes message <lane-id> <text>` for
|
|
1075
|
+
`m`. The phone's hidden row is tapped instead of `o` ([Phone controls](#phone-controls)). A tablet laid out as a
|
|
1076
|
+
phone (`--mobile`) follows the phone rule too, its hardware keyboard included (INFERRED from the code). The desktop
|
|
1077
|
+
is unchanged.
|
|
1039
1078
|
|
|
1040
1079
|
The rule lives in `lanes/libexec/sidebar.py` (`BURST_WINDOW_S`, `BURST_KEYS`, `BURST_QUIET_S`, `BURST_FREE`,
|
|
1041
|
-
`INTENT_VERBS`); `tests/unit/test_sidebar.py` `TypedSentence`
|
|
1042
|
-
|
|
1080
|
+
`INTENT_VERBS`, and the phone's `PHONE_QUIET_S` and `PHONE_BURST_FREE`); `tests/unit/test_sidebar.py` `TypedSentence`
|
|
1081
|
+
types the sentences at those speeds (on the phone, about a letter every 0.3 s) and `test_sidebar_burst_sabotage.py`
|
|
1082
|
+
proves each detector fails without its mechanism.
|
|
1043
1083
|
|
|
1044
1084
|
**The footer says when the keyboard is on the sidebar.** While it is, the legend line reads
|
|
1045
1085
|
` ▌ keys go to sidebar · Esc → lane` in the accent colour (` | keys go to sidebar - Esc -> lane` in ASCII) instead of
|
|
@@ -1080,8 +1120,9 @@ coming back does not clear it.
|
|
|
1080
1120
|
with it; a session that no longer runs leaves the list. The footer
|
|
1081
1121
|
offers ` Unregistered ‘name’ · z undo`, and `z` within 10 seconds adds it back exactly as it was — unless the session
|
|
1082
1122
|
was closed and started again under the same name meanwhile, which the undo refuses (`a` adds the new one). `u` hands
|
|
1083
|
-
the keyboard back to the lane like every action, so press `z` on the sidebar (`Ctrl-Alt-l` first
|
|
1084
|
-
|
|
1123
|
+
the keyboard back to the lane like every action, so press `z` on the sidebar (`Ctrl-Alt-l` first). On a phone `u`
|
|
1124
|
+
and `z` type since E2 (BEY-8667): run `lanes unregister <lane-id>` on the server, and `lanes register <lane-id>` to
|
|
1125
|
+
undo it. On a busy host where tmux cannot be asked about the session, `u` changes nothing and says
|
|
1085
1126
|
` Session could not be checked; nothing was unregistered`; press it again in a moment. If the record was saved but the
|
|
1086
1127
|
workspace list could not be published (a full disk), it says ` Unregistered; run lanes sync to finish publishing: …`
|
|
1087
1128
|
and `z` still undoes it. On a lane a repository's `terminals.json` declares, `u` takes its terminal out of that file
|
|
@@ -1248,7 +1289,12 @@ The server prepares the view `<your device>-phone` (for example `anna-mbp-phone`
|
|
|
1248
1289
|
Tailscale Serve forward private HTTPS 8443 to them (added when missing), prints the private URL with a QR code of it
|
|
1249
1290
|
and then a fresh token. On the phone: connect Tailscale, scan the code with the camera (or open the printed
|
|
1250
1291
|
`https://<server>.<tailnet>.ts.net:8443/<your device>-phone` in Safari), paste only the token value (Zellij prints
|
|
1251
|
-
`NAME: TOKEN`), then **Share → Add to Home Screen
|
|
1292
|
+
`NAME: TOKEN`), then **Share → Add to Home Screen** on that plain address. Add it before anything follows a `#` in the
|
|
1293
|
+
address (with `#lanes` or `#inbox` after it, the app would open that list at every launch, INFERRED) and before any
|
|
1294
|
+
**Switch session** (that puts another session in the address). The icon opens the view you added it from, and each
|
|
1295
|
+
view you add is its own app (from the web manifest's defaults; not yet checked on a device). An icon that opens the
|
|
1296
|
+
view `phone`, or a bare shell, was added under an older release: remove it from the Home Screen and add it again from
|
|
1297
|
+
your view's address.
|
|
1252
1298
|
|
|
1253
1299
|
`lanes-launch web phone|laptop|<device> [--desktop|--mobile] [--no-qr]` runs `lanes web <view> <layout> --token
|
|
1254
1300
|
--default-device <your device>` on the server over `ssh -t lanes`:
|
|
@@ -1310,6 +1356,13 @@ anything else; when it cannot make the mapping it exits 64 and prints the operat
|
|
|
1310
1356
|
records the view's base machine; `--print-only` records nothing. Without a Tailscale name the URL is
|
|
1311
1357
|
`http://127.0.0.1:8083/<device>`, which opens only on the host itself, and Serve is not touched.
|
|
1312
1358
|
|
|
1359
|
+
A laptop's browser view goes back to where you were (Ed, BEY-8667). Each address remembers, in this browser, the
|
|
1360
|
+
workspace and lane it showed last; the page goes back to them when it loads (a reload, or the URL opened again). It
|
|
1361
|
+
remembers what you pick in the **Lanes** bar and what you move to inside Zellij, and nothing is typed into the lane.
|
|
1362
|
+
If that lane is gone (or its pane has another title now), the page goes to its workspace; if the workspace is gone,
|
|
1363
|
+
it opens where Zellij puts it. A tablet keeps its last tab the phone's way (above). The laptop's bar shows no
|
|
1364
|
+
connection status. None of this is checked in a browser yet.
|
|
1365
|
+
|
|
1313
1366
|
On a captive-portal network (hotel, train, aircraft): complete the portal sign-in first, then connect Tailscale, then
|
|
1314
1367
|
open the URL and paste the token.
|
|
1315
1368
|
|
|
@@ -1341,36 +1394,244 @@ The frontend chooses once per page load, by capability:
|
|
|
1341
1394
|
|
|
1342
1395
|
| Mode | Chosen when | What you get |
|
|
1343
1396
|
| --- | --- | --- |
|
|
1344
|
-
| Phone | An iPhone / iPod / Android phone user agent, or a touch screen at most 600 px wide or 500 px tall | The phone shell: **Workspaces**, **Lanes**, **Panes
|
|
1397
|
+
| Phone | An iPhone / iPod / Android phone user agent, or a touch screen at most 600 px wide or 500 px tall | The phone shell: **Workspaces**, **Lanes**, **Panes** (since E5a, BEY-8667, only on a tab with two panes or more), **Type here** and **More** controls; the lane picker |
|
|
1345
1398
|
| Tablet | Any other touch screen | The same shell with the controls in a top bar and the workspace list as a left panel; the whole tab is shown, so a desktop view's sidebar sits beside its lanes (**More → Single pane** shows one pane for that load) |
|
|
1346
1399
|
| Desktop | A fine pointer (mouse, trackpad) | The plain Zellij web client plus a **Lanes** chip (top right) that opens workspace and lane pickers and a **Docs** link (the docs page in a new tab) in an overlay bar; the terminal keeps its size and every key |
|
|
1347
1400
|
|
|
1348
1401
|
### Phone controls
|
|
1349
1402
|
|
|
1350
|
-
-
|
|
1351
|
-
counts, `◆
|
|
1352
|
-
|
|
1403
|
+
- The header names the work. At the top is the workspace name, and under it the lane (the lane's title; on the
|
|
1404
|
+
picker its counts, `◆1 ◇2`); **Copy**, **Paste** and **More** sit beside them, and there is no Lanes mark. On a
|
|
1405
|
+
phone these three are icons without words; their names (`Copy screen`, `Paste`, `More options`) are given to
|
|
1406
|
+
VoiceOver. (Changed in E1a, BEY-8667: **Paste** is in a phone's header again; from slice 2a until E1a it was on the
|
|
1407
|
+
key strip.) The lane's title there is new in E6 (BEY-8667). Before it, the header named the workspace twice on every
|
|
1408
|
+
lane. A phone set up before E6 shows the lane after it is rebuilt: the update rebuilds a view that no client has open,
|
|
1409
|
+
an open one says `update ready` in its lane list's footer (rebuilt when its last client leaves), and `lanes doctor`
|
|
1410
|
+
names each phone still waiting
|
|
1411
|
+
(`lanes rebuild <device>`). With no lane open, the line names the workspace, and the screen names no sidebar. Tapping
|
|
1412
|
+
the names opens the workspace sheet. Under the lane is a status line: every word the phone
|
|
1413
|
+
shows appears there, small, on one line, and the workspace and the lane stay in view above it. Some words stay
|
|
1414
|
+
until your next key that sends something: `Not sent: view changed`, `No text to paste`, `Open a lane to paste`,
|
|
1415
|
+
`Paste unconfirmed` and `Clipboard blocked`. `Not sent: no connection`, shown while the connection is still opening,
|
|
1416
|
+
changes to `Not sent: try again` when
|
|
1417
|
+
the connection opens: the key was dropped, so press it again (that word stays until your next key that sends
|
|
1418
|
+
something, like the others). Once the connection is lost, any of
|
|
1419
|
+
these words shows for about 1.6 s only, and then `Disconnected` or `Check last input` is back (see below). A key on the strip that sends (`⏎`, `↑`, `↓`, `Esc`, a held `^C`), the
|
|
1420
|
+
panel's `y` or `n`, **Paste** or a suggestion word clears them. **Keys**, a short tap on `^C`, a single letter typed
|
|
1421
|
+
on the keyboard, and the panel's **TAB**, **CTRL**, **ALT** and arrows do not. Other words pass by themselves:
|
|
1422
|
+
`Copied`, `Paste sent` and `Hold to send` after about 1.6 s, `Press again to send` after about 4 s, and a word that
|
|
1423
|
+
was staying comes back after them, unless a key was sent meanwhile. The status line is a live region, so VoiceOver
|
|
1424
|
+
should speak each word as it appears (read from the code, not yet checked on a device). In landscape the header is
|
|
1425
|
+
one row, and the word stands after the buttons; on a tablet the header is one row too, with **Copy**, **Paste** and
|
|
1426
|
+
the dock's controls in it. In both a word takes its room from the names, so on a narrow iPad a word that stays can
|
|
1427
|
+
hide the workspace and lane names until it goes (read from the layout rules, not yet checked on a device).
|
|
1428
|
+
- **Workspaces** (or the workspace and lane names in the header) opens the workspace sheet with a search field. Each
|
|
1429
|
+
card shows its counts in words (`◆ 1 need approval · ◇ 2 need you`) on one line; on a narrow phone the last counts
|
|
1430
|
+
can be cut, while the card's name keeps them all for VoiceOver (not yet checked on a device). The sheet says how
|
|
1431
|
+
many workspaces it shows
|
|
1432
|
+
(`13 workspaces`, or `3 of 13 workspaces` while you search). The list holds still while counts change, and the search
|
|
1433
|
+
stays; when a workspace is added, closed, renamed or moved, the list is drawn again. A card opens the tab you last
|
|
1434
|
+
had in that workspace (E5a, BEY-8667; below). **Lanes** goes between the current workspace's lane picker and its
|
|
1435
|
+
lane tab; **Panes** switches panes, and shows only where a tab has two panes or more; **More** opens
|
|
1436
|
+
the client's own menu, where Lanes adds **Text size** (remembered on the phone; since E9, BEY-8667, a pinch on the
|
|
1437
|
+
terminal is kept as the Text size, between 14 and 24 px, and a zoom of the page itself no longer shrinks the lane),
|
|
1438
|
+
above it **Docs** — the docs page,
|
|
1353
1439
|
`/lanes-docs/`, in a new tab, so the terminal stays where it is — and at the top the server's release
|
|
1354
|
-
(**Lanes v1.2.0**, see [Versions](#versions)). The light/dark toggle repaints the whole terminal.
|
|
1440
|
+
(**Lanes v1.2.0**, see [Versions](#versions)). The light/dark toggle repaints the whole terminal. Since E8 (BEY-8667)
|
|
1441
|
+
an iPhone or iPad draws the terminal in the system monospace (SF Mono) instead of Courier; Android and other browsers
|
|
1442
|
+
without `ui-monospace` keep their default monospace, so this is no change there.
|
|
1443
|
+
- The page goes back to where you were (E1c-2, BEY-8667). Each address remembers the last tab it showed, in this
|
|
1444
|
+
browser on this phone: a workspace's lane tab or its lane list. The page goes back to that tab when it loads: after
|
|
1445
|
+
a reload, after Zellij's own reload when it reconnects, or when iOS starts the page or the app afresh (you swiped it
|
|
1446
|
+
away, or iOS discarded it). The tab shows the lane the server kept there. Nothing is typed into the lane. A page
|
|
1447
|
+
that was only in the background stays as it was, showing **Disconnected**, until it is reloaded (until E3 only by
|
|
1448
|
+
you; since E3, see the note at the end of this item).
|
|
1449
|
+
For the Home Screen app this works once the Home Screen fix (E1c-1, PR 1148) is in; until then the icon opens
|
|
1450
|
+
another address. If that workspace is gone (removed, hidden or renamed), the page opens where Zellij puts it,
|
|
1451
|
+
likely the first workspace's lane list, and works as before. A page does not follow your laptop or another tab: it
|
|
1452
|
+
goes back only when it loads. If the browser blocks storage, nothing is remembered and the page opens where Zellij
|
|
1453
|
+
puts it. None of this is checked on a device yet. (Changed in E3, BEY-8667: a page that comes back with its
|
|
1454
|
+
connection gone now checks the server and reloads itself in most cases, and so goes back to that tab; where it does
|
|
1455
|
+
not, **Reconnect** in the header does it. See the connection, below.) (Changed in E5a, BEY-8667: in the same place
|
|
1456
|
+
the page also remembers the last tab of each workspace, which its card opens; see moving between workspaces, below.)
|
|
1457
|
+
- An address can name a workspace (E4, BEY-8667; read from the code, not yet checked on a device). Open
|
|
1458
|
+
`https://<server>:8443/<device>-phone?ws=<workspace>`, the workspace's name as its card shows it, with a space
|
|
1459
|
+
written `%20` (`?ws=BW%20Tools`): when the page loads it goes once to that workspace's lane list, as a tap on its
|
|
1460
|
+
card did before E5a (since E5a a card opens the tab you last had there, and `?ws=` still opens the lane list), and
|
|
1461
|
+
nothing is typed into any lane. The name wins over the tab the page remembers (above); then it leaves
|
|
1462
|
+
the address, so a reload stays on the view's own address and on that lane list. A name no lane list carries (a
|
|
1463
|
+
hidden workspace, or one renamed or removed since) is ignored: the page loads as it would without it, back to the
|
|
1464
|
+
tab it remembers, if any. An empty `?ws=` does nothing and stays in the address. A tablet follows the name too; a
|
|
1465
|
+
desktop browser ignores it. A push can open such an address when the server sets `lane_url` (section 8). Its **Open
|
|
1466
|
+
lane** opens the workspace's lane list, not the lane itself: that is the default of the owner's question Q4
|
|
1467
|
+
(BEY-8670), which is still open. A push you tap opens Safari, probably not the Home Screen app (INFERRED, not yet
|
|
1468
|
+
checked), so a Safari that has not logged in to this server asks for the login token first, then opens the lane
|
|
1469
|
+
list.
|
|
1470
|
+
- Moving between workspaces (E5a, BEY-8667; read from the code, not yet checked on a device). **Lanes** takes you
|
|
1471
|
+
from a workspace's lane list to its lane tab, showing the lane the server keeps there, and back again: one tap each
|
|
1472
|
+
way, and nothing is typed. On a workspace with no lane list (an SSH workspace) it opens the workspace sheet, as
|
|
1473
|
+
before; on a lane list whose lane tab was closed it does nothing, until Lanes adds the tab back on its own within
|
|
1474
|
+
about a minute (INFERRED). VoiceOver should read **Lanes** as selected on the lane list (INFERRED; RUNBOOK step
|
|
1475
|
+
127). A card in the workspace sheet opens the tab you last had in that workspace: its lane tab if you were
|
|
1476
|
+
there last, its lane list if that was last. The card of the workspace you are in only closes the sheet and leaves
|
|
1477
|
+
you where you are. A workspace you have not opened at this address since this change, or whose remembered tab is
|
|
1478
|
+
gone, opens its lane list; so does a workspace renamed since, until you open it under its new name. The page keeps
|
|
1479
|
+
this beside the last tab, per address and in this browser, so it lasts
|
|
1480
|
+
across a reload; if the browser blocks storage, only until the page reloads. A page does not follow your laptop or
|
|
1481
|
+
another tab: two Safari tabs on one view share the memory, the last move wins, and each reads it only when it
|
|
1482
|
+
loads (the default of the owner's question Q2, BEY-8669). An address with `?ws=` still opens the lane list (Q4,
|
|
1483
|
+
BEY-8670). **Panes** shows only on a tab with two panes or more (an SSH workspace with two panes or more, or a lane
|
|
1484
|
+
tab after **More → Change Pane → + New Pane**), and there it still lists every pane of the view; on a lane tab
|
|
1485
|
+
with one pane it is gone and **Type here** is wider (INFERRED; RUNBOOK step 132). **More → Change Pane** still
|
|
1486
|
+
lists every pane. When **Lanes**, a card or a reload
|
|
1487
|
+
takes you to a tab, you land on its first pane, so on a lane tab with two panes you land on the first. The count on
|
|
1488
|
+
**Workspaces** of what needs you in the other workspaces is later work (E5b, beside BEY-8630).
|
|
1355
1489
|
- The keyboard opens only when you tap **Type here** or another input. Swipes, live updates and reconnects leave it
|
|
1356
1490
|
closed. **Type here** is an ordinary text field: the normal keyboard with its suggestion bar, never the password
|
|
1357
|
-
keyboard. A suggestion you tap arrives as the whole word
|
|
1491
|
+
keyboard. A suggestion you tap arrives as the whole word. To paste, tap **Paste** in the header, with the keyboard up
|
|
1492
|
+
or down. A long press on **Type here** may also offer iOS's own **Paste** (not yet checked on a device; while you
|
|
1493
|
+
type, the strip lies over the field). (Changed in E1a, BEY-8667: from slice 2a until E1a a phone's **Paste** was on
|
|
1494
|
+
the key strip, drawn only while the on-screen keyboard was up.)
|
|
1358
1495
|
- The lane picker shows three rows per lane: the viewing mark, agent glyph and name; then what the agent needs, since
|
|
1359
1496
|
when and the harness (`Needs you · 25m · claude`; a Claude lane whose background subagents or jobs still run after
|
|
1360
1497
|
its turn says `Delegating · 3m · claude`; a shell says `Quiet · 2h`); then the agent's task. Its first line
|
|
1361
1498
|
counts the lanes that need you (`◆1 need approval · ◇2 need you · ▸6 working`). The footer says
|
|
1362
|
-
`Swipe to scroll · Tap to open`, and otherwise
|
|
1363
|
-
|
|
1499
|
+
`Swipe to scroll · Tap to open`, and otherwise what the desktop footer says: the close confirmation, Add to
|
|
1500
|
+
workspace, the filter and its match count, a banner, the last message. Since E2 (BEY-8667) it names no key the
|
|
1501
|
+
phone lacks: ` Typing? Tap a lane to type in it`, ` update ready` with no ` · reload (r)`, and the version note
|
|
1502
|
+
with no ` — press ?`.
|
|
1364
1503
|
The picker has no upload strip.
|
|
1365
|
-
- On a lane's own tab a
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1504
|
+
- On a lane's own tab a strip of keys sits on the dock: `⏎ ↑ ↓ Esc ^C Keys`. A tap on `⏎`, `↑`, `↓` or `Esc` sends
|
|
1505
|
+
that key to the lane once, without opening the keyboard; **Keys** sends nothing (it opens the panel below); `^C`
|
|
1506
|
+
needs a 400 ms hold (a short tap says "Hold to send" on the header's status line for about 1.6 s). Not yet checked on a device: a press that no touch made is meant to work like any button, once.
|
|
1507
|
+
That is a click with no pointer behind it, which is what a keyboard's Space or Return gives (Tab to the key first,
|
|
1508
|
+
where iOS lets you). `^C` then takes two presses: the first says "Press again to send" for about 4 s, and a second
|
|
1509
|
+
press while that shows sends it. Holding Return down on a key is not meant to repeat it. Whether VoiceOver's
|
|
1510
|
+
double-tap works the same way, works only as a hold, or does nothing is not known yet. "Press again to send" is on
|
|
1511
|
+
the status line, which VoiceOver should speak (not yet checked on a device).
|
|
1512
|
+
- **Keys** opens a panel of rarer keys above the strip: `y TAB CTRL ALT ← → n`. `y` and `n` send with one tap each,
|
|
1513
|
+
as plain letters (they used to sit on the strip, `n` with a hold). While the panel is open, `y` and `n` send at one
|
|
1514
|
+
tap with no hold: close **Keys** when you are done. **CTRL** or **ALT** lights up and applies to the next typed
|
|
1515
|
+
letter, panel `y` or `n`, or panel arrow, then turns off; **CTRL** then `c` sends Ctrl-C, and **CTRL** then the
|
|
1516
|
+
panel's `y` sends Ctrl-Y. **TAB** takes only **ALT**: **CTRL** then **TAB** sends a plain Tab and still turns
|
|
1517
|
+
**CTRL** off.
|
|
1518
|
+
Tap **Keys** again to close the panel; it also closes by itself when you move to another lane, pane or the picker,
|
|
1519
|
+
and closing it turns off a lit **CTRL** or **ALT**. Nothing in the panel opens or closes the keyboard (not yet
|
|
1520
|
+
checked on a device). `⏎`, the arrows, `Esc` and `^C` on the strip do not take **CTRL** or **ALT**, and a lit one
|
|
1521
|
+
stays lit after them; `-` is on the keyboard.
|
|
1522
|
+
- While you type in **Type here**, the strip lies on the dock's row, so one row of keys sits on the keyboard (from the
|
|
1523
|
+
page's layout rules; not yet checked on a device). `⏎` stays on that row, and **Paste** stays in the header beside
|
|
1524
|
+
**Copy**. A **Done** button takes the place of **More** in the header: it closes the keyboard. (Changed in E1a,
|
|
1525
|
+
BEY-8667: from slice 2a until E1a **Paste** took the place of `⏎` on that row.) Typing in
|
|
1526
|
+
the picker's filter keeps the strip above the dock, so the filter stays visible. While you type on a phone,
|
|
1527
|
+
**Workspaces**, **Lanes**, **Panes** and **More** are out of reach under the strip and **Done**: tap **Done** first,
|
|
1528
|
+
or the workspace and lane names for the workspace sheet. On a tablet **Done** comes up after the controls in the top bar, in **More**'s
|
|
1529
|
+
place, so the controls should not move.
|
|
1530
|
+
- If a key, a filter letter or a paste cannot be handed to the connection (it is gone, or still opening), the status
|
|
1531
|
+
line says `Not sent: no connection`, and nothing is sent later on its own. While the connection is still opening
|
|
1532
|
+
the word stays, and it changes to `Not sent: try again` when the connection opens; once the connection is lost it shows for about 1.6 s, and
|
|
1533
|
+
then `Disconnected` or `Check last input` is back (below).
|
|
1534
|
+
- **Copy** and **Paste** sit in the header, side by side before **More**, on a phone as on a tablet: with the
|
|
1535
|
+
keyboard up or down, and with a hardware keyboard. (Changed in E1a, BEY-8667: from slice 2a until E1a a phone drew
|
|
1536
|
+
**Paste** on the key strip only while the on-screen keyboard was up, so with a hardware keyboard it had no **Paste**
|
|
1537
|
+
key.) With a hardware keyboard, Cmd-V in **Type here** pastes too (not yet checked on a device). **Copy** puts the
|
|
1538
|
+
text on the screen on the clipboard
|
|
1369
1539
|
(Zellij's frames and bars included; a selection instead, when the terminal has one). **Paste** sends the clipboard to
|
|
1370
|
-
the lane as one paste, line breaks kept; iOS first shows its own **Paste** button to confirm. The
|
|
1371
|
-
`Copied
|
|
1540
|
+
the lane as one paste, line breaks kept; iOS first shows its own **Paste** button to confirm. The status line then
|
|
1541
|
+
says `Copied` or `Clipboard blocked` for **Copy**, and for **Paste** one of: `Paste sent` (handed to a connection that
|
|
1542
|
+
looked open; the server does not confirm it, and a connection whose network has just gone can still look open),
|
|
1543
|
+
`Paste unconfirmed` (handed over, but the page could not watch the connection), `Not sent: no connection`,
|
|
1544
|
+
`Not sent: view changed` (the current workspace tab or pane, or the picker, changed between your tap and the text's
|
|
1545
|
+
arrival; nothing was sent), `No text to paste` or `Clipboard blocked`. The page sees the tab and the pane,
|
|
1546
|
+
not the lane: if another lane is shown in the same pane by then (you picked another lane and came back), that is
|
|
1547
|
+
not noticed and the paste goes to that lane. A paste into **Type here** says the same words. **Paste** leaves the
|
|
1548
|
+
keyboard open; **Copy** closes it, because it opens the **Captured screen** sheet (below). (Changed in E1a,
|
|
1549
|
+
BEY-8667: until E1a neither closed the keyboard.) The lane picker takes no paste (it would read
|
|
1372
1550
|
it as a file drop): there **Paste** is hidden, and a paste into **Type here** says `Open a lane to paste`.
|
|
1551
|
+
- **Copy** also opens the **Captured screen** sheet (E1a, BEY-8667). It holds, as plain text, exactly what **Copy** gave
|
|
1552
|
+
the clipboard: the visible screen, or the terminal's selection when it has one. Its head repeats `Copied` or
|
|
1553
|
+
`Clipboard blocked`, because the sheet covers the header's status line. It opens even when the clipboard is blocked,
|
|
1554
|
+
so you can still select the text by hand. To copy one line, an address or a command: long-press a word in the text,
|
|
1555
|
+
drag the selection handles, then choose iOS's own **Copy** (not yet checked on a device). The text is in a fixed-width
|
|
1556
|
+
font and its rows do not wrap: a wide row scrolls sideways, and the text scrolls up and down when it is taller than
|
|
1557
|
+
the sheet (read from the layout rules, not yet checked on a device). **Close**, Escape or a tap on the dimmed area
|
|
1558
|
+
outside the sheet closes it; a tap on the text does not, nor does a selection you drag with a mouse or trackpad and
|
|
1559
|
+
let go outside the sheet. It is captured output, not the lane itself: only the rows on the screen at the moment of the
|
|
1560
|
+
tap, with no scrollback (scroll older output into view in the lane first, then tap **Copy**), Zellij's frames and bars
|
|
1561
|
+
included, and a row the terminal wrapped stays split into two lines. Opening it closes the keyboard, as the workspace
|
|
1562
|
+
sheet does (read from the code, not yet checked on a device). On a tablet it opens as the same left panel as the
|
|
1563
|
+
workspace list, so a wide row scrolls sideways there too.
|
|
1564
|
+
- An address a lane prints, `https://…` or a docs path such as `/lanes-docs/d/…`, opens by touch (E1b-1, BEY-8667).
|
|
1565
|
+
Tap it once, as you would tap any text in the lane. An **Open** control then shows in the header, in the place of the
|
|
1566
|
+
workspace and lane names: `Open`, and under it the address's host (for a docs path, the path). On a narrow screen
|
|
1567
|
+
the start of a long host is cut, never its end, where the site's own name is (INFERRED: read from the code and its
|
|
1568
|
+
styles; not yet checked on a device). A look-alike host shows in its `xn--` form. Tap **Open** to open the whole
|
|
1569
|
+
address in a new tab, whose address bar shows the rest. An address the lane split over two rows (it
|
|
1570
|
+
reached the right edge) opens whole from either row. The control goes after about 8 s, when you type a key, when you
|
|
1571
|
+
press anything else (a key on the strip, a button, the terminal) and after you tap it; the names come back then.
|
|
1572
|
+
Your tap still reaches the lane as before, and a hold, a swipe or a touch with two fingers opens nothing (both
|
|
1573
|
+
INFERRED: read from the code and a fake of the client's touch handler). Not yet checked on a device: that Safari and
|
|
1574
|
+
the Home Screen app open the new tab (INFERRED from the code). Limits: only the rows on the screen are read; an
|
|
1575
|
+
address that ends exactly at the right edge can take the next row's first word along, which the new tab's address
|
|
1576
|
+
bar shows; an address wrapped short of the right edge (some agents wrap their own lines with a margin) opens cut,
|
|
1577
|
+
with only the part on the row you tapped; an address with a name and `@` before its host does not open this way, nor
|
|
1578
|
+
does a docs path whose `..` leads out of `/lanes-docs/`; a link shown as a word with a hidden address (OSC 8) does
|
|
1579
|
+
not open this way yet.
|
|
1373
1580
|
- **More** opens the client's menu; tap it again to close the menu.
|
|
1581
|
+
- When the connection to the server is lost, the status line says `Disconnected`, or `Check last input` when
|
|
1582
|
+
something you sent (a quick key, a filter, a paste, a QuickType word) may not have arrived: no output came back
|
|
1583
|
+
after it, or it went out in the last 5 s. The workspace and the lane stay above it (on a narrow iPad the word can
|
|
1584
|
+
take their room). The word stays until the page reloads; a key you press meanwhile says `Not sent: no connection`
|
|
1585
|
+
for about 1.6 s, and then the word is back.
|
|
1586
|
+
Look at the lane before you send it again; nothing is ever re-sent for you. At the same moment Zellij covers the page
|
|
1587
|
+
with its own reconnect notice, so the header is hidden or dimmed under it (read from the code, not yet checked on a
|
|
1588
|
+
device). You see the word after the automatic reload, where the status line says `Check last input` until your next
|
|
1589
|
+
key that sends something, if it said so before (a plain `Disconnected` leaves nothing); after you tap **Cancel** on the notice; or when no
|
|
1590
|
+
notice appears. Since E7a (BEY-8667) a letter, Return, Tab, Esc or arrow typed
|
|
1591
|
+
into **Type here** is covered too: while the connection is lost or still opening it says `Not sent: no connection`
|
|
1592
|
+
and is not sent, and a letter sent just before the loss counts for `Check last input`. **TAB**, **CTRL**, **ALT**,
|
|
1593
|
+
`←` or `→` in the **Keys** panel are still not covered by these words. (Changed in E3, BEY-8667: while the connection
|
|
1594
|
+
is lost the terminal is also dimmed, and **Reconnect**
|
|
1595
|
+
takes the place of **Paste** in the header; below.)
|
|
1596
|
+
- Zellij reloads the page by itself only when the server answers its check. It does not reload after **Cancel**, after
|
|
1597
|
+
the host disconnected you (its own `Disconnected` notice), or once the browser has put the page away (a `pagehide`;
|
|
1598
|
+
whether locking the phone or switching apps does that is not yet checked). If the header stays on `Disconnected` or
|
|
1599
|
+
`Check last input` and no notice appears, reload the page yourself: nothing reconnects on its own until a later
|
|
1600
|
+
release (the resume work, with an update of the pinned Zellij client). (Changed in E3, BEY-8667: Lanes now does part
|
|
1601
|
+
of that work itself, with a reload, below. Where it does not, tap **Reconnect** in the header, which checks the
|
|
1602
|
+
server and reloads the page, rather than reloading by hand; in the Home Screen app it is the only way (INFERRED).
|
|
1603
|
+
The update of the pinned Zellij client is still to come, BEY-8676.)
|
|
1604
|
+
- Coming back to the page (E3, BEY-8667; read from the code, not yet checked on a device). While the connection is
|
|
1605
|
+
lost, the terminal is dimmed and **Reconnect** stands in the header in **Paste**'s place, right after **Copy**, with
|
|
1606
|
+
the workspace and the lane still beside it, on a phone and on a tablet. Tap it to check the server and reload the
|
|
1607
|
+
page: the status line says `Reconnecting…`, and the page reloads as soon as the server answers. If the server
|
|
1608
|
+
answers with an error, or not within about 5 s (on iOS 14 and 15 there is no such limit), the line says `No
|
|
1609
|
+
connection to Lanes` for about 1.6 s, then `Disconnected` or `Check last input` again, and **Reconnect** stays for
|
|
1610
|
+
another try. In the Home Screen app, which has no reload button (INFERRED, not checked), it is the way to reload by
|
|
1611
|
+
hand.
|
|
1612
|
+
Once the browser has put the page away (a `pagehide`, after which Zellij no longer reconnects), the page comes back
|
|
1613
|
+
by itself when its connection is gone: when you return to it, when the connection ends while you look at it, or
|
|
1614
|
+
when the phone is online again, it checks the server once and reloads if the server answers. Nothing checks over
|
|
1615
|
+
and over: after a failed check, your next return or the phone's next time online checks once more. If the host
|
|
1616
|
+
disconnected you (Zellij's own `Disconnected` notice), the page never reloads by itself, not when you return and
|
|
1617
|
+
not when the phone is online again; tap **Reconnect** to come back. After **Cancel** on Zellij's reconnect notice
|
|
1618
|
+
nothing reloads by itself either, until the browser puts the page away and you return to it; tap **Reconnect**.
|
|
1619
|
+
A lane that is fine can be reloaded too. When you come back after more than 30 s and the connection still looks
|
|
1620
|
+
open, the page cannot tell at once whether it is alive: the status line says `Reconnecting…` and the page waits
|
|
1621
|
+
about 5 s for anything from the lane or the workspaces. If something comes, the word goes and nothing reloads. If
|
|
1622
|
+
the connection ends in those 5 s, the wait ends too, and the page does what it does for any lost connection: it
|
|
1623
|
+
checks at once only if the browser had put the page away, and never after the host disconnected you. If nothing
|
|
1624
|
+
comes, the page checks and reloads, even when the lane was only quiet (a lane that prints nothing looks the same as
|
|
1625
|
+
a lost connection). A paste in those 5 s is sent, but says `Paste unconfirmed`. If that check fails, `No connection
|
|
1626
|
+
to Lanes` stays until your next key that sends something, and there is no **Reconnect**: the connection still looks
|
|
1627
|
+
open, so neither the phone coming online nor a short return checks again. The next try comes once the connection
|
|
1628
|
+
ends (as for any lost connection, above), or when you come back after another 30 s away; in Safari you can also
|
|
1629
|
+
reload the page yourself. A lane that was fine is also reloaded when the browser had put the page away and the
|
|
1630
|
+
connection ends just after you come back: the page then reloads as for any lost connection.
|
|
1631
|
+
A reload re-sends nothing. It goes back to the tab you were on (above), and says `Check last input` when something
|
|
1632
|
+
you sent may not have arrived. A filter typed in the picker's filter bar before a reload likely stays applied to
|
|
1633
|
+
the lane list after it, while the reloaded bar is empty (INFERRED: the filter lives in the sidebar on the server);
|
|
1634
|
+
type a letter in the bar and clear it to see the whole list again.
|
|
1374
1635
|
- The filter bar on the picker filters the lane list as you type, non-ASCII letters included: it sends each change
|
|
1375
1636
|
(a typed letter, a backspace) once, and clearing the field or pressing Esc closes the filter. On a picker tab the dock
|
|
1376
1637
|
shows the filter in place of **Panes**. Leaving the picker with a filter typed (a tap on a match opens that lane)
|
|
@@ -1378,11 +1639,40 @@ The frontend chooses once per page load, by capability:
|
|
|
1378
1639
|
it. Moving to another workspace's picker from the Workspaces sheet leaves the filter behind too: that picker's bar
|
|
1379
1640
|
starts empty.
|
|
1380
1641
|
- `+` and `×` on picker rows add and close unregistered sessions, at the same columns as on the desktop; tapping `+`
|
|
1381
|
-
then a workspace needs no typing. While the picker asks (` › close ‘sh’ — y⏎ confirm`,
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
half-asked on the picker when you come back
|
|
1642
|
+
then a workspace needs no typing. While the picker asks (` › close ‘sh’ — y⏎ confirm`, or Add to workspace), a
|
|
1643
|
+
short row `⏎ y Esc` sits above the dock: `y` then `⏎` closes the session, or at Add to workspace adds it to the
|
|
1644
|
+
workspace the cursor is on; `Esc` cancels — no keyboard needed. No name field (Rename, Register as, Message) opens
|
|
1645
|
+
from the phone since E2 (BEY-8667): the letters that open one type there. A tap on a row while the picker asks
|
|
1646
|
+
cancels the question first, then opens that lane, so nothing is left half-asked on the picker when you come back
|
|
1647
|
+
to it.
|
|
1648
|
+
- Letters typed in **Type here** on a picker act on nothing (E2, BEY-8667): the first one starts the typing state, and
|
|
1649
|
+
the footer says ` Typing? Tap a lane to type in it`. Tap a lane first, then type. `j`, `k` and `/` still move the
|
|
1650
|
+
cursor and open the filter. The full rule, and the server commands for pin, hide, rename, unregister and message,
|
|
1651
|
+
are under **A sentence typed into the sidebar is no command** in [The sidebar](#the-sidebar) (read from the code
|
|
1652
|
+
and the unit suite, not yet checked on a device).
|
|
1653
|
+
- While lanes of the workspace are hidden, the picker's list ends with `hidden (n) · tap shows them` (`tap shows it`
|
|
1654
|
+
for one). Tap it to show them, faint; the row stays and says `tap hides them`, and a second tap hides them again
|
|
1655
|
+
(E2, BEY-8667; not yet checked on a device). On the desktop the row says `o shows them` and goes while they show.
|
|
1656
|
+
|
|
1657
|
+
### Answering a question from the phone
|
|
1658
|
+
|
|
1659
|
+
When a Claude Code lane asks a question with options, the phone (Throttle Companion) or the Studio can answer it, and
|
|
1660
|
+
the host types the option into the lane for you: the measured keys, each confirmed on the lane's screen, never more.
|
|
1661
|
+
Since BEY-7538 (8 November 2026) the host types ONLY when every one of six checks holds, in this order, and it says which
|
|
1662
|
+
one did not: the prompt is a question (never a permission prompt), it is Claude Code's single-select shape, it is still
|
|
1663
|
+
on the lane's visible screen, **no terminal is attached to the lane in write mode**, the harness has no answer channel
|
|
1664
|
+
of its own, and the answer comes from the lane's owner. What you see when it refuses is `Not sent · answer_unqualified`
|
|
1665
|
+
with the check that failed; the one you will meet is
|
|
1666
|
+
|
|
1667
|
+
> the host did not answer: a terminal is attached in write mode (`predicate=no_write_client`)
|
|
1668
|
+
|
|
1669
|
+
which means a desk has the lane open (`tmux attach` without `-r`), or a Studio browser view of the lane is open:
|
|
1670
|
+
every Studio view of a tmux lane can type, so every open one counts as a desk in write mode (there is no read-only
|
|
1671
|
+
Studio view of a tmux lane today). Nothing was typed; answer at that desk or in that view, or detach the desk
|
|
1672
|
+
(`tmux detach-client`) or close the view, or re-attach the desk read-only (`tmux attach -r`), and answer again. A lane
|
|
1673
|
+
the host could not list clients for (tmux did not answer in time) is refused the same way: unknown means no key. A
|
|
1674
|
+
lane whose agent answers through its own channel (Rocket) or whose harness is not Claude Code is refused before the
|
|
1675
|
+
desk is even looked at, naming `convention`. Zellij-held lanes and every other harness are never typed into.
|
|
1386
1676
|
|
|
1387
1677
|
### Docs
|
|
1388
1678
|
|
|
@@ -1401,14 +1691,15 @@ published for you, and nobody else's documents.
|
|
|
1401
1691
|
| A push notification | A `published` push opens the document when the server's `action_url` uses `{doc}` (section 8) |
|
|
1402
1692
|
| An address you type, bookmark or open from a terminal | `/lanes-docs/` everything you may see · `/lanes-docs/?ws=<workspace>&lane=<lane id>` one lane (either key alone works) · `/lanes-docs/d/<id>` one document · `/lanes-docs/d/<id>/raw` its bytes · `/lanes-docs/receipt/<id>.json` its receipt |
|
|
1403
1693
|
|
|
1404
|
-
|
|
1694
|
+
Without the slash, `/lanes-docs` opens the Docs page too and keeps what follows the `?`: `/lanes-docs?ws=<workspace>`
|
|
1695
|
+
goes to `/lanes-docs/?ws=<workspace>`.
|
|
1405
1696
|
|
|
1406
1697
|
**What it shows.** The index lists your documents by workspace, then lane, newest first, with counts, and above them
|
|
1407
1698
|
the upload form. A document opens by its kind:
|
|
1408
1699
|
|
|
1409
1700
|
| Kind | Opens as |
|
|
1410
1701
|
| --- | --- |
|
|
1411
|
-
| `md` (`.md`, `.markdown`) | Rendered on the page, with ```` ```mermaid ```` fences drawn as diagrams (a fence Mermaid cannot read stays as its source); over 1 MiB it is not rendered: download it |
|
|
1702
|
+
| `md` (`.md`, `.markdown`) | Rendered on the page, with ```` ```mermaid ```` fences drawn as diagrams (a fence Mermaid cannot read stays as its source) and a web address written as plain text (`https://…` or `http://…`, outside code) a link that opens in a new tab, without the full stop or other punctuation right after it; every other code block has a **Copy** button above it that copies the code without its last newline and says **Copied** for about 1.6 s, or **Clipboard blocked** when the browser refuses (a page over plain http gets no clipboard); over 1 MiB it is not rendered: download it |
|
|
1412
1703
|
| `html`, `svg` | A link, **Open the HTML artifact** (or SVG): the artifact on a page of its own, in a sandbox (below) |
|
|
1413
1704
|
| `file` (anything else) | Its facts and a download |
|
|
1414
1705
|
|
|
@@ -1443,12 +1734,54 @@ Change the file only after the receipt is there; publishing it again makes a new
|
|
|
1443
1734
|
- Anyone else gets *not found*, exactly as for a document that does not exist. The one exception is the count:
|
|
1444
1735
|
everyone who sees a lane's ` ▤ docs N` sees how many documents it holds (a number, never a title).
|
|
1445
1736
|
|
|
1446
|
-
**Upload, with a receipt.** On the Docs page
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1737
|
+
**Upload, with a receipt.** On the Docs page choose the lane under **Upload to**: each choice names its workspace and
|
|
1738
|
+
lane, `BW Tools › docs` (with the workspace id after the title when two workspaces share one, `BW Tools (bw-tools) ›
|
|
1739
|
+
docs`). A page opened for one lane (`?lane=<lane id>`, or **Open this lane's files**) has that lane chosen; every
|
|
1740
|
+
other page starts on `Choose a lane`, and the browser does not send the form until you choose one. Then drop files on
|
|
1741
|
+
the dashed area — or tap it to choose them, several at once, up to 63 files and 32 MiB in all — and **Upload**. More
|
|
1742
|
+
files than that are refused before anything is sent, with a line such as `Too many files: 64; an upload may hold 63.`
|
|
1743
|
+
Each file lands in that workspace's `uploads/` folder in its container, exactly as every other upload does
|
|
1744
|
+
([Uploads](#5-uploads)). When the upload ends, the page shows one line for each file you chose. Each line shows the
|
|
1745
|
+
file's size, so two photos with the same name can be told apart.
|
|
1746
|
+
|
|
1747
|
+
| The line reads, for example | What it means | What to do |
|
|
1748
|
+
| --- | --- | --- |
|
|
1749
|
+
| `a.txt · uploaded · 6 B · sha256 … · /home/coder/<repo>/uploads/a.txt` | The file arrived and this is its receipt: the name (a link to the document), size, sha256 and where it landed | Give the agent that path |
|
|
1750
|
+
| `b.txt · 6 B · refused: busy` | The server said no to this file and gave its reason (here `busy`) | Read the last line (below) |
|
|
1751
|
+
| `c.txt · 9 B · not tried` | The server stopped at the refused file before it, so this one was not stored | Read the last line (below) |
|
|
1752
|
+
| `b.txt · 6 B · not confirmed` | The page got no answer it could check: the connection ended, the page stopped waiting, or the answer was not a receipt. The file may have arrived or not | Look in the lane's files before you send it again (below) |
|
|
1753
|
+
|
|
1754
|
+
The reason after `refused:` is the server's word. The common ones: `busy` (another upload of yours is still being
|
|
1755
|
+
stored, or the server is busy), `rate-limited` (more than 30 uploads in 10 minutes), `too-large` (over 32 MiB),
|
|
1756
|
+
`request-timeout` (the upload arrived too slowly), `uploads-unavailable` (the workspace's `uploads/` folder cannot be
|
|
1757
|
+
written now, for example because its container is not running), `no-lane` or `unknown-lane` (choose a lane again),
|
|
1758
|
+
`unknown-workspace` (the lane's workspace is not one of yours).
|
|
1759
|
+
|
|
1760
|
+
When not every file was uploaded, a last line counts them, for example `1 of 3 uploaded.`, and says what comes next:
|
|
1761
|
+
|
|
1762
|
+
- `Upload sends the rest again.` The refusal can pass later (the server was busy, there were too many uploads in a
|
|
1763
|
+
short time, the upload arrived too slowly, the server could not encrypt it, or the uploads folder could not be
|
|
1764
|
+
written or the server's list of lanes could not be read just then). Wait a little and tap **Upload**: it sends only
|
|
1765
|
+
the files that are not uploaded yet.
|
|
1766
|
+
- `This would be refused again. Choose the files again without the refused one.` The same files would be refused
|
|
1767
|
+
again. Choose your files again and leave out the refused one. When the server refused the whole upload before it
|
|
1768
|
+
stored anything, every line reads `refused:` and the last line stops after `This would be refused again.`: fix the
|
|
1769
|
+
reason first (for example choose another lane, or send fewer or smaller files).
|
|
1770
|
+
- `The connection ended before we could confirm the upload.` or `The answer did not confirm the upload.`, then
|
|
1771
|
+
`The files may still be arriving. Look for them in this lane before you send again: Upload sends them a second
|
|
1772
|
+
time.` and a link, **Open this lane's files**, which opens that lane's documents in a new tab. Look there first. A
|
|
1773
|
+
file that is listed arrived: do not send it again, because sending again stores a second copy (named
|
|
1774
|
+
`<name>-1.<ext>`). To leave it out, choose again only the files that are not listed; a new choice replaces the kept
|
|
1775
|
+
ones. If a file is not listed, wait a minute (a large file can take a few minutes) and look again; then tap
|
|
1776
|
+
**Upload**.
|
|
1777
|
+
|
|
1778
|
+
The page stops waiting after two and a half minutes plus about 16 s for each MiB sent (64 KiB/s), and the lines then
|
|
1779
|
+
read `not confirmed`. The files that were not uploaded stay chosen: the area says, for example, `2 not uploaded yet`,
|
|
1780
|
+
and **Upload** sends only those. Choosing or dropping other files replaces them. When every file is uploaded, the
|
|
1781
|
+
choice is cleared. A file that once ended `not confirmed` keeps that warning until it is uploaded or you choose other
|
|
1782
|
+
files: a later refusal reads, for example, `refused: busy; an earlier try was not confirmed`, and the sentence about
|
|
1783
|
+
looking first and the link stay. Nothing of this survives reloading the page. Every other way in (the sidebar's strip,
|
|
1784
|
+
the watch folder, `lanes-upload`, the macOS droplet) records the same receipt for you (section 5, "Receipts").
|
|
1452
1785
|
|
|
1453
1786
|
**The sandbox.** Nothing an agent publishes is trusted. Markdown is rendered on the server by Lanes's own renderer:
|
|
1454
1787
|
raw HTML in it stays text, a link opens in a new tab and tells the target nothing of where it came from, and an image
|
|
@@ -1479,7 +1812,8 @@ encrypted; your receipts stay the sha256 of what you sent and the files in `uplo
|
|
|
1479
1812
|
- The unit, `docs.log`, the routes, the limits and the operator's live checklist:
|
|
1480
1813
|
[RUNBOOK](RUNBOOK.md#docs-service-lanes-docsd-w10-w3).
|
|
1481
1814
|
|
|
1482
|
-
Not yet verified on a device: the Docs page on a real phone (the rendering, a Mermaid diagram, the drop area
|
|
1815
|
+
Not yet verified on a device: the Docs page on a real phone (the rendering, a Mermaid diagram, the drop area and the
|
|
1816
|
+
lines it shows after an upload; RUNBOOK, Web / phone, steps 53 to 61; a code block's **Copy**, steps 157 to 160), the
|
|
1483
1817
|
artifact sandbox in a real browser (DEF-1853), and the Mermaid route through a running Caddy (DEF-1871).
|
|
1484
1818
|
|
|
1485
1819
|
### What works, what does not, what is unverified
|
|
@@ -1488,11 +1822,34 @@ artifact sandbox in a real browser (DEF-1853), and the Mermaid route through a r
|
|
|
1488
1822
|
the same agents; the server keeps serving when your Mac sleeps; uploads from the phone and what agents publish, on
|
|
1489
1823
|
the Docs page (**More → Docs**, [Docs](#docs)).
|
|
1490
1824
|
- Does not: a public URL (Tailscale only), approving an agent's permission prompt from a push notification.
|
|
1491
|
-
- Not yet verified on a device: the quick keys
|
|
1492
|
-
|
|
1825
|
+
- Not yet verified on a device: the quick keys (tap, hardware keyboard and VoiceOver), the key strip on the keyboard,
|
|
1826
|
+
the **Keys** panel, **Done**, the lane filter, the text
|
|
1827
|
+
keyboard, paste, **Copy** and **Paste** and their words, the `Disconnected` / `Check last input` header after a
|
|
1828
|
+
lost connection and its reload, whether Zellij's notice hides that header, the words' width on a narrow phone, on a
|
|
1829
|
+
real iPhone (the [runbook](RUNBOOK.md) lists the check), the header's names and its status line (words that stay
|
|
1830
|
+
and words that pass, VoiceOver speaking them), the workspace sheet holding still while counts change and its rows'
|
|
1831
|
+
count lines on a narrow phone, the light/dark
|
|
1832
|
+
terminal repaint, the counts that the
|
|
1493
1833
|
picker's pane title carries to the Workspaces sheet and the **Lanes** button (a phone view created before that
|
|
1494
1834
|
change needs `lanes rebuild <device>`; `lanes doctor` lists such devices), and an iPad Safari pass of the tablet mode
|
|
1495
|
-
(top bar, left panel, whole-tab view). The mode choice itself is unit-tested.
|
|
1835
|
+
(top bar, left panel, whole-tab view). The mode choice itself is unit-tested. Since E1a (BEY-8667), also not yet
|
|
1836
|
+
checked on a device: **Paste** in a phone's header with the keyboard down, with it up and with a hardware keyboard;
|
|
1837
|
+
whether a person finds **Copy** and **Paste** as icons without words; and the **Captured screen** sheet (selecting
|
|
1838
|
+
one line by touch, iOS's **Copy** in it, its sideways scrolling, and the keyboard closing when it opens). Since E1b-1
|
|
1839
|
+
(BEY-8667), also not yet checked on a device: opening an address printed in a lane with the **Open** control, in a
|
|
1840
|
+
Safari tab and in the Home Screen app, an address an agent lane wrapped, and whether a person finds that control in
|
|
1841
|
+
the place of the names. Since E3 (BEY-8667), also not yet checked on a device: coming back to a dead page (whether
|
|
1842
|
+
the page reloads once, and only once, after you return to it, after a lock longer than 30 s and after Airplane Mode;
|
|
1843
|
+
whether iOS keeps pages in the back/forward cache at all; **Reconnect** and the dimmed terminal beside the names on
|
|
1844
|
+
a narrow phone; **Cancel** on Zellij's notice and the host's own `Disconnected`; the Home Screen app; and a filter
|
|
1845
|
+
typed before a reload). Since E4 (BEY-8667), also not yet checked on a device or against an ntfy server: an address
|
|
1846
|
+
with `?ws=`, a push's tap and its **Open lane** button (which app opens, whether it asks for the token, how many
|
|
1847
|
+
tabs three taps leave), the Home Screen app open while a push opens Safari, a hidden workspace's push, a
|
|
1848
|
+
`published` push still opening its document, and an iPad with `?ws=`. Since E5a (BEY-8667), also not yet checked on
|
|
1849
|
+
a device: **Lanes** going between a lane list and its lane tab (and on an iPad with the workspace panel open), a
|
|
1850
|
+
card opening the tab last shown in its workspace before and after a reload and in the Home Screen app, the current
|
|
1851
|
+
workspace's card, **Panes** gone on a one-pane lane tab and the wider **Type here** (its width, and a tap anywhere
|
|
1852
|
+
on it), and two Safari tabs on one view.
|
|
1496
1853
|
|
|
1497
1854
|
## 5. Uploads
|
|
1498
1855
|
|
|
@@ -1509,7 +1866,7 @@ sidebar's ` ▤ docs N` count.
|
|
|
1509
1866
|
| Command | `lanes-upload [-w <workspace>] [--paste] <files…>` · `lanes-upload --clipboard [-w <workspace>] [--paste]` (clipboard image or copied files) |
|
|
1510
1867
|
| macOS droplet | `~/Applications/Lanes Upload.app`: drop files on it; double-click uploads the clipboard screenshot |
|
|
1511
1868
|
| Omarchy | `Super+Shift+U` uploads the clipboard and types the path into the lane |
|
|
1512
|
-
| Docs page (phone, laptop) | **More → Docs** on the phone, **Docs** in the laptop bar, or `https://<server>:8443/lanes-docs/`: pick the lane, then drop files on the dashed area or tap it to choose them (several at once, 32 MiB in all), **Upload**. Each file
|
|
1869
|
+
| Docs page (phone, laptop) | **More → Docs** on the phone, **Docs** in the laptop bar, or `https://<server>:8443/lanes-docs/`: pick the lane, then drop files on the dashed area or tap it to choose them (several at once, up to 63 files and 32 MiB in all), **Upload**. Each file gets a line: `uploaded` with its receipt — its name (a link to the document), size, sha256 and where it landed in the container (`/home/coder/<repo>/uploads/<name>`), the path to tell the agent — or `refused: <reason>`, `not tried` or `not confirmed`. Files not uploaded stay chosen for the next **Upload**; after `not confirmed`, look in the lane's files first ([Docs](#docs), "Upload, with a receipt") |
|
|
1513
1870
|
| Server | `lanes upload <workspace> \| --active <device> [--paste]` reads a tar stream on stdin |
|
|
1514
1871
|
|
|
1515
1872
|
**Where files land.** `<workspace folder>/uploads/<name>` in the container, where the workspace folder is its first
|
|
@@ -1518,7 +1875,8 @@ one becomes `<name>-1.<ext>`. The folder is created on first use and, in a git r
|
|
|
1518
1875
|
does not name it yet, added there, so uploads are never committed. The Docs page lands a file exactly the same way
|
|
1519
1876
|
(its name keeps only letters, digits, `.`, `_` and `-`). The server refuses to follow a symbolic link anywhere on the
|
|
1520
1877
|
way, so an agent cannot redirect an upload outside its container: a folder reached through a link answers
|
|
1521
|
-
`uploads/ … not a directory (a symbolic link is refused)` (or, on the Docs page,
|
|
1878
|
+
`uploads/ … not a directory (a symbolic link is refused)` (or, on the Docs page, `refused: uploads-unavailable`;
|
|
1879
|
+
without the page's script, *cannot be written now*).
|
|
1522
1880
|
|
|
1523
1881
|
**Receipts.** Each file is also a document in the docs store with a receipt — `sha256`, size, time and its page
|
|
1524
1882
|
`/lanes-docs/d/<id>` — for you only (`for` your login): the Docs page lists it under its workspace and lane, and the
|
|
@@ -1745,6 +2103,7 @@ session name should be its address: then `ListAgents` and `SendMessage` in any C
|
|
|
1745
2103
|
| The workspace's coordinator: `@<workspace>` reaches it, and only a coordinator messages the fleet admin | `coordinator` in `workspaces.<workspace>.json` (a terminal name) | `lanes address set-coordinator <workspace> <lane-id>` |
|
|
1746
2104
|
| The fleet admin lane | `LANES_FLEET_ADMIN=@<address>` in the server's `~/.config/lanes/site.conf` | `lanes migrate addresses` sets `@fleet-management.fleet-management` when unset |
|
|
1747
2105
|
| Statusd renames Claude sessions to their addresses | `LANES_NAMES_AUTO` in site.conf (`0` turns it off; on by default) | — |
|
|
2106
|
+
| A Host tab (a login shell on the server) at the end of every view | `LANES_HOST_TAB=1` in site.conf (off by default since 1.8.1, BEY-8423; `0` or no line is off; any other value makes `lanes sync` refuse, naming the key) | — |
|
|
1748
2107
|
|
|
1749
2108
|
`lanes address list [workspace]` prints every lane's id, address, role (`coordinator`, `fleet-admin` or `-`) and
|
|
1750
2109
|
whether its Claude session name is its address (`yes`, `no`, `-` without a Claude session), then the fleet admin and
|
|
@@ -1784,35 +2143,50 @@ shells — as a Claude session of its own, named by the lane's address. So a Cla
|
|
|
1784
2143
|
and `SendMessage` to: <address> reaches Codex/Kimi/Grok/Muse/ZCode and shells as it reaches another Claude lane; the
|
|
1785
2144
|
other way round, a Codex, Kimi, Grok, Muse or ZCode agent (or a shell's `lane message`) reaching a Claude lane writes into that
|
|
1786
2145
|
Claude session's own messaging channel, so the message appears in its transcript mid-turn. `lanes_list` shows such a
|
|
1787
|
-
lane's handle as `claude-peer`. This works
|
|
1788
|
-
|
|
2146
|
+
lane's handle as `claude-peer`. This works with every Claude Code on the line Lanes measured the protocol on: 2.1.x,
|
|
2147
|
+
measured on 2.1.310 and again, unchanged, on 2.1.327 (19 November 2026). With a Claude Code of a newer minor line, or
|
|
2148
|
+
one that declares another peer protocol, the message waits in the lane's inbox instead (`peer_pin_failed` names why)
|
|
1789
2149
|
until the server's operator re-measures.
|
|
1790
2150
|
|
|
1791
2151
|
| From → to | How it arrives | What a person sees |
|
|
1792
2152
|
| --- | --- | --- |
|
|
1793
2153
|
| Claude → Claude | the sender's own `SendMessage` to the address (Lanes refuses its own path, `use_send_message`) | the message in the recipient's transcript, mid-turn |
|
|
1794
|
-
| Claude → Codex, Kimi, Grok, Muse, ZCode or a shell | the sender's own `SendMessage` to the address (`lane-peerd`'s peer), which Lanes then delivers like any message below — `codex queue`,
|
|
2154
|
+
| Claude → Codex, Kimi, Grok, Muse, ZCode or a shell | the sender's own `SendMessage` to the address (`lane-peerd`'s peer), which Lanes then delivers like any message below — `codex queue`, Throttle, or the inbox | the message as in the rows below, from `peer:` or the sender's lane |
|
|
1795
2155
|
| any other agent or a shell → Claude | one line on the Claude session's own messaging socket (`peer_socket`) | the message in the recipient's transcript, mid-turn |
|
|
1796
|
-
| any agent → Codex | `codex queue --thread <its thread>` when its hooks recorded the thread — or its Codex app-server names the one thread at the lane's folder — and `codex` is installed (several threads there, or an app-server that does not answer: refused, or waiting with `queue: true`, never typed) |
|
|
1797
|
-
| any agent → Kimi, Grok, Muse, ZCode, or Claude/Codex without a name or thread | typed
|
|
1798
|
-
| any agent → a shell lane | typed
|
|
1799
|
-
| a person → any lane | the sidebar's `m` (or `lanes message <lane> "<text>"` on the server):
|
|
2156
|
+
| any agent → Codex | `codex queue --thread <its thread>` when its hooks recorded the thread — or its Codex app-server names the one thread at the lane's folder — and `codex` is installed (several threads there, or an app-server that does not answer: refused, or waiting with `queue: true`, never typed) | a pointer at the thread's next turn: the message's id and `~/.lz/bin/lane inbox ack <id>`, which answers its text once (BEY-8673 D); the text itself never goes through the queue |
|
|
2157
|
+
| any agent → Kimi, Grok, Muse, ZCode, or Claude/Codex without a name or thread | never typed into the lane (BEY-7538): with `queue: true` it waits in the lane's inbox until the lane's agent reads it; without, `lanes_message` refuses `transport_never_types` | `✉` on the lane while it waits; the agent reads it with `lanes_status` or `lane inbox` |
|
|
2158
|
+
| any agent → a shell lane | never typed: waiting in the lane's inbox with `queue: true` (`lane inbox` in that shell shows it), else refused `transport_never_types` | `✉` on the lane |
|
|
2159
|
+
| a person → any lane | the sidebar's `m` (or `lanes message <lane> "<text>"` on the server): written into the lane's inbox, where it waits for the lane's agent — never typed | `✉` while it waits; the footer says ` message … queued — it waits in the lane's inbox until its agent reads it` |
|
|
1800
2160
|
|
|
1801
2161
|
With Throttle's message bus switched on for a lane (`LANES_BUS=throttle` in its environment; the endpoint ships with a
|
|
1802
|
-
later Throttle release), any agent that calls a model gets its messages on its next model request instead of
|
|
1803
|
-
Lanes sends them to Throttle's control port with the sending agent's own Throttle client token.
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
2162
|
+
later Throttle release), any agent that calls a model gets its messages on its next model request instead of waiting
|
|
2163
|
+
in its inbox; Lanes sends them to Throttle's control port with the sending agent's own Throttle client token.
|
|
2164
|
+
|
|
2165
|
+
**A message never types into a terminal** (BEY-7538, 2026-11-08). Lanes delivers a message by the recipient's own
|
|
2166
|
+
channel — `SendMessage`, the Claude session's socket, `codex queue`, Throttle — or leaves it in the lane's inbox; it
|
|
2167
|
+
never sends keystrokes into a lane's pane for a message, whether the lane is idle or not, and nothing on the server
|
|
2168
|
+
types a waiting one later. Typing into a lane stays a person's act: `lanes_send` and `lane send` name the lane they
|
|
2169
|
+
type into, are not messaging, and never type into a lane that waits for an approval, `force` included. When Lanes
|
|
1808
2170
|
cannot tell whether a message arrived — `codex queue` or Throttle took it and then did not answer — the answer says
|
|
1809
2171
|
`delivered_by: unknown`: the message is held, Lanes never sends it again on its own, and `lanes_status` shows it under
|
|
1810
2172
|
`inbox.unknown` (`lanes_list`: `inbox_unknown`). Look at the lane: if it arrived, the recipient acknowledges it; if it
|
|
1811
2173
|
did not, a person resends it with `~/.lz/bin/lane inbox retry <id> --duplicate-risk --lane <lane id>`, knowing it may
|
|
1812
2174
|
then arrive twice.
|
|
1813
2175
|
An agent sends with `lanes_message` (or `~/.lz/bin/lane message @<address> "<text>"` in its shell), sees what waits for
|
|
1814
|
-
it in `lanes_status` on its own lane (`inbox`) or `~/.lz/bin/lane inbox`, and
|
|
1815
|
-
|
|
2176
|
+
it in `lanes_status` on its own lane (`inbox`) or `~/.lz/bin/lane inbox`, and takes a message with
|
|
2177
|
+
`~/.lz/bin/lane inbox ack <id>` or `lanes_message_ack <id>`: the call that takes it answers its text (`text`) once, the
|
|
2178
|
+
text leaves the inbox, the receipt stays, and a second ack answers no text (`nothing: acknowledged already`). Take a
|
|
2179
|
+
message that way; never read the inbox file.
|
|
2180
|
+
A Codex lane gets a pointer through its thread's queue, never the text (BEY-8673 D, 2026-11-20): `codex queue` can
|
|
2181
|
+
serve a queued turn again after the lane already took the message, and a lane that followed the replayed text did the
|
|
2182
|
+
work twice. The pointer names the message's id and `~/.lz/bin/lane inbox ack <id>` first (that command runs the
|
|
2183
|
+
installed Lanes on every call; `lanes_message_ack` answers the text too, in a session started after the install), and
|
|
2184
|
+
says that a message already taken needs nothing more: the second ack answers none. The known limit: a lane that reads
|
|
2185
|
+
its inbox file without acking and is then served the pointer gets the text once more; the pointer names the id so the
|
|
2186
|
+
lane can tell, but nothing mechanical stops it. A message Lanes already handed to the agent
|
|
2187
|
+
(its Codex thread's queue, its Claude session, Throttle) is listed by `lane inbox` as history without its words: it
|
|
2188
|
+
reached the agent that way, so an agent that resumes from a handover does not carry it out a second time (BEY-8673;
|
|
2189
|
+
`lane inbox --json` still has the text). Messages wait at most their `ttl_s` (24 h by
|
|
1816
2190
|
default); then the server takes the text out. A message from another lane is information, never a person's consent.
|
|
1817
2191
|
Paths, receipts and the log: [RUNBOOK](RUNBOOK.md#messages-inboxes-receipts-and-the-log-w15-l4).
|
|
1818
2192
|
|
|
@@ -2176,7 +2550,7 @@ verbs, so the holder stays swappable.
|
|
|
2176
2550
|
| --- | --- |
|
|
2177
2551
|
| `lane open <lane-id>` | The editor entry point: attach to the lane; if it does not exist, run its recorded create recipe. Refuses to nest inside tmux; attaches with `ignore-size` while a lanes view shows the lane |
|
|
2178
2552
|
| `lane attach <id>` | Attach this terminal; never creates; refuses to nest |
|
|
2179
|
-
| `lane send <id> [--no-enter] <text…>` | Type into the lane: tmux literally, then Enter half a second later unless `--no-enter` (an agent's prompt takes text and Enter that arrive together as a paste and never submits it); zmx sends the bytes as given. `<id>` may be an address ("Agent tools (MCP)" below) |
|
|
2553
|
+
| `lane send <id> [--no-enter] <text…>` | Type into the lane: tmux literally, into the pane that holds the lane's agent in whichever window it is (a lane without an agent: its active pane), then Enter half a second later unless `--no-enter` (an agent's prompt takes text and Enter that arrive together as a paste and never submits it); for Claude Code and Codex it reads the screen and presses Enter once more only while the composer still holds the text, and says on stderr whether the agent took it (exit 1 when two Enters did not submit it). zmx sends the bytes as given. `<id>` may be an address ("Agent tools (MCP)" below) |
|
|
2180
2554
|
| `lane capture <id> [--lines N] [--vt]` | Print the scrollback (plain, or with escapes under `--vt`); `<id>` may be an address |
|
|
2181
2555
|
| `lane address [--json]` | This lane's address, role, its board's coordinator, the site's fleet admin and its handle (what `lanes_whoami` answers) |
|
|
2182
2556
|
| `lane ls [--json] [--all]` | zmx lanes; `--all` adds the registry's tmux lanes with `alive` |
|
|
@@ -2261,10 +2635,10 @@ change up (`picked_up_by`) and how soon (`expected_within_s`):
|
|
|
2261
2635
|
| `lanes_unregister` | Removes a declared lane's terminal (its `terminals[]` item and its `lanes.terminals` entry). The session keeps running and shows as an unregistered session again | same |
|
|
2262
2636
|
| `lanes_rename` | Sets the lane's `displayName` in its terminals.json; the id never changes. The lane's own title removes it. A name the host sets for the lane in its workspace manifest still wins, and the answer says so (`host_override`) | same |
|
|
2263
2637
|
| `lanes_new` | `name`, optional `cwd`, `command`, `workspace`, `repo`. Declares a lane on the board's shell socket `lanes-shells-<workspace>` and starts its session (detached, 100x30) with the lane's identity; the workspace defaults to the agent's own board, the folder to the repository's, the command to `bash -l`. A `claude` command gets `--name <address>`, so the session's messaging name is the new lane's address (the answer names both). When that starts the board's shell server, the server gets the account and locale variables (and `TMUX_TMPDIR`), never the agent's own environment, which every later shell on the board would inherit | the session at once; the lane after the next `lanes sync` |
|
|
2264
|
-
| `lanes_send` | `lane` (an id or an address), `text`, optional `enter` (default true), `force`. Types printable text into the lane, then Enter half a second later as a separate keystroke, so an agent's prompt submits it instead of taking it as a paste. The answer names the lane's `address` | at once |
|
|
2638
|
+
| `lanes_send` | `lane` (an id or an address), `text`, optional `enter` (default true), `force`. Types printable text into the pane that holds the lane's agent (a lane without one: its active pane), then Enter half a second later as a separate keystroke, so an agent's prompt submits it instead of taking it as a paste; for Claude Code and Codex it reads the screen and presses Enter once more only while the composer still holds the text, and answers `pane` and `submitted`. `force` types past a working agent, never into one that waits for an approval (BEY-7538). It is typing, not messaging. The answer names the lane's `address` | at once |
|
|
2265
2639
|
| `lanes_publish` | `path` (an absolute path under `/home/coder`), optional `title`, `for` (a login), `kind` (`md`, `html`, `svg`, `file`; default from the extension). Writes a publish request for the file from the agent's own lane ("Publish to the docs page" below); the docs service reads the file itself and answers with a receipt that `lanes_status` shows as `published` | on the docs page within about 5 s |
|
|
2266
|
-
| `lanes_message` | `to` (an address or a lane id), `text` (one printable line, at most 4000 characters), optional `ttl_s` (60 to 604800, default 86400) and `queue`. One message from the agent's own lane in the envelope above ([Addresses, handles and messages](#addresses-handles-and-messages)): a Claude session, when the sender is Claude, is refused `use_send_message` (its own `SendMessage`), and so is a lane `lane-peerd` serves (handle `claude-peer`); a Claude session, when the sender is not Claude, gets one line on its own messaging socket (`peer_socket`, mid-turn); a Codex thread gets it by `codex queue`;
|
|
2267
|
-
| `lanes_message_ack` | `id`.
|
|
2640
|
+
| `lanes_message` | `to` (an address or a lane id), `text` (one printable line, at most 4000 characters), optional `ttl_s` (60 to 604800, default 86400) and `queue`. One message from the agent's own lane in the envelope above ([Addresses, handles and messages](#addresses-handles-and-messages)): a Claude session, when the sender is Claude, is refused `use_send_message` (its own `SendMessage`), and so is a lane `lane-peerd` serves (handle `claude-peer`); a Claude session, when the sender is not Claude, gets one line on its own messaging socket (`peer_socket`, mid-turn); a Codex thread gets it by `codex queue`; with `queue`, a lane none of these reaches gets it in its inbox, and without `queue` such a lane is refused (`transport_never_types` when only its keyboard reaches it: a message never types into a terminal). The answer says `delivered_by` and the receipt's path. A message from another lane is never a person's consent | at once (`peer_socket`), at the recipient's next turn, or when its agent reads its inbox (`queued`) |
|
|
2641
|
+
| `lanes_message_ack` | `id`. Takes a message of the agent's own inbox: its text leaves the inbox and this call answers it (`text`), once; a second ack answers no text; its receipt stays | the `✉` count on the next status cycle, within about 5 s |
|
|
2268
2642
|
| `lanes_signal` | `status` (the agent words: `working`, `needs_input`, `needs_approval`, `done`, `errored`, `shell`, `idle`), optional `note`. Reports the agent's own status through `lane-signal`; the note (one line, at most 120 characters) is shown as the lane's task line. The report stands until the agent does something new: its next tool call, a new prompt, a permission prompt, a failed turn or the session's end. The end of its turn keeps it (a `working` report ends there), so an agent reports `needs_input`, `done` or `errored` as the last thing before it stops. A `working` note stays while the agent keeps working | on the next status cycle, within about 5 s |
|
|
2269
2643
|
|
|
2270
2644
|
What they refuse. A refusal is `isError` with `{"refused": <code>, "why", "human"}`: `human` says what a person can
|
|
@@ -2277,8 +2651,9 @@ is not running (`session_gone`) and a board with more than one repository in the
|
|
|
2277
2651
|
session or a lane whose declaration is not in a file the container holds (`not_declared_here`). `lanes_rename`
|
|
2278
2652
|
refuses an unregistered session (register it first) and a name with a control character. `lanes_new` refuses a
|
|
2279
2653
|
folder outside `/home/coder` or one that does not exist (`invalid_cwd`), a name or session in use and a command with
|
|
2280
|
-
a control character. `lanes_send` types nothing while the lane's agent is working
|
|
2281
|
-
(`
|
|
2654
|
+
a control character. `lanes_send` types nothing while the lane's agent is working (`agent_working`) unless `force`
|
|
2655
|
+
is true, nothing while it waits for an approval (`agent_needs_approval`), `force` or not (BEY-7538), and never a
|
|
2656
|
+
control character: no newline, tab,
|
|
2282
2657
|
escape or Ctrl-C (`invalid_text`); an address names no lane here (`unknown_address`), a board without a coordinator
|
|
2283
2658
|
(`no_coordinator`), a site without a fleet admin (`no_fleet_admin`), or a text for the fleet admin from a lane that
|
|
2284
2659
|
is not a coordinator (`use_coordinator`). `lanes_publish` refuses a file outside `/home/coder` once every link is resolved
|
|
@@ -2286,17 +2661,33 @@ is not a coordinator (`use_coordinator`). `lanes_publish` refuses a file outside
|
|
|
2286
2661
|
is not one printable line (`invalid_title`, `invalid_for`), and an agent outside a lane (`not_in_lane`).
|
|
2287
2662
|
`lanes_message` refuses a text longer than 4000 characters (`message_too_long`) or with a control or format character
|
|
2288
2663
|
(`unprintable`), a Claude session a Claude sender reaches with its own `SendMessage` (`use_send_message`; two lanes
|
|
2289
|
-
answering to that name: `handle_ambiguous`),
|
|
2290
|
-
(`
|
|
2664
|
+
answering to that name: `handle_ambiguous`), without `queue: true` a lane only its keyboard reaches
|
|
2665
|
+
(`transport_never_types`: a message never types into a terminal) or one no adapter reaches from here
|
|
2666
|
+
(`recipient_busy`), a Codex lane whose app-server names several
|
|
2291
2667
|
threads (`handle_ambiguous`) or does not answer (`handle_unavailable`), a `codex queue` that could not start
|
|
2292
2668
|
(`codex_queue_failed`) and a Throttle bus that refused it or took no connection (`bus_unavailable`) — those queue it
|
|
2293
2669
|
instead with `queue: true`; a `codex queue` or Throttle that may have taken it without answering is no refusal but
|
|
2294
2670
|
`delivered_by: unknown` (held, never sent again) —, the addresses and the routing rule as
|
|
2295
2671
|
`lanes_send` does; `lanes_message_ack` an id the agent's own inbox does not hold (`unknown_message`). Every tool
|
|
2296
2672
|
refuses a lane of another container (`not_in_container`). The edits go
|
|
2297
|
-
through the same minimal editor as everything else here: one span of strict JSON, the
|
|
2298
|
-
|
|
2299
|
-
|
|
2673
|
+
through the same minimal editor as everything else here: one span of strict JSON, never the root `throttle` object,
|
|
2674
|
+
never a rename or reorder of terminals. The file is the repository's, so its history is git's: no backup file is
|
|
2675
|
+
written.
|
|
2676
|
+
|
|
2677
|
+
One writer at a time, and never a lost lane (BEY-7435). Every writer of a terminals.json — these tools, and on the
|
|
2678
|
+
host the sidebar's `P` and `u`, `lanes unregister`, `lanes register` and `lanes cursor-sync --write` — holds a lock
|
|
2679
|
+
on it while it writes (a `.terminals.json.lock` file beside it that exists only for those milliseconds), reads the
|
|
2680
|
+
file again under the lock and applies only its own change to what it finds, so a lane another writer added a moment
|
|
2681
|
+
earlier stays. A write that would make a lane it does not remove disappear is refused instead, `registry_row_vanished`,
|
|
2682
|
+
naming the lane; nothing is written. Try it once more; if it refuses again, a person runs `lanes doctor`. When a lane
|
|
2683
|
+
has lost its row while its binding survived (its session shows as unregistered; `lanes doctor` says "binding without
|
|
2684
|
+
board row"), `lanes_register` on that session — or `lanes register <id>` on the host, with the session's id or the
|
|
2685
|
+
lane id doctor names — puts the row back: the same id, the same tmux session, its own name. It answers
|
|
2686
|
+
`outcome: repaired_from_binding`, and refuses when the binding records an id its name does not give or its session
|
|
2687
|
+
is not running. Known exceptions, BEY-7435 follow-ups, still write without the lock: the Rust native `lanes
|
|
2688
|
+
unregister` and `lanes cursor-sync` when the host routes them native (`flags/native.client`, `LANES_RS_*`),
|
|
2689
|
+
`scripts/propose-terminal-annotations.py --write`, and a container that still runs a lane-mcp from before the lock,
|
|
2690
|
+
until `lanes install-container` (or the 1.8.1 update) reinstalls it.
|
|
2300
2691
|
|
|
2301
2692
|
Left to people, on purpose (no tool exists for them): ending or closing a lane, interrupting one, opening or
|
|
2302
2693
|
attaching one, uploads, the host's `lanes sync`/`gc`/`ensure`, renaming a tmux session, and any change to a session
|
|
@@ -2385,7 +2776,7 @@ rows (1.6.0 added Throttle's Muse Code and Z.ai pools' rows; 1.5.0 the Kimi pool
|
|
|
2385
2776
|
|
|
2386
2777
|
| Row | What it shows |
|
|
2387
2778
|
| --- | --- |
|
|
2388
|
-
| `⚙ throttle` | One line for the Throttle pool: with the opt-in token, overflow spend today against the daily cap, new 429s and the spill fraction — one pool's figure, never a sum: the Anthropic and OpenAI overflow budgets are separate money, so the row shows the pool nearest its cap, one at its alert level first (Kimi has no paid overflow, so its pool never gives the money); without the token ` ⚙ throttle up · spill 76% · 429 +4
|
|
2779
|
+
| `⚙ throttle` | One line for the Throttle pool: with the opt-in token, overflow spend today against the daily cap, new 429s and the spill fraction — one pool's figure, never a sum: the Anthropic and OpenAI overflow budgets are separate money, so the row shows the pool nearest its cap, one at its alert level first (Kimi has no paid overflow, so its pool never gives the money); without the token ` ⚙ throttle up · spill 76% · 429 +4`; ` cannot reach · <host:port>` in amber when the pulse's request never reached the daemon (in a fleet container the control port is not forwarded to the pulse's container — the operator declares a reachable forward as `LANES_THROTTLE_CONTROL` in the server's site.conf; the daemon is not known to be down, and every provider row then shows `?`); ` down` in red when the daemon answered and refused |
|
|
2389
2780
|
| `◆ anthropic`, `◆ openai`, `◆ moonshot`, `◆ meta`, `◆ z.ai` | One availability bar per provider pool — Claude, Codex, (1.5.0) Kimi Code's, whose vendor is Moonshot AI, and (1.6.0) Throttle's `muse-code` (Meta's Muse Code) and `zai` (Z.ai) pools: ten cells of usable `▰`, cooling `▱`, benched `▪` and dead `·` accounts (ASCII `=` `~` `:` `.`), then the usable count of the configured ones (` ◆ anthropic ▰▰▰▰▰▰▱▪·· 12/19`), then — with the token — the worst weekly or 5-hour burn and the soonest reset. A daemon with no Kimi account shows ` ◆ moonshot ·········· 0/0`, which is no alarm (the same for no Muse Code or Z.ai account); `no data` means the pulse did not report the pool (a pulse from before 1.5.0, or 1.6.0 for `meta` and `z.ai`, still running, or a daemon without that pool: [RUNBOOK](RUNBOOK.md#harnesses)). Kimi, Muse Code and Z.ai have no paid overflow, so their pools never give the Throttle row's money. There is no Grok row: Throttle has no xAI pool |
|
|
2390
2781
|
| `▣ productbox` | The host: CPU and memory utilization, the 1-minute load, the highest pressure (PSI) figure |
|
|
2391
2782
|
| `▣ <container> …` | The three workspace containers using the most memory |
|
|
@@ -2393,12 +2784,13 @@ rows (1.6.0 added Throttle's Muse Code and Z.ai pools' rows; 1.5.0 the Kimi pool
|
|
|
2393
2784
|
At 18–26 rows the block is three rows — Throttle, the provider with the smallest usable share (a pool with nothing
|
|
2394
2785
|
configured is never that one), the host — and smaller panes show none. Parts that do not fit are dropped from the end. A row turns amber when overflow spend reaches its alert
|
|
2395
2786
|
level, a provider has no usable account, memory is fully stalled, memory use reaches 90 % or the CPU 95 % (its lead
|
|
2396
|
-
mark turns amber even when that part was dropped)
|
|
2787
|
+
mark turns amber even when that part was dropped) or the pulse cannot reach the daemon (` cannot reach`: the provider
|
|
2788
|
+
rows show `?`, never a bar from stale counts); red when the daemon answers and refuses. The whole block is dim, with a
|
|
2397
2789
|
`?` after `throttle`, when its figures are frozen because statusd or the Throttle pulse stopped: the host's more than a
|
|
2398
2790
|
minute old, the pulse's more than 90 s (it rewrites every 60 s and is read up to about 84 s later).
|
|
2399
2791
|
|
|
2400
|
-
**`i`** folds the block to one line, ` fleet ✓ · throttle 53% · cpu 42% · mem 61%` (`⚠` something amber
|
|
2401
|
-
down), and unfolds it again; the choice is kept in your profile (`look.fleet_collapsed`), so every device you own
|
|
2792
|
+
**`i`** folds the block to one line, ` fleet ✓ · throttle 53% · cpu 42% · mem 61%` (`⚠` something amber or the pulse
|
|
2793
|
+
unable to reach the daemon, `✗` Throttle down), and unfolds it again; the choice is kept in your profile (`look.fleet_collapsed`), so every device you own
|
|
2402
2794
|
follows it. The `?` key sheet takes the block's rows while it shows. On the phone the same block is drawn above the
|
|
2403
2795
|
footer.
|
|
2404
2796
|
|
|
@@ -2412,7 +2804,10 @@ small pulse that runs inside the container where the Throttle daemon runs — th
|
|
|
2412
2804
|
loopback, so the host cannot ask it itself. `lanes install-container` starts that pulse in the daemon's container (the
|
|
2413
2805
|
one `LANES_THROTTLE_CONTAINER` in the server's `~/.config/lanes/site.conf` names, else the container of the Throttle
|
|
2414
2806
|
tab) and every server update ships it again. The pulse only reads (GET), never changes the daemon, and writes one small
|
|
2415
|
-
file.
|
|
2807
|
+
file. Where the daemon's control port is not on the pulse's loopback (a fleet container forwards only the data planes),
|
|
2808
|
+
the operator puts `LANES_THROTTLE_CONTROL=<url>` — a plain `http(s)://host:port` the pulse's container can reach —
|
|
2809
|
+
into the same site.conf; every start of the pulse then polls that URL, and until then the block says ` cannot reach`
|
|
2810
|
+
with `?` on every provider row ([RUNBOOK](RUNBOOK.md#fleet-block-and-throttle-pulse-operator-steps-140)).
|
|
2416
2811
|
|
|
2417
2812
|
**Money and burn are opt-in.** Without a token the pulse reads only the daemon's open routes (readiness and metrics):
|
|
2418
2813
|
no spend, no burn figures. The operator turns them on once, per daemon container: `lanes throttle adopt-token
|
|
@@ -2443,7 +2838,9 @@ systemctl --user enable --now lanes-economy.service
|
|
|
2443
2838
|
```
|
|
2444
2839
|
|
|
2445
2840
|
`lanes economy --once [--dry-run] [--status-file F --sessions-file F]` runs one poll; stderr names each source it
|
|
2446
|
-
could not read. Settings: `LANES_THROTTLE_CONTROL` (base URL, or `none` for no request
|
|
2841
|
+
could not read. Settings: `LANES_THROTTLE_CONTROL` (base URL, or `none` for no request; declared once as the same key
|
|
2842
|
+
in the server's `~/.config/lanes/site.conf`, which the installer renders into the unit and the Throttle pulse polls —
|
|
2843
|
+
the environment overrides it for this unit alone), `LANES_THROTTLE_TOKEN_FILE`
|
|
2447
2844
|
(a bearer in a file — `/status` and `/sessions` need it on loopback too, else they answer `HTTP 401`), `LANES_THROTTLE_CONTAINER` (read the log through that container's home volume),
|
|
2448
2845
|
`LANES_THROTTLE_LOG_DIR` (where `proxy.log` lives). A daemon bound to loopback inside its container is not reachable
|
|
2449
2846
|
from the host: use `LANES_THROTTLE_CONTROL=none` there (the log fold still works). Details:
|
|
@@ -2479,10 +2876,14 @@ Covered in section 3: one notification per lane entering Needs you, from the sid
|
|
|
2479
2876
|
(`Needs you`, `Needs approval`, `Error`). It reads only `status.json`, the registry and `enrol-requests/`, every 3 s,
|
|
2480
2877
|
and on such a transition the files that say who was at a desk (below).
|
|
2481
2878
|
A push says
|
|
2482
|
-
`<lane name>: <agent task> — <status>` and `lanes-launch lane <id
|
|
2879
|
+
`<lane name>: <agent task> — <status>` and `lanes-launch lane <id>`; when the server sets `lane_url` (E4, BEY-8667),
|
|
2880
|
+
the first line alone, and a tap opens the lane list of that lane's workspace on the phone view `lane_url` names, one
|
|
2881
|
+
view for the whole server, since a push names no person ([Phone controls](#phone-controls)). Every device subscribed
|
|
2882
|
+
to the topic gets the same text and tap, a desk's ntfy client too. It also pushes once per new enrolment request
|
|
2483
2883
|
(`Enrol request`: `<name or login> · <device>` and `lanes enrol approve <id>`), never muted by presence, once per
|
|
2484
2884
|
request even across restarts. It sends lane names, task titles and requesters' names and device names to the server
|
|
2485
|
-
you configure,
|
|
2885
|
+
you configure, and, when `lane_url` or `action_url` names `{ws}`, workspace names in the tap address, so enabling it
|
|
2886
|
+
is your decision. Not yet run against a real ntfy server or phone.
|
|
2486
2887
|
|
|
2487
2888
|
`~/.config/lanes/notify.conf` (`LANES_NOTIFY_CONF` at install time renders another path), `key=value` lines:
|
|
2488
2889
|
|
|
@@ -2492,7 +2893,8 @@ you configure, so enabling it is your decision. Not yet run against a real ntfy
|
|
|
2492
2893
|
| `topic` | required | `[A-Za-z0-9_-]{1,64}`; on a public server the topic name is the only secret |
|
|
2493
2894
|
| `token_file` | unset | A file holding an ntfy access token (an unreadable file disables sending; written, rotated or made readable later, it is picked up within 3 s) |
|
|
2494
2895
|
| `quiet_when_device_active_s` | `120` | Presence window; `0` never suppresses — except for the one person present when their profile sets a `notify.quiet_s` of its own |
|
|
2495
|
-
| `action_url` | unset | A URL template over `{lane}
|
|
2896
|
+
| `action_url` | unset | A URL template over `{lane}` and `{doc}`, for documents: `https://<server>:8443{doc}`. It is the tap target of a `published` push and its **Open document** button, and, while `lane_url` is unset, of a needs-you push and its **Open lane** button, which then opens the server's root, because `{doc}` is empty there: set `lane_url` for that push. `{doc}` is the docs page of the document a `published` push names (`/lanes-docs/d/<id>`, so `https://<server>:8443{doc}` opens it) and empty in a needs-you push. The docs service sends a `published` push (lane name, kind and size, never the title) when it stores a document an agent published, at most one per lane per minute, muted like the others while you are at a desk |
|
|
2897
|
+
| `lane_url` | unset | (E4, BEY-8667) The tap target of a needs-you push and its **Open lane** button, in place of `action_url`: a URL template over `{lane}` and `{ws}`, the name of the lane's workspace, percent-encoded, and empty for a lane in no workspace. `https://<server>:8443/<device>-phone?ws={ws}` opens that workspace's lane list on that phone view ([Phone controls](#phone-controls)); name the view in the path, because at `/` the query is lost. With it set, the push leaves out the `lanes-launch` line. **Open lane** opens the lane list, not the lane (the owner's question Q4, BEY-8670, open). `{ws}` also works in `action_url`, where a `published` push leaves it empty, so keep `action_url` for documents (before E4 a `{ws}` there was sent as written; now it carries the name, or nothing) |
|
|
2496
2898
|
|
|
2497
2899
|
Nothing is sent when the status did not change, when the service just started (no burst on restart), or when a desk
|
|
2498
2900
|
device was present within the presence window: a `lanes attach` from any device, or a lane opened from a desk
|
|
@@ -2875,7 +3277,7 @@ From the [RUNBOOK](RUNBOOK.md#never):
|
|
|
2875
3277
|
| Footer `⚠ lane sockets deleted` | Someone emptied a container's `/tmp` | `lanes sockets repair` | [RUNBOOK](RUNBOOK.md#tmux-server--is-not-running-on-every-lane-at-once-deleted-sockets) |
|
|
2876
3278
|
| Viewport: THIS VIEWER DISCONNECTED | The viewer's tmux client dropped; it retries | Wait; if it keeps saying `is not provisioned`, pick another lane | [RUNBOOK](RUNBOOK.md#what-you-see-and-what-it-means) |
|
|
2877
3279
|
| A view session you do not recognise in `lanes doctor`'s `view sessions:` (an old device, a mistyped device name) | A device file keeps it alive | `lanes device list`, `lanes device forget <name>` | [RUNBOOK](RUNBOOK.md#server-as-the-workspace-account) |
|
|
2878
|
-
| A tablet shows the phone lane picker | The device was created with the phone layout | `lanes web <new-device> --desktop` | [RUNBOOK](RUNBOOK.md#web--phone) |
|
|
3280
|
+
| A tablet shows the phone lane picker | The device was created with the phone layout (`--mobile`). It follows the phone's rule (E2, BEY-8667): letters typed on its picker, a hardware keyboard's too (INFERRED from the code), type and act on nothing: every printable key but `j`, `k` and `/` types, while the arrows, `Enter`, `Tab` and `Esc` stay keys | `lanes web <new-device> --desktop`; until then, on the server: `lanes lane pin\|unpin\|hide\|show <lane-id> --login <login>`, `lanes rename <lane-id> <new-name>`, `lanes unregister <lane-id>`, `lanes message <lane-id> <text>` | [RUNBOOK](RUNBOOK.md#web--phone) |
|
|
2879
3281
|
| Phone keyboard does not open, or opens unexpectedly | The keyboard opens only from **Type here** or an input | Tap **Type here**; quick keys never open it | [RUNBOOK](RUNBOOK.md#web--phone) |
|
|
2880
3282
|
| Phone shows no counts | Phone view laid out before the picker change | `lanes rebuild <device>` | [RUNBOOK](RUNBOOK.md#web--phone) |
|
|
2881
3283
|
| `lanes web` printed a `127.0.0.1` URL | The host has no Tailscale name | Connect Tailscale on the host; there is no public fallback | [INSTALL](INSTALL.md#laptop-and-tablet-browser) |
|
|
@@ -2913,7 +3315,7 @@ Server and views:
|
|
|
2913
3315
|
| `LANES_DIM` | `libexec/sidebar.py` (`libexec/tokens.py` outside it) | `90` | `2` uses SGR 2 for dim text in 16-colour mode; the device file's `dim` wins; forwarded into the view sessions `bin/lanes` creates |
|
|
2914
3316
|
| `LANES_NOTIFY` | `libexec/sidebar.py` | unset (on) | `0` silences OSC 9; the device file's `notify` wins; forwarded into the view sessions `bin/lanes` creates |
|
|
2915
3317
|
| `NO_COLOR`, `COLORTERM`, `LC_ALL`, `LC_CTYPE`, `LANG` | `libexec/sidebar.py` | — | Colour and glyph defaults |
|
|
2916
|
-
| `LANES_THROTTLE_CONTROL` | `libexec/economy_poll.py` | `http://127.0.0.1:19181` | Throttle control URL; `none` sends no request |
|
|
3318
|
+
| `LANES_THROTTLE_CONTROL` | `libexec/economy_poll.py`; as a site.conf key: `bin/lanes`, `libexec/statusd.py`, `install/services.py` | `http://127.0.0.1:19181` | Throttle control URL; `none` sends no request. In the server's `site.conf` the same key is the pulse's `--control` (validated at `lanes sync`) and the unit's default |
|
|
2917
3319
|
| `LANES_THROTTLE_TOKEN_FILE` | `libexec/economy_poll.py` | unset | File holding a bearer token |
|
|
2918
3320
|
| `LANES_THROTTLE_CONTAINER` | `libexec/economy_poll.py` | unset | Read the daemon log through this container's home volume |
|
|
2919
3321
|
| `LANES_THROTTLE_LOG_DIR` | `libexec/economy_poll.py` | `~/.local/share/throttle` | Where `proxy.log` is read; wins over the container |
|