Skip to content

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

fix(ui): Edit Agent matches Add Agent's box, and a pencil that reads at 16px

Chaitanya Giridc9576310288
diff --git a/src/renderer/src/components/EditAgentModal.tsx b/src/renderer/src/components/EditAgentModal.tsx
index bc92f105..b7e2a383 100644
--- a/src/renderer/src/components/EditAgentModal.tsx
+++ b/src/renderer/src/components/EditAgentModal.tsx
@@ -101,12 +101,24 @@ export function EditAgentModal({ agent, onClose }: EditAgentModalProps) {
zIndex: 500
}}
>
- <div onClick={(e) => e.stopPropagation()} style={{ width: 520, maxWidth: '94vw' }}>
+ {/* Same box as Add Agent (940 / 95vw / 86vh). They are the two halves of
+ one job — describe an agent — and a tall narrow dialog next to a wide
+ one reads as two unrelated screens. */}
+ <div onClick={(e) => e.stopPropagation()} style={{ width: 940, maxWidth: '95vw' }}>
<PixelPanel variant="dialog" title="EDIT AGENT" style={{ padding: 16 }} noPadding>
<div style={{
display: 'flex', flexDirection: 'column', gap: 14,
- padding: 16, maxHeight: '82vh', overflowY: 'auto'
+ padding: 16, maxHeight: '86vh', overflowY: 'auto'
}}>
+ {/* Two columns so the extra width is used rather than padded.
+ Identity and Engine are short field lists; Briefing is free
+ text and takes the taller side. minHeight keeps the dialog from
+ collapsing into a wide thin strip on a small form. */}
+ <div style={{
+ display: 'grid', gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',
+ gap: 16, alignItems: 'start', minHeight: 260
+ }}>
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 14, minWidth: 0 }}>
<Section label="Identity" hint="name · character · color">
<Row label="Name">
<input
@@ -243,6 +255,8 @@ export function EditAgentModal({ agent, onClose }: EditAgentModalProps) {
</span>
</Section>
+ </div>
+ <div style={{ minWidth: 0 }}>
<Section label="Briefing" hint="description · goal">
<Row label="Description">
<input
@@ -259,10 +273,12 @@ export function EditAgentModal({ agent, onClose }: EditAgentModalProps) {
onChange={(e) => setGoal(e.target.value)}
placeholder="long-running directive injected on every prompt"
rows={4}
- style={{ ...inputStyle, fontFamily: 'var(--cth-font-ui)', resize: 'vertical', minHeight: 72 }}
+ style={{ ...inputStyle, fontFamily: 'var(--cth-font-ui)', resize: 'vertical', minHeight: 200 }}
/>
</Row>
</Section>
+ </div>
+ </div>
<div style={{ display: 'flex', gap: 8, justifyContent: 'flex-end', marginTop: 4 }}>
<PixelButton variant="ghost" size="md" onClick={onClose}>cancel</PixelButton>
diff --git a/src/renderer/src/components/Icon.tsx b/src/renderer/src/components/Icon.tsx
index 6daaad51..95cf13a1 100644
--- a/src/renderer/src/components/Icon.tsx
+++ b/src/renderer/src/components/Icon.tsx
@@ -39,13 +39,15 @@ 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, drawn as solid 45-degree rows on the 16x16 grid: flat eraser end
+ // top-right, tapering to a point bottom-left, with the graphite tip as the
+ // accent. The first attempt was a thin stair-step outline, which at 16px read
+ // as a broken zigzag rather than an object — this set is chunky (see `x` and
+ // `check`), so the pencil has to be a solid mass too.
pencil: {
accentColor: 'var(--cth-lemon)',
- ink: 'M11 1h2v2h1v2h-2V3h-1V1zM9 3h2v2h1v2h-2V5H9V3zM7 5h2v2h1v2H8V7H7V5zM5 7h2v2h1v2H6V9H5V7zM3 9h2v2h1v2H4v-2H3V9zM1 11h2v2h1v2H1v-4z'
+ ink: 'M10 1h5v1h-5zM9 2h6v1h-6zM8 3h6v1h-6zM7 4h6v1h-6zM6 5h6v1h-6zM5 6h6v1h-6zM4 7h6v1h-6zM3 8h6v1h-6zM2 9h6v1h-6zM2 10h5v1h-5z',
+ accent: 'M2 11h4v1h-4zM2 12h3v1h-3zM2 13h2v1h-2zM2 14h1v1h-1z'
},
pause: {
accentColor: 'var(--cth-lemon)',