Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
fix(tui): stop the panel erasing the slash menu, and keep the banner ASCII art (#221)
Abdurrahman Fakhrul36780c848337
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex f74a1e56..687f2d32 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -14,6 +14,7 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh**Fixed**+- `tui` stop the panel erasing the slash menu, and keep the banner ASCII art- `security` validate the model half of a provider/model ref- `security` read only .message from a caught error, never stringify it- `ci` check out full history, or the changelog gate fails on every rundiff --git a/scripts/mso-agent-banner-lines.mjs b/scripts/mso-agent-banner-lines.mjsindex 1a5c57af..6337e6c8 100644--- a/scripts/mso-agent-banner-lines.mjs+++ b/scripts/mso-agent-banner-lines.mjs@@ -8,10 +8,12 @@ export function withPreamble(preamble, lines) {}// Collects banner output through printAgentBanner's injectable print, so nothing is written to the-// terminal before the panel owns it. `keep` trims the result to its last few non-empty lines: the-// full banner is 31 lines on a 100 column terminal, which would occupy most of a 30 row viewport and-// push the conversation out. The tail is the part that carries information (tools, skills, how to get-// help), so the artwork is what goes.+// terminal before the panel owns it.+//+// Do NOT trim this. An earlier version kept only the last four lines on the theory that a 31 line+// banner crowds a 30 row viewport. In practice the banner is transcript content and scrolls away+// like anything else, so trimming it removed the ASCII art, which is the first thing the banner+// prints and the thing that makes the app look like itself.export function captureBanner(printBanner, s, agentSession, { keep = 0 } = {}) {const lines = [];printBanner(s, agentSession, { print: (line = "") => lines.push(String(line)) });diff --git a/scripts/mso-agent-screen-loop.mjs b/scripts/mso-agent-screen-loop.mjsindex d72e4018..fde97d27 100644--- a/scripts/mso-agent-screen-loop.mjs+++ b/scripts/mso-agent-screen-loop.mjs@@ -71,12 +71,14 @@ export function mountScreenLoop({const setPromptRows = (rows) => {// When the composer reports its painted row count, clamp it so the panel never jumps on erase// and never gets pushed off screen by a tall draft.+ //+ // Deliberately does NOT repaint here. The composer calls this WHILE it is painting its own draft+ // and completion menu, so painting the panel from home would erase both: pressing "/" showed the+ // draft and the whole command menu vanish. The reservation is still updated, and the next+ // keypress or sync repaints with the new geometry.const termRows = Math.max(6, Number(output.rows) || 24);const clamped = clampPromptRows(rows, termRows);- if (clamped !== promptReservation) {- promptReservation = clamped;- paint();- }+ if (clamped !== promptReservation) promptReservation = clamped;};if (composer) {diff --git a/scripts/mso-agent.mjs b/scripts/mso-agent.mjsindex 59d33063..b177b6b0 100644--- a/scripts/mso-agent.mjs+++ b/scripts/mso-agent.mjs@@ -52,7 +52,7 @@ async function main() {: (permissionMode(restartUi.permission)?.id || "ask");const [s, agentSession] = await Promise.all([state(), startupSession(requested, restartSessionId)]);if (!agentSession || agentSession.source !== "cli") throw new Error("could not establish a CLI MSO Agent session");- const bannerLines = altScreen.ok ? captureBanner(printBanner, s, agentSession, { keep: 4 }) : (printBanner(s, agentSession), null);+ const bannerLines = altScreen.ok ? captureBanner(printBanner, s, agentSession) : (printBanner(s, agentSession), null);session = {state: s,agentSession,