mirror of
https://github.com/zeronsh/comet.git
synced 2026-11-16 18:57:19 +00:00
21 commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a8d1dc6ecd |
Updates that can't strand a device, on every platform, from any device (#1241)
* update: say how a device is installed and whether it can update from afar UpdateStatus now carries `install`, `canApplyRemotely`, `cannotApplyReason` and `manualCommand`, so a client no longer has to guess by platform. Older engines omit them; a method this build doesn't know reads as Unknown rather than losing the report. `update-ability-v1` advertises it. ApplyUpdate refuses with the same reason the report gives. That includes a managed install started by hand, which used to swap `current` and then fail to restart a service it isn't running under. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * providers: decide what to run at the last moment, and only claim what happened An update judged its plan before the wait for idle and never looked again, so a CLI reinstalled meanwhile got the old owner's updater. Under the lease and owner gate it now re-reads the executable and what's installed and rebuilds the plan, refusing and checking again if that isn't what the check offered. With no target version (Hermes, Cursor), exit 0 used to report Updated. It now takes a moved version, a rewritten executable, or Hermes's own check no longer finding commits. Otherwise the row stays where it was, with the reason. Homebrew: - Only Homebrew's published version is offered. A release Homebrew doesn't have yet was an Update button that always failed, and would have failed Update all. - A formula keeping an npm CLI in its keg is Homebrew's, not npm's. `npm install --prefix` was changing the keg behind brew's back. A Node keg's globals stay npm's. - A Cellar or Caskroom path with no brew at that prefix can't apply, and the manual step names brew rather than a self-updater that writes a second copy. Also: a Chocolatey Claude stays manual, and updaters get 30 minutes rather than 15, since stopping a silent download can leave a truncated CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * update: Linux updates that can't strand a box `app/current` now moves exactly once, when a new version has proved it's ready. Until then every start of the service runs the old version, so if the new binary exits, hangs, or the power goes, the next start lands on a binary that works and knows how to put things back. - Refuses before stopping anything if the release and a copy of the databases won't fit. - Records the update durably before answering, with an id; `UpdateStatus.update` says how it went (inProgress, updated, rolledBack, failed), since reconnecting can't tell an update from a rollback. - The old version copies the SQLite stores once nothing has them open, leaves a watchdog behind, and replaces itself with the new binary. It's the same process, so the service manager sees nothing change. - The new version holds back work it can't take back (resuming chats, queued messages), proves it reads its data, serves its port and, when signed in, reaches Zeron's servers, then commits and only then resumes chats. - A failed or timed-out trial goes back: the old version restores the databases before anything opens them. An interrupted restore finishes first. `zeron update` on a box with a running service takes the same path and reports the outcome. Automatic updates don't retry a release that went back; a person can. ZERON_SERVICE_UNIT names another unit, so a test install can never restart a real one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * providers: an update someone asks for doesn't wait for running chats It used to wait behind an exclusive lease with no bound, which with agents always running can look stuck for ever. Where the installer keeps the old version's files, it now goes ahead: running chats keep the version they started on, new ones get the new one, and nothing is drained or held up. That's Claude's native install, Codex standalone, Grok standalone, Cursor (chats use its SDK, not this CLI), Antigravity and agents from the ACP registry. Installers that replace or delete files keep waiting, because a chat's process lives for its whole session and goes on loading files from where it started: npm and the other package managers, Homebrew, Muse, OpenCode, Pi and Hermes. Their row says why, in the new `waitReason`. Automatic updates still wait for a quiet moment. The registry's cleanup used to delete any version older than the last, now that updates don't wait for chats it keeps a version something is running from. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * update: Mac and Windows devices can update from afar The same rule as Linux, with the engine doing all of it, so the app doesn't have to be open: the installed app changes only at the commit, and anything before that lands back on the old version. macOS: the new bundle is copied beside the installed one before anything stops, so what can fail, fails with Zeron still running. The engine drains, backs up and replaces itself in place, the same process, so it never starts a successor. Once proved, one atomic swap makes the new bundle the app. An app still open carries on from the retired bundle until it restarts. Windows: the old process can't be replaced, so it starts the new exe from a folder inside the installation and stays on as the watchdog. A running exe can be renamed, so moving it into place is the commit. A bundle something runs from is no longer deleted, for updates from the app too: that's #1037. Retired bundles and old stages go once a process scan finds nothing running from them. A second start during a trial (the app's reconnect seeing the port go quiet) now bows out rather than rolling back a trial that's still running, and zombies no longer count as running on macOS. The failure tests give each fake install its own copy of the binary: hard links made the process checks see through to other installs, which was the cause of their intermittent failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * update: nothing but the trial opens the databases mid-update An app that can't start its helper embeds the engine, which skips the update's start-up step, and could have opened databases a trial had changed or a restore was part way through. It now refuses until the update has settled. The app's own install on quit also refuses during an update: going back from a trial needs the installed app to stay as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * update: compile on Windows The watchdog's environment variables are only read on Unix, the test's version lookup no longer ends in a Unix-only expression, and the Grok CLI fixture and the test that uses it are Unix-only like their callers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * update: check free disk space on Windows Without it every Windows update refused with "couldn't check the free disk space". The store-list test compares paths with forward slashes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * update: a brief reader can't fail the update record on Windows Replacing a file fails with "Access is denied" while anything has it open without delete sharing (antivirus, an indexer, a script). Seen once on a real trial: the watchdog couldn't record the trial's pid. Retry the rename for up to a second. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * update: give the second-start test a deadline a slow machine can't miss It failed once in 80 runs on a loaded box, when the second start landed after a 3-second trial deadline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * update: another device's status follows it through its restart One device asking another's `UpdateStatus` got a subscription that ended the moment the update restarted the engine, so whoever asked had to know to ask again. It now carries on until the subscriber goes, asking again if nothing has come for a while, which also covers a device that died without a word. Asking a device that can't be reached now says that plainly, and that the update didn't start, rather than `transport: peer …: readiness check failed`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * update: a beta Mac stays on beta, and says what's on offer Tested with a bundle shaped like a beta: a beta interface carrying stable's engine. An update asked from another device already followed the app's recorded channel, but with no record, as when the app hasn't run since it was installed, the default was stable: it installed the stable app and left beta. An app with no recorded choice now stays on the channel it was built for. A choice someone made at that Mac still stands. The engine's report compared releases with its own version, which on a beta is stable's, so a newer beta read as nothing new and no update was offered. On a macOS app install it now compares with the app's version, and says what that is in `appVersion`. It looks again once a commit has changed the answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> |
||
|
|
64a26d3598 |
Questions: show what was answered, and close one without answering (#1022)
* Questions: show what was answered, and close one without answering * Questions: fixture and before/after frames for answers and closing * Questions: keep the question text clear of the panel's close, and let assistive tech press it The corner close (desktop 28px at 12px in, iOS 36pt at 8pt in) overlapped the first line of a long question; the text now wraps short of it. The desktop close also answers the accessibility Click action, like the composer's own buttons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> * Questions: reviewer polish (close-button header clearance on desktop/iOS/Android, side_chats test, ARCHITECTURE.md) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> --------- Co-authored-by: Wing <44917547+wingleeio@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: zeronsh[bot] <346184242+zeronsh[bot]@users.noreply.github.com> |
||
|
|
71033cc960 |
Terminal: no added latency, direct P2P to other devices, predictive echo (#975)
* Terminal: no added latency, direct P2P to other devices, predictive echo
Typing no longer waits on timers: keys are written the moment they land
(one write in flight per tab keeps them ordered), PTY output after a quiet
spell is sent as soon as it is read (floods are paced at 4ms), and the
local IPC socket runs with TCP_NODELAY.
Terminals on another device now stream over a direct WebRTC link (the
preview peers' DataChannel, service `terminal/{id}`) instead of the
device-room relay. The relay remains the fallback when the devices can't
reach each other; a session moves between paths mid-stream with no gap,
and input is numbered and acknowledged so a path change neither drops nor
repeats a keystroke. Cloud peers can't attach to this device's terminals
over the direct link. On slow links the viewer predicts the echo of typed
text, and only paints once the host has proven it echoes.
The terminal itself gains platform text input (IME, dead keys, layout
symbols, Option as Meta where it would type non-ASCII), mouse and focus
reporting, alternate-screen wheel scrolling, DECSCUSR cursors with a
typing-aware blink that rests when idle, synchronized output with a
deadline, a contrast floor for program colors, rounded selection with a
copy flash, edge backgrounds carried into the padding, and pixel-smooth
scrollback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Terminal: answer queries on the host; send the real size once open
Programs query the terminal at startup (device attributes, cursor
position, keyboard modes) and wait briefly for the answer. The viewer's
emulator answered them, so for a terminal on another device the answer
crossed the network twice, arrived after the program stopped waiting and
read as typed keys: an agent CLI saw stray Escapes, opened /resume,
cancelled it and quit. The host now runs a grid-only emulator beside each
PTY and answers at once. `TerminalSession::host_replies` tells viewers to
stay silent, and a viewer subscribing without `hostReplies` (an app from
before this) keeps the host quiet instead, so nothing is answered twice.
A remote open also outlasted the 80 ms resize debounce, which had no
terminal to address yet and dropped the resize: the PTY kept 80 columns
while the grid was narrower, leaving zsh's `%` end-of-line marker on
screen. The size on screen is now sent as soon as the open completes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
||
|
|
cc7da5c2aa |
Zeron Cloud, provider switching, and the phone model picker (#966)
Cloud chats on machines of their own (delegation, sleep/wake, durable delete), a credential vault, Stripe billing with Cloud's own portal, per-account Cloud availability, the edge's Cloud model list, provider switching between turns, the phone's tabbed model picker, and desktop/phone/engine polish. |
||
|
|
dbb639be37 |
Group projects by git identity, plus Zeron Icons and rolling labels (#799)
* Group projects by git identity and pick the project before the device
Each git project now carries a repository id stamped by its owning engine:
the normalized origin remote (host/owner/repo), else a device-scoped hash of
the common git dir so remote-less worktrees still match. Clones and
worktrees of one repository share it across devices.
- Sidebar project mode folds projects with the same id into one group,
named and iconed by the oldest checkout; the project icon moves to the
group header and its rows drop theirs.
- Every checkout of a repository shares one project icon and color, on
desktop and mobile.
- The new-session composer picks the project first (one row per
repository across devices), then the device among its checkouts;
project-less sessions still pick any device.
- iOS: the project menu lists one entry per repository with its hosts, and
the host chip picks the checkout. The demo workspace gains a clone on a
second device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Adopt Zeron Icons in the shell
Swap the shell's glyphs for icons.zeron.sh: carets, back/forward arrows,
plus, folder, branch, pull request, expand/collapse and file tree, plus new
fork and worktree glyphs (fork buttons no longer borrow the branch icon;
worktree rows no longer borrow folder-with-files).
The sidebar and right-pane toggles draw the Sidebar glyph from quads so its
panel can morph open <-> closed (280ms, cubic-bezier(.22, 1, .36, 1)). The
morph rides a new per-key state tween in motion.rs on the hover-fade clock:
it snaps on mount and reverses continuously mid-flight.
The sidebar project selector drops its caret.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep composer chips steady across project switches
Switching projects reset every picker slot, so the model chip blanked and
the branch/checkout chips read "Select ref" until the reloads landed.
- Model catalogs are per device: a same-device project switch keeps them,
and a device switch revalidates with the loaded rows still on screen
(stale slots reload once through the engine's cache).
- The checkout and branch chip labels hold the previous project's ref until
the new refs land; the branch popover and the send plan never read it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Roll label changes like Scritto's text
New roll_text element (a port of scrit.to's <scritto-text> roll): when a
keyed label changes, shared leading/trailing runs hold (the tail slides to
its new x) while the changed middle rolls — old glyphs rise out and shrink
as new ones rise in, staggered left to right on cubic-bezier(.22,1,.36,1),
with the width gliding between the two values.
Steady state hands back to the plain truncating label, invisibly: the line
height, baseline, glyph y-offsets and ceil'd width match gpui's own text
element, glyph sizes quantize to 1/8 px, and the width/tail ride the shell's
200ms RESIZE clock so whatever follows the label (the model chip's effort
text) settles early and never moves while glyphs finish. No overshoot —
labels land dead still. Reduced motion renders plain text.
Applied to the composer's model/project/device trigger chips and their
suffixes, the branch/checkout footer chips, the compact picker's effort
title (it retitles live while the slider drags), and the working trailer's
flavour word and elapsed timer (digits roll in place, the unit holds).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Stabilize the compact sidebar row's trailing cluster
The trailing items packed right in presence-dependent order, so the remote
globe and time columns shifted between rows with and without a PR badge,
and the hover archive affordance appeared in previously-empty space.
Now the PR badge sits LEFT of one fixed slot (30px x 14px; wider only for a
long jump hint) that shows the relative time, swaps in place to the archive
glyph while the row is hovered, and shows the Cmd+N jump legend while the
modifier is held — the legend beats the hover archive. The remote globe is
gone from compact rows. Columns land at the same x on every row and nothing
resizes on hover.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Keep the model chip's effort text muted at every level
It brightened whenever the pick departed from the model's default; the
effort now always reads in the chip's muted second tone. The default level
is still marked inside the model menu.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Blur and tilt rolling glyphs like Scritto
Rolling glyphs now carry Scritto's 0.1em blur and 2deg tilt, both fading
as each glyph lands, and scale on the GPU from one full-size raster
(paint_glyph_transformed) instead of re-rasterizing at quantized sizes.
Glyphs at rest — the shared runs and the sliding tail — still paint
through the ordinary pipeline, so the hand-off to the plain label stays
pixel-identical.
LOCAL ONLY: Cargo.toml [patch]es zui to ../zui-edgefade (branch
glyph-transform-blur, 0966d06) for paint_glyph_transformed. Before
pushing, push that branch, repin the zui rev here, drop the [patch], and
bump the gpui-component pin alongside.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Pin zui 0966d06 for transformed and blurred glyphs
zui main now carries paint_glyph_transformed (zeronsh/zui 0966d06), so the
local [patch] onto ../zui-edgefade from the previous commit goes away. The
gpui-component pin moves with it (fix/zui-1561532 4764fd0) so Cargo.lock
keeps a single gpui.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Identify repositories by their trunk's root commit
The identity was the normalized origin remote, so one repository split
into several projects whenever checkouts spelled their remote differently:
a pre-rename name kept alive by GitHub's redirect (zeronsh/comet-native vs
zeronsh/zeron), an SSH host alias (github-winglee vs github.com), or a
transferred owner.
It is now commit:<sha> of HEAD's first-parent root — the commit the trunk
grew from. Clones, worktrees and forks share it regardless of remote, and
a merged-in unrelated history (a second parent) never displaces it. A
shallow clone (whose boundary commits only look parentless) or an unborn
HEAD falls back to the normalized remote, then to the device-scoped
common-git-dir hash as before. Readers treat the id as opaque, so nothing
else changes; the scheme is unreleased, so no engine has stamped old ids.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Return the compact model list to provider tabs
Restores the list page from the picker's original design (
|
||
|
|
80b946b153 |
Add opt-in on-device dictation to the desktop composer (#591)
* feat(voice): add local Parakeet v3 capture and transcription backend * feat(ui): add opt-in dictation settings and composer controls * build(macos): package microphone permissions and voice attribution * docs: describe desktop dictation behavior and runtime limits * fix(ui): clarify dictation states and cancellation controls * fix(ui): keep composer model controls right aligned * feat(ui): give Voice a dedicated settings page * fix(voice): support all native microphone sample formats * fix(voice): retain model cleanup after interrupted downloads * fix(ui): preserve dictation while pasted references resolve * fix(ui): cancel dictation with Escape across composer controls * fix(ui): refresh dictation state after empty undo and redo * fix(ui): preserve dictated words on blank recognition results * fix(voice): clarify retries while native inference finishes * test(ui): verify repeated Send preserves unfinished dictation * style(ui): format settings modules * feat(voice): add microphone selection and streamline Voice settings * feat(ui): visualize live dictation with a waveform and recording clock * fix(ui): preserve waveform paint opacity * feat(ui): morph composer controls into dictation track * test(voice): exercise real inference on every desktop release target * fix(voice): keep device choices fresh and cancellation accessible * ci(voice): verify Linux release packages on x86 and ARM * ci(voice): keep model and package probes out of permanent CI * fix(voice): detect missing ALSA before activating Linux installs * fix(voice): capture audio while Parakeet loads Run capture independently of serialized model loading and inference. Retain stopped audio until the model is ready, close capture before reporting load failure, and hold admission through native work and stream teardown. Cover loading, cancellation, device startup, rapid Stop, admission, and recording limits with deterministic coordinator tests. * test(ui): verify and measure nonblocking dictation startup Cover selected-draft preservation, delayed final results, single Send delivery, and late results after loading failures or finalization timeouts. Add transcript-free debug timing from dictation activation to the Listening state and clarify asynchronous capture cancellation. * docs(voice): explain concurrent capture and startup timing Document audio retention during loading, cancellation and model-removal limits, race coverage, and the native startup timing procedure. * fix(ui): stop Shell saves from reverting settings chosen elsewhere The Shell republished its whole cached UiSettings on every save (navigation, pane resize) and only refreshed a hand-kept list of fields first. Anything missing from that list was silently reverted: leaving Settings → Voice turned dictation off, and the microphone choice, compact transcript, fit-content code fences, and diff split/wrap toggles had the same bug. Replace the list with a three-way merge against the store snapshot the Shell last synced: fields the Shell changed win, every other field keeps the store's value. The merge destructures UiSettings exhaustively, so a new field fails to compile until it is merged too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(voice): hold to talk, default Cmd+D, shortcut on the Voice page Dictation is now hold to talk. Holding the microphone (pointer, or Enter/Space while it is focused) or the shortcut records; releasing transcribes. A pointer release outside the button still counts. For the shortcut, letting go of its key or any of its modifiers ends the hold, because macOS does not deliver key-up for Command chords. A release within 300 ms explains hold to talk instead of transcribing a blip, and a release that only answered the permission prompt records nothing. Assistive-technology Click still starts and then finishes, since it cannot hold. The default shortcut is Cmd/Ctrl+D (unbound elsewhere). Its rebinding row moves from Settings → Shortcuts to Settings → Voice through a reusable ShortcutField that shares the Shortcuts page's chip and conflict rules. Settings → Shortcuts re-reads the stored keymap while not recording, so its own commits cannot revert a binding changed on the Voice page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(voice): harden capture, worker and download against edge cases - Keep the capture flags outside the sample lock. The capture loop polled them under the mutex every 10 ms, so the real-time callback's try_lock could fail and drop a buffer of speech. - Catch a native panic on the worker. A panicking job killed the only worker thread, leaving every later session "unavailable" until restart. - Keep loaded weights when a session fails for a microphone or recording reason; dropping them made the next attempt reload 670 MB. - Time out a download request whose response headers never arrive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(ui): dictation review fixes for focus, shortcuts and Windows - Enter/Space hold on the focused microphone no longer moves focus to the editor, which sent its key-up (and auto-repeat spaces, or Enter-to-send) to the draft and left the microphone live. - A key release caused by focus leaving no longer pulls focus back, and an unparseable stored shortcut falls back to the default when matching its release, as apply_keymap already does. - Another source can take over a hold whose release went missing, so the microphone or shortcut can always end it. - Dictation cannot start while a queued row is acquiring its edit lease, which would replace the draft and silently drop the transcript. - With dictation off (the default) ⌘D propagates to any other binding of the chord instead of being swallowed in the composer. - The Voice page's shortcut row is always shown, conflicts with a feature page's shortcut name that page, and recording stops if the window closes so Appshots' capture shortcut is never left suspended. - Show Settings → Voice on Windows; the PR ships the Windows backend and only Appshots is macOS/Linux-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(ui): give the composer microphone its siblings' hover At rest the microphone snapped to a different surface colour on hover; it now uses the paperclip's eased ink wash. While live it dims like Send, and its focus ring and tooltip match the neighbouring composer buttons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Wing <contact@winglee.io> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
03250d033c |
feat(files): add a remote-safe workspace file tree and editor (#130)
* feat(proto): define workspace file contracts * refactor(engine): centralize workspace checkout resolution * feat(engine): list and search workspace files * feat(engine): read workspace text files * feat(engine): guard workspace file writes * feat(engine): stream workspace file changes * test(engine): harden workspace file RPC routing * feat(ui): model workspace file tree state * feat(ui): connect Files surface to workspace RPC * feat(ui): add Files right-pane surface * feat(ui): render virtualized workspace file tree * feat(ui): add workspace file search and live refresh * feat(ui): preview workspace files * test(ui): harden Files surface lifecycle * feat(ui): open workspace files as surface tabs * refine Files surface compact navigation * refine Files search header * fix Files preview loading and horizontal scrolling * fix(ui): keep file previews visible when toggling sidebar * fix(files): preserve vertical scrolling in previews * refine(files): clarify ignored files visibility * refine(files): dim ignored tree entries * refine(files): remove read-only tree labels * refine(files): reuse Files tab for first preview * fix(files): propagate ignored state to descendants * feat(files): add preview word wrap toggle * refine(files): use line icon for word wrap * build(ui): pin compatible gpui-base fork * refactor(ui): model editable file documents * feat(ui): render file previews with gpui-base editor * feat(ui): connect zeron syntax to file editor * feat(settings): configure file autosave delay * feat(ui): autosave edited workspace files * feat(ui): reconcile external file changes * feat(ui): flush file edits on lifecycle changes * polish(ui): finish file editor experience * fix(ui): preserve editor keybindings * polish(ui): remove unsaved tab indicator * polish(ui): hide unsaved file label * Add inline review comments to file editor * Refine file editor comment popovers * Match file editor caret to app theme * Protect dirty files from destructive reload * Stop automatic retries after failed file saves * Restore editor focus when switching file tabs * Reconcile recreated open files * Preserve editor context on external reload * Fix file editor reconciliation edge cases * Update gpui-base for stable caret rendering * Persist word wrap across file editors * Persist hidden file visibility across trees * Fix Markdown syntax highlighting * Respect file sidebar visibility preference * Hide transient autosave status * Hide transient file tree loading state * Attach workspace files by dragging to composer * feat(files): group fuzzy search results by directory * refactor(files): make refresh actions contextual * fix(ui): expose composer inputs to accessibility * feat(files): add editor context menu * fix(files): bound workspace search results * fix(files): release orphaned comment flushes * docs: align gpui-base notice revision * docs: document remote workspace trust boundary * fix(files): bound retained document cache * fix(files): reject NTFS alternate data streams * fix(files): reject invalid tree relationships * fix(files): bound watcher reconciliation latency * feat(files): open workspace links from chat * style(files): align toolbar control sizes * Fix editor scrollbar contrast * Separate file headers from tab bar * Add editor font size setting * feat(ui): add opt-in autosave and manual file save * fix(editor): update gpui-base gutter clipping * fix(settings): hide autosave delay when disabled * test: reproduce stale editor highlight race * fix: reject stale file highlights * Polish Files toolbar spacing and join pane borders * Align sidebar surface toolbars and bind file saves to their checkout * Give the History graph a consistent left gutter * Add configurable file-save and sidebar shortcuts and center author initials * Use file-tab dirty indicators instead of a save toolbar button * Preserve file edits on exit and fix editor lifetime and shortcut migration * Handle the native Objective-C BOOL type on Apple Silicon --------- Co-authored-by: wing-anara <wing@anara.com> |
||
|
|
eeeb537065 |
Add theme registry and VS Code imports
Support independent light and dark variants, semantic and terminal palettes, surface preferences, accent overlays, and last-known-good custom theme persistence. |
||
|
|
ec314936af |
sync: remove the legacy s2 room client — chat2 is the only chat transport
The s2 loro-room client (RoomClient, /session/{chatId}/ws) predates chat2
and survived only as the migration overlap. Every chat in the fleet is on
chat2 (v0.1.34 shipped born-chat2 + host sweep + first-contact push), so
the legacy path was pure cost: an extra socket per straggler chat and
~2400 lines of dead transport.
- crates/sync: room.rs and its tests deleted; RoomClient/RoomEvent/
RoomTuning gone. The shared vocabulary (SyncError, UrlProvider,
StaticUrl, RoomStatsSnapshot) moves to types.rs — registry and chat2
clients keep using it unchanged. s2_reader example and the s2 live
edge-convergence test removed.
- doc_host: handle.room field, spawn_s2_join, and fetch_s2_room_doc
deleted. Gen-1 straggler chats now open read-only on their local fat
doc; when this device hosts one, the existing quiet-seed posts the
chat2 checkpoint and flips the registry (its wait-for-s2-join gate is
gone — with no s2 writers anywhere, the host's local doc is the
authority). Transcript salvage keeps its rollback-copy source only.
The cutover watcher and migration sweep stay: they are what converges
any straggler.
- SyncStatus / `zeron sync`: per-chat rows now report chat2 stats
(cursor/headSeq/pending/rows/resets) instead of s2 room stats; the
workspace registry line is unchanged.
- Edge: SessionRoom DO stays deployed for pre-cutover released clients;
no current client dials it (noted in ARCHITECTURE.md; server-side
removal is separate cleanup).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
||
|
|
b0be3dea2f |
rename: comet -> zeron everywhere (binary, crates, env, data dir, iOS)
- binary/CLI `comet` -> `zeron`; crates comet-* -> zeron-*; COMET_* -> ZERON_* - data dir ~/.comet-native -> ~/.zeron, with a one-shot rename migration - services: comet-native.service -> zeron.service; launchd sh.zeron.comet -> sh.zeron.app; macOS bundle id dev.comet.native -> sh.zeron.app - release artifacts comet-<ver>-* -> zeron-<ver>-*; drop the Comet.app tarball-path compat hack in package-macos.sh - iOS: Comet -> Zeron targets/dirs, bundle id sh.zeron.Zeron, zeron:// scheme - clients default to https://edge.zeron.sh; installer + landing on zeron.sh - kept on purpose: repo name, worker names (comet-native-edge/comet-landing; DO storage is bound to the script name), R2 bucket names, and legacy comet.zeron.sh routes so 0.1.x clients keep working zeron-<ver>-* artifacts don't exist until the next release, so curl-install and landing downloads 404 between this deploy and the 0.2.0 tag. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|
|
c52b6a6151 | Merge upstream main into local-first optional sync | ||
|
|
72bdd0ac53 | fix(engine): isolate synced account uploads | ||
|
|
f1419428dc | fix(engine): require a bearer for development sync | ||
|
|
f4fb12902a | docs: document local-first usage and optional sync | ||
|
|
8289a4cd31 |
Device-local tabs + spaces as a sidebar filter dropdown
Tabs detach from session existence: a tab is a device-local viewport onto a synced session (UiSettings.openTabs, the vec is the order). Closing a tab is local-only — the session keeps running and stays in the sidebar, where a click reopens it; archiving stays an explicit sidebar-row action. The strip goes cross-space and gains a context menu (close / close others / close left / right). Old files migrate by seeding openTabs from the last space's sessions. Spaces stop being a navigation spine: the sidebar section becomes a searchable dropdown (ref-picker recipe) with "All spaces", filtering only the session list and hosting space management. The new-session canvas gains a space picker chip defaulting to the sidebar filter, else the last selected space; picking a space re-keys the ref selector and harness/model catalogs through the existing selected_space observer. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|
|
7b52ce1f70 |
Remove the TUI: crates/tui, apps/tui, comet tui subcommand, scripts, docs
The terminal viewport was an experiment and is no longer maintained.
comet_proto::{view,motion} stay in proto: pure, viewport-independent
derivations with their own test suite remain the right structure.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
||
|
|
6e73bf267f |
Docs/comments: drop Orbit references
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|
|
8dc3524ccd |
Detachable ratatui TUI: attach to the running app, shipped as comet tui (#2)
* comet-tui: a detachable Ratatui viewport over the same engine A second frontend beside the gpui app, on the same typed RPC. The one architectural difference: it never embeds an engine. A desktop window and the work it drives share a lifetime; a terminal does not — it closes, the SSH session drops, the lid shuts. So `comet-tui` attaches to a daemon and starts a detached one (setsid, stdio to the daemon log) if none is up. Quitting is therefore *detaching*: runs continue, docs keep syncing, the DeviceRoom stays joined, and reattaching is instant. Information architecture is comet-native's, read from the desktop shell rather than from the reference screenshots of the original Electron app: two sidebar sections (Spaces, then a flat global attention-ordered Sessions list) and the selected space's own sessions as the tab strip, which is also the header. Visual language follows herdr — no boxes, one divider, rules that tee into it, label-left/affordance-right, a lot of air. Colours are comet's exact oklch, pinned by a test against the desktop theme. New sessions work as the desktop does: `n` opens a draft, nothing is created, and the first send materializes worktree -> createChat -> QueueCommand as one ordered command (each step depends on the last, so a failure leaves only a notice). Checkout is comet's two modes resolving into three outcomes, shared via `comet_proto::view::checkout_plan`. Performance, measured rather than asserted: the loop has no tick and sleeps until input, an engine frame, or a deadline it armed; transcript layout is cached per message and invalidated by content fingerprint, so a streaming token re-wraps one message rather than the conversation; the visible window is found by binary search over prefix sums and rendered by reference. Idle cost is 0.00s CPU over 5s, checked by the pty smoke test. Shared with the gpui viewport rather than duplicated, so the two surfaces cannot drift: sort orders, staleness gating and the boot gate (`proto::view`), tool-group summaries and chip labels, the loader curves and the status-dot hues (`proto::motion`). comet-ui now delegates to all of them. Tests: 138 in the crate (unit, render-against-TestBackend, and click resolution against real coordinates), plus scripts/tui-smoke.py, which drives the real binary through a pty and verifies the engine survives the viewport exiting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Desktop app serves its embedded engine, so comet-tui just attaches The headed app only bound the IPC port when it *wasn't* running the engine — the embedded case kept it to itself. Attaching a terminal viewport therefore meant quitting the app, starting `comet headless`, and starting the app again in that order. Now the embed path serves the same RPC service on the port (the deferred one, so an early viewport gets AuthRpc and gates itself instead of hanging). Binding is best-effort: losing it costs peers, not this window. Shutdown stops accepting before draining, so nobody connects into closing stores. Fell out of testing it: connect_ws had no timeout, so any process holding 27654 that never completed a WebSocket handshake wedged boot forever. Bounded at 5s, and the app now embeds rather than failing when the thing on the port isn't an engine. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * README: the tui run command, and that a running app is a valid attach target `cargo run -p comet-tui` picks the library crate and fails with an error that does not hint at the fix. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Ship cometui: bundled with comet, plus a standalone installer The terminal viewport now reaches users two ways, both honoring the same attach-or-spawn model: attach to a running engine, else spawn `comet headless`. - Bundled: package-linux.sh and package-macos.sh build `--bin comet-tui` alongside `comet` and drop `cometui` into the tarball / .app. The main install.sh links it onto PATH next to `comet`. Because they ship together, cometui always finds the engine binary as a sibling when it needs to spawn one (resolve_comet_bin checks there first) — so "spawn its own" always works. - Standalone: a new `curl … /install-tui.sh | sh` for a machine that already runs comet and just wants the CLI. cometui has no gpui dependency, so unlike the desktop installer this one works on Linux AND macOS. New `tui` release job builds it for both, independent of the flaky macOS gpui build. Edge serves /install-tui.sh (route + worker handler + wrangler carve-out). cometui is the on-PATH command name; the bin target stays comet-tui. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Ship the TUI as `comet tui`, not a separate cometui command Replaces the two-installer cometui approach: the viewport is now a subcommand of the one binary. `comet tui` attaches to a running engine or spawns one — and because it lives in the `comet` binary, the engine it spawns is always right there. No second binary to bundle, no standalone installer, no name that collides with the desktop app. The run logic (arg parsing, env resolution, file tracing, current-thread runtime) moves into `comet_tui::cli` so the shipped `comet tui` and the `comet-tui` dev binary share one entry point and can't drift. `comet`'s main skips its stdout tracing for the tui path — a log line mid-frame would corrupt the alternate screen. Reverts the cometui packaging/installer/edge-route/release-job added in the previous commit; the `comet` package already carries the viewport now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: wing-anara <wing@anara.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
0b6558512b |
Spaces: device+folder pairs replace device switching
A space is a synced (device, folder) pair in the workspace doc — the
app's new unit of organization. Destructive break (fresh workspace2 doc,
ws2/{org} room); no migration by design.
Data/engine:
- spaces container (id, deviceId, path, name?, gitDetected, checkoutId)
+ chat spaceId/lastSeenAt; delete_space cascades chats+sessions in one
commit; seen marker is synced LWW with a monotonic guard
- Mutate ops createSpace/renameSpace/deleteSpace; createChat resolves
device+cwd from the space; markChatSeen is real now; WatchSpaces stream
- SpacesSync (new): owner-only git-presence stamping with an fs watcher
(catches git init later), 2-min repair tick, orphan-chat sweep
- claim_chat auto-creates a space so raw-command traffic keeps working
UI:
- sidebar: spaces list (folder + device subline, rename/remove) and a
global attention-sorted Active list (awaiting > errored > working >
completed-unseen) on the FLIP glide
- session tab strip replaces the chat header: terminal-tab styling,
agent brand icon, status dot <-> close-on-hover, middle-click close,
+ opens the new-session canvas; titlebar duties inherited
- add-space picker: device step -> remote-capable folder browser
(ListFolders relay-forwarded); duplicate device+path reuses the row
- diff pane, branch chip, and worktree toggle gate on the synced
gitDetected bool; composer mints chats onto the space's device
- repo picker deleted; onboarding card when no spaces exist
Verified: 449 workspace tests, clippy, edge tsc, and the two-device e2e
smoke (space + chat sync A->edge->B, cross-device run, status round-trip).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
||
|
|
e8c59b8278 |
M6: wire reconciliation, live two-device e2e, packaging, polish
Engine emits proto AuthState shape; LocalDevice RPC served; accounts param aliases. scripts/e2e-smoke.sh + rpc examples (e2e_driver, rpc_probe): edge under wrangler dev, two headless engines, chat created on A, run queued from B through the doc command queue, host-executed on A, transcript + status synced back to B — ALL STEPS PASS LIVE. dist/ packaging (Linux .desktop + icon + package-linux.sh, macOS Info.plist template + docs), release profile (thin LTO, strip). Clippy/fmt clean; docs/PARITY.md honest feature ledger; README + ARCHITECTURE status refresh. Workspace: 311 tests green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|
|
240b008bd3 |
Foundation: architecture, research, Rust workspace scaffold, TS edge port
- ARCHITECTURE.md: full design — Loro docs (session + per-org workspace) through
Durable Objects, TS edge / Rust everything-else split, gpui UI plan with
mugen/pretext techniques, headed+headless single binary, milestones M0-M6
- docs/research/: feature-parity inventory, gpui guide, mugen/pretext techniques,
loro Rust ecosystem, DO-language decision (TS, evidence-backed), harness
integration (claude stream-json / codex app-server)
- Cargo workspace (proto, doc, sync, harness, engine, rpc, ui + comet binary):
builds green incl. gpui pinned to zed@f14fea9b; comet-proto wire types and
comet-doc command-ledger rules 1-3, event->parts fold, render-parts privacy
policy, continuation splitting all ported with tests (15 passing)
- edge/: comet's Worker + DOs ported standalone (session room w/ hibernation +
two-level compaction + alarms + R2 backups, device room relay, attachments),
vendored session-doc modules, NEW workspace rooms (ws/{orgId}, org-claim authz),
absorbed WorkOS auth routes; tsc clean, wrangler dry-run bundles
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|