mirror of
https://github.com/zeronsh/comet.git
synced 2026-11-16 18:57:19 +00:00
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
|
|
|---|---|---|
| .. | ||
| assets | ||
| examples | ||
| src | ||
| tests/fixtures | ||
| build.rs | ||
| Cargo.toml | ||