0
Fork 0
mirror of https://github.com/zeronsh/comet.git synced 2026-11-16 18:57:19 +00:00
Commit graph

3,125 commits

Author SHA1 Message Date
Wing
e1894e5522 Plugins: compose can replace a draft's words or write another chat's; draft_of reads any chat's
What #1446 asked for that #1445's draft API didn't cover:
- `zeron.compose(text, { replace = true, session? })` ("compose"): the
  words put in place of the draft's (its chips stay, so a rewrite keeps
  what it carries), and in another chat's draft (`session`). Words alone
  are added after what's there, as ever. Nothing is sent.
- `zeron.draft_of(session)` ("draft"): a promise of any chat's draft as it
  is, as `zeron.draft()` says it (text, chat, chips by kind and name,
  never a path), read once in the host where the app keeps it.

The composer's handling of a plugin's words is one path now (words alone
come as a string). Consent: "compose" says it may replace what you wrote;
"draft" says it sees your words in any chat. Docs, SDK (and its copies).

Tests: src/plugins `compose_takes_words_alone_or_with_replace_and_a_chat`,
`a_chats_draft_is_read_where_it_is_kept_without_paths`;
ui/tests/plugin_compose_replace.test.luau. Full UI suite (1422) and
plugins:: (248) pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:58:13 -07:00
Wing
38f21b5130 zgx: "Task completed" chime rings on a finished turn, not on your send
zgx's chimes rang done.wav whenever a chat's sidebar status turned
"done", but that status is only unseen activity, and your own message
makes it too, so every send played the completion chime (#1437).

Chat rows now carry the session's finished-turn mark (`turn`, from
lastCompletedTurn) and whether that row was fresh. The chime rings
"done" when the mark moves, as the shipping app and the engine's
banners decide it: never when the next turn is already running (a
steer, a queued message taken), never for an old row a sync brings
back or a session row returning, and only once a finish has stood for
two seconds, so a send that replaces the runtime (old turn's end, then
your turn a moment later) stays quiet. Questions and failures still
ring at once. Sends stay silent, as the sound design has it.

Fixes #1437

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:43:53 -07:00
Wing
32a512c79f
Merge pull request #1452 from zeronsh/zeron/plugin-draft-only-when-read
Plugins: the draft is written for plugins only while one may read it
2026-11-14 19:37:56 -07:00
Wing
d583532c28 Plugins: the draft is written for plugins only while one may read it
`zeron.draft` was written on every key typed, the whole draft copied each
time, whether or not any plugin may read it. It's written now only while a
plugin that's on has "draft", and cleared when none does.

ui/tests/plugin_draft_read.test.luau: none written with no such plugin (or
one off); written as typed with one on; cleared as it goes off. Both fail
without this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 19:37:44 -07:00
Wing
ca729035b6
Merge pull request #1445 from hoangvu12/zgx/plugin-draft-api
Plugins: a plugin can read the composer's draft and set it aside
2026-11-14 19:37:35 -07:00
Wing
00b5182c77
Merge pull request #1431 from zeronsh/zeron/browser-load-error-dismiss
Browser: let a load error be dismissed to show what rendered
2026-11-14 19:16:52 -07:00
Wing
777ba15493
Merge pull request #1449 from zeronsh/zeron/main-catches-up-0.3.5
main catches up with the release line (Zeron 0.3.5)
2026-11-14 17:06:19 -07:00
Wing
2d480e9fb7 Zeron 0.3.5: provider accounts, tool result pictures, steadier composer v0.3.5
0.3.4 plus main since (#1331–#1440):
- Per-provider accounts for Pi, OpenCode and Hermes, API keys and Claude
  for Pi; every model in the picker says its provider (#1425).
- A Codex chat's / lists Codex's commands and skills (#1403).
- A tool's result pictures show in its row (#1103, #1186).
- The composer's layout and focus hold steady through moves and resizes
  (#1420); Settings reopens on the page shown last (#1416).
- A prompt the opening tail brings shows once: no frozen transcript from
  the duplicate-key panic (#1433).
- Windows: messages have their time and Copy again (#1440); microphones
  listed by name (#1334).
- macOS: chimes no longer trigger a kernel deadlock that hangs the Mac
  (#1333).
- Edge: chat rooms can offer the relay layer (Wing's account only;
  #1331, #1335).

Version 0.3.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:05:45 -07:00
hoangvu12
8a91a02dd2 Plugins: a plugin can read the composer's draft and set it aside
A new "draft" permission lets a plugin read what's being typed in the message box (zeron.draft) and take the whole draft out and put it back later (take_draft, put_draft, swap_draft, drop_draft). Zeron keeps a taken draft itself, so a plugin never sees file paths. This is what a prompt stash needs: write in the wrong chat, set it aside, restore it in the right one.
2026-11-15 04:59:16 +07:00
Wing
fbf5199a69
Merge pull request #1440 from zeronsh/zeron/windows-message-time
Windows: messages have their time again, and Copy shows without one
2026-11-14 09:25:28 -07:00
Wing
d77f671b90 Windows: messages have their time again, and Copy shows without one
On Windows every message's time was missing: the timestamp formatter had a
Unix implementation only (localtime_r) and returned nothing elsewhere. The
hover strip under a message showed only when it had a time, so Copy and the
plugins' message actions vanished with it there.

- stamp() on Windows: FileTimeToSystemTime + SystemTimeToTzSpecificLocalTime
  in the machine's time zone, formatted as on macOS and Linux (shared clock()).
- The strip shows for a settled message with a time or something to copy, so
  a missing time can never take Copy with it again.

Tests: clock()/stamp() on every platform; a settled reply with no time shows
Copy on hover (fixture command reply_without_time).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 09:07:13 -07:00
Wing
55c07931aa
Merge pull request #1433 from zeronsh/zeron/transcript-duplicate-key
zgx: a prompt the opening tail brings shows once
2026-11-14 01:04:09 -07:00
Wing
a4c015f7bf zgx: a prompt the opening tail brings shows once
A reopened chat's opening tail (historyPending) took the engine's copy of
a prompt sent from here into its entries without letting go of the copy
pending here, so the transcript published two rows with one id. Its
virtual list is keyed by id and panicked ("duplicate virtual list child
key", seen on Linux, 0.2.139-beta.6 and still in 0.3.4's zgx); the panic
was contained but the transcript stopped updating until reopened.

The tail now drops arrived prompts as every other frame does, and the
published list keeps one row per id (the first, so the engine's copy over
the pending one) whatever else might repeat one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 01:02:22 -07:00
Wing
ae99dcfcc1
Merge pull request #1420 from zeronsh/refactor/zgx-composer-layout
fix(zgx): stabilize composer layout and focus transitions
2026-11-13 23:15:17 -07:00
Wing
d0959e6132 zgx: pin zeronsh/zgx main d391ea727, which draws a fade band repainted alone as a whole repaint does (zgx#2177)
The zgx bump to 88f45fb16 left transcript_paint_tests::a_long_chat_come_back_to_mid_scroll
one pixel off a whole repaint: zgx-gpu decided how to draw a view's fade bands
from the bands a frame repainted, so a scroll repainting only the top band faded
a glyph's overlap twice. Fixed in zgx#2177; at this pin all transcript paint
tests pass (app suite 709 passed, zgx UI suite 1402 tests, 0 failed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 23:15:12 -07:00
Wing
0f3118dea5 Browser: let a load error be dismissed to show what rendered
A failure reported after the page's own document committed (WebView2
calls a page with an HTTP error status, such as Google's 429 "unusual
traffic" check, a failed navigation; WebKit's didFailNavigation) no longer
covers the page with "Couldn't load this page". A real failure (one that
never committed, or the page's process ending) still shows it, now with
Dismiss beside Try again (Escape too), for that navigation only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:41:51 +00:00
Wing
6df5169d49 fix(zgx): a sent pick is cleared by what it holds, not by table identity
After a send that carried a pick (model, effort, fast, options), the
composer cleared the chat's pick only if `shared.picks:peek()[id]` was
the very table read at send time. A state's snapshot read again needn't
be the same table: after the composer metrics change it wasn't (no write
to the picks in between; the effect's reads changed), and chat_actions
"a pick goes with the message, and the session takes it then" failed
with the pick left behind. Compare the drafted fields instead. (Main has
the same identity check; it happens to hold there.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:26:07 -07:00
Wing
3de4a47be3 docs(zgx): composer doc follows the pin and the fixes; preview keeps settings
docs/composer.md: the API comes from zeronsh/zgx main (zgx#2148), not
the fork; long drafts are estimated, metrics follow width only while a
line wraps, targets publish only bound changes, side chats publish
through Dock.Dock, and a send eases the composer's size as it glides.

composer_transition_preview.luau wrote the persisted motion_reduce
setting (and the theme) at load, changing a dev build's own settings.
It no longer writes Reduce motion at load; its button still toggles it,
and leaving the preview (a reload, the preview unmounted) puts back the
setting and theme it found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:26:07 -07:00
Wing
944eabf4cb fix(zgx): a send from a new chat glides into the dock, its size eased
The send's move to its session bumped the composer's snap twice (the page
mode's effect and the routed chat's), so the pill dropped to its docked
size at once and only its place glided. The send now records the session
it opens (`slide_to`), kept until the route moves anywhere else, and both
effects read it, so neither depends on running first or on
session_id:peek() already being the new id: the place glides and the
form and size ease with it, no snap. Any other move still snaps.

(Main snapped both in the chat fixture: its routed-chat effect opened a
400 ms snap window on the send too, and the place effect re-ran inside it.)

Test: a_send_from_a_new_chat_slides_the_composer_down_and_eases_it_docked
samples y and height each frame against a reduced-motion shell. It fails
on main (both snap) and on the PR before this (height snaps).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:26:07 -07:00
Wing
da4e6d0342 perf(zgx): composer measures only what can change its layout
Typing in a long draft: the composer queried text_metrics on every edit,
which walks every line twice, past the editor's 4,096-line span cache, so
each keystroke re-ran every line's highlighting. A draft with enough hard
lines to fill the text box is open (it has a newline) and capped whatever
it wraps to, so Layout.estimate stands in for the measure there (it looks
for at most a dozen newlines); an equal estimate is the same request and
publishes nothing. Per key in the shell fixture (probe, 20 keys):

  5,000 lines   main 11.5 ms / 15 calls   PR 37 ms / 10,034   now 3.6 ms / 14
  30,000 lines  main 67 ms / 15 calls     PR 221 ms / 60,034  now 21 ms / 14

Resizing: every pill width change rebuilt the target geometry (its width
made a new destination), woke the motion, its frame and every binding,
and ran the metrics, settlement and on_sizes chain in each pane. Now the
target is published only when a field a view binds or the motion reads
changes (Layout.same_target); metrics follow the width only while the
widest line doesn't fit it; layout reads the sample's size alone, so a
new revision of an equal size wakes nothing; on_sizes is called only when
a field changes, its rest height no longer reads the draft; and side
chats no longer write dock_h through on_sizes as well as Dock.Dock's
on_resize. Script calls per frame of a dragged sidebar edge, one and four
chats: main 122/211, PR 121/251, now 121/217. Split resize, 1-4 chats:
main [120,444,600,756], PR [120,684,972,1260], now [120,480,660,840].

Tests: typing_in_a_long_draft_costs_what_a_short_one_does (10,034 calls
a key in 5,000 lines before, 14 now), geometry cases for the estimate
and same_target, and the width-only metrics test split into a draft
that fits (asks nothing) and one that wraps (follows at once).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:26:07 -07:00
Wing
3656b25d67 ci: install the zgx CLI from zeronsh/zgx only
Reverts reading the git URL out of apps/zgx/Cargo.toml: CI must never
cargo install code from whatever URL a PR writes there. The rev still
follows the pin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:45:31 -07:00
Wing
9bc696cdae zgx: pin zeronsh/zgx main (88f45fb16), which has text_metrics
The composer's editor metrics came from a fork pin; zgx#2148 landed the
same Element:text_metrics API on zeronsh/zgx main, with the memory-floor
work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:45:31 -07:00
Wing
e616d20c04 Merge origin/main into refactor/zgx-composer-layout
Brings in #1425's provider accounts. The only conflict was zeron-v2's
.base.json; both sides already carry account_group into v2's copies, so
the record takes the merged default files' hashes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:43:05 -07:00
Wing
722c700afe
Merge pull request #1425 from zeronsh/zeron/provider-accounts
Per-provider accounts for Pi, OpenCode and Hermes; providers in the model picker
2026-11-13 16:46:45 -07:00
José Gurruchaga
82d410d7e0 perf(zgx): avoid redundant composer updates while resizing
Keep width and measurement metadata out of view binding invalidations, and let geometry follow the complete measured sample independently of readiness. A width-only query of the same acknowledged editor revision publishes immediately; text, typography, mount and IME changes retain deferred validation. Avoid starting a motion run when only layout-owned width changes.

The unchanged sidebar resize gate now measures 121 calls/frame with one chat and 251 with four, down from 336 with four. The marginal cost is 130 against the existing limit of 135. Add coverage for width-only metrics, editor replacement and resizing during a height transition.

Validation: 692 Rust unit tests, composer tray and 11 dictation integration tests pass; 35 focused composer Rust tests and 89 composer Luau tests pass. Beta check and metric/layout type checks pass.
2026-11-13 20:25:34 -03:00
Wing
adc82e90a8 Provider accounts: review and security fixes
- A key's name is judged on its own: anything that looks like a key is
  refused whatever key it's for, so Rename can't be used to test guesses
- Previews can't add a key, rename an account or forget a GitHub login;
  a test checks every action the code refuses is blocked
- A Pi switch over a Claude login it can't identify is refused, and the
  live entry is compared before it's written
- Hermes key add: the child dies with the request; the name goes as --label
- Switching from the composer reloads the agent's models
- changed_logins dedups through a sorted set
- Hermes model names: plain files up to 64 MB, naming waits at most 5 s;
  Hermes .env read is bounded
- The API key dialog's Cancel waits while a key is checked
- stores.rs module docs match what each store does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 15:22:37 -07:00
Wing
cc17d9ff47 Merge remote-tracking branch 'origin/main' into zeron/provider-accounts 2026-11-13 14:54:24 -07:00
Wing
0cfbabe016 zgx: an agent's models follow its logins; a menu with no action shown ends at its last row
Pi signed in to Claude kept listing only its ChatGPT models until the app
restarted: the catalog was looked up once, before the sign-in landed. When
an agent's logins on a device change (an account come or gone, another in
use; usage alone doesn't count), that agent's models are looked up again:
here, that agent's alone, forced; on another device, its catalog while the
composer runs on it.

The model picker's account menu drew its actions' rule and inset under
the last account even when every action was hidden (Claude Code, which
Zeron adds no account to from there): now only while one shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:49:36 -07:00
Wing
59b2f1c44a Claude for Pi: a rate-limited profile still signs in, as the token names the account
Anthropic's profile endpoint answered a real sign-in with nothing usable
(the engine was being rate limited on Claude's usage endpoint at the same
moment), so Pi's Claude sign-in failed with 'Could not identify the
signed-in Claude account' after the token exchange had succeeded. The
token response names the account (account.uuid, account.email_address,
organization.name), as Claude Code's own sign-in already falls back to;
Pi's now does too, keyed as the profile path keys it. A refused or failed
profile lookup logs its status, never the body or the token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:24:13 -07:00
Wing
4ec5b50c86 Providers: keys read once, by name or last four; provider marks; Hermes env keys
- A key row says its last four exactly once: named, "Work" over
  "OpenRouter · API key"; unnamed, "API key ···a1b2" over "OpenRouter".
  The name, when set, is kept apart (display_name); the title is derived
  otherwise. Rename opens empty for an unnamed key and says which key.
- Hermes keys read the same; one seeded from an environment variable is
  never titled by it ("API key ···a1b2" over "OpenRouter · from
  environment"), and Hermes' own "api-key-N" labels count as unnamed.
- A key row's face is its provider's mark in the add rows' round well;
  logins keep their avatars. The add dialog's name field: "Name
  (optional)".
- Test servers ignore the `HEAD /` probes a preview scan in the test
  process sends to every local listener: the cause of the occasional
  extra hit in the GHES, spent-Claude and Pi key tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:14:27 -07:00
Wing
5a18697ad8 Merge remote-tracking branch 'origin/zeron/model-source-hint' into zeron/provider-accounts 2026-11-13 14:00:11 -07:00
Wing
3d07f58d60 Providers: API keys, Claude for Pi, cards like Claude Code's, Hermes fixes
Per-provider agents (Pi, OpenCode, Hermes) now look and act like every
other agent's card, take API keys in the app, and behave across devices.

Card: the same rows, rules and "In use" as Claude Code's and Codex's — a
provider's accounts together, each provider with its own one in use, the
plan line saying whose ("ChatGPT Plus", "OpenRouter · API key ···a1b2") —
and every add row at the foot (Add ChatGPT / Claude / GitHub Copilot
account, Add API key). No section chrome, no CLI hints. "Switch to this
account" only on a switchable row not in use; a refused switch says why
in a toast instead of doing nothing.

API keys: "Add API key" opens a dialog (provider select with each
provider's mark, masked key field with its placeholder shape shown plain,
optional name, Save disabled until typed, spinner and locked inputs while
the provider checks the key, the provider's refusal under the field).
Stored as each agent's CLI stores it: Pi's auth.json api_key entry,
OpenCode 1.x's api entry (OpenCode 2.x keeps keys in its own database:
refused with what to do, and a warning on the list), Hermes through
`hermes auth add <provider> --type api-key` with the key on stdin in a
session without a terminal. Keys are named (default "<Provider>
···<last4>", renamable from the row's menu; a name holding any of the key
is refused). The key is never logged, never in an error or the snapshot,
never on argv or in a child's environment, files 0600, and
AddAgentApiKey is local IPC only (refused, never forwarded, when it names
another device; refused by the relay host if a peer sends one).

Claude for Pi: Pi's own Claude Pro/Max sign-in, saved as pi saves it, a
fresh grant, swapped under pi's lock; a switch keeps a refresh the agent
made since the last list (single-use refresh tokens). OpenCode has no
Claude sign-in (verified in 2.1.2): refused with the API-key alternative.

Hermes: lists only pool entries Hermes itself uses (its
_pool_entry_is_explicit: device_code, loopback_pkce, hermes_pkce,
manual[:*], env:<VAR> while the variable holds a key) — a borrowed
gh_cli Copilot token is no longer offered.

Also: provider marks (one mono set), Select options with marks, Dialog
confirm `disabled`, TextField draws a password's placeholder unmasked,
Groq/Mistral dropped from key providers (no marks in the set).

Tests: engine agent_accounts 118 (keys stored/refused/never shown or
logged/stdin-only/0600, OpenCode 2.x refusal, names and rename, two keys
one provider, Pi Claude local and for another device, rotation kept,
Hermes explicit-only); device_routing remote per-provider list/switch,
provider refusal routed, remote key refused with no relay frame and no
file holding it; rpc routing asserts; app Rust and UI tests updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 13:52:59 -07:00
Wing
24cae27850 Hermes: 900K variants are a Context Window choice; names read lean, off the runtime
Hermes lists '<model>-900k' after each Codex model with a large window (a
Hermes-side name: the base runs at Codex's 272K). They fold into their base
model as a Context Window option (272K default, 900K), and a run that picks
900K sends the variant's id; pick_model_value composes any chosen window
('[1m]'/'-1m' for Claude as before, '-900k' for Hermes). Saved chats on a
variant id still run it.

The name lookup streams models_dev_cache.json through a 64 KiB buffer and
keeps only the names asked for (keys compared in the parser's buffer, never
allocated unless kept): peak footprint 2.6 MB vs 10.5 MB for the full parse
on the real 5.8 MB file. It runs on a blocking thread while the Hermes child
shuts down, so no async worker waits on file reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 13:07:36 -07:00
Wing
6c7b1ac222 Hermes: name models as Hermes's own models.dev catalog does
Hermes's ACP adapter labels each model with its id; the catalog it keeps
beside its config ($HERMES_HOME/models_dev_cache.json) names them as their
makers do. Read-only; a model it doesn't list keeps its id. Catalog cache
schema 3 so saved id-labelled lists are rediscovered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:49:33 -07:00
Wing
623dabc3d0 Merge remote-tracking branch 'origin/zeron/model-source-hint' into zeron/provider-accounts 2026-11-13 12:26:41 -07:00
Wing
f224da9e0b Model picker: a long line fades at its edge and glides to its end; old catalogs refetched
- A model row's name and provider read as one line: where it runs past
  the row its right edge fades (as FadeText's), and while the row is
  highlighted (pointer or keys) it glides left until its end shows,
  rests and glides back. Reduce motion keeps it still; a row that fits
  never moves. Test: `a line past its row fades at its right edge, and
  glides to its end while highlighted`.
- The saved model catalog's schema is 2: models name their provider and a
  Hermes `<Provider> · <model>` label is split. A catalog an older engine
  saved has neither, so it is fetched again rather than served as it was
  (Hermes showed "Anthropic · claude-fable-5.1" from its old cache).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:25:12 -07:00
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>
2026-11-13 12:21:17 -07:00
Wing
f5d0530e57 Model picker: every agent's model says its provider; Hermes' too
Merged main into the provider-hint branch, and:
- A model whose agent names its provider (Pi, OpenCode, Hermes) says it on
  every row, not only beside a namesake: where a model comes from is part
  of which it is, even with one provider signed in.
- Hermes labels a model `<Provider> · <model>` with id `<provider>:<model>`
  ("Anthropic · claude-fable-5.1"): its label is now the model, and the
  provider rides apart, named as Pi's are (openai-codex → Codex), else as
  Hermes wrote it. `provider_name` is shared from Pi's catalog.
- Tests: ACP `a_provider_glued_to_a_models_label_rides_apart`; the picker's
  provider tests updated for the rule (7 passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 11:43:29 -07:00
Wing
94ae5b1081
Merge pull request #1416 from incpo/fix/settings-remember-last-section
Settings: reopen on the page shown last
2026-11-13 11:35:43 -07:00
Wing
0aaa69f1c8 Merge remote-tracking branch 'origin/main' into zeron/model-source-hint 2026-11-13 11:09:51 -07:00
José Gurruchaga
1bbbc68ede Merge main with coordinated composer layout and updated ZGX metrics
Keep the centralized composer geometry, transitions and size publication while integrating main's dictation bindings, native placeholder and focus fixes. Pass Dock's shared hero anchor into placement, update both v2 consumers and refresh their base hashes.

Pin the refreshed ZGX fork at 9a6b6754 and have CI install the CLI from the declared repository. Adapt main's motion tests to the existing frame-clock harness, and wait for the alert's visible enter frame before clicking it.

Validation: 32 composer Rust tests, 89 composer Luau tests, 5 v2 tests, 11 dictation tests, composer tray and beta check pass. The resize script-call gate still fails at 121/336 calls with one/four chats; the archived pre-merge interface also fails at 119/358 on the same host. Its threshold is unchanged.
2026-11-13 13:48:35 -03:00
incpo
4a7a0049e5 Settings: reopen on the page shown last
Opening Settings without naming a page (footer gear, Cmd+comma, /settings) always landed on General, so stepping out to try a change meant finding the page again. route.settings() now reopens the page shown last, kept under shell_settings_page. Account is never remembered; a page that's gone falls back to General.
2026-11-13 20:02:59 +04:00
Wing
2a9e2f9871
Merge pull request #1186 from zeronsh/zgx/tool-result-images
zgx: a tool's result pictures show in its row; Claude Code's image note is no message
2026-11-13 07:48:03 -07:00
Wing
23756a4ab5 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	apps/zgx/ui/templates/zeron-v2/.base.json
2026-11-13 07:37:09 -07:00
Wing
e3e5ff258c
Merge pull request #1403 from zeronsh/zgx/codex-slash-commands
zgx: a Codex chat's / lists Codex's commands and skills
2026-11-13 07:36:26 -07:00
Wing
26acab8786
Merge pull request #1401 from zeronsh/zeron/main-catches-up
main catches up with the release line (Zeron 0.3.4)
2026-11-13 07:35:04 -07:00
Wing
067b9e7d18 zeron-doc test: a tool part names its preview paths
#1103 gave MessagePart::Tool `preview_paths`; a transcript_delta test
from the release line built one without it, so zeron-doc's tests no
longer compiled once main and the release line met.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 05:34:11 -07:00
Wing
0e7c037a2b Zeron v2 in step with the default's composer and lane tab (#1403)
The default's screens/chat/composer.luau and lane_tab.luau ask
`Completions.agent_of` for the chat's agent; v2's copies already make the
same change in this PR, so it is recorded as brought over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 04:12:12 -07:00
Wing
b0beca93f9 Merge remote-tracking branch 'origin/zeron/main-catches-up' into HEAD 2026-11-13 04:01:26 -07:00
Wing
1e910d9159 Engine test: a stored tool picture's path is looked for as the journal writes it
`tool_result_images_are_stored_inside_uploads` (#1103) looked for the
stored path in the journal's JSON text as it is; on Windows the path's
`\` is escaped there, so main's Windows tests failed. It looks for the
path as JSON writes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 04:00:54 -07:00