Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

review: drop stale 'read-only' wording from TUI-view comments (views are interactive)

[._.]/ Adam Eivyecdaf3317f27
diff --git a/client/src/pages/Shell.jsx b/client/src/pages/Shell.jsx
index 67d549a6ba..0fb9084ce9 100644
--- a/client/src/pages/Shell.jsx
+++ b/client/src/pages/Shell.jsx
@@ -426,8 +426,8 @@ export default function Shell() {
sessionsRef.current = sessionList;
setSessions(sessionList);
// Auto-pick helper: skip sessions already attached to another socket so we don't
- // steal them via the shell:detached takeover. Also skip external read-only TUI
- // runs — those are opt-in views the user clicks into, never the default landing
+ // steal them via the shell:detached takeover. Also skip external TUI runs —
+ // those are opt-in views the user clicks into, never the default landing
// session. Manual tab clicks bypass this.
const pickUnattachedSurvivor = (list) => {
const free = list.filter(s => !s.attached && !s.external);
@@ -567,7 +567,7 @@ export default function Shell() {
// response will install the new session and the user's intent wins.
if (pendingAttachRef.current.target) return;
// Auto-attach to a survivor not already driving another tab (don't steal,
- // and don't auto-adopt a read-only TUI-run view).
+ // and don't auto-adopt a TUI-run view).
const free = sessionsRef.current.filter(s => s.sessionId !== sid && !s.attached && !s.external);
if (free.length > 0) {
// Claim pending immediately so the shell:sessions broadcast that follows
diff --git a/server/lib/promptRunner.js b/server/lib/promptRunner.js
index dfe24853fd..66ca3576bc 100644
--- a/server/lib/promptRunner.js
+++ b/server/lib/promptRunner.js
@@ -624,8 +624,8 @@ async function executeProviderRunOnce({ provider, prompt, source, model, runId:
}, effectiveTimeout);
executeApiRun({ runId, provider: effectiveProvider, model: effectiveModel, prompt, workspacePath: effectiveCwd, screenshots: [], onData, onComplete }).catch(safeReject);
} else if (effectiveProvider.type === PROVIDER_TYPES.TUI) {
- // `source` (e.g. 'pipeline-manuscript-completeness') labels the read-only
- // live view this TUI run surfaces in the Shell page.
+ // `source` (e.g. 'pipeline-manuscript-completeness') labels the live,
+ // interactive view this TUI run surfaces in the Shell page.
executeTuiRun({ runId, provider: providerForRun, prompt, workspacePath: effectiveCwd, onData, onComplete, timeout: effectiveTimeout, label: source }).catch(safeReject);
} else {
safeReject(new Error(`Unsupported provider type: ${effectiveProvider.type}`));
diff --git a/server/services/shell.js b/server/services/shell.js
index 6fc7d5d238..7ef1d4009c 100644
--- a/server/services/shell.js
+++ b/server/services/shell.js
@@ -8,7 +8,7 @@ const shellSessions = new Map();
// Soft ceiling on concurrent user-spawned interactive shells. Each session is a
// single idle PTY (a few MB, one OS process), and the deployment is single-user
// on a private network — so this is a sanity bound against runaway tab-spamming,
-// not a resource/abuse defense. External read-only views (TUI runs) don't count.
+// not a resource/abuse defense. External views (TUI runs) don't count.
const MAX_TOTAL_SESSIONS = 20;
// PTY event handlers run outside the Express middleware chain — uncaught throws here
@@ -62,9 +62,9 @@ function getDefaultShell() {
* Create a new shell session
*/
export function createShellSession(socket, options = {}) {
- // Only user-spawned interactive shells count toward the cap. External
- // read-only views (one-shot TUI runs registered via registerExternalSession)
- // are governed by their own runner and must not consume a shell slot.
+ // Only user-spawned interactive shells count toward the cap. External views
+ // (one-shot TUI runs registered via registerExternalSession) are governed by
+ // their own runner and must not consume a shell slot.
const interactiveCount = [...shellSessions.values()].filter(s => !s.external).length;
if (interactiveCount >= MAX_TOTAL_SESSIONS) {
console.warn(`🐚 Max total sessions reached (${MAX_TOTAL_SESSIONS})`);