0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
comet/crates/ui
Wing a26f5f4ce0 Providers: accounts per model provider for Pi, OpenCode and Hermes
Agents that keep a login per model provider now show and switch them per
provider, everywhere:

- Settings → Providers (and setup's Your agents): such an agent's accounts
  sit under a heading per provider ("ChatGPT", "Claude", "GitHub Copilot"),
  each group with its own "In use" and its own "Add <provider> account"; a
  provider with none yet is a "Connect <provider>" row at the card's foot,
  and a sign-in shows in its own provider's row. A provider Zeron can't
  sign in to (Pi's Claude) says how the agent adds one. Hermes' pool is
  grouped the same way, read-only (no actions), adding through
  `hermes auth add <provider>`. Single-login agents look as before.
- Model picker: the Account row is the chosen model's provider's
  ("ChatGPT account" / "Claude account"), listing and switching that
  provider's accounts alone, so a ChatGPT switch never touches the Claude
  login; a provider with none yet says None and offers "Add <provider>
  account" (Settings → Providers, its sign-in started on the composer's
  device); a provider with neither has no row.
- Engine: Pi gains GitHub Copilot sign-in (GitHub device code with pi's own
  Copilot app, exchanged for a Copilot session at copilot_internal/v2/token,
  unconfigured models enabled and availableModelIds recorded as pi's
  /login does; an account without Copilot is refused, nothing written).
  Hermes gains xAI (`hermes auth add xai-oauth`, device code). Hermes
  marks each provider's first pool entry in use (a model of that provider
  runs on it), the active provider's rows still first. Switching and new
  sign-ins already rewrite one provider's entry alone; tests now pin it.
- Proto: login_options adds Pi github-copilot and Hermes xai-oauth;
  groups_by_provider, login_option, account_group_label and
  account_group_hint name the groups for every app.

All serde-additive: no field renamed, older apps read the same snapshot.

Tests: proto providers (3 new); engine agent_accounts (5 new: Pi Copilot
sign-in, no-Copilot refusal, per-provider switch isolation, Hermes xAI,
Copilot session/model parsing; Hermes in-use updated); app Rust (2 new:
grouping, device rows + logins); UI (provider_groups 6, model_accounts
_providers 5).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-11-13 12:21:17 -07:00
..
assets Add fx as a native ACP provider (#1099) 2026-10-29 10:41:20 -07:00
examples Tool images: engine only, one file per picture in a chat, the CLI's note exactly 2026-11-12 23:06:13 -07:00
src Providers: accounts per model provider for Pi, OpenCode and Hermes 2026-11-13 12:21:17 -07:00
tests/fixtures CI: one entry workflow with admission, reuse, priority/locks and a fast pull request tier (#1077) 2026-11-01 15:51:25 -07:00
build.rs Linux browser: WPE WebKit at the display's rate, frames shared with GPUI as dma-bufs (#1039) 2026-10-27 06:08:25 +00:00
Cargo.toml zgx: Zeron's interface on zgx (app, design system, plugins, beta channel) (#1137) 2026-11-03 03:21:42 -07:00