mBm TUI (mbm2)
Menu

Troubleshooting

Known Issues

Issue Workaround State
Every prompt on the mBm gateway's m-team-2 tier fails: the gateway maps it to an upstream model the upstream does not have (model not found, seen 2026-11-22) Pick another mBm model with <leader>m Open on the gateway (tracker row 8.34). Unverified: the exact error text the transcript shows
mbm2 upgrade from v2.15.07 or earlier to v2.15.65 or later stops with the runtime archive holds no mbm (or mbm.exe): older clients expect v1's runtime binary, which releases no longer carry Run the install command once: curl -fsSL https://tui.mbm.mn/install | bash (Windows: irm https://tui.mbm.mn/install.ps1 | iex); later mbm2 upgrade works again Once per install
A piped stdin (echo hi | mbm2) is not read into the prompt as v1 does Use --prompt "…" Not built

Symptoms

Symptom Likely cause Fix
mbm2: no mBm engine at … Local mode, and no ~/.mbm2/runtime/mbm-runtime (mbm-runtime.exe on Windows) Re-run the installer (without --no-runtime), set MBM2_ENGINE_BIN to an engine, or use --attach <url>
mbm2: this command needs a v1 mbm named by MBM_SERVER_BIN; … A v1 command mbm2 does not serve itself, such as mbm2 debug, without MBM_SERVER_BIN: no release ships v1, re-installing does not add it, and mbm2 does not use an mbm on PATH (ADR 0282) Install v1 yourself and set MBM_SERVER_BIN=/path/to/mbm
mbm2: MBM2_ENGINE=off is removed (ADR 0277): … MBM2_ENGINE=off is set; there is no v1 runtime to switch to Unset it; to compare with v1 set MBM_SERVER_BIN to a v1 mbm
Installer: wrong password The install password was mistyped or is not current Re-run and type it again; ask whoever gave it for the current one
mbm2: serverproc: timed out after 30s waiting for … The spawned mbm serve did not report its address in time The message includes the server's last output lines; on a slow machine set MBM_TUI_SERVER_START_TIMEOUT=60s
mbm2: serverproc: … exited during the handshake … The spawned mbm serve crashed at start Run mbm serve yourself to see its error; check MBM_SERVER_BIN points at v1's mbm
mbm2: the Go engine did not start: … The bundled mbm-runtime failed; there is no v1 fallback (ADR 0277) Read the reason; report it with the log, or use --attach <url> meanwhile
mbm2: the Go engine did not start: engine data directory is in use by another runtime (<dir>, pid N, version V): …; that engine does not answer at the address it recorded … Another engine holds the session store and recorded an address it does not answer at: a hung process. Several current mbm2 windows share one engine and never show this End process N (kill N, Task Manager on Windows), then run the command again
mbm2: the Go engine did not start: engine data directory is in use by another runtime (<dir>, pid N, version V): …; that engine records no address — it is stopping, or it is an mbm2 from before 6.56 … The engine is stopping: it withdrew its address and lets the store go once its connections have drained and its store is closed. mbm2 waits about ten seconds for that before it says so Run the command again in a moment; if it repeats, end process N
team generate --dry-run, team status, models or doctor on a new mbm2 while windows of an older one still run Nothing to fix: a command that only reads uses the running engine whatever its version, at once, and asks no window to restart (v2.18.50 and older waited for the old engine and asked the windows) —
Sessions are missing after going back to an older mbm2 Since 2026-11-26 each session is stored as a folder (ses_<id>/ in mbm2 db path); an older mbm2 reads only the one-file form and does not see them Upgrade again (mbm2 upgrade): the sessions are there, unchanged. To read one with the older release, mbm2 export <id> > s.json on the new one and mbm2 import s.json on the old
The session ses_… could not be saved: … once in a session The engine could not write the session: the reason follows (a disk that is full, or one message over 32 MiB). It says so once per session until mbm2 restarts, and tries again at every change Keep a copy now: mbm2 export ses_… > ses_….json (the command is in the message). Then free disk space, or start a new session if one message was too large; mbm2 import ses_….json brings the copy back. mbm2 doctor lists the sessions over 20 MB
A ses_<id>.json.bak file in the session store A session from before 2026-11-26 was moved into its folder; the backup is the old file Nothing: it is removed the next time mbm2 starts and reads the folder
mbm2: the running mbm2 engine is another version: … An older mbm2 runs your engine and cannot hand it over to this one; a window joins only an engine of its own version Quit the mbm2 windows that use it, then start mbm2 again
Dialog New version installed — <old version> → <version> — in the middle of a window, or ↻ switching after 1 turn at the start of the line under the prompt You upgraded while mbm2 ran: the old engine finishes its turns and background jobs and waits for its windows to restart; the old windows are asked to restart themselves, and each has a line saying how far it is (Install) Keep working and let [Wait] switch by itself (esc closes the dialog; the ↻ status stays until the switch); /restart a window whose line says too old to restart when asked or its engine is too old; [Switch now] (click the ↻ status or press ctrl+o, then →, enter) stops the named turn, and its session then offers [Continue]
mbm2 <version>: the running engine is <old version>; /restart the open mbm2 windows of <old version> (or quit them) …, then waiting for the running engine (<old version>, pid N) to finish … from a CLI command The same, for a command that needs the new engine (a turn, a send): it waits for the old engine, then runs on the new one. It asks no window itself; each old window's line says /restart it there or quit it /restart (or quit) the old windows, or switch from an mbm2 window; commands that only read never wait
Toast Not sent yet — New turns start once mbm2 <version> runs its own engine … The window shows the old engine's sessions while it finishes; a new turn waits for the switch Your text stays in the prompt: send it after the switch, or [Switch now]
This turn was stopped by the update — [Continue] above a prompt [Switch now] stopped the turn this session was running Press enter on the empty prompt (or click [Continue]): the agent carries on from where it was
Dialog The switch did not happen with the running engine is still finishing its work after 10m0s (the footer says ↻ switch failed), or mbm2: the running mbm2 engine (<version>, pid N) is still finishing its work after 10m0s; … from a command The wait for the old engine timed out: a long job runs, or a turn waits for a permission answer in an old window Answer it, then [Retry] to wait again, or [Switch now]; MBM2_ENGINE_WAIT=30m waits longer
Toast v<version> installed — /restart to switch mbm2 upgrade ran in another terminal while this window was open Type /restart when convenient: the window comes back on the new version with its tabs and unsent prompts
mbm2: the Go engine did not start: … the engine data directory <dir> is mode 0755, so other users can open it; … The directory given to --engine-data-dir (or ~/.local/share/mbm/mbm2/engine) was made beforehand with mkdir and holds other files. mbm2 makes an empty directory, or one that already is an engine's, private (0700) by itself Run chmod 700 <dir> if the directory is yours, or point --engine-data-dir at a new or empty directory
… the engine data directory <dir> is mode 0755 and belongs to another user; … The directory is someone else's; the engine never changes another user's directory Use a directory of your own
mbm2: the Go engine did not start: … engine data directory must be a private directory (mode 0700): … grants S-1-… access Windows: the engine's directory (%USERPROFILE%\.local\share\mbm\mbm2\engine, or under XDG_DATA_HOME) lets another account in, usually because XDG_DATA_HOME points at a shared drive; a directory the engine creates itself is restricted to you, SYSTEM and Administrators Point XDG_DATA_HOME back inside your profile, or remove the other entries from that folder's Security tab
A worktree task's merge is refused with uncommitted changes to tracked files in its worktree The subagent changed tracked files without committing them; untracked files such as __pycache__ never cause it Ask the agent to resume the task with its task_id and commit, then merge (Parallel work)
Windows: a terminal tab opens but shows nothing, or the engine reports that terminals cannot start Terminal tabs need the Windows pseudo console, Windows 10 version 1809 or later Update Windows; ! commands and chat still work without it
mbm2: Failed to change directory to <path> The project path given to mbm2 <path> does not exist or cannot be entered Check the path; a relative one is taken from the current directory
return opens Connect a provider instead of sending No provider is connected Connect one (Connect)
Update Failed in the /upgrade dialog (or after Confirm in Update Available) The latest version could not be read, the download or the SHA256SUMS check failed, or the release is not published for your platform; the reason is on the dialog and nothing was installed Fix what the reason names (network, MBM2_DOWNLOAD_BASE) and run /upgrade again; mbm2 upgrade in a shell prints the same reason (Install)
/upgrade asks for the install password No MBM2_PASSWORD and no saved digest, or the site refused the saved one Type the install password; it is saved as its digest once it works
Could not connect provider after approving a ChatGPT device code Before this release the client gave up after 30 s while the sign-in waited Upgrade (mbm2 upgrade) and sign in again; the dialog now waits up to 15 minutes
Could not open authorization URL over SSH An old release tried to open a browser Upgrade; the URL is now shown, opened only on a click, and c copies the device code
Model "<id>" is not available in <tier> Your licence tier does not include that model Pick another model, or change plan on tui.mbm.mn/account
… [retrying in 4s attempt #2] under the prompt The provider failed for a moment: an HTTP 5xx such as the mBm gateway's 502, a 429 rate limit, an overload or a reset connection. The runtime sends the same request again after the provider's Retry-After, else after 2, 4, 8, 16, 30, 30, 60, 60 and 180 s; from the fifth attempt the line adds (connection issue? esc to stop) Wait, or press esc to stop the turn. A refusal such as 401 or a bad request is shown at once and never retried, and a reply that already showed text is not sent again
The reply ends with the provider's error after several retrying attempts The provider stayed down for all 9 retries (about six and a half minutes), or for longer than MBM_RETRY_BUDGET_MS Send the message again later, or pick another model with <leader>m
A dialog about the free tier or an account rate limit, with a link The mBm gateway is limiting your requests Follow the link to tui.mbm.mn/account, wait, or choose don't show again
Agent not found: <name> --agent names a hidden, subagent or unknown agent <leader>a lists the ones you can pick
Strip reads Not connected to <url> 401 (wrong credentials) or the URL is not an mBm server Check MBM_SERVER_USERNAME/MBM_SERVER_PASSWORD or -u/-p, and that the URL is the runtime, not a web page
mbm2: connect to <url>: unauthorized --session was checked with wrong credentials As above
mbm2: connect to <url>: … with --session The session id does not exist on that server, or the server is down Check the id with <leader>l without --session; check the URL and --dir
TLS error with --attach https://… Certificate not trusted, expired or for another name Fix the certificate or trust store; --insecure is for test servers only
Connection works directly but not through your proxy mbm2 does not use HTTPS_PROXY Connect without the proxy, or tunnel the port
Sessions you expected are missing Another server URL or --dir Use the Continue line mbm2 printed on exit; it carries both
mbm2: unexpected argument "…" Two project paths, or a path beside --dir Give one: mbm2 <path> or mbm2 --dir <path>
--fork requires --continue or --session --fork alone Add -c or -s <id>
Workers do not appear .mbm/workers.json[c] was rejected, has no workers, or MBM_DISABLE_PROJECT_CONFIG is set Look for workers config in the log; fix the named key; restart
no workers in .mbm/workers.json on <leader>w The file is missing or was rejected As above
A workspace rebind has no effect mbm2.json[c] was rejected (unknown key, bad shape, duplicate), or you have not restarted Look for mbm2 config in the log; restart
/claude shows Claude Code is not installed, but claude works in your shell The CLI is neither on mbm2's PATH nor in ~/.local/bin or ~/.claude/local Start mbm2 from a shell whose PATH has it, or choose Install (Claude Code tab)
the Claude Code installer exited with status <n>; its output stays in the claude-install tab The installer failed (network, curl, disk) Read the claude-install tab (alt+n); fix the cause; choose Install again
could not add claude: workers file has comments; edit it raw to keep them /claude and /worker do not rewrite a commented file Add the worker by hand (Workers)
mbm2 team send --wake reports that it gave up waiting for the engine The local wake waits up to 30 seconds for the engine to attach and respond. The hand-off is already in the inbox. Check the inbox before resending. If an older engine is still running, restart or close its mbm2 windows.
A terminal paste reports Input queue full or bytes not sent The paste exceeded the input limit, or the terminal could not send all the input. Check what arrived before retrying. Send a smaller paste if it was refused.
A Claude tab opens a fresh session after a runner change The old runner's session ID is forgotten, and Claude tabs ignore non-UUID IDs. To resume, use a Claude Code session UUID from that runner, not an mbm2 session ID.
a worker named "claude" already runs another command Your workers file has a claude worker with another command Rename that worker
the team bus is off: the runtime is not on this machine --attach to another host Team messages need a local runtime; use hand-off (<leader>f) instead
The bar shows needs you 2 · <leader>i Team messages wait for your approval /team, return on each, or a for auto mode (Teamwork)
Auto mode stops and asks Continue (+N) / Set limit… / Stop team_auto_budget messages (default 20) were delivered with no action from you Choose one; /config → Team auto budget raises the limit (1-1000)
/team shows Relay off and the hint to store an mBm key with mbm2 auth mbm No mBm key in v2's credential file mbm2 auth mbm (or mbm2 auth mbm --from-v1, or mbm2 license apply <key>), then restart
/team shows Relay off and the hint that relay: false switched it off You turned the relay off in mbm2.json[c] Remove "relay": false and restart
/team shows Relay connecting or Relay retrying — <error> The relay at relay_url (default https://tui.mbm.mn/relay) is not reachable yet Check the network; it retries by itself. Relay connected is the working state (Agent relay)
a peer name is a-z, 0-9, - and _, at most 32 characters /team peer add with another name Use a short lower-case name, e.g. /team peer add codex
A tab name is wrong — <leader>shift+r renames the focused worker (Workers)
split hidden: too narrow The window is below 80×12 (terminal pane) or 60×10 (session pane) per pane Widen the window, or use <leader>- to stack the panes
nothing to split with: add a worker first, for example /claude Only one tab and no workers /worker or /claude
no pipelines in .mbm/workers.json on <leader>j No pipelines in the file Add one (Teamwork)
Plugins is not available: not served by this server (or Account, Packages, Pricing) The runtime does not offer that panel: an older runtime, or --attach to one mbm2 upgrade, or attach to an up-to-date runtime
/account says This runtime has no mBm key No licence was applied on this runtime's computer mbm2 license apply <key> (Account, plans and plugins)
/account says The licence service refused this runtime's mBm key The key was rotated or revoked in your account Apply the licence again, or rotate the key in your account and use the new one
this device's mBm key was rotated or revoked — run mbm2 license apply <key> or mbm2 auth mbm (in /status, mbm2 license status or a reply) The key was rotated or revoked in your account, and mbm2 could not fetch the licence's current key: no licence was applied on this computer, or the licence refused it. The licence itself is not revoked mbm2 license apply <licence key>, or mbm2 auth mbm with a key from your account. A computer that applied the licence fetches the new key by itself
/pricing and /package say The licence service did not answer tui.mbm.mn unreachable from the runtime's computer Check the network; the panels try again on the next open (answers are kept a minute)
Plugin install: npm is not installed on the runtime host An npm: spec on a computer without npm Install Node.js there, or install from a directory
Plugin install: read mbm-plugin.json: … The directory or package has no manifest Add mbm-plugin.json (Skills and plugins)
A plugin shows ⚠ with an error Its manifest or one of its servers failed Read the error on its page in /plugins, fix it, then Reload
A new skill or a plugin's skills are not offered Skills are read when the runtime starts Restart mbm2
ctrl+c does not quit One press only asks (Press ctrl+c again to quit); while the agent works it interrupts; the prompt had text (the first ctrl+c clears it), a permission prompt was open (ctrl+c rejects it), or text was selected with copy-on-select off (ctrl+c copied it) Press it twice on an empty prompt, or ctrl+d
mbm2: The TUI stopped unexpectedly. and A panic stopped it A bug in mbm2; the run's log holds the stack under panic Restart; save a private bug report from Debug (b) and attach the log after reviewing it
<leader>q does not quit The prompt holds text; exit keys are ignored then Clear the prompt (ctrl+c), then <leader>q, or type /exit
The leader does nothing on a Cyrillic layout The terminal does not report alternate keys, so ctrl+ч is not matched to ctrl+x Use a terminal with the kitty keyboard protocol, switch layout for the chord, or add /alias words for commands
esc does not leave the session esc only interrupts a running turn <leader>l for the session list, /new for home
Copy does nothing over SSH Your terminal does not accept OSC 52 clipboard writes Enable clipboard access (OSC 52) in your terminal's settings; inside tmux also set -g allow-passthrough on
ctrl+v pastes nothing No clipboard tool (wl-paste, xclip, xsel, pbpaste) on PATH, or the clipboard is empty Install one, or use the terminal's own paste
This runtime cannot import sessions here; run `mbm2 import <file>` in a terminal The bundled runtime has no in-client import Run mbm2 import <file> in a shell
Sharing is turned off on this machine (MBM_DISABLE_SHARE) The runtime runs with MBM_DISABLE_SHARE Unset it where the runtime starts
Config status is not available: … The runtime does not report its configuration status Nothing to fix on the client; this release's bundled runtime does not report it
A tui.json setting is ignored That file has a known key with the wrong type, or a syntax error Look for tui config in the log; it names the file, line and column
Set $EDITOR or $VISUAL to edit … An older release Upgrade: raw edits now open the built-in editor (Configuration)
team auto on for this run only: … The team_auto write to mbm2.json[c] failed Fix the file the error names (mbm2 config in the log)
An alias does nothing The prompt was more than the alias, or had pasted text or files; or the alias is in a rejected mbm2.json[c] /alias lists the aliases in force
MCP server "<name>" is not in …; it comes from another config file ctrl+e/ctrl+d in MCPs on a server defined elsewhere (for example an operator's file) Edit that file by hand
v1 ignores your tui.json after using v2 It contains copy_on_select or another key v1 does not know Move copy_on_select to mbm2.json[c]; workers go in .mbm/workers.json
A key binding does nothing Unknown binding name (logged as keybinds), or a workspace chord took the same key Check the log; see Keybindings
Terminal unavailable on this server The runtime refused the PTY Check credentials and the server's terminal permission
Failed to export session No $VISUAL or $EDITOR, or the file could not be written Set EDITOR; check the working directory is writable
Screen is garbled or a dialog is stuck UI state ctrl+alt+r or /reset-ui
The mouse stopped working in one window: the wheel no longer scrolls and a drag selects whole rows, table borders included The terminal stopped reporting the mouse while mbm2 still draws for it ctrl+l or /redraw (The mouse stopped working)
Text is cut, glued to the left edge, drawn over the sidebar, or a background stops mid-row A rendering fault Open the debug panel (command palette → Toggle debug panel) and press f to save the frame (Saving a frame); attach the folder it names to your report
Copy does nothing inside tmux tmux drops the client's wrapped copy sequence Add set -g allow-passthrough on to your tmux config; the log line clipboard names the copy paths used and the guidance

The Mouse Stopped Working In One Window

mbm2 asks the terminal once to report the mouse, focus changes and pastes, and to send the keyboard's extra keys. If something turns those reports off behind its back — the terminal's own Reset, a program that wrote to the terminal, a sequence that reached it — the wheel stops scrolling that window and a drag becomes the terminal's own selection: whole rows, the table borders included. Other windows are not affected.

Do What happens
Press ctrl+l, or type /redraw The whole screen is drawn again and every report is asked for once more. In a terminal tab (/claude, /agy) the tab gets ctrl+l too
Switch to another window and back Focus coming back asks for the reports again by itself
Resize the window The same, after the resize

Asking again changes nothing in a terminal that still reports the mouse, so none of these flickers or ends a selection you are dragging. Focus reports are on whenever the mouse is, even with "recap": false. A terminal or multiplexer that never reports focus heals on ctrl+l and resize only. If the mouse stays off after ctrl+l, check the terminal's own setting (iTerm2: Settings → Profiles → Terminal → Enable mouse reporting) and send the debug log with the time it happened.

Saving A Frame

A rendering fault is easier to fix from the bytes the terminal was given than from a screenshot. Open the debug panel (command palette → Toggle debug panel) over the screen that looks wrong and press f. The panel closes, the frame under it is saved, and a toast names the folder:

File Holds
frame.ansi The frame exactly as written to the terminal, colour escapes included; cat frame.ansi in a terminal of the same size redraws it
frame.txt The same frame without escapes, for reading or pasting
frame.json The terminal's width and height, each row's width in cells and in bytes, and wide_rows / control_rows: the rows wider than the terminal or carrying a tab, carriage return or other control character

The folder is private to your account (mbm2-frame-… in the system temp directory). Unlike the bug report (b), a frame holds what was on screen — your conversation's text — so review it before you share it.

Logs

Item Value
Directory ~/.local/share/mbm/log/ ($XDG_DATA_HOME/mbm/log/ when set)
File One per run, mbm-tui-YYYY-MM-DDTHHMMSS.log; the newest ten are kept. v1's own logs sit beside them and are never pruned by mbm2
Exact file MBM_TUI_LOG=/path/to/file.log writes there instead (appended, never pruned)
More detail mbm2 --debug logs at debug level
Redaction Credential-shaped keys and values are written as [redacted]

mbm2 never writes logs to the terminal, so a problem before the first frame is only in the log. Configuration problems are logged as tui config, mbm2 config, workers config and keybinds.

If The Interface Stops

mbm2 draws v1's crash screen in place of the interface (layout simplified here):

 Please report an issue.

 A fatal error occurred!   Reset TUI   Exit

 Log for this run: /home/you/.local/share/mbm/log/mbm-tui-2026-11-22T101500.log
 To save a private bug report after restarting, open Debug and press b.
 Do not share a log before reviewing it.

 The TUI stopped unexpectedly.
 Enter r to reset the TUI, or press Enter to exit:
Answer Result
r, then Enter A fresh interface: it reconnects, reloads the session and its stream; the runtime and its sessions, terminals and workers kept running
Enter, or ctrl+c Leaves the screen, prints the log path and guidance, exits with status 1

The screen shows no stack trace and no issue link; the cause is in the log. Where a reset is not possible (no terminal, or the run was cancelled) only the guidance lines are printed with Automatic reset is unavailable here. Restart mbm2 manually. Review a log before sharing it. To save a private bug report after restarting, open the debug panel (command palette → Toggle debug panel) and press b. The mouse does not work on this screen.

If The Interface Freezes

When no key does anything and the screen stops changing for 5 seconds, mbm2 writes what it was doing to the run's log (Logs), once per freeze and at most once a minute. It keeps running; if it recovers, a stall over line follows with how long it lasted.

Line What it holds
msg=stall pending (how long input has waited), message (what the interface was handling), stage (update, view, init or loop), and stacks: where every part of the program was waiting
msg="stall over" after: how long the freeze lasted

The stacks name functions in mbm2, not your conversation, but review the log before you share it. If the freeze does not end, close the terminal tab and start mbm2 again; your sessions keep running in the engine. Attach the log to the report. An editor opened from mbm2 ($EDITOR) or ctrl+z is not a freeze and writes nothing. MBM_DISABLE_WATCHDOG=1 switches the check off.

When The Terminal Goes Away

mbm2 does not keep running without anyone to use it. The runtime and your sessions are not affected; only this window's interface ends.

What happened What mbm2 does
kill, kill -HUP, kill -INT, or the terminal or SSH connection closed Gives the terminal back and exits with status 1, printing The TUI stopped unexpectedly. and the log path; if it has not ended 10 seconds later, or on a second signal, the process exits anyway
The terminal it was drawing on is gone (a hung-up pty, a script that started mbm2 exited) Quits within a second, exit status 0; the log says quit reason="terminal hung up"
Its input is not a terminal (mbm2 < file) and the server has been unreachable for a minute Quits, exit status 0; the log says quit reason="server gone and no terminal". In a terminal it keeps reconnecting instead

Still Stuck

Collect the mbm2 --version output, the command you ran (without passwords) and the relevant log lines, and report them to the operator of your runtime or to the mBm support channel listed on https://tui.mbm.mn. Unverified: a public support address is not yet published on the site.

Published from revision f88fc66f 2026-11-30