Shells
A line that is not an @ command or a / skill runs in the tab’s shell. One command runs at a time per tab. Output streams in while it runs. Ctrl+C stops that command and everything it started.
Each tab starts one persistent interactive shell session when it opens. Termorq loads that shell’s normal startup configuration once, then sends each composer command to the same session. The working directory and exported variables therefore carry forward to later commands in that tab.
Startup configuration
Termorq starts the shell once when the tab opens. The shell reads its startup files using its usual interactive login rules; Termorq does not source those files before each command.
| Shell | Startup behavior |
|---|---|
| zsh | Starts as an interactive login shell, so the normal login and interactive files run, including ~/.zshrc. |
| bash and Git Bash | Start as interactive login shells. Bash follows its normal login startup-file selection; .bashrc runs when the selected startup file sources it. |
| fish and sh | Start in interactive login mode and follow that shell’s own startup rules. |
| PowerShell | Loads profiles according to the host’s normal rules. PowerShell 7 on macOS and Linux starts with its login option. |
| Command Prompt | Starts with its configured native behavior, including any configured AutoRun command. |
| WSL | Starts the selected distribution’s shell inside that distribution, using its own startup files. |
For example, set a variable or activate an environment in one command, then use it in a later command in the same tab. Open a new tab to start a separate session.
How a command’s output is captured
Each submitted command prints a private start marker just before it runs. Termorq treats the command as finished only after that marker has appeared, so a prompt that repaints on its own — for example when a freshly opened tab is first sized — is never mistaken for the command completing. Without this, the very first command in a new PowerShell or WSL tab could come back empty while a second, identical command worked.
Once the command’s prompt boundary lands, Termorq keeps collecting output until the stream goes quiet instead of stopping after a fixed delay. A long listing that is still arriving when the boundary is published is therefore captured in full rather than cut short.
Commands that keep running
Some commands do not return a prompt until you stop them. In an AppHost directory, aspire run starts the dashboard and the app and leaves that process in the foreground. An HTTP listener and an agent CLI do the same.
Termorq leaves that command running. While another process owns the terminal, a missing prompt is not a failed session, and the 30-second wait does not stop it. Output keeps streaming. Ctrl+C stops the command and everything it started. The shell then returns to the prompt.
A shell loop that runs other programs is treated the same way when it takes longer than 30 seconds. For example:
for i in {1..4}; do sleep 10; echo "loop $i"; doneThat runs for about 40 seconds and prints loop 1 through loop 4. Between each sleep the shell has the terminal for a moment, and it has the terminal again while it draws the next prompt. Termorq keeps waiting through those moments. When the prompt returns, the loop’s output stays in the scrollback and the next command in that tab runs as usual.
If the shell itself has held the terminal for 30 seconds and still has not published a prompt, the session failed to hand control back. Termorq interrupts the command and reports that it did not finish. Press the command again, or open a new tab if the session is stuck.
When a session stops responding
The shell session can occasionally wedge, so it never reports that it is ready for the next command. When a command waits more than 30 seconds for the session to become ready, Termorq stops waiting and writes Shell session failed. Reestablishing the session…, then starts a fresh shell in the same tab and reruns the command once, writing Shell session reestablished. Rerunning the command. The new shell is a clean start: the working directory and exported variables from the wedged session are gone, so re-run any cd or export the command relied on. If the new session also fails to become ready, Termorq says so and leaves the command unrun; try it again.
Which shells

Settings → Shell picks the default shell for new tabs, from the ones installed here. A tab keeps the shell selected when it was created. Changing the setting affects new tabs; it does not change existing tabs.
| Platform | Choices |
|---|---|
| macOS and Linux | bash, zsh, fish, sh, PowerShell 7 |
| Windows | Windows PowerShell, PowerShell 7, Command Prompt, Git Bash; WSL appears after enabling it in Settings → Experimental |
The + button uses the saved default. The shell picker beside it opens a new tab with the chosen shell and leaves the saved default unchanged. To use a different shell, open a new tab with the picker. The header shows the active tab’s shell. @shell opens that shell as an interactive terminal.
Notify when a long command finishes
A command that runs at least 10 seconds and finishes in a tab you are not looking at, or while Termorq is in the background, shows a desktop notification such as Build: failed (exit 2) with the command and how long it took. The tab gets an accent dot until you open it. Settings → Notify after sets the seconds; 0 turns it off. The first notification asks the system for permission. A persistent shell command uses the same rule.
WSL distribution
WSL is experimental and off by default. On Windows, enable Settings → Experimental → Windows Subsystem for Linux (WSL) to show it in shell selectors. Then right-click a WSL tab and pick a distribution under WSL distribution. The list comes from wsl.exe --list --quiet, default first. Default follows whatever wsl --set-default chose. Each tab keeps its own choice across restarts. Turning the flag off hides WSL from shell selectors; existing WSL tabs stay open. A WSL tab starts one interactive shell session in the selected distribution. Composer lines go to that session, so its directory and environment changes carry over; WSL file and API/MCP operations use the selected distribution and do not fall back to the Windows host.
On Windows, messages from wsl.exe itself, such as “no installed distributions”, show as plain text. A shell that is no longer installed falls back to the default with one line saying so. Windows defaults to PowerShell.
Start folder
Settings → Start folder is where new tabs open. Type a path or choose Browse…. Empty uses the folder of the first tab. The prompt shows the folder in front of ❯.
The start folder is the initial directory for a new shell session. A cd command in the composer or in Interact changes that session’s directory, which is used by later shell commands and reflected in the tab prompt. New tabs still use Settings → Start folder or, when it is empty, the folder of the first tab.
A pane you split is different. Settings → Terminal → Same folder for a new pane is on by default, so the new pane starts in the folder of the pane you split, including after cd. Turn it off and that pane uses Start folder.

Ghost text and completion
As you type, ghost text offers a completion. History comes first, then a small set of common commands for the platform (PowerShell style on Windows, bash and zsh style on macOS and Linux).
Tab accepts the ghost text when it is showing. Otherwise Tab completes a path or a command on PATH, and Tab again cycles the matches. → at the end of the line also accepts the ghost text.
Exported variables in API and MCP fields
An API connection’s Credential source is Saved credential or Shell variable. Choose Shell variable and type the exported name, such as API_TOKEN. Termorq stores shell://API_TOKEN. The value is read from the active tab when you test or call an endpoint.
An MCP stdio server’s environment row has a source of Value or Shell. Shell saves the name only. The value is read from this tab when you test or connect. The row shows an active tab badge.
On an environment row, the status is Available in this tab, Not available in this tab, Shell snapshot unavailable, or Check active tab for availability. A missing or stale session fails a regular call, a stream, a model-agent endpoint call, and an MCP stdio connect, test, or tool search before it is sent. The form does not show the value. Typing in the prompt does not look up a shell variable.
bash, zsh, sh, and fish on this computer publish exports, removals, and the working directory when the shell is ready for the next line, not on a timer. PowerShell publishes from its prompt function, and Command Prompt publishes once before its first prompt. Neither uses a timer. Their native run is still a separate check.
Each tab keeps its own exported values. A different WSL distribution keeps its own as well. A call that has already started keeps the values from when it started. The name list for the tab does not include those values. The command history file, a Markdown export, a recording, a desktop notification, persisted tabs, a trace, and the text sent to a model drop that value, including when it arrives in two pieces.