Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/agent/src/components/StatusChips.css
atlas 594693f4c7 agents: remove the hive-level /model control; the swarm editor sets the model
The per-agent web UI no longer sets the model: the `/model` slash
command, the model picker, `POST /api/model`, `Bus::set_model` and the
`hyperhive-model` writer are gone. The model chip is display-only and
shows where the model comes from (`model_source` in `/api/state`). The
model is set on the swarm (swarm UI agents page, `swarmctl agent
inference set`).

The read side is unchanged: with no swarm value an agent runs its
agent.nix model, else an existing `hyperhive-model` file, else haiku.
Existing files are not touched.

With the picker gone, its model list goes too: `available_models` in
`/api/state`, the ACP model-list filter, and the harness's global
`HIVE_AVAILABLE_MODELS`. The subagent daemon keeps its own
`HIVE_AVAILABLE_MODELS` from mcp.nix, and the `availableModels`
assertion stays.

`/effort` (command, picker, route, file) is unchanged.

Refs #5034
2026-10-10 23:11:53 +02:00

42 lines
1.8 KiB
CSS

/* <StatusChips> layout. Colours all come from Badge/Dropdown's own CSS
(@hive/shared) — nothing here overrides a base16 slot. */
.status-chips {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5em;
}
.status-chip-anchor {
position: relative;
display: inline-block;
}
/* mara, live, on a screenshot of this row: "badges and interactive
elements on same row have inconsistent size." Real cause: Badge.css's
`.ui-badge-interactive` grows to a 2.75em WCAG touch-target floor
(effort picker, pause) while a plain display `<span>` badge
(model, alive, state, ctx, cost — no `onClick`) stays compact, so the row
reads as two different pill sizes even though every badge here is
the same `<Badge>` component. Scoped to this row rather than
Badge.css itself — display-only badges elsewhere (e.g. the dashboard)
have no reason to grow, this is specifically about badges and
buttons sitting side by side in one row needing to read as one
family. */
.status-chips .ui-badge {
min-height: 2.75em;
padding-inline: 0.8em;
/* Badge.css's base `.ui-badge` radius (`1em`) is only guaranteed to
reach a full stadium at its own compact display-only height — this
rule stretches every badge in the row (including plain, non-
interactive ones like "ctx"/"cost") to the 2.75em touch-target
floor above, well past that, so it needs the same `999px`
stadium-radius trick `.ui-badge-interactive` (Badge.css) and
`.hive-pill`/`.hive-pill-sm` (pill.css) already use — otherwise a
stretched non-interactive badge renders as a rounded rectangle
instead of a pill (mara: "badge-with-label still not pill shaped,
eg agent term ctx"). */
border-radius: 999px;
}
.status-chips-last-turn {
font-size: 0.8em;
color: var(--muted);
}