Panes and broadcast
A tab can hold several terminals side by side. Each one is called a pane, and each pane is its own connection to a host. Broadcast sends what you type in one pane to several panes at once, which is useful when you run the same steps on a few servers.
Splitting and closing panes
Section titled “Splitting and closing panes”A tab holds up to 6 panes. Press Ctrl+Shift+D to split to the right or Ctrl+Shift+O to split downward (Cmd+D and Cmd+Shift+D on macOS). The host switcher opens with the title “Open in a new pane to the right” or “Open in a new pane below”. Pick a host, which can be the one you are already on, or the local shell, and it becomes the new pane. The new pane gets the focus.
A split is refused, with a line in the status bar, when the tab already has 6 panes, when there is not enough room for another pane, or while the composer holds a confirmation you have not answered. A session an agent opened always stays alone in its tab and cannot be split.
Drag the line between two panes to resize them. The line moves while you drag, and the panes take their new size when you let go. With the line focused, the arrow keys move it by 2 percent (10 percent with Shift), and Enter or a double click makes the panes equal again.
Ctrl+Shift+W closes the focused pane (Cmd+W on macOS). It closes that pane’s connection, and when it was the last pane it closes the tab. The close button in a pane’s header, named “Close pane”, does the same. The close button of a tab that holds several panes, named “Close tab with N panes”, closes all of them without asking.
Panes are not restored when you quit Valakes.
Moving between panes
Section titled “Moving between panes”Click a pane, or press Ctrl+Alt+Arrow to move the focus to the pane in that direction (Cmd+Option+Arrow on macOS). If there is no pane that way, nothing happens. The first click on a pane only gives it the focus. A program such as vim in that pane never sees the click.
If Ctrl+Alt+Arrow turns your screen, turn off the graphics hotkeys in the Intel graphics settings. Some Intel drivers take that key for screen rotation, so it never reaches Valakes. A click always works.
Focus moves only when you do something: a click, a focus key, a split, a close, switching tabs, or pressing Take over in an agent’s approval card. Output, a password prompt or a reconnect in another pane never takes it from you.
Ctrl+Shift+Enter shows the focused pane alone, using the whole tab (Cmd+Shift+Enter on macOS). Press it again to see the others. The other panes keep running while they are hidden. This is not the terminal font size, which has its own keys on Keyboard shortcuts.
Zoom is unavailable while a broadcast is armed, because a zoomed pane would hide hosts that receive what you type. The status bar says “Stop the broadcast to zoom a pane”. If a pane is zoomed when you start a broadcast, the tab shows all its panes again.
What follows the focused pane
Section titled “What follows the focused pane”One composer serves the whole tab, and it belongs to the focused pane. It shows that pane’s host and environment, and the command you run goes to that pane. The file browser shows the focused pane’s host too, and it stays open or closed as you move the focus. The status bar names the focused pane’s host, and the share chip of the built-in assistant follows it. F1 opens Help from a pane in composer mode; in a pane in Raw mode, F1 goes to the program.
Each pane has its own output, its own password prompts and its own host key prompts. A prompt in a pane you are not in waits there and blocks only that pane.
Memory
Section titled “Memory”Each pane keeps its own scrollback. With the default of 100 000 lines, a pane that has filled its scrollback uses about 240 MiB of memory at about 100 columns wide. Wider panes use more and narrower ones less. Six full panes are close to 1.4 GiB. A pane that has printed little uses far less. If this matters on your computer, lower Scrollback lines in Settings, Appearance.
How broadcast works
Section titled “How broadcast works”There are two forms, and you choose one each time you start.
- Commands (checked per host). You write a command in the composer of one of the panes. Valakes checks it for every host, shows a card with the result for each host, and runs it only on the hosts you confirm.
- Keystrokes (raw, no checks). Every key you type in the focused pane also goes to the other panes in the broadcast, as in Raw mode. Nothing is checked. Keystroke broadcast runs no command check, and what you type is not read or explained. Use it for programs such as
vim,topor an interactive prompt.
A broadcast has 2 to 6 panes of one tab. Only one broadcast runs in a window, and starting another replaces the first.
Starting a broadcast
Section titled “Starting a broadcast”A tab with two or more panes has a Broadcast button at the right end of the tab strip. It opens a list of the tab’s panes with a check box for each, and every pane that can join is already checked. Pick the form, then press Start broadcast. No key starts a broadcast, so a stray key cannot do it.
A pane cannot join when it is a local shell, when an agent opened it, when you shared it with an agent or with the built-in assistant, or when it is not connected. The list shows it greyed out with the reason.
Once it runs, every pane that takes part has a violet frame and a chip that reads “BROADCAST · COMMANDS” or “BROADCAST · KEYS”. The tab shows a chip, in Commands mode the composer lists the hosts after “To:”, and the status bar says “Broadcasting to N hosts” with a Stop button. The button on the tab strip now reads “Broadcasting · N”, and pressing it stops the broadcast. Ctrl+Shift+X stops it too (Cmd+Shift+X on macOS). Switching to another tab stops it, and so does closing the tab.
If Valakes cannot stop the broadcast, it says “The broadcast could not be stopped. Try Stop again.” The broadcast is still running, and Stop is still there.
Commands
Section titled “Commands”Press Enter in the composer of one of the panes. A card titled “Broadcast command” appears every time, also when every host is a development host and the command is harmless. It has one row per host with the environment, the risk and the command as that host will run it. Each host works out its own version, with its own saved credentials, and judges its own risk with its own environment. A command rated Medium on a production host is raised to High, as it is for a single host.
Uncheck a host to leave it out. A host that cannot run the command is greyed out with its reason, for example “not at a prompt” or “not connected”, and nothing is sent to it. The card also skips a host when the only way to run the command there would put a password on the command line. Only one card is open at a time, and it expires after about two minutes. If the broadcast ends while a card is open, the card goes and nothing on it runs.
Run has the focus when no checked host is production and nothing is rated High. Otherwise Cancel has it, so pressing Enter does not run the command. In a long list you have to scroll to the end before Run turns on.
Valakes never puts a saved password on the command line of a broadcast command. A password you type into the command yourself goes to every host as you typed it. After a broadcast command starts, a program that waits for input on each host gets keys only from the focused pane. Use Keystrokes to type into all of them.
Keystrokes
Section titled “Keystrokes”When the broadcast starts, every pane in it switches to Raw mode, and the focused pane’s typing goes to all of them. Keystroke broadcast runs no command check: a mistyped rm runs on every host. When the broadcast ends, the panes that Valakes switched go back to the composer. A pane that was already in Raw mode stays there. If you switch one pane back to the composer with Ctrl+Shift+M, that pane leaves the broadcast.
The window shortcuts, such as Ctrl+Shift+X, stay with Valakes and are not sent to the hosts.
A paste into the broadcast is not sent at once. A card titled “Paste N lines into M panes” lists the hosts and the first lines, and Cancel has the focus. Text that would be a bracketed-paste end marker is removed first, as for any paste. A paste over 64 KiB is refused: “This paste is too large to broadcast (64 KiB at most). Paste it into each pane.” A paste of two or more lines adds a note: On hosts whose program does not take bracketed paste, each line runs as it arrives.
Production hosts
Section titled “Production hosts”A host counts as production when it is marked Production, and also when its saved record was changed outside Valakes (see Hosts and production marking). Broadcast adds these rules for it.
- A command card with a production host asks you to type. With exactly one production host you type that host’s name. With two or more you type their number, for example “Type 2 to run on 2 production hosts”. Run stays off until what you typed matches.
- A command rated High needs the box “Run the High-risk command anyway” checked.
- A keystroke broadcast that includes a production host first shows a window from Valakes titled “Send keystrokes to production hosts?”. It lists the hosts and their environments. The default is Cancel, and if you cancel, nothing starts and a broadcast that was already running keeps running.
- While a keystroke broadcast with a production host runs, every pane in the broadcast shows a red banner such as “Keys go to 3 hosts, 1 production. Broadcast stops after 2 minutes without typing.”
- A paste into a keystroke broadcast with a production host asks for the same typed host name or number.
When a keystroke broadcast ends
Section titled “When a keystroke broadcast ends”A keystroke broadcast stops by itself after 2 minutes without typing. You cannot change that time. A command broadcast has no timer. In the last 15 seconds the chip of every pane, and the banner when there is one, count down, for example “Broadcast stops in 12 s”. Typing in any pane of the group starts the two minutes again.
It also ends by itself when fewer than two panes are left because a pane closed, lost its connection or was switched back to the composer, when a host in it is changed to production or its saved record is changed outside Valakes, and when the Valakes window reloads.
When a keystroke broadcast ends by itself, or a pane drops out because its connection ended, you may still be typing as if every host were listening. For 10 seconds the first key you type in a pane that was in the broadcast is held back once. It goes nowhere, not even to that pane, and the pane says “Broadcast stopped: keys now go to this pane only”. Your next key goes through.
When you stop it yourself, with Stop, the shortcut, the tab button, another tab or a new broadcast, no key is held back. After any end of a keystroke broadcast, keys that were already on their way are dropped. They go to no host, not even the pane they were typed in, and the focused pane shows a line such as “Keys typed after the broadcast ended were not sent (N bytes).” The number counts bytes, so one arrow key can count as 3.
Passwords
Section titled “Passwords”Do not put a password in a broadcast command. Hosts that need one can fill it from the vault: each host uses its own credentials and its own check that a prompt is real, and a host that would ask shows its Fill chip in its own pane, where you confirm it one host at a time. See Composer and Raw mode.
While keys are broadcast, Valakes writes no saved password or secret to any pane in the broadcast, by any method. If a command was waiting for a saved password when the broadcast started, Valakes does not answer it, then or after the broadcast ends. The program on that host can still be waiting for input. What you type at a prompt goes to every host as keystrokes. Do not type a password while broadcasting keys unless it is the same account on every host. Start the broadcast when no command is waiting for a password.
What is recorded
Section titled “What is recorded”Broadcast commands are kept in the audit log, with saved credentials removed. Do not type a password into a broadcast command.
For each host, the log keeps the command as that host planned it (at most 2 000 characters), the risk, and whether it was sent, skipped or cancelled and why. Valakes removes the values of saved credentials and of the secrets it recognises in a command line. It cannot recognise every secret, and Valakes does not delete entries from the log, so a password you type yourself can stay there for good. The log keeps only each host’s version of the command, with those values removed. The line exactly as you typed it is not stored.
For both forms the log also records when the broadcast started and ended, on which hosts, and why it ended. A keystroke broadcast records only the number of bytes sent to each host, never the keys. See What does the audit log prove?
Agents and the assistant
Section titled “Agents and the assistant”Agents cannot start, join or send to a broadcast. There is no agent tool or API call for it, and the built-in assistant has none either. A session an agent opened cannot join, and neither can one you shared with an agent or with the assistant. While a broadcast runs you cannot share one of its panes: Valakes says “Stop the broadcast first.”
All keys are on Keyboard shortcuts, in the sections Panes and Broadcast.