Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/*
Composer — dock, shell, textarea, toolbar, and the send/stop/nav controls.
Light/dark surface overrides live in theme-overrides.css; the menus that open
from the toolbar live in composer-menus.css.
*/
.composer-dock {
pointer-events: none;
display: flex;
justify-content: center;
width: 100%;
}
/* Thread mode: floating bottom dock. The transcript reserves the composer's
* measured height for scrolling and fades its own paint out across that
* reserve (see `.thread-scroll` in chat-shell.css), so the dock paints no
* backing at all. Painting an opaque `--ds-bg-primary` band here did clip that
* paint, but it also hid whatever a theme had drawn on the conversation pane
* behind it (issue #728, D603, revised by D624). */
.composer-dock-docked {
position: absolute;
inset-inline: 0;
bottom: 0;
padding: 0 24px 16px;
background: transparent;
}
/* Home mode: the shell is owned by the bottom-reserved home composer region. */
.composer-dock-home {
position: relative;
padding: 0;
background: transparent;
}
.composer-dock-home .composer-stack {
/* Keep home and docked modes on the same state-aware content cap. */
width: min(100%, var(--chat-composer-max-width, 768px));
max-width: 100%;
gap: 0;
overflow: visible;
}
.composer-stack {
pointer-events: auto;
width: min(100%, var(--chat-composer-max-width, 768px));
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0;
container-type: inline-size;
container-name: composer-stack;
transition: width var(--chat-width-transition, var(--motion-duration-normal) var(--motion-ease-out));
}
/* Asktool uses the same decision surface as Plan and Goal approval: it is
* mounted in the transparent composer dock, so it paints the composer plate
* with its shadow rather than the in-flow `--ds-tile` wash (03-permission-ux
* §9). Its width is the composer stack's instead of an inset panel above the
* input. */
.composer-stack > .asktool-card {
width: 100%;
margin: 0 0 8px;
background: var(--ds-bg-composer);
box-shadow: var(--ds-shadow-composer);
}
.composer-queued-prompts {
display: flex;
flex-direction: column;
gap: 6px;
width: 100%;
margin: 0 0 8px;
}
.composer-queued-prompt {
display: flex;
min-width: 0;
align-items: center;
gap: 8px;
border-radius: var(--radius-lg);
padding: 7px 8px 7px 12px;
background: var(--ds-bg-composer);
box-shadow: var(--ds-shadow-composer);
color: var(--ds-text-secondary);
font-size: var(--text-sm-plus);
}
.composer-queued-prompt-text {
min-width: 0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.composer-queued-prompt-action,
.composer-queued-prompt-send-now {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
color: var(--ds-text-muted);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-queued-prompt-action {
width: 24px;
height: 24px;
}
.composer-queued-prompt-send-now {
min-height: 24px;
padding: 0 8px;
color: var(--ds-text-secondary);
font-size: var(--text-sm);
white-space: nowrap;
}
.composer-queued-prompt-action:hover,
.composer-queued-prompt-action:focus-visible,
.composer-queued-prompt-send-now:hover:not(:disabled),
.composer-queued-prompt-send-now:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.composer-queued-prompt-send-now:disabled {
cursor: wait;
opacity: 0.65;
}
/* A promoted row ("Send now") starts next: it reads as the head of the queue
and locks its own actions until the Host delivers it. */
.composer-queued-prompt[data-priority="true"] {
background: var(--ds-bg-elevated);
box-shadow:
var(--ds-shadow-composer),
inset 2px 0 0 0 var(--ds-accent);
color: var(--ds-text-primary);
}
.composer-queued-prompt[data-priority="true"] .composer-queued-prompt-send-now:disabled {
cursor: default;
opacity: 0.75;
}
/* A locked row action stays visible and explains the state instead of going
dim: the row is already queued as the next turn. */
.composer-queued-prompt-action:disabled {
cursor: not-allowed;
opacity: 0.4;
}
.composer-queued-prompt-action:disabled:hover {
background: transparent;
color: var(--ds-text-muted);
}
.composer-shell {
/* Positioning context for the autocomplete panel (D123–D125, ADR 0024). */
position: relative;
width: 100%;
border-radius: var(--ds-composer-radius, var(--radius-2xl));
background: var(--ds-bg-composer);
box-shadow: var(--ds-shadow-composer);
isolation: isolate;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
box-shadow var(--motion-duration-normal) var(--motion-ease-out),
transform var(--motion-duration-normal) var(--motion-ease-out);
}
/* Focus deepens the lift; the shell never gains a stroke (D297). */
.composer-shell:focus-within {
box-shadow: 0 7px 24px color-mix(in oklab, var(--ds-text-primary) 9%, transparent);
}
/* Native file-system drops get a target cue without changing shell geometry. */
.composer-shell.is-drop-target {
outline: 2px solid color-mix(in oklab, var(--ds-accent) 72%, transparent);
outline-offset: 3px;
}
.composer-input-wrap {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 10px 12px 0;
min-height: 44px;
}
.composer-input-stage {
position: relative;
width: 100%;
}
.composer-placeholder {
position: absolute;
inset: 0;
overflow: hidden;
padding-top: 2px;
color: var(--ds-text-secondary);
font-size: var(--text-base);
line-height: var(--leading-body);
opacity: 0.72;
pointer-events: none;
text-overflow: ellipsis;
user-select: none;
white-space: nowrap;
animation: composer-placeholder-fade-in var(--motion-duration-fast) var(--motion-ease-out) both;
}
@keyframes composer-placeholder-fade-in {
from {
opacity: 0;
}
to {
opacity: 0.72;
}
}
/*
* A plugin suggestion (`pi.composer.suggest`, ADR 0333) rides in the same
* placeholder layer, so it can never cover a message. It reads brighter than
* the shell's own placeholder because it is text a person can take with Tab,
* not a hint about the box; the hint beside it stays quiet and never wraps.
* The layer is always one line with an ellipsis, which is why the text, not
* the hint, is what gets truncated on a narrow composer.
*/
.composer-placeholder-suggestion {
display: flex;
align-items: baseline;
gap: 8px;
color: var(--ds-text-primary);
/* The shared fade ends at the placeholder's own weight, not this one's. */
animation: none;
}
.composer-suggestion-text {
min-width: 0;
overflow: hidden;
/* 62% of primary ink: brighter than the shell placeholder's 42% at 0.72. */
opacity: 0.62;
text-overflow: ellipsis;
white-space: nowrap;
}
.composer-suggestion-hint {
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--ds-text-secondary);
font-size: var(--text-xs);
white-space: nowrap;
}
.composer-suggestion-navigation {
display: inline-flex;
flex: none;
align-self: flex-start;
align-items: center;
gap: 2px;
color: var(--ds-text-secondary);
font-size: var(--text-xs);
pointer-events: auto;
}
.composer-suggestion-nav-button {
display: grid;
place-items: center;
inline-size: 22px;
block-size: 22px;
padding: 0;
border-radius: var(--radius-sm);
color: inherit;
cursor: pointer;
}
.composer-suggestion-nav-button:hover {
color: var(--ds-text-primary);
}
.composer-suggestion-nav-button:focus-visible {
outline: 1px solid var(--ds-accent);
outline-offset: -2px;
}
.composer-mode-chip-face {
display: inline-flex;
min-width: 0;
max-width: 100%;
align-items: center;
gap: 6px;
animation: composer-mode-face-in var(--motion-duration-fast)
var(--motion-ease-out) both;
}
.composer-mode-chip[data-planning="true"] {
color: var(--ds-text-primary) !important;
}
.composer-mode-chip[data-planning="true"] svg {
color: var(--ds-purple) !important;
animation: composer-mode-planning-pulse 1.2s var(--motion-ease-standard)
2;
}
@keyframes composer-mode-face-in {
from {
opacity: 0;
transform: translateX(4px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes composer-mode-planning-pulse {
0%,
100% {
opacity: 0.55;
}
50% {
opacity: 1;
}
}
.composer-input {
width: 100%;
min-height: 3lh;
max-height: 7lh;
overflow-y: hidden;
resize: none;
border: 0;
outline: none;
background: transparent;
color: var(--ds-text-primary);
font-size: var(--text-base);
line-height: var(--leading-body);
white-space: pre-wrap;
overflow-wrap: break-word;
cursor: text;
}
/* Atomic inline attachment chip inside the editable draft. */
.composer-chip {
display: inline-flex;
max-width: min(100%, 240px);
height: 20px;
align-items: center;
gap: 4px;
margin: 0 2px;
border-radius: var(--radius-md);
padding: 0 4px 0 6px;
background: var(--ds-tile-deep);
color: var(--ds-text-secondary);
font-size: var(--text-xs-plus);
line-height: var(--leading-compact);
vertical-align: middle;
white-space: nowrap;
user-select: none;
-webkit-user-select: none;
}
.composer-chip[data-action="expand-text-reference"] {
cursor: pointer;
}
.composer-chip[data-action="expand-text-reference"]:focus-visible {
outline: 2px solid color-mix(in oklab, var(--ds-accent) 72%, transparent);
outline-offset: 1px;
}
/* A plugin mark: text the plugin sends in its place, not a file. */
.composer-chip[data-plugin-mark] {
background: color-mix(in oklab, var(--ds-accent) 14%, var(--ds-tile-deep));
color: var(--ds-text-primary);
}
.composer-chip-icon {
display: inline-flex;
flex: 0 0 auto;
color: var(--ds-text-muted);
}
.composer-chip-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.composer-chip-remove {
display: inline-flex;
width: 14px;
height: 14px;
flex: 0 0 auto;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
color: var(--ds-text-muted);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.composer-chip-remove:hover,
.composer-chip-remove:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.composer-input::placeholder {
/* Keep the native value for assistive technology; the visible copy is the
keyed span above so text changes can fade instead of flashing. */
color: var(--ds-text-secondary);
-webkit-text-fill-color: var(--ds-text-secondary);
opacity: 0 !important;
}
.composer-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: nowrap;
min-width: 0;
padding: 4px 8px 8px;
}
.composer-left,
.composer-right {
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
flex: 0 1 auto;
}
.composer-right {
justify-content: flex-end;
}
.composer-right .context-inspector-trigger {
min-height: 28px;
}
.btn.composer-plan-revision {
height: 28px;
flex: 0 0 auto;
padding: 0 10px;
white-space: nowrap;
}
.composer-plan-revision svg {
display: none;
flex: none;
}
@container composer-stack (max-width: 640px) {
.btn.composer-plan-revision {
width: 28px;
padding: 0;
}
.composer-plan-revision span {
display: none;
}
.composer-plan-revision svg {
display: block;
}
}
.icon-btn {
display: inline-flex;
height: 28px;
min-width: 28px;
align-items: center;
justify-content: center;
gap: 6px;
border-radius: var(--radius-full);
padding: 0 8px;
color: var(--ds-text-secondary);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out),
transform var(--motion-duration-fast) var(--motion-ease-out);
}
.icon-btn:hover {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.icon-btn.active {
background: var(--ds-bg-active);
color: var(--ds-text-primary);
}
.send-btn {
display: inline-flex;
height: 28px;
width: 28px; /* Codex spacing-token-button-composer = 28px */
flex: 0 0 28px;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
background: var(--ds-accent);
color: var(--ds-bg-primary);
transition: opacity var(--motion-duration-fast) var(--motion-ease-out), transform var(--motion-duration-fast) var(--motion-ease-out);
}
.send-btn:hover:not(:disabled) {
opacity: 0.9;
}
.send-btn:disabled {
opacity: 1;
background: var(--ds-send-disabled-bg);
color: var(--ds-send-disabled-fg);
}
.stop-btn {
display: inline-flex;
height: 28px;
width: 28px;
flex: 0 0 28px;
align-items: center;
justify-content: center;
border-radius: var(--radius-full);
background: color-mix(in oklab, var(--ds-text-primary) 16%, transparent);
color: var(--ds-text-primary);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
opacity var(--motion-duration-fast) var(--motion-ease-out),
transform var(--motion-duration-fast) var(--motion-ease-out);
}
.stop-btn:hover {
background: color-mix(in oklab, var(--ds-text-primary) 22%, transparent);
}
.send-btn:active:not(:disabled),
.stop-btn:active:not(:disabled) {
transform: scale(0.94);
}
.nav-item {
display: flex;
width: 100%;
align-items: center;
gap: 10px;
border-radius: var(--radius-sm);
padding: 6px 8px;
min-height: 32px; /* Codex nav ~31-32px pitch */
color: var(--ds-text-secondary);
font-size: var(--text-base); /* readable primary sidebar nav */
text-align: left;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out),
transform var(--motion-duration-fast) var(--motion-ease-out);
}
.nav-item:hover {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.nav-item.active {
background: var(--ds-bg-active);
color: var(--ds-text-primary);
}
/* Plan approval surface. Keep the gate in the composer layer so it remains
adjacent to the input and follows the same container width as the dock.
The dock itself is transparent, so this plate uses the composer elevated
fill and shadow rather than the in-flow `--ds-tile` wash. */
.plan-approval-bar {
display: grid;
width: 100%;
min-width: 0;
grid-template-columns: minmax(0, 1fr) auto;
align-items: stretch;
gap: 10px 14px;
margin-bottom: 8px;
padding: 7px 9px;
border-radius: var(--radius-md);
background: var(--ds-bg-composer);
box-shadow: var(--ds-shadow-composer);
}
.plan-approval-copy {
display: flex;
min-width: 0;
flex-direction: column;
justify-content: center;
gap: 3px;
}
.plan-approval-title {
min-width: 0;
margin: 0;
color: var(--ds-text-primary);
font-size: var(--text-md-plus);
font-weight: var(--font-weight-strong);
line-height: var(--leading-compact);
overflow-wrap: anywhere;
}
.plan-approval-details {
display: flex;
min-width: 0;
align-items: center;
flex-wrap: wrap;
gap: 4px 10px;
margin-top: 2px;
}
.plan-approval-artifact {
display: inline-flex;
min-width: 0;
max-width: 100%;
align-items: center;
gap: 6px;
border-radius: var(--radius-3xs);
padding: 2px 5px;
color: var(--ds-text-secondary);
font-size: var(--text-xs-plus);
line-height: var(--leading-compact);
text-align: left;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.plan-approval-artifact:hover,
.plan-approval-artifact:focus-visible {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.plan-approval-artifact > svg {
flex: 0 0 auto;
}
.plan-approval-artifact-label {
flex: 0 0 auto;
white-space: nowrap;
}
.plan-approval-artifact-path {
min-width: 0;
max-width: min(38vw, 320px);
overflow: hidden;
color: var(--ds-text-muted);
font-family: var(--font-mono);
text-overflow: ellipsis;
white-space: nowrap;
}
.plan-approval-actions {
display: flex;
min-width: 0;
flex: 0 1 auto;
align-self: end;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 6px;
}
.plan-approval-reject,
.plan-approval-approve-main,
.plan-approval-approve-menu {
min-height: 30px;
border-radius: var(--radius-sm);
font-size: var(--text-sm-plus);
line-height: var(--leading-compact);
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out);
}
.plan-approval-reject {
flex: 0 0 auto;
padding: 0 9px;
color: var(--ds-text-secondary);
white-space: nowrap;
}
.plan-approval-reject:hover:not(:disabled) {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
.plan-approval-split {
position: relative;
display: flex;
width: 220px;
min-width: 0;
flex: 0 1 220px;
align-items: stretch;
border-radius: var(--radius-sm);
background: var(--ds-tile-deep);
}
.plan-approval-approve-main {
min-width: 0;
flex: 1 1 auto;
padding: 0 10px;
border-radius: var(--radius-3xs) 0 0 var(--radius-3xs);
color: var(--ds-text-primary);
overflow-wrap: anywhere;
}
.plan-approval-approve-main:hover:not(:disabled),
.plan-approval-approve-menu:hover:not(:disabled) {
background: var(--ds-bg-hover);
}
.plan-approval-approve-menu {
display: inline-flex;
width: 30px;
flex: 0 0 30px;
align-items: center;
justify-content: center;
border-radius: 0 var(--radius-3xs) var(--radius-3xs) 0;
color: var(--ds-text-secondary);
}
@container composer-stack (max-width: 520px) {
.plan-approval-bar {
grid-template-columns: minmax(0, 1fr);
}
.plan-approval-actions {
width: 100%;
justify-content: flex-end;
}
.plan-approval-artifact-path {
max-width: min(48vw, 320px);
}
}
@container composer-stack (max-width: 360px) {
.plan-approval-actions {
justify-content: stretch;
}
.plan-approval-reject,
.plan-approval-split {
min-width: 0;
flex: 1 1 0;
}
}
@container composer-stack (max-width: 280px) {
.plan-approval-actions {
align-items: stretch;
flex-direction: column;
}
.plan-approval-reject,
.plan-approval-split {
width: 100%;
flex: 0 0 auto;
}
}
/* A folder drop asks for an explicit choice instead of attaching contents. */
.composer-directory-drop {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
border: 1px solid var(--ds-border-default);
border-radius: var(--radius-sm);
padding: 6px 8px;
background: var(--ds-tile);
color: var(--ds-text-primary);
font-size: var(--text-sm);
}
.composer-directory-drop-name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.composer-directory-drop-action {
border: 0;
border-radius: var(--radius-sm);
padding: 3px 8px;
background: var(--ds-tile-deep);
color: var(--ds-text-primary);
font-size: var(--text-sm);
cursor: pointer;
}
.composer-directory-drop-action:nth-of-type(1) {
margin-left: auto;
}
.composer-directory-drop-action:hover {
background: var(--ds-tile-hover);
}
.todo-dock {
margin-bottom: 8px;
border: 1px solid var(--ds-border-subtle);
border-radius: var(--radius-md);
background: var(--ds-bg-dock-raised);
overflow: hidden;
}
.todo-dock-header {
display: flex;
width: 100%;
min-width: 0;
min-height: 44px;
align-items: center;
gap: 10px;
padding: 4px 8px 4px 12px;
color: var(--ds-text-primary);
text-align: left;
}
.todo-dock-toggle.btn {
width: 36px;
min-width: 36px;
height: 36px;
flex: 0 0 36px;
padding: 0;
color: var(--ds-text-muted);
}
/* The separate disclosure control should not use the shared button's scale
press feedback, which reads as a jelly effect at this compact size. */
.todo-dock-toggle:active:not(:disabled) {
transform: none;
}
.todo-dock-toggle:hover:not(:disabled) {
background: var(--ds-bg-hover);
}
.todo-dock.is-expanded .todo-dock-header {
border-bottom: 1px solid var(--ds-border-subtle);
}
.todo-dock-header-symbol {
display: grid;
flex: 0 0 auto;
width: 18px;
height: 18px;
place-items: center;
color: var(--ds-text-secondary);
font-size: var(--text-sm);
}
.todo-dock-header-copy {
display: flex;
min-width: 0;
flex: 1;
align-items: center;
gap: 10px;
}
.todo-dock-header-text {
flex: 0 0 auto;
font-size: var(--text-sm);
white-space: nowrap;
}
.todo-dock-header-current {
min-width: 0;
flex: 1;
overflow: hidden;
color: var(--ds-text-muted);
font-size: var(--text-sm);
text-overflow: ellipsis;
white-space: nowrap;
}
.todo-dock-content {
display: grid;
grid-template-rows: 0fr;
opacity: 0;
transform: translateY(-4px);
transition:
grid-template-rows var(--motion-duration-normal) var(--motion-ease-out),
opacity var(--motion-duration-fast) var(--motion-ease-out),
transform var(--motion-duration-normal) var(--motion-ease-out);
}
.todo-dock.is-expanded .todo-dock-content {
grid-template-rows: 1fr;
opacity: 1;
transform: translateY(0);
}
/* The `0fr` row closes only if the clip can shrink below its content, and
vertical padding on the animating box holds that row open — as the list's
10px bottom inset did, leaving a blank band under the collapsed header.
The clip layer carries the collapse; the inset stays inside it. */
.todo-dock-clip {
min-height: 0;
overflow: hidden;
}
.todo-dock-list {
display: grid;
gap: 0;
padding: 2px 12px 8px;
}
/* The expanded dock lists every row and scrolls inside its own box (#1319):
the Composer keeps its footprint, and reaching the list's end never scrolls
the transcript behind it. */
.todo-dock.is-expanded .todo-dock-list {
max-height: min(280px, 30dvh);
overflow-y: auto;
overscroll-behavior: contain;
}
/* The scrollport is keyboard reachable while it is on screen; the inset ring
stays inside the clip layer that carries the disclosure animation. */
.todo-dock-list:focus-visible {
outline: 2px solid color-mix(in oklab, var(--ds-accent) 72%, transparent);
outline-offset: -2px;
}
.todo-dock-row {
display: flex;
min-width: 0;
align-items: center;
gap: 10px;
min-height: 24px;
padding: 4px 2px;
color: var(--ds-text-secondary);
font-size: var(--text-sm);
transition: color var(--motion-duration-fast) var(--motion-ease-out);
}
/* The status marker is a glyph, not a box: the plain list reads as text and
the state is carried by ink plus the completed strike-through. */
.todo-dock-row-symbol {
display: inline-flex;
flex: 0 0 auto;
width: 16px;
align-items: center;
justify-content: center;
color: var(--ds-text-muted);
font-size: var(--text-xs);
line-height: var(--leading-none);
}
.todo-dock-row-completed {
color: var(--ds-text-muted);
}
.todo-dock-row-completed .todo-dock-row-content {
text-decoration: line-through;
}
.todo-dock-row-in_progress {
color: var(--ds-text-primary);
font-weight: var(--font-weight-medium);
}
.todo-dock-row-cancelled {
color: var(--ds-text-muted);
opacity: 0.72;
}
.todo-dock-row-content {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The one moving part: a light band travelling across the text of the step
that is currently running. It is painted into the text itself
(`background-clip: text`), so nothing changes shape and no row gains a fill.
Geometry that makes it actually loop:
· `background-size: 200%` makes the image twice the text width
· `background-position` runs 100% → 0%, which keeps the visible window
inside the image at every frame (the band never leaves and stalls) and
slides the peak from the right edge to the left
· both outer stops are equal, so the restart is invisible
Both ink stops are `--ds-*` tokens, so light and dark each keep their own
contrast and a contributed theme can still move them. */
.todo-dock-shimmer {
color: transparent;
background-image: linear-gradient(
90deg,
var(--ds-text-secondary) 0%,
var(--ds-text-secondary) 38%,
var(--ds-text-primary) 50%,
var(--ds-text-secondary) 62%,
var(--ds-text-secondary) 100%
);
background-size: 200% 100%;
background-repeat: no-repeat;
-webkit-background-clip: text;
background-clip: text;
animation: todo-dock-shimmer-sweep 2.6s linear infinite;
}
@keyframes todo-dock-shimmer-sweep {
from {
background-position: 100% 0;
}
to {
background-position: 0% 0;
}
}
@media (prefers-reduced-motion: reduce) {
.composer-mode-chip[data-planning="true"] svg {
animation: none;
}
.todo-dock-header,
.todo-dock-toggle,
.todo-dock-content,
.todo-dock-row {
transition: none;
}
/* A frozen sweep would strand the text on one gradient stop, so the reduced
state drops the band entirely and paints flat primary ink instead. */
.todo-dock-shimmer {
animation: none;
background-image: none;
color: var(--ds-text-primary);
}
}
/* Shared container for todo and background tasks (one header, one tablist).
The header keeps the tablist visible while collapsed, so collapsing hides
only the panels; the chevron and the title are separate controls because a
tab is a button and a button may not nest inside another. */
.dock {
margin-bottom: 8px;
overflow: hidden;
border: 1px solid var(--ds-border-subtle);
border-radius: var(--radius-md);
background: var(--ds-bg-dock-raised);
}
.dock-header {
display: flex;
width: 100%;
min-width: 0;
min-height: 44px;
align-items: center;
gap: 8px;
padding: 4px 8px 4px 6px;
color: var(--ds-text-primary);
}
.dock.is-expanded .dock-header {
border-bottom: 1px solid var(--ds-border-subtle);
}
/* The title region keeps "click the summary to collapse" discoverable without
wrapping the whole row in a button. */
.dock-header-main {
display: flex;
min-width: 0;
flex: 1 1 auto;
align-items: center;
gap: 10px;
padding: 4px 4px 4px 6px;
border-radius: var(--radius-sm);
color: inherit;
text-align: left;
transition: background var(--motion-duration-fast) var(--motion-ease-out);
}
.dock-header-main:hover {
background: var(--ds-bg-hover);
}
.dock-header-main:focus-visible {
outline: 2px solid var(--ds-focus);
outline-offset: -2px;
}
.dock-header-symbol {
display: grid;
flex: 0 0 auto;
width: 18px;
height: 18px;
place-items: center;
color: var(--ds-text-secondary);
font-size: var(--text-sm);
}
.dock-header-copy {
display: flex;
min-width: 0;
flex: 1;
align-items: center;
gap: 10px;
}
.dock-header-text {
flex: 0 0 auto;
font-size: var(--text-sm);
white-space: nowrap;
}
.dock-header-current {
min-width: 0;
flex: 1;
overflow: hidden;
color: var(--ds-text-muted);
font-size: var(--text-sm);
text-overflow: ellipsis;
white-space: nowrap;
}
/* A live dot plus its count, so the collapsed header still answers "is
something running" without a second control row. */
.dock-live {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 4px;
color: var(--ds-text-secondary);
font-size: var(--text-xs);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.dock-live-dot {
width: 6px;
height: 6px;
border-radius: var(--radius-round);
background: var(--ds-success);
animation: dock-live-pulse 1.8s var(--motion-ease-standard) infinite;
}
@keyframes dock-live-pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.35;
}
}
.dock-toggle.btn {
width: 32px;
min-width: 32px;
height: 32px;
flex: 0 0 32px;
padding: 0;
color: var(--ds-text-muted);
}
.dock-toggle:hover:not(:disabled) {
background: var(--ds-bg-hover);
color: var(--ds-text-primary);
}
/* The disclosure reuses the todo dock's grid-row technique: the clip layer
carries the collapse so nothing holds the closed row open. */
.dock-content {
display: grid;
grid-template-rows: 0fr;
opacity: 0;
transform: translateY(-4px);
transition:
grid-template-rows var(--motion-duration-normal) var(--motion-ease-out),
opacity var(--motion-duration-fast) var(--motion-ease-out),
transform var(--motion-duration-normal) var(--motion-ease-out);
}
.dock.is-expanded .dock-content {
grid-template-rows: 1fr;
opacity: 1;
transform: translateY(0);
}
.dock-clip {
min-height: 0;
overflow: hidden;
}
/* Inline tablist: lives in the header row and must never wrap. */
.dock-tablist {
display: flex;
flex: 0 0 auto;
align-items: center;
gap: 2px;
padding: 2px;
border-radius: var(--radius-full);
background: color-mix(in oklab, var(--ds-text-primary) 6%, transparent);
width: fit-content;
}
.dock-tab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 11px;
border-radius: var(--radius-full);
color: var(--ds-text-secondary);
font-size: var(--text-sm);
line-height: var(--leading-tighter);
white-space: nowrap;
transition:
background var(--motion-duration-fast) var(--motion-ease-out),
color var(--motion-duration-fast) var(--motion-ease-out),
box-shadow var(--motion-duration-fast) var(--motion-ease-out);
}
.dock-tab:hover {
color: var(--ds-text-primary);
}
.dock-tab.is-active {
background: var(--ds-raised);
color: var(--ds-text-primary);
box-shadow: var(--ds-raised-shadow);
}
.dock-tab:focus-visible {
outline: 2px solid var(--ds-focus);
outline-offset: 1px;
}
/* The badge is the "new tasks" affordance that replaces auto-switching. */
.dock-tab-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: var(--radius-full);
background: var(--ds-text-primary);
color: var(--ds-bg-primary);
font-size: var(--text-xs);
font-weight: var(--font-weight-medium);
font-variant-numeric: tabular-nums;
line-height: var(--leading-none);
}
.dock-panel {
max-height: min(200px, 24vh);
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.dock-panel:focus-visible {
outline: 2px solid var(--ds-focus);
outline-offset: -2px;
}
.dock-panel[hidden] {
display: none;
}
/* A task row stacks vertically: the command band on top, an optional log below.
Keeping them as siblings stops an expanded log from redistributing the
command line and its action button. */
.task-row {
display: flex;
flex-shrink: 0;
flex-direction: column;
align-items: stretch;
min-width: 0;
color: var(--ds-text-secondary);
font-size: var(--text-sm);
transition: background var(--motion-duration-fast) var(--motion-ease-out);
}
.task-row + .task-row {
border-top: 1px solid var(--ds-border-subtle);
}
.task-row:hover {
background: var(--ds-bg-hover);
}
/* The only horizontally laid out band, and it never wraps: a long command
ellipsizes instead of pushing the state/time metadata onto a second line. */
.task-band {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 8px;
min-width: 0;
}
/* The row body opens the log; the action button sits beside it, outside the
clickable area. */
.task-main {
display: flex;
flex: 1 1 auto;
flex-wrap: nowrap;
align-items: center;
gap: 8px;
min-width: 0;
padding: 7px 10px 7px 12px;
border-radius: var(--radius-sm);
cursor: pointer;
}
.task-main:focus-visible {
outline: 2px solid var(--ds-focus);
outline-offset: -2px;
}
.task-row[data-expanded="true"] .task-main {
color: var(--ds-text-primary);
}
.task-row[data-expanded="true"] {
background: var(--ds-bg-hover);
}
.background-task-error {
margin: 0;
padding: 6px 10px;
color: var(--ds-warning);
font-size: var(--text-sm);
}
/* The dot carries the state so the command stays the only high-contrast text
in the row; a running task breathes rather than spinning. */
.task-state {
flex: 0 0 auto;
width: 7px;
height: 7px;
border-radius: var(--radius-round);
background: var(--ds-text-faint);
}
.task-row[data-state="running"] .task-state {
background: var(--ds-success);
animation: background-task-pulse 1.8s var(--motion-ease-standard) infinite;
}
.task-row[data-state="failed"] .task-state {
background: var(--ds-warning);
}
@keyframes background-task-pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.35;
}
}
.task-command {
min-width: 0;
flex: 1;
overflow: hidden;
color: var(--ds-text-primary);
font-family: var(--font-mono);
text-overflow: ellipsis;
white-space: nowrap;
}
.task-meta {
flex: 0 0 auto;
color: var(--ds-text-muted);
font-size: var(--text-xs);
/* Seconds tick in place instead of reflowing the row every second. */
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.dock-panel .task-action {
flex: 0 0 auto;
margin-right: 4px;
color: var(--ds-text-muted);
}
.dock-panel .task-action:hover:not(:disabled) {
color: var(--ds-text-primary);
}
.dock-panel .task-action.is-stop:hover:not(:disabled) {
color: var(--ds-warning);
}
.task-command-detail,
.task-output {
margin: 0;
padding: 8px 10px;
border-top: 1px solid var(--ds-border-subtle);
background: var(--ds-bg-inset);
font-family: var(--font-mono);
font-size: var(--text-xs);
line-height: var(--leading-body);
white-space: pre-wrap;
word-break: break-word;
}
.task-command-detail {
display: block;
color: var(--ds-text-primary);
}
.task-output {
max-height: 180px;
overflow: auto;
color: var(--ds-text-secondary);
}
/* Narrow composer panes: the header cannot hold progress text, the current
step, a live count and the tablist at once. Drop the lowest-value copy rather
than crushing the tabs. */
.dock {
container: dock / inline-size;
}
@container dock (max-width: 560px) {
.dock-header-current {
display: none;
}
}
@container dock (max-width: 470px) {
.dock-live-label {
display: none;
}
.dock-tab {
padding: 4px 8px;
}
.dock-toggle.btn {
width: 26px;
min-width: 26px;
height: 26px;
flex: 0 0 26px;
}
}
@media (prefers-reduced-motion: reduce) {
.dock-content,
.dock-live-dot,
.task-row[data-state="running"] .task-state {
animation: none;
transition: none;
}
}
.directory-reference-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
max-width: 100%;
margin-bottom: 6px;
}
.directory-reference-list + .composer-input-stage .composer-input {
min-height: 1lh;
}
.directory-reference-card {
display: inline-flex;
align-items: flex-start;
max-width: min(100%, 240px);
border: 1px solid var(--ds-border-default);
border-radius: var(--radius-lg);
color: var(--ds-text-primary);
}
.directory-reference-main,
.directory-reference-main.btn {
display: flex;
align-items: center;
min-width: 0;
gap: 8px;
padding: 6px 8px;
color: inherit;
text-align: start;
}
.directory-reference-main > svg {
flex: none;
}
.directory-reference-details {
display: flex;
min-width: 0;
flex-direction: column;
font-size: var(--text-sm);
line-height: var(--leading-compact);
}
.directory-reference-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.directory-reference-type {
color: var(--ds-text-muted);
font-size: var(--text-xs-plus);
}
.directory-reference-remove.btn {
flex: none;
width: 22px;
height: 22px;
min-height: 0;
padding: 0;
margin: 2px 2px 0 0;
}