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): buttons in a row sit at the same height, and edit gets an icon
Chaitanya Giri58269d8da540
diff --git a/src/renderer/src/components/AgentDetailPanel.tsx b/src/renderer/src/components/AgentDetailPanel.tsxindex bc25d0d2..6cf1168d 100644--- a/src/renderer/src/components/AgentDetailPanel.tsx+++ b/src/renderer/src/components/AgentDetailPanel.tsx@@ -123,13 +123,15 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {}}>{agent.project}</span></div></div>- <PixelButton- variant="secondary"- size="sm"- onClick={() => setEditOpen(true)}- title="Edit identity, engine, and briefing"- >- edit+ <PixelButton variant="secondary" size="sm" onClick={() => setEditOpen(true)}>+ <span+ className="cth-tip cth-tip-wrap"+ data-tip={`Edit ${agent.name}: their name and face, which engine they run on, and the briefing that tells them what they are for.`}+ aria-label="Edit this agent"+ style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}+ >+ <Icon name="pencil" /> edit+ </span></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. */}diff --git a/src/renderer/src/components/Icon.tsx b/src/renderer/src/components/Icon.tsxindex 323b5897..6daaad51 100644--- a/src/renderer/src/components/Icon.tsx+++ b/src/renderer/src/components/Icon.tsx@@ -7,7 +7,7 @@ export type IconName =| 'gear' | 'plus' | 'x' | 'check' | 'arrow-right' | 'pause' | 'play'| 'bell' | 'folder' | 'terminal' | 'code' | 'web' | 'mcp' | 'sparkle'| 'expand' | 'minimize' | 'clock' | 'mic' | 'ledger' | 'info' | 'sidebar'- | 'image';+ | 'image' | 'pencil';interface IconDef {ink: string; // primary color path d@@ -39,6 +39,14 @@ const paths: Record<IconName, IconDef> = {accentColor: 'var(--cth-sky)',ink: 'M8 3h2v2h2v2h2v2h-2v2h-2v2H8v-2h2V9H2V7h8V5H8V3z'},+ // Pencil on the 16x16 pixel grid: a diagonal body from top-right down to+ // bottom-left, a lighter nib at the tip. Drawn as stair-steps rather than a+ // smooth diagonal so it matches the rest of the set at 16px instead of+ // rendering as an anti-aliased smudge beside them.+ pencil: {+ accentColor: 'var(--cth-lemon)',+ ink: 'M11 1h2v2h1v2h-2V3h-1V1zM9 3h2v2h1v2h-2V5H9V3zM7 5h2v2h1v2H8V7H7V5zM5 7h2v2h1v2H6V9H5V7zM3 9h2v2h1v2H4v-2H3V9zM1 11h2v2h1v2H1v-4z'+ },pause: {accentColor: 'var(--cth-lemon)',ink: 'M4 3h3v10H4V3zm5 0h3v10H9V3z'diff --git a/src/renderer/src/components/PixelButton.tsx b/src/renderer/src/components/PixelButton.tsxindex bd286ebf..45c2d049 100644--- a/src/renderer/src/components/PixelButton.tsx+++ b/src/renderer/src/components/PixelButton.tsx@@ -88,6 +88,24 @@ export function PixelButton({onMouseEnter={() => setHover(true)}disabled={disabled}style={{+ // Centre content HERE rather than trusting each call site.+ //+ // A <button> with a fixed height centres bare text on its own, but a+ // child that is itself `inline-flex` (which every icon+label call site+ // uses, to sit the glyph beside the word) aligns on ITS baseline+ // instead. So a row of buttons where some labels were wrapped and some+ // were bare text — `edit` beside `IDE` and `terminal` — sat at visibly+ // different heights. Fixing it per call site fixes today's row and not+ // the next one someone writes.+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ // Matches the gap the wrapped call sites already use, so an icon can be+ // dropped in beside a label with no wrapper at all.+ gap: 4,+ // Kill descender-driven drift: with the height fixed above, an inherited+ // line-height only moves the text off centre.+ lineHeight: 1,height: heightBySize[size],padding: padBySize[size],background: palette.fill,