an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
fix(ui): 1:1 joins the agent controls, and the heading goes
Chaitanya Giri999b86356a3d
diff --git a/src/renderer/src/components/AgentControlStrip.tsx b/src/renderer/src/components/AgentControlStrip.tsxindex 6b07a8b2..22332389 100644--- a/src/renderer/src/components/AgentControlStrip.tsx+++ b/src/renderer/src/components/AgentControlStrip.tsx@@ -1,5 +1,6 @@import { useEffect, useRef, useState } from 'react';import { PixelButton } from './PixelButton';+import { AgentHoldButton } from './AgentHoldButton';/*** Operator control for one agent (#7C.1-7C.3) — pause (deny tools at the next@@ -10,14 +11,17 @@ import { PixelButton } from './PixelButton';* The labels used to be "CONTROL", "pause", "halt", "steer", which told you the* mechanism and nothing about the consequence. "Control" what, and what is the* difference between pausing and halting? Both stop something; only one is- * recoverable in the same breath. So each button now says what HAPPENS, the- * heading says what the section governs, and the explanations are on a styled- * hover tip rather than a native `title` that waits a second and then renders- * an unstyled OS bubble.+ * recoverable in the same breath. So each button says what HAPPENS, and the+ * explanations are on a styled hover tip rather than a native `title` that+ * waits a second and then renders an unstyled OS bubble.*- * Not in this strip on purpose: the 1:1 hold, which lives next to IDE in the- * header. Pause and halt stop the AGENT; hold stops MICHAEL sending it work.- * Grouping them would suggest they are three flavours of the same thing.+ * The heading is gone: once the buttons read as sentences it was labelling the+ * obvious, and a row of three clear verbs needs no title above it.+ *+ * The 1:1 hold sits here too. It is a different KIND of control — the other two+ * restrain the AGENT, 1:1 restrains MICHAEL, and the agent keeps running and+ * answering you — so that distinction now lives in its tooltip rather than in+ * the layout.*/interface Snapshot {paused: boolean;@@ -71,11 +75,6 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {borderBottom: '1px solid var(--cth-ink-300)', flexShrink: 0}}><div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>- <span- className="cth-tip cth-tip-left cth-tip-wrap"- data-tip="What this agent is allowed to do right now, and a way to nudge it mid-run. Nothing here ends the agent or loses its session."- style={{ fontFamily: 'var(--cth-font-display)', fontSize: 9, color: 'var(--cth-ink-500)', marginRight: 2, cursor: 'help' }}- >WHAT THIS AGENT CAN DO</span>{/* Neither of these kills anything, and the old two-word labels neversaid so — the difference is WHEN the agent stops and whether it keepsits session. Say the consequence on the button, the detail on hover. */}@@ -99,6 +98,11 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {stop after this step</span></PixelButton>+ {/* Sits with them at the founder's call. It is a different KIND of+ control — the two above restrain the agent, this one restrains+ Michael — so the tooltip carries that distinction now that the+ grouping no longer does. */}+ <AgentHoldButton agentId={agentId} />{/* v0.3.4: the auto-delivery switch moved to the god's Command Centerheader — ONE floor-wide control instead of a per-agent toggle. */}{snap?.autoDeliveryPaused && (diff --git a/src/renderer/src/components/AgentDetailPanel.tsx b/src/renderer/src/components/AgentDetailPanel.tsxindex cb86e37e..6519a592 100644--- a/src/renderer/src/components/AgentDetailPanel.tsx+++ b/src/renderer/src/components/AgentDetailPanel.tsx@@ -12,7 +12,6 @@ import { SidebarTabs } from './SidebarTabs';import { ThreadsPanel } from './ThreadsPanel';import { ToolWaterfall } from './ToolWaterfall';import { AgentControlStrip } from './AgentControlStrip';-import { AgentHoldButton } from './AgentHoldButton';import { EditAgentModal } from './EditAgentModal';import { GitTab } from './GitTab';import { Icon } from './Icon';@@ -134,7 +133,6 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {</PixelButton>{/* v0.3.4: the IDE lives at agent level (replaces the old files tab) —opens the full-window Monaco editor rooted at this agent's workspace. */}- <AgentHoldButton agentId={agent.id} /><PixelButton variant="secondary" size="sm" onClick={() => useStore.getState().setIdeOpen(true, agent.id)}><spanclassName="cth-tip cth-tip-wrap"diff --git a/src/renderer/src/components/AgentHoldButton.tsx b/src/renderer/src/components/AgentHoldButton.tsxindex 41cd1c9d..35d645d0 100644--- a/src/renderer/src/components/AgentHoldButton.tsx+++ b/src/renderer/src/components/AgentHoldButton.tsx@@ -4,18 +4,19 @@ import { Icon } from './Icon';import { useStore } from '@/store/store';/**- * 1:1 HOLD — "I have this agent, Michael stop sending it work."+ * 1:1 — "I have this agent, Michael stop sending it work."*- * Sits immediately left of the IDE button on BOTH agent surfaces (the sidebar- * detail panel and the focus-mode header) because focus mode covers the title- * bar, so a title-bar control simply vanishes in the mode where you are most- * likely to be working with one agent one-on-one.+ * Lives in `AgentControlStrip` beside "block tools" and "stop after this step",+ * so it is present in both sidebar and focus mode. It was briefly in the title+ * bar, which focus mode covers, making it invisible in the one mode you are+ * most likely to be in during a 1:1.*- * Distinct from the pause and halt controls below the header, and the tooltip- * says so, because the three look interchangeable and are not: pause and halt- * stop the AGENT (deny its tools, or stop it after this step), while hold stops- * MICHAEL (the agent keeps running and answering you). Halt in particular is- * the wrong tool for a 1:1 — it stops the agent you wanted to talk to.+ * It is a different KIND of control from the two it sits with, and the tooltip+ * carries that since the grouping no longer does: those two restrain the AGENT+ * (take its tools, or stop it after this step), while this one restrains+ * MICHAEL. The agent keeps running and keeps answering you. "Stop after this+ * step" is in fact the worst thing to reach for in a 1:1, because it stops the+ * agent you wanted to talk to.** Never rendered for Michael himself: telling the orchestrator to stop routing* work to itself is not a state worth having.@@ -58,12 +59,12 @@ export function AgentHoldButton({ agentId }: { agentId: string }) {<spanclassName="cth-tip cth-tip-wrap"data-tip={on- ? `Release ${agent.name}. Michael can hand them work again.`- : `Hold ${agent.name} for a 1:1. Michael stops sending them work until you release. They keep running and answering you — this is not pause or halt.`}- aria-label={on ? 'Release this agent to Michael' : 'Hold this agent for a 1:1'}+ ? `End the 1:1. Michael can hand ${agent.name} work again.`+ : `Take ${agent.name} aside. Michael stops sending them work until you end it. Unlike the two buttons here, this does not restrain the agent: they keep running and keep answering you.`}+ aria-label={on ? 'End the 1:1 and release this agent to Michael' : 'Take this agent aside for a 1:1'}style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>- <Icon name={on ? 'pause' : 'play'} /> {on ? 'on hold' : 'hold'}+ <Icon name={on ? 'pause' : 'play'} /> {on ? 'in 1:1' : '1:1'}</span></PixelButton>);diff --git a/src/renderer/src/components/FullscreenTerminal.tsx b/src/renderer/src/components/FullscreenTerminal.tsxindex 02ea4f1d..5d78d690 100644--- a/src/renderer/src/components/FullscreenTerminal.tsx+++ b/src/renderer/src/components/FullscreenTerminal.tsx@@ -6,7 +6,6 @@ import { PtyTerminalView } from './PtyTerminalView';import { terminalInstanceKey } from './terminalRecovery';import { MessageQueueComposer } from './MessageQueueComposer';import { AgentControlStrip } from './AgentControlStrip';-import { AgentHoldButton } from './AgentHoldButton';import { CommandCenterPanel } from './CommandCenterPanel';import { Icon } from './Icon';import { SpritePortrait } from './SpritePortrait';@@ -963,7 +962,6 @@ function Header({ agent }: { agent: Agent }) {fullscreen does not change the selection, so leaving the IDE to inferits agent would open whichever agent happens to be selected in thesidebar rather than the one filling the screen. */}- <AgentHoldButton agentId={agent.id} /><PixelButton variant="secondary" size="sm" onClick={() => useStore.getState().setIdeOpen(true, agent.id)}><spanclassName="cth-tip cth-tip-wrap"