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

merge: cc-ui polish (fullscreen tab bar + compact composer) into release/v0.2.7

Chaitanya Giri466ba4fb7942
diff --cc src/renderer/src/components/MessageQueueComposer.tsx
index 5cca56d6,3b69c12c..747cf078
--- a/src/renderer/src/components/MessageQueueComposer.tsx
+++ b/src/renderer/src/components/MessageQueueComposer.tsx
@@@ -260,78 -172,39 +260,81 @@@ export function MessageQueueComposer({
}}>{ffHint}</span>
)}
- {/* Composer — a full-width input above a single tidy control bar. The
- input fills the whole width (no side column stealing space) and the
- Delegate toggle / voice / send sit in one aligned row beneath it, so
- there's no dead space from a stacked column taller than the textarea. */}
+ {/* Attached files/images — chips with a remove 'x', above the textarea. */}
+ {attachments.length > 0 && (
+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: 4 }}>
+ {attachments.map((a) => (
+ <span
+ key={a.path}
+ title={a.path}
+ style={{
+ display: 'inline-flex', alignItems: 'center', gap: 4,
+ maxWidth: '100%',
+ padding: '2px 4px 2px 6px',
+ background: 'var(--cth-cream-200)',
+ boxShadow: 'inset 0 0 0 1px var(--cth-ink-700)',
+ fontFamily: 'var(--cth-font-mono)', fontSize: 12, lineHeight: '16px',
+ color: 'var(--cth-ink-900)'
+ }}
+ >
+ <Icon name="folder" />
+ <span style={{
+ overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', maxWidth: 180
+ }}>{a.name}</span>
+ <button
+ onClick={() => removeAttachment(a.path)}
+ title="Remove attachment"
+ style={{
+ flexShrink: 0, border: 'none', background: 'transparent', cursor: 'pointer',
+ color: 'var(--cth-ink-500)', padding: 0,
+ display: 'inline-flex', alignItems: 'center'
+ }}
+ >
+ <Icon name="x" />
+ </button>
+ </span>
+ ))}
+ </div>
+ )}
+
- {/* Composer */}
- <div style={{ display: 'flex', gap: 6, alignItems: 'flex-end' }}>
++ {/* Composer — full-width input above a single tidy control bar (cc-ui-polish),
++ with file/image attachment chips + paste-to-attach (rich-composer). */}
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>
<textarea
value={text}
onChange={(e) => setText(e.target.value)}
onKeyDown={onKey}
- rows={2}
+ onPaste={onPaste}
+ rows={5}
placeholder={idle ? `Message ${agent.name}` : `${agent.name} is busy — queue a message`}
style={{
- flex: 1,
+ width: '100%',
- resize: 'none',
+ resize: 'vertical',
+ minHeight: 96, maxHeight: 320,
padding: '6px 8px',
background: 'var(--cth-paper-100)',
border: 'none',
boxShadow: 'inset 0 0 0 1px var(--cth-ink-700)',
fontFamily: 'var(--cth-font-mono)',
- fontSize: 14, lineHeight: '18px',
+ fontSize: 13, lineHeight: '18px',
color: 'var(--cth-ink-900)',
- outline: 'none'
+ outline: 'none',
+ boxSizing: 'border-box'
}}
/>
- {/* Right column: Delegate toggle (god only) + Attach + Free Flow mic ABOVE Send. */}
- <div style={{ display: 'flex', flexDirection: 'column', gap: 6, alignItems: 'stretch' }}>
- {/* Control bar: Delegate toggle (god only) on the left, voice + Send aligned right. */}
++ {/* Control bar: Delegate (god only) left; Attach + voice + Send aligned right. */}
+ <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
{agent.isGod && (
<DelegateSwitch on={delegate} onToggle={() => setDelegate((d) => !d)} />
)}
- <PixelButton variant="secondary" size="md" onClick={pickFiles}>
+ <span style={{ flex: 1 }} />
++ <PixelButton variant="secondary" size="sm" onClick={pickFiles}>
+ <span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>
+ <Icon name="plus" /> files
+ </span>
+ </PixelButton>
{freeflowEnabled && <FreeFlowButton agentId={agent.id} />}
- <PixelButton variant="primary" size="md" onClick={queueIt} disabled={!canSend}>
- <PixelButton variant="primary" size="sm" onClick={queueIt} disabled={!text.trim()}>
++ <PixelButton variant="primary" size="sm" onClick={queueIt} disabled={!canSend}>
<span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>
send <Icon name="arrow-right" />
</span>