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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: stop claiming an attachable Stage 3 is headless while its PTY attaches (agy review)
Adam Eivyc73e08d02bfd
diff --git a/client/src/components/cos/tabs/AgentCard.jsx b/client/src/components/cos/tabs/AgentCard.jsxindex 377a022fb4..5ea037dcad 100644--- a/client/src/components/cos/tabs/AgentCard.jsx+++ b/client/src/components/cos/tabs/AgentCard.jsx@@ -383,7 +383,17 @@ export default function AgentCard({ agent, onPause, onKill, onDelete, onResume,// vendor declares an attachable recipe. An ordinary headless CLI agent gets no// chip — nobody expected a shell there, and one on every card would be the// noise this exists to remove.- const noShellReason = !agent.metadata?.tuiSessionId && agent.metadata?.publicReviewPosture+ //+ // `executionMode` is the authority on which way the run actually spawned, and+ // it is stamped at registration while `tuiSessionId` only lands once the PTY+ // attaches. An ATTACHABLE public-review stage therefore passes through a+ // window where the session id is still null — without this second condition+ // the card would spend that window asserting the stage runs headless, then+ // silently swap the claim for an "Open Shell" link (same reason the ordinary+ // TUI case is excluded below).+ const noShellReason = !agent.metadata?.tuiSessionId+ && agent.metadata?.executionMode !== 'tui'+ && agent.metadata?.publicReviewPosture? 'No shell: this public-review stage runs headless — either it is a tool-free reasoning stage, or its provider has no attachable sandbox recipe — so the screened PR content stays inside the sandboxed child. Watch the live output below to see what it is doing.': null;diff --git a/client/src/components/cos/tabs/AgentCard.test.jsx b/client/src/components/cos/tabs/AgentCard.test.jsxindex 033934d6d8..212d2b8c5e 100644--- a/client/src/components/cos/tabs/AgentCard.test.jsx+++ b/client/src/components/cos/tabs/AgentCard.test.jsx@@ -408,6 +408,21 @@ describe('AgentCard missing shell explanation', () => {expect(screen.queryByText('No shell')).not.toBeInTheDocument();});+ it('stays silent on an attachable public-review run that has not registered its session yet', () => {+ // The startup window an attachable Stage 3 now passes through: `executionMode`+ // is already 'tui' but `tuiSessionId` has not landed. Gating on the session id+ // alone made the card assert the stage runs headless for those seconds, then+ // swap the claim for an "Open Shell" link — a false diagnostic, and a worse+ // one if the PTY is merely slow to attach.+ renderCard(running({+ publicReviewPosture: 'sandboxed-actions',+ executionMode: 'tui',+ phase: 'initializing',+ }));++ expect(screen.queryByText('No shell')).not.toBeInTheDocument();+ });+it('stays silent on a TUI run that has not registered its session yet', () => {// `executionMode` is stamped at registration but `tuiSessionId` only lands// once the PTY attaches, so every healthy TUI spawn passes through this