mirror of
https://github.com/zeronsh/comet.git
synced 2026-11-18 18:56:11 +00:00
* Harness settings page, model prefetch, picker highlight fix - Settings → Agents: enable/disable harnesses (t3code models-page rows); only Claude Code and Codex ship enabled, a harness whose CLI is missing on the device renders dimmed with an install hint and can't be enabled, and the last enabled harness can't be switched off. The set persists in ui-settings.json and filters the composer's agents rail. - HarnessDescriptor gains an installed flag: a filesystem probe for the agent's own CLI (claude/codex/grok/hermes/pi) — the npx adapter fallback deliberately doesn't count. Lazy registry slots re-probe per ListHarnesses call so a mid-session install shows up on reopen. - Model prefetch: the catalog load now kicks LIST_MODELS for every offered harness in parallel (plus the committed chat's), so switching agents in the picker never shows an on-demand "Loading models…". - Picker fix: the keyboard-nav highlight opens ON the selected model row instead of always row 0, which read as a second active row. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Per-device harness enablement + device switcher on the Agents page The enabled set moves off the viewer's ui-settings.json onto the ENGINE (harness-prefs.json in its data dir) — per-device, like the CLI installs it gates. HarnessDescriptor now carries enabled (Option, None from older engines falls back to default-set membership), and a new forwardable SetHarnessEnabled RPC flips it on the target device, replying with the fresh catalog. The engine enforces the gates where the state lives: no enabling a missing CLI, no disabling the last enabled harness. The Agents page gains the Accounts-style page-header device switcher — retargeting both the ListHarnesses probe and the toggles at any registered device over the relay. The picker's offered_harnesses now reads the catalog's own enabled flags, so a space on another device follows THAT device's toggles automatically. The short-lived crate::harness_prefs global and ui-settings field are gone. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Autolink bare URLs in transcript markdown Agents paste naked PR/issue URLs constantly and they rendered as plain text (user report: the PR link wasn't clickable). pulldown-cmark has no option for GFM's autolink extension, so promote http(s):// spans into link runs ourselves — after run-merging, since pulldown splits Text events at would-be emphasis chars and a per-event scan truncates URLs at every underscore. GFM-ish boundaries: no glued schemes, trailing punctuation stays text, closing parens only join when balanced inside the URL. Existing InteractiveText plumbing makes them clickable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: wing-anara <wing@anara.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> |
History
|
|
|---|---|---|
| .. | ||
| s1-picker-highlight.png | ||
| s2-agents-settings.png | ||
| s3-picker-filtered.png | ||
| s4-device-switcher.png | ||