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): the focused input says so — darker, thicker border

Chaitanya Giri5b3d71e2f91b
diff --git a/src/renderer/src/components/AgentControlStrip.tsx b/src/renderer/src/components/AgentControlStrip.tsx
index 22332389..d1e88362 100644
--- a/src/renderer/src/components/AgentControlStrip.tsx
+++ b/src/renderer/src/components/AgentControlStrip.tsx
@@ -113,13 +113,14 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {
</div>
<div style={{ display: 'flex', gap: 6 }}>
<input
+ className="cth-input"
value={steer}
onChange={(e) => setSteer(e.target.value)}
onKeyDown={(e) => { if (e.key === 'Enter') sendSteer(); }}
placeholder="send this agent a note… (arrives as context on its next turn, nothing is typed into its terminal)"
style={{
flex: 1, padding: '4px 6px', background: 'var(--cth-paper-100)', border: 'none',
- boxShadow: 'inset 0 0 0 1px var(--cth-ink-100)', fontFamily: 'var(--cth-font-ui)',
+ fontFamily: 'var(--cth-font-ui)',
fontSize: 12, color: 'var(--cth-ink-900)', outline: 'none'
}}
/>
diff --git a/src/renderer/src/components/MessageQueueComposer.tsx b/src/renderer/src/components/MessageQueueComposer.tsx
index bf007ce1..8fb25b94 100644
--- a/src/renderer/src/components/MessageQueueComposer.tsx
+++ b/src/renderer/src/components/MessageQueueComposer.tsx
@@ -331,6 +331,7 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
with file/image attachment chips + paste-to-attach (rich-composer). */}
<div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>
<textarea
+ className="cth-input"
value={text}
onChange={(e) => setText(e.target.value)}
onKeyDown={onKey}
@@ -349,7 +350,9 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
padding: '6px 8px',
background: 'var(--cth-paper-100)',
border: 'none',
- boxShadow: 'inset 0 0 0 1px var(--cth-ink-100)',
+ // Border lives in .cth-input so :focus can change it — an inline
+ // boxShadow here would outrank the stylesheet and the focus state
+ // would silently never apply.
fontFamily: 'var(--cth-font-mono)',
fontSize: composerFontSize, lineHeight: `${composerLineHeight}px`,
color: 'var(--cth-ink-900)',
diff --git a/src/renderer/src/design/global.css b/src/renderer/src/design/global.css
index ae792259..d3afc3c8 100644
--- a/src/renderer/src/design/global.css
+++ b/src/renderer/src/design/global.css
@@ -68,6 +68,21 @@ canvas, img, svg { image-rendering: pixelated; image-rendering: crisp-edges; }
outline-offset: 2px;
}
+/* Text inputs — resting border faint, focused border dark and thicker.
+ The resting 1px ink-100 is deliberately quiet so a panel full of boxes stays
+ calm, but that left NOTHING saying which box has the keyboard: these inputs
+ set `outline: none` (the global focus ring above sits OUTSIDE the inset
+ border and reads as detached from it), so the browser's own signal was gone
+ too. Focus now darkens and thickens the inset border instead.
+
+ Inset, so 1px to 2px changes no geometry and the text does not shift when you
+ click into the box. Both :focus and :focus-visible: a textarea you clicked
+ into is exactly as focused as one you tabbed into, and here we WANT the mouse
+ case — it is the one the founder is looking at while typing. */
+.cth-input { box-shadow: inset 0 0 0 1px var(--cth-ink-100); }
+.cth-input:focus,
+.cth-input:focus-visible { box-shadow: inset 0 0 0 2px var(--cth-ink-700); }
+
/* Custom scrollbar — chunky, pixel-feel */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track {