mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
f596e3f7aaeec2854527cdc482273ddd03bfa334
2820
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2d09c47672 |
Show provider session and turn metrics (#10496)
* feat(providers): let providers report session and turn metrics Providers know things about a session and a turn that Paseo cannot derive: timing, token flow, cache use, cost, the model that answered. They can now report them as label/value rows that Paseo carries to clients unchanged, so each provider decides which metrics make sense and how they read. Session metrics live on the agent record and snapshot. Turn metrics are stamped on the turn's footer row (last assistant message, else last tool call) so they survive reload, pagination and a daemon restart, and so the live turn_completed event and a later timeline fetch agree. Provider history replay restores both. Metrics are sanitized once where they enter the agent manager. The wire schemas validate whole messages, so one malformed row from a provider would otherwise make clients drop an entire snapshot, turn event or timeline page. A live completed turn with no Model metric gets the agent's model, so every provider shows model attribution before it is instrumented. Replayed turns do not: they may have run on a different model than the agent has now. Plugin providers publish session metrics behind a negotiated `session.metrics` capability because an older daemon closes a connection that sends an event type it does not know. Turn metrics ride an existing event that older daemons strip, so they need no gate. The wire additions are optional fields on existing schemas only. * feat(providers): report session and turn metrics from OpenCode, OMP, Pi and Claude Each provider now attaches metrics to turn_completed and emits session_metrics_updated, live and when history is replayed. - Live turns end on the adapter's clock. A provider's message timestamps can come from another clock. - Tool time merges overlapping runs, so parallel tools count once. - A total that is missing any part is hidden, so a partial total is never shown. - Replayed history reports metrics only for turns that finished, which matches live, where failed and interrupted turns report none. - Claude reports cost as a running total for each query(). A resumed query starts that total from a saved one, so a turn's cost is the change since the previous result of the same query. The first turn of a query shows no cost. - Claude transcripts do not record result messages, so replayed Claude history has no turn metrics. - Session metrics come from each provider's own cumulative counters. The cache hit is the last reply's or the last turn's, because a session-wide figure blends prompts from before and after compactions. * feat(app): show provider session and turn metrics Session metrics appear in the context window details, between the context summary and the account usage cards. A provider-reported Cost row replaces the app's own session cost line. Each completed turn with metrics gets a stats button in its footer: a hover card on web, a press-opened tooltip on native wide screens, and a sheet on compact screens. The context window sheet becomes a shared DetailsSheet so both use the same content-sized sheet. Metrics ride on the row that hosts the turn's footer (the turn's last assistant message, else its last tool call), the same row the daemon stamps. Live turn_completed events and timeline pages both stamp that row, so a refetch agrees with what the live event showed. The daemon updates session metrics without bumping updatedAt, like usage, so a stale buffered upsert may still carry the newest metrics and is accepted for that field. * fix(app): keep a turn's stats after the cached timeline reloads The local timeline cache dropped turnMetrics when it saved a turn's footer row. After a page reload the cached rows painted without the stats icon, and the catch-up fetch had no new entries to stamp them from. * fix(providers): keep imported session stats and never count a steered turn short Importing a Pi, Oh My Pi or OpenCode v2 session dropped the stats the provider returned with its history, so imported chats showed none until a forced replay. Import now carries them the way replay does. Replaying a Pi or Oh My Pi transcript read a prompt that steered a running turn as the start of a new turn, so the steered turn's stats counted only the steps after the steer. A turn that follows one ending on tools now reports no total, because the transcript reads the same as a stop and a new prompt. * fix(providers): keep stats through merged messages and plugin imports, start Pi first-token timing at the request A message the timeline merges from several chunks keeps the stats stamped on its last chunk. Plugin session imports carry the stats the plugin replayed, through the same history reader the other providers use. Steers queued together after an unclear turn stay unclear instead of attributing the final reply to the wrong turn. Pi measures time to first token from the request, not the first reply header. * fix(providers): carry a turn's stats onto the message the timeline merges from text chunks The previous change put the carry-over in the reasoning merge. The assistant message merge dropped the stats of its last chunk, so an imported reply of two text blocks lost its Turn stats button. * fix(providers): carry a turn's stats onto the tool card the timeline merges from updates An imported turn that ends on a tool call stamps the stats on the tool's last update. The tool merge kept the first update's fields, so the stats were lost. * fix(opencode): replay no session stats for a session that has none An empty OpenCode session replayed a session stats event with no metrics, which broke the empty-history check in the versioned runtime test. |
||
|
|
52377f595a |
Enable sidebar usage summary by default and move source toggles to a dedicated Sources list (#10491)
* feat(usage): enable sidebar usage summary by default and add dedicated Sources list
Show the sidebar Usage summary by default instead of requiring opt-in in
Appearance settings, while honoring explicit off preferences and continuing
to hide the row when no enabled source has pinned windows.
Let usage sources declare optional provider hints (`providers` on the
registration and `provider` on discovered accounts) so the daemon can mark
reports `defaultEnabled: false` when their hinted providers are neither
enabled nor installed, keeping usage sources decoupled from agent providers
while avoiding clutter from leftover credentials.
Move per-source show/hide controls out of individual card headers into a
dedicated `Sources` submenu inside Usage Settings (with tri-state
`cardVisibility` preferences migrating legacy `cardsOff`) so disabled
sources stay out of the main card list.
* fix(usage): resolve provider hints per report, refresh on forceRefresh, and clarify inactive copy
Resolve each usage report's provider activity hint in parallel with its
fetch and enforce a real timeout deadline in `isProviderActiveForUsage` so
a slow provider probe never holds back unrelated reports or hangs past the
deadline on non-abortable plugin RPCs.
Give the availability hint a 5-minute freshness TTL and re-probe when
`forceRefresh` is requested, retaining the fresher probe result across
subsequent normal reads until a newer snapshot or TTL expiry supersedes it.
Rename the default-off Sources sublabel from "Provider not installed" to
"Provider inactive" across all locales so it accurately covers both
disabled and unavailable providers.
* fix(usage): share provider availability reading across snapshot publishes and usage probes
Record both `ready` and `unavailable` global snapshot publications into
`usageActivityCache` so `isProviderActiveForUsage` reads one timestamped
availability cache instead of relying on `fetchedAt` (which unavailable
snapshot entries do not carry).
* fix(app): add MenuCheckboxItem so Usage Sources toggles expose checked state to screen readers
Introduce `MenuCheckboxItem` / `DropdownMenuCheckboxItem` backed by
`accessibilityRole="checkbox"` so toggleable menu rows expose their checked
state in Chromium's accessibility tree and native screen readers while
leaving existing `MenuItem` roles unchanged.
* fix(app): keep compact menu sheet rows in Tab order and activate on Space
Use `tabIndex={0}` for `MenuRow` in `sheet` presentation (leaving
popover roving arrow-key navigation at `tabIndex={-1}`) and handle Space
in web sheet rows since React Native Web only activates Space for
`role="button"`, not `menuitem` or `checkbox`.
* test(usage): include provider hint in claude-usage-source keychain and stores assertions
|
||
|
|
9cb521dda2 |
perf(ci): speed up server tests, Playwright shards, desktop/website E2E, and apt cache (#10504)
* perf(ci): cut PR CI wall-clock time across server tests, Playwright shards, and workflow setup * fix(ci): guard empty apt cache copy, use 100% Vitest workers in CI, revert Playwright to 2 workers with built supervisor |
||
|
|
3914893aa1 |
Troubleshoot providers from their settings page, and tidy provider settings (#10487)
* feat(providers): add docs links, sign-in facts and a tidier provider page A user whose Antigravity models looked stale had no way to find out why without asking in chat. agy 1.5.14 picks its sign-in from the environment: with SSH_CONNECTION, SSH_CLIENT or SSH_TTY set it reads a token file, otherwise the OS keyring (google-antigravity/antigravity-cli#1336). The daemon is often started outside SSH while the user tests agy over SSH, so the two can be signed in to different accounts and list different models. - The Antigravity status reports whether agy runs in an SSH session, and the diagnostic report for plugin providers now includes the resolved command, path and version like built-in providers do. - Providers carry an optional docsUrl (protocol field, plugin SDK registration, built-in definitions). The provider page links it from Troubleshooting, and the Antigravity page documents the sign-in mismatch. - Provider and project settings get a breadcrumb title. Refresh moves to the Models header, the model list scrolls inside a fixed height with a full-width search, and section headers keep one spacing whether or not they hold an action. - A switch no longer makes its row taller than the track, and every settings row is at least as tall as one with a switch, so a switch row and a text row line up. * fix(providers): report Antigravity's sign-in when ACP does not start A sign-in problem can be what stops agy's ACP server from starting, so the diagnostic report now shows the SSH session rows in that case too. The plugin provider diagnostic test no longer compares the daemon PATH and shell rows, which differ per host (Windows reports ComSpec). * fix(server): show the same provider version in the report and Installation The plugin diagnostic read the version by calling the provider's inspect itself with a 10s deadline, while the Installation row reads it through the installation service with a 20s deadline and a cache. A version check between 10 and 20 seconds showed in Installation and as an error in the report. The snapshot manager now hands getDiagnostic an inspectInstallation that reads through the installation service, so both show one answer and agy --version runs once for both. * feat(app): give rows that open something the same height as other rows Detail rows and collapsible row headers reserved a button's height so a list where only some rows held a switch kept one height. Now that every settings row is at least as tall as a switch row, that reserve only made rows like Diagnostic report and Docs taller than their neighbours. * test(app): compare rows that open something with text and switch rows * feat(app): size the provider icon to the page title * fix(app): scale the provider title icon with the interface size |
||
|
|
ede181d39a |
Refresh enabled provider catalogues in the background every 30 minutes (#10481)
* Refresh enabled provider catalogues in the background every 30 minutes A long-running daemon cached discovered models until a manual Refresh or a restart, so a server-side model rollout stayed invisible. The daemon now refreshes each enabled provider about every 30 minutes, one provider per staggered slot. A recent refresh pushes the next one back. Background refreshes join discovery already in flight, publish only changed catalogues, and keep a ready catalogue when a probe fails. Co-Authored-By: Claude <noreply@anthropic.com> * Keep background refresh slots independent and its probes soft Ticks no longer wait for a refresh to settle, so one slow provider cannot delay the others. A provider with a background refresh still running is skipped. The due check uses a fixed one-second timer slack instead of half a slot, so a manual refresh always pushes the next probe a full interval. Background probes pass force: false so OpenCode keeps its shared server. A result that is not ready keeps a ready catalogue, which covers plugin status probes that report a failed startup as unavailable. Co-Authored-By: Claude <noreply@anthropic.com> * Keep a ready catalogue when a background refresh returns a partial one Claude falls back to its curated list without discovery-gated models when model discovery fails or times out. That result is ready, so a background refresh published it and Mythos left the picker. Providers now mark such a catalogue incomplete, and a background refresh keeps the ready catalogue it would have replaced. A manual refresh still publishes it. Co-Authored-By: Claude <noreply@anthropic.com> * Kill OpenCode servers whose startup is pending at shutdown A probe still allocating its port when the daemon stopped spawned its OpenCode server after shutdown returned, and the process outlived the daemon. Background refresh makes that overlap likelier. Shutdown now waits for pending startups and kills the generations they produce. Co-Authored-By: Claude <noreply@anthropic.com> * Stop running probes before provider shutdown A probe checking availability when the daemon stopped could still go on to discovery and start an OpenCode server after provider cleanup returned. The manager now aborts every running probe through its refresh signal when it stops, and shutdown waits up to ten seconds for them to settle before it shuts down provider clients. Co-Authored-By: Claude <noreply@anthropic.com> * Refuse OpenCode spawns from operations begun before shutdown A rotation accepted before shutdown waited for the old server to stop and then started a replacement after cleanup returned. The server manager now counts shutdowns; every operation that can start a server records the epoch it began in, and the spawn step refuses once a shutdown has passed. Operations begun after shutdown still start, since the manager is a process-wide singleton. Co-Authored-By: Claude <noreply@anthropic.com> * Keep manual refresh precedence over concurrent background refreshes * Avoid eager provider snapshot downloads for unobserved directories --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
08ad7c7271 |
Let agents steer or interrupt another agent's running turn, and tell them how their message was delivered (#10483)
* feat(server): let agents queue, steer, or interrupt messages to other agents An agent sender's `steer` used to mean "wait for the turn to end", unlike a person's steer. Agents now get the same three choices a person has, plus a named default: `queue` waits for the turn end, `steer` joins the running turn (interrupting when the provider cannot steer), and `interrupt` replaces it. A steer or interrupt carries the messages queued ahead of it, so delivery order still equals admission order. The receipt returns the applied behavior and guidance built from whether the recipient is running and whether its provider can steer. A queued message's guidance tells the sender to follow up with a short steer or interrupt instead of resending, because a resent message is read twice. Older clients send `steer` for every default agent send, so the daemon maps their agent `steer` to `queue` when the client lacks the `agent_active_turn_behaviors` capability. New clients talking to an older daemon refuse `steer` rather than silently queueing it. * fix(server): keep a steer's carried messages when the turn ends first A steer that reached the provider after the turn ended made the manager throw a plain error, and delivery failed the whole batch, including the queued messages the steer carried. The manager now throws AgentTurnChangedError, and delivery sends the batch again, into the next turn or as a new one. Also report the applied activeTurnBehavior in `paseo send --no-wait` output, and expect the new hello capability in the client test. * docs(skills): warn that an unread steer loses the messages it carried * docs(skills): shorten the send_agent_prompt guidance Keep what a sender acts on: leave activeTurnBehavior out, the three values, read the guidance, follow up instead of resending, and the steer loss case. Drop delivery facts the sender cannot act on. * fix(server): stop the send_agent_prompt description promising an unread steer survives |
||
|
|
b2ecec8719 |
fix(opencode): stop adding a "This chat uses OpenCode v2" row to chats (#10490)
The notice flagged chats moved to the then-new v2 runtime. v2 has been stable, so the row is noise. Previously saved openCodeRuntimeNotices metadata is left in place and no longer read. |
||
|
|
fa37fd20ca |
Make the recursive watcher inventory test deterministic (#10462)
* test(server): make recursive watcher inventory test deterministic Deliver the file creation notification explicitly so the inventory check does not depend on the native watcher becoming ready. Hold scheduled scans until the test checks the inventory and require reconciliation to report the deletion. * test(server): wait for the watcher callback without advancing audits --------- Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> |
||
|
|
4b429c0030 |
Prevent zombie processes after plugin startup and reload (#10470)
* fix(server): prevent zombie children after plugin builds Retiring a compiler thread closed its libuv loop while esbuild still owned a native child. Run the compiler in a subprocess so the daemon can reap it when the idle compiler disconnects. * test(ci): check plugin compiler reaping on macOS |
||
|
|
6ea095cb49 | chore(release): reconcile v0.17.1 (#10457) | ||
|
|
f7e2ab4076 |
Keep the full history when reopening a long Antigravity agent after a restart (#10428)
* fix(acp): keep the whole history when an agent streams it after session/load Reopening a long Antigravity agent after a daemon restart lost the end of its timeline. When the client reads slowly, agy answers session/load part-way through the history and keeps streaming the rest, with no end marker. The replay window closed after a fixed five quiet periods (1 s), and every history update processed after that was discarded as stale. The window now closes only once a quiet period passes without a history update. Command, configuration, mode and usage updates no longer count as activity, so they cannot hold the session open. When the quiet period expires, the loop reads pending input once before the silence is trusted, because a stalled event loop reaches the timer with history still unread in the pipe. The wait has no upper bound: any bound is another way to truncate, and the agent goes silent once its history is sent. * fix(acp): stop waiting for history replay when the connection closes With the replay wait no longer capped, closing the provider connection while a session was still replaying waited for the whole history, so a daemon stop during a long reopen could run past its deadline. The connection marks itself closed and then awaits in-flight opens, but the replay wait only checked the runtime's own closing flag. The wait now also ends when the connection closes. * fix(acp): only extend replay on history updates and fail open on mid-replay crash * fix(server): bound shutdown flush so provider shutdown cancels in-flight reopens * fix(acp): keep load replay open while a multi-read wire record is in flight |
||
|
|
c1c29fcb56 |
Deliver queued agent messages in order, so an interrupt never leaves a stale steer behind (#10404)
* fix(server): deliver an agent's messages in the order they were queued An agent's interrupt was dispatched alone, ahead of the steers queued before it. Those steers stayed queued and started a turn of their own after the interrupt's turn ended, so a stale instruction ran after the newer message that countermanded it. The queue now keeps one ordered list per recipient and only ever dispatches its front. An interrupt releases at admission and takes the older messages along in the same replacing prompt. A person's prompt takes the queue along the same way. Stop holds the queue for the recipient's next prompt instead of releasing it into a new turn, and does not drop it: the queue also carries finish notifications. A quiet window now closes after ten seconds at most, so steady arrivals cannot delay a waiting message without bound. * fix(server): keep a prompt's place in line until the provider admits it The queue removed a message when it handed the prompt to the agent manager, before the provider had admitted it. In that gap the order was no longer the queue's to decide: - a person's prompt or a later interrupt sent while the provider was still starting a turn could pass a prompt that was admitted first; - Stop during that start no longer saw the interrupt waiting to replace the turn, so the interrupt started a turn after the Stop; - queued messages that rode a person's prompt were settled when the prompt was handed over, so a turn the provider rejected dropped them. A message now stays in its recipient's list until the provider admits the prompt that carries it, fails it, or the message is withdrawn. Every prompt takes its place at admission, one operation acts on a recipient at a time, and each operation covers only what was admitted before it got in line. Stop holds every message still in the list and clears the interrupt's urgency, so a held interrupt waits like a steer. A prompt is a command only when it starts with a slash and a name with no second slash, matching how providers read it. A prompt that begins with a path now carries the queue like any other text. An interrupt the provider runs as a command beside the turn takes no queued message along, because it replaces nothing. Test wiring that builds the MCP catalog or stubs the agent manager now supplies the delivery module and the stop signal the server requires. * fix(server): keep queue decisions made before a Stop or shutdown from going stale Three races in the window where the provider is still starting or stopping a turn: - An interrupt admitted while a polling queue step was already in line got no step of its own. A person's steer sent next took the interrupt along and steered the turn the interrupt should have replaced. An interrupt now always reserves its place at admission. - A dispatch in flight when Stop arrived checked the queue's phase to learn it was void. A message admitted before the provider answered moved the queue out of `held`, so the old dispatch became valid again: an interrupt from before the Stop started a turn alone, and a batch whose starting turn Stop canceled was rejected instead of kept. Each dispatch now records the Stops its recipient had seen when it was decided and is void once that count changes. - Shutdown drained only what was queued when it began, so messages a rejected person's turn returned afterwards were left to the retry timer. The drain now runs after the operation in flight and reads the queue then. * fix(server): void queue steps that were reserved before a Stop A queue step that was already in line when Stop arrived checked for a Stop only from the moment it ran. When an interrupt arrived while the provider was still stopping, the queue left `held`, and the old step started a turn with the held messages. The new interrupt then replaced that turn in a second one. A step now watches for a Stop from the moment it reserves its place and does nothing once one has arrived. The held messages go with the next prompt admitted after the Stop, in one turn. The interleaving test gains a variant with a provider that is slow to answer. It checks, for every five-step sequence, that no queue dispatch after a Stop carries only messages from before it. * fix(server): hold the queue again when the message that reopened it is withdrawn After a Stop, a message admitted later reopens the queue and takes the held messages along. When that message was withdrawn before its quiet window closed, for example a change-request update whose watch was cancelled, the window still fired and the held messages started a turn on their own. A Stop now marks the messages it finds. When a withdrawal leaves only marked messages, the queue is held again and waits for the next prompt. * docs(server): state that cancel_agent with no turn to stop holds nothing Stop holds the queue only when it stops a running or starting turn. On an idle recipient cancel_agent reports that it canceled no run, and a queued steer keeps its quiet window. The lifecycle doc says so and a daemon-level test pins it. * docs(server): state when a queued message counts as delivered A message leaves the queue when the agent manager acknowledges the start of the turn that carries it. A turn that fails after that point is not delivered again, and a start that is not acknowledged within 60 seconds returns the messages a person's prompt carried. |
||
|
|
6946d0a429 |
fix(workspace): publish checkout status after restore (#10406)
A client that read checkout status while the worktree was absent can keep that response after Restore. Send the current status to subscribed clients before publishing the recovered workspace. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> |
||
|
|
d816b94c54 |
Show workspace archive progress across sessions (#10391)
Share the archive marker across connections so clients and plugins see when a workspace is being archived. Closes #7698 Co-authored-by: tabulius-ux <252143044+tabulius-ux@users.noreply.github.com> |
||
|
|
4c0bf97dbf |
Honor the working directory when resuming Codex (#10390)
Codex loads configuration and starts MCP servers while restoring the thread. Send the session directory during resume so those steps use the requested workspace. Closes #7699 Co-authored-by: tabulius-ux <252143044+tabulius-ux@users.noreply.github.com> |
||
|
|
1fe7bf1ccc |
feat(hub): let Hub sessions list daemon projects (#10392)
Allow trigger editors to discover working directories on the connected daemon through the existing project list RPC. |
||
|
|
daa6b5cc24 |
Preserve agent recovery when stopping Paseo from a terminal (#10381)
* fix(server): preserve agent recovery on foreground shutdown A terminal interrupt could reach provider runtimes before Paseo captured running agents. The development watcher also sent the interrupt down the daemon tree, including detached children. Keep provider shutdown under the supervisor's IPC lifecycle. * fix(dev): keep protocol and client watchers running Pass the watch flag through the final npm workspace command. Verify both watchers start before testing the dev runner shutdown. * test(ci): exercise foreground shutdown with dependency watchers |
||
|
|
c9159df62a |
Suggest Antigravity skills inside prompts (#10383)
Preserve the provider command kind so Antigravity skills appear in inline autocomplete. Keep the built-in ACP commands available at the start of the prompt. |
||
|
|
d154df3165 |
Let plugins manage worktree creation, removal, and restoration (#10278)
* feat(plugins): let plugins manage worktree create, remove, and restore
Adds server.registerWorktreeManager({ create, remove?, restore? }) so external worktree tools such as Worktrunk can own Git worktree creation, removal, and restoration instead of overloading worktree.create.before.
Keeping worktree.create.before purely transformative preserves multi-plugin chaining, rollback, and the 30s hook budget, while giving manager operations a 120s budget matching git worktree commands. Paseo snapshots existing worktrees before create so managers cannot hijack pre-existing user worktrees, writes comparison-base and owning plugin metadata into paseo/worktree.json and the workspace record, saves refs/paseo/kept-commits before removal so restore stays safe, and falls back to built-in Git if a manager declines or is disabled.
* fix(plugins): harden worktree manager lifecycle, rollback, and schema
* fix(plugins): pass untrusted on create, clean up rejected worktrees, and sync docs
* refactor(plugins): unify worktree manager checkout flow and metadata rules
* fix(plugins): verify managed worktree ownership and restore targets
A failed callback does not establish ownership of worktrees created during its call. Require the manager to identify the checkout before Paseo attempts rollback, and verify the requested Git target before reopening a restored workspace.
* fix(plugins): preserve worktree setup on retry and refresh branch bases
A failed setup could leave a new branch behind and send the retry through the built-in checkout. Use the manager's reported branch creation status during rollback. Share base preparation so both checkout paths start from the updated remote-tracking ref.
* fix(plugins): preserve managed checkout targets and rollback
Keep branch creation ownership with the linked checkout so a failed after-hook can be retried with the same branch. Leave same-repository change requests with a local branch collision to the checkout path that fetches the change request head. Use the worktree timeout for compatibility commands.
* fix(worktrees): carry source trust and await managed creation
Preserve fork provenance for manager callbacks and the workspace record. Honor tracking branch creation in the manager example and let the CLI wait on the existing workspace creation lifecycle.
* fix(plugins): verify PR head commits, restore CLI worktree RPC, and fix Windows rollback paths
* fix(plugins): pre-resolve PR head, use NUL worktree snapshots, and wait on CLI worktree create
* fix(plugins): unify worktree list reader with Git 2.35 fallback and fetch PR head once
* fix(plugins): require exact worktree snapshot for managers and configure PR push remotes on adoption
* fix(server): coordinate workspace restores across daemon sessions
* fix(server): coordinate archive, undo, and restore across daemon checkout boundary
* fix: serialize open-project with checkout archive, sync sibling owners, lift client timeouts, bump plugin version
* fix: forbid nested secondary worktrees, preserve nested checkouts on archive, wait on openProject
* fix(server): refuse deleting a worktree containing a live nested Git worktree
* test(server): normalize Windows paths and teardown command in worktree-manager E2E
* fix(server): guard cross-repo nested checkouts on delete and share checkout trust across sibling workspaces
* fix(worktrees): scope nested checkout protection to managed worktrees
The removal scan treated dependency clones and recursive submodules as independent worktrees. Identify linked worktrees through Git metadata and use the scan only for manager-owned removals.
* test(worktrees): accept native line endings in archive fixtures
The nested submodule fixture checks that Git populated the checkout. The README line endings depend on the runner's Git configuration.
* docs(plugins): document the example manager Git requirement
* fix(worktrees): name the manager that returns an invalid path
The destination validator serves both creation hooks and managers. Keep its errors about the path so the caller can identify the plugin and operation.
|
||
|
|
0a3fed0643 |
test(server): wait for file observation before atomic replacement (#10372)
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> |
||
|
|
988cf4bec8 |
fix(acp): keep Antigravity turn open while non-daemon background tools run (#10310)
* fix(acp): keep Antigravity turn open while non-daemon background tools run * fix(acp): address deferred turn steer, drain race, and echo scoping * fix(acp): serialize deferred steers, gate on end_turn, and lock canceled tool updates * fix(acp): unify deferred reply settlement and accept queued steers on send * fix(acp): keep Stop unblocked during queued steers and gate reply settlement on post-tool updates * fix(acp): ignore in-flight steer usage for settlement and deliver queued steers after RPC errors * fix(acp): keep deferred background job running when a steer rejects and honor Stop cancellation * fix(acp): settle deferred turn immediately on Stop even if a steer RPC is unanswered * fix(acp): bound Stop drain for in-flight steers and tear down wedged runtimes * fix(acp): terminate wedged child process on Stop timeout and reject prompts on closed sessions * fix(acp): reject replacement prompt if session retires during interrupt and preserve streaming reply id * fix(acp): always retire deferred ACP session cleanly on Stop and clear fallback id on steer start * fix(server): reopen retired plugin sessions before applying configuration changes * fix(acp): close deferred process before emitting cancel and synchronize mid-shutdown config changes * fix(acp): do not reset deferred settle timer on excluded daemon tool updates * fix(acp): release deferred turn when tool is reclassified as excluded * fix(acp): gate deferred settlement reset on open qualifying tool membership * fix(acp): decouple deferred reply tracking from open tool blockers * fix(acp): track post-end_turn wire order and preserve settled reply across tool completion * fix(acp): unify wire-order prompt response tracking and exclude daemon reclassification from crossedEndTurn * fix(acp): preserve settled background reply across steers that start no new tools * fix(acp): distinguish settled-with-open-tools reply state across steers * fix(acp): share close and deferred interrupt retirement across overlapping calls * fix(acp): make deferred retirement sole owner of prompt rejection and cancellation * fix(acp): centralize session retirement in retireSession so rejected prompts never suppress session.closed * fix(acp): bound session/cancel write in deferred retirement before teardown * fix(acp,server): force-abort stalled connectors on Stop timeout and bound cancel wait in AgentManager * fix(acp,server): enforce shutdown deadline on connector close and bound settings wait on queued Stop * fix(acp): scope connector shutdown deadline to deferred retirement and finalize on late close |
||
|
|
b71b4d584a |
Keep live images responsive during history replay (#10371)
* perf(server): keep live image output responsive during history replay A large attachment blocked all other provider images behind a daemon-wide queue. Share writes only for matching files and reduce the filesystem and decode turns needed to publish each image. * fix(server): validate image storage and share the decode budget Validate the cached directory before reusing an attachment and set file permissions without reading the process umask. A shared deadline bounds the work of concurrent decoders in each event-loop slice. * perf(server): charge image decode slices for active work Filesystem waits and unrelated event-loop work exhausted the wall-clock deadline before decoding started. Measure synchronous decode work against the shared budget so busy replay avoids extra yields. |
||
|
|
c9a7d523f8 |
Speed up Claude history reload under daemon load (#10369)
* fix(server): speed up Claude history resume under load Each record read gave other daemon work another event-loop turn before history could finish rebuilding. Read transcript windows and resolve workflow links in one scan so resume preserves the full conversation with far fewer I/O waits. * test(server): cover Claude replay across read windows * fix(server): yield during dense Claude history replay A read window of short records can keep transcript parsing and timeline ingest on the microtask queue for hundreds of milliseconds. Yield on elapsed time within each window so the daemon can service other requests. |
||
|
|
c853f98b90 |
fix(server): wait for restored checkout status on concurrent reads (#10304)
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> |
||
|
|
c3da87ee4c |
Support Gitea, Forgejo, and Codeberg change request watches (#10280)
* feat(server): add Gitea, Forgejo, and Codeberg support for change request watches Implement the Gitea-family ChangeRequestSource using cwd-free tea login list and tea api --login -i requests, inspecting HTTP status codes directly on stdout/stderr rather than treating exit code 0 alone as success. Reuse the shared per-host bounded poller for concurrency limits, 429 Retry-After pauses, and exponential backoff. Combine commit statuses and Actions tasks (including approval-held runs via need_approval and cross-repo waiting shadows) with mid-pagination headSha validation, and paginate comments, reviews, and inline review comments with bounded fan-out and quiet-poll caching. * fix(server): address review findings on Gitea watch pagination, check sharing, and runs fetch - Read /pulls/:index/reviews/:id/comments in a single request instead of a page loop because Gitea ignores page/limit on that endpoint and omits X-Total-Count/Link headers. - Paginate /commits/:sha/status using the X-Total-Count response header instead of body total_count (which Gitea sets to the page length). - Extract shared pure Gitea check schemas, shadow detection, rerun selection, and tea login matching into gitea-checks.ts imported by both gitea-service.ts and gitea-change-requests.ts. - Remove the redundant /actions/runs fetch from the watch adapter because watch checks carry no action_required trait and approval-held tasks/pending shadows already map to pending. * fix(server): preserve Gitea watch identity, checks, and backoff * fix(server): route Gitea watches by base URL and retain complete updates * fix(server): reconcile Gitea checks by job and refresh watch logins * fix(server): validate Gitea and Forgejo Actions job responses * fix(server): classify canceled native Actions statuses as neutral * fix(server): drain failed Gitea polls before releasing host slots * fix(server): let admitted Gitea polls finish with low quota * fix(server): normalize Gitea watch URLs and refresh inline replies * test(server): cover late Gitea rate limits across recovery windows |
||
|
|
2298effb0b |
Support multi-forge change request watches and GitLab merge request watches (#10279)
* feat(server): add multi-forge routing and GitLab support for change request watches Route change request watch URLs host-first through ForgeResolver (cloud host match plus cached async CLI auth probe) before delegating path canonicalization and polling to the matched forge adapter, while sharing adapter instances with workspace reads. Persist the resolved forge id on saved watch records (defaulting legacy records to github) so daemon restarts recover active watches directly by forge without probing hosts during outages, and keep unknown-forge records intact rather than aborting boot. Add the GitLab ChangeRequestSource using cwd-free glab api --hostname calls, bounded per-host polling and rate-limit/error backoff, head-pipeline job/bridge checks with mid-pagination headSha verification, discussions/comments, and observable GitLab approval transition updates without manufacturing a GitHub reviewDecision. * fix(server): address review findings on GitLab watch rate limits, approvals, and legacy recovery - Decide rate limits from HTTP status codes only on parsed glab responses so MR titles, comments, or IIDs mentioning 429 or rate limit never trip false host pauses. - Remove the duplicate in-memory approval baseline and counter in favor of immutable GitLab approval system notes enriched with /approvals counts only on new notes, keeping seenActivity as the single persisted owner. - Infer forge from URL shape when a persisted record omits forge so GitLab watches survive an older-daemon downgrade/upgrade cycle without probing. * fix(server): handle GitLab locked merge state and custom-port glab host keys - Pass the bare hostname to glab auth status and glab api --hostname (matching ForgeResolver.resolveHost and glab's api_host config) while preserving host:port in the canonical URL and description. - Map GitLab's transient locked merge-in-progress state to open so watches keep polling until merged or closed. * fix(server): preserve accurate GitLab watch updates and offline unsubscribe * fix(server): validate GitLab watch project addresses and retain approval updates * fix(server): honor GitLab watch profiles written by glab login * fix(server): refresh authenticated GitLab watch profiles * fix(server): keep GitLab poll access checks on merge requests * fix(server): use GitLab MR access and enforce host pauses on every request * fix(server): let admitted polls finish and retry denied GitLab reads * fix(server): give quota-limited change request watches a turn * fix(server): recover from shared forge quotas one poll at a time * fix(server): rotate watches after failed quota recovery attempts |
||
|
|
d78cc90e4d |
Install bundled orchestration skills for Antigravity (#10273)
* feat(skills): install bundled orchestration skills for Antigravity Antigravity CLI (`agy`), App, and IDE do not scan `~/.agents/skills` or `~/.claude/skills` globally; they discover global skills one level deep from `~/.gemini/config/skills/<skill>/SKILL.md`. Gemini CLI already discovers `~/.agents/skills`, so targeting `~/.gemini/config/skills` only (instead of `~/.gemini/skills`) avoids duplicate skill entries in both Gemini CLI and `agy`. Appends `antigravityDir` at root index 3 in skill transactions so any in-flight pre-upgrade transaction manifest retains its existing backup indices, and includes `antigravityDir` in legacy Codex alias checks so symlinked roots are not retired. * fix(skills): unify install roots and keep rollback/updates resilient to unwritable targets - Replace separate per-target fields on SkillTargets with an ordered `installDirs` list plus `codexDir`, deriving status, sync, removal, legacy Codex alias checks, and transaction root indexing from one source while preserving pre-upgrade backup indices 0–2 (`codexDir` at index 2, additional install roots at index 3+). - Skip unreadable `add` entries with no backup during transaction rollback so an ENOTDIR/EACCES parent under `~/.gemini` does not fail rollback and leave a stuck transaction blocking later skills calls. - Ignore `ENOTDIR` in `removeSkill` (a skill cannot exist below a regular file). - Continue syncing remaining skills and install roots in `syncSkills` before throwing the first error so an unwritable `~/.gemini` does not block startup auto-updates from reaching `~/.agents` and `~/.claude`. * fix(skills): finish removing reachable skills during uninstall when one root is unreadable Continue across every target root in `removeSkill` and every managed skill in `uninstallSkills` before throwing the first error (matching `syncSkills`), while still reporting `EACCES` rather than ignoring it. * test(agent): synchronize stale-session retry before checking cleared run Replace the racy `setTimeout(0)` in `agent-manager.test.ts` with a deferred gate on `resumeSession`. Under CI load, `setTimeout(0)` could fire after the immediate retry had already resumed and started its new in-flight run, causing `hasInFlightRun(agent.id)` to read `true`. |
||
|
|
0f57c2b4c7 |
Prevent duplicate slash-command entries from breaking composer autocomplete (#10275)
* fix(commands): deduplicate provider slash commands by name Antigravity ACP emits both its built-in slash commands and discovered skills in one available_commands_update without deduplicating colliding names (such as a local plan skill alongside built-in /plan). Both entries flowed through plugin ACP, plugin-provider, and mergeSlashCommandSources into Autocomplete's FlatList, triggering React's duplicate key error on .$plan. Enforce unique command names (first-wins) at the plugin ACP, plugin provider, core ACP, and Codex boundaries so every daemon consumer gets a valid catalog, and claim provider command names in mergeSlashCommandSources and inline skill filtering so the app stays safe against older daemons. * refactor(commands): enforce unique command names at daemon and app boundaries Move slash-command deduplication from six per-provider and per-consumer copies to the two single boundaries: handleListCommandsRequest in packages/server/src/server/session.ts (covering live agents and drafts for every provider) and fetchAgentCommands in packages/app/src/agent-commands/use-query.ts (covering all app consumers, including against older daemons). * chore(app): tag app-side command deduplication as a COMPAT shim |
||
|
|
7b9c6a7d4a |
feat(providers): bundle goose plugin with multi-provider model selection (#9719)
Moves goose into a built-in opt-in provider plugin (`plugins/goose-provider`) and lists models from every provider configured in goose. - Bundles `plugins/goose-provider` with `server_info.features.gooseProvider`, legacy host catalog fallback, legacy `extends: "acp"` config migration, and legacy session handle decoding (`COMPAT(gooseProvider)`). - Adds `context.request(method, params)` and synchronous `config(state, context)` hooks to `@getpaseo/plugin/server/acp`. - Queries goose's provider inventory RPC during discovery to expose `<provider>/<model>` entries (falling back to the base catalog if unavailable), switches provider before model on selection, and namespaces session config snapshots. Co-authored-by: James Dumay <james@generalinference.xyz> |
||
|
|
05fc260b96 |
Show OpenRouter credits and spend in Usage (#10269)
Show remaining account credits and API-key spend for today, this week, and this month in the host Usage panel and CLI. |
||
|
|
1972864b19 |
feat(antigravity): show account usage (#10232)
* feat(antigravity): show account usage Resolve the provider launch for usage discovery and report quota windows from agy. Co-authored-by: RoundRedDot <roundreddot@gmail.com> * fix(usage): clear reports when a provider executable is missing Usage discovery treated a missing executable as a transient error and kept the previous account report. Treat the unresolved launch as absent so the next refresh removes that report. --------- Co-authored-by: RoundRedDot <roundreddot@gmail.com> Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com> |
||
|
|
cba515ef73 |
fix(github): prioritize private repositories in clone search (#10264)
The general GitHub search can fill its result limit with public repositories before returning a private match. Fetch private matches separately so users can find them by name. |
||
|
|
95542dbfe6 |
Show the current Claude usage after switching accounts (#10236)
* fix(usage): show the current Claude account after a login switch Agent usage discovery kept the old account bound to a credential store after an account switch. Refresh those discoveries and have the usage source verify account ownership when it rereads the store. * test(server): synchronize the provider update check fixture The Windows runner can finish reading the installed version before the update callback starts. Wait for the callback to start and keep it pending while verifying the independent reads. |
||
|
|
93ff95b20f |
Reconcile 0.17.0 beta metadata (#10233)
* docs(changelog): prepare 0.17.0 beta (cherry picked from commit |
||
|
|
4d29ee415a |
Show provider versions and run provider updates from provider settings (#9568)
* feat(providers): show installed version and install link in provider settings Providers can now declare `installation`: install and update links plus an `inspect` callback that reports installed state and an opaque version string. Built-in clients and plugin providers share one contract; plugins receive the daemon-resolved launch with `resolved: false` when the executable is missing, so they can report not installed instead of failing. The daemon calls `inspect` only on the new `provider.installation.inspect.request` RPC, never from availability probing, discovery or session creation, so a slow version probe cannot delay agents. Results are cached per client for 30s, deadlined at 20s, and links survive a failed probe. The app gates the provider sheet's Installation row on `server_info.features.providerInstallation`, so older hosts show nothing new. * feat(providers): show available updates in provider settings Providers can now declare `installation.checkForUpdates`, returning `current`, `available` with opaque `versions` and `message`, or `unknown`. The provider decides what counts as newer; Paseo shows its answer as written and never parses or compares versions. The check is its own RPC, `provider.installation.check_updates`, so the installed version never waits on a network lookup. The daemon caches a conclusive answer for an hour and an inconclusive one for 30s, shares in-flight calls, and deadlines the call at 25s, below the plugin RPC timeout. A throw or timeout comes back as `error`, which the app shows as inconclusive, never as up to date. The sheet's Refresh bypasses the cache. Codex and Claude Code read the release source their own updaters use: the Homebrew cask for cask installs, otherwise the GitHub latest release for Codex and the configured `autoUpdatesChannel` for Claude Code. `codex doctor --json` reports the same answer but scans local state and took close to a minute, so it is not used. Muse compares its build with the launcher's channel manifest, the same rule the launcher updates by. The install link now shows whenever the provider declares `installUrl` and is not reported installed: the Install button for `not_installed`, a quieter "Install instructions" link when the check failed or the provider only links to a guide. * feat(providers): run provider updates from provider settings Providers can declare `update(context)`, and the Installation section shows an Update button when an update is available. The daemon owns the operation: one per provider, joined by later requests, kept in memory past client disconnects, streamed to subscribers through an owned subscription, and aborted only when the daemon stops. The provider's answer is the outcome; the daemon adds no verification. After success it drops the cached inspection and update check and refreshes discovery, without restarting agents. Codex and Claude run their own `update` subcommand and pass the output through. Muse has no update subcommand, so it does not declare one. Updater output is capped at 64 KiB per update so a chatty updater cannot grow daemon memory. Starting an update requires daemon.manage because it runs commands on the host. * feat(providers): report installation for the remaining providers Copilot, OpenCode, Pi, Oh My Pi, Antigravity and Hoplite now show an install link and the installed version in provider settings. Each one declares only what its CLI offers: - Update checks ask the source the CLI's own updater reads: Pi's latest-version endpoint, `omp update --check`, and Hoplite's latest.json. Copilot and OpenCode resolve their release inside the binary, so they declare no check. - Updates run the CLI's own command: `copilot update`, `opencode upgrade`, `pi update --self` (leaves Pi packages alone), `omp update`. Antigravity and Hoplite document no self-update. OpenCode's success message asks for a daemon restart, because all OpenCode agents share one server that keeps running the old version. * docs(providers): document the provider installation contract Plugin authors get the contract in the provider guide, with a worked example that reports a version, checks for an update and runs the CLI's own updater, and every field, deadline and cache in the reference. The internal provider and plugin docs record why the three callbacks are separate, that versions are opaque, that Paseo adds no verification to an update, and how the plugin bridge carries and cancels each request. * chore(protocol): mark provider installation as shipping in v0.17.0 main is on the 0.16 beta series, and a promotion ships the tested beta's content without pulling from main, so this lands in the next minor. * fix(app): bound update output and show refresh failures in provider settings The screen appended every progress chunk with no limit while open, so a noisy updater grew memory and never showed the truncation note that a reopened screen shows. Progress now folds with the daemon's 64 KiB limit. A manual refresh stored its result and failure outside the queries the screen reads, so a failed refresh brought back the old answer with no warning. Refresh now runs through those queries. It passes staleTime 0 because the app's default staleTime of Infinity would otherwise answer from the cache. The not-connected error uses the translated string the i18n check requires. * fix(providers): keep update checks in step with the installed version A conclusive check is cached for an hour and was not tied to the version it answered for. After a CLI updated outside Paseo, settings showed the new version and still offered Update to it. When an inspection reports a different version, the cached check is dropped. Versions are compared for equality, so they stay opaque. The release comparison dropped prerelease suffixes, so Codex 0.200.0-alpha.1 looked current against 0.200.0. A prerelease now comes before the release with the same numbers. Two different prereleases of the same release are reported as unknown. * docs(providers): say when Update instructions shows * fix(providers): reuse a cached update check only for the version it answered The previous fix dropped the cached check after an inspection settled with a new version. On reopen the app sends inspect and check together, so the check answered from the stale entry before the inspection settled. A cached check now records the installed version it was computed against and is reused only when the current inspection, shared if in flight, reports the same version. * fix(app): refresh provider version after an update settles while disconnected The installation and update queries were invalidated only by a live succeeded progress event. A connection dropped mid-update delivered the settled operation as a snapshot on reconnect, which left the old version and Update on screen. A success the view saw running now rereads them whether it arrives as progress or as a snapshot. * fix(providers): keep update checks within their own deadline Tying a cached check to its version made every check wait for a fresh inspection, which could add the 20 s inspect deadline to the 25 s check deadline. A check now never starts an inspection. It waits on one only when the inspection is cached or already running and the check would reuse a cached answer. When it asks the provider, it records the version afterwards. * test(app): assert provider installation states are visible * fix(providers): share one update check when two clients reopen after a version change * fix(muse): report the build the update check compares Paseo reuses a cached update check while inspect reports the same version string. Muse reported 1.4.18 but compared its build (1.4.18-R8600.1), so a new build of the same release kept the stale "Update available" for up to an hour. The contract docs now say to include everything the check compares in the reported version. * test(app): scroll custom model rows into view before checking them The provider sheet now shows an Installation section above the model lists. At 390x1000 the custom model row sits under the sheet footer until scrolled. The spec checks that a long model id leaves its Remove button reachable. It had assumed the row needed no vertical scroll. * test(app): keep the custom model check sensitive to a Remove button pushed off the sheet scrollIntoViewIfNeeded on the Remove button scrolled the overflow-hidden model card sideways too, so the check passed with the long-id layout fix undone. Scroll only the Custom models heading into view, which moves the sheet vertically and leaves the card at scrollLeft 0. With the layout fix undone the spec now fails at 1200px and 390px again. * feat(app): offer provider updates whether or not an update check answers Update and Update instructions lived inside the row that appeared only after checkForUpdates answered, so Copilot and OpenCode, which declare update but no check, never offered either. A check is a convenience: the Updates row now shows for an installed provider that offers an update, keeps Update or Update instructions in place in every check state (none, checking, up to date, available, couldn't check), and shows what the check knows as a hint beside it. A provider that offers no update still shows the check's answer once it has one. The daemon already ran update without a check; a test now says so. * fix(app): let update output scroll inside the provider sheet on Android The output box is a ScrollView nested in the sheet's scrolling body. Android hands the drag to the outer ScrollView unless the inner one sets nestedScrollEnabled, so only the last 240px of a long update's output was readable. The tool-call detail views set the same flag. * fix(app): show one progress indicator per provider update and refresh While an update ran, the Update button and the update's row each showed a spinner. The button's spinner also widened it, and the row's leading spinner shifted the title when the update settled. The update's row now owns progress from the tap until the update settles: it shows the update starting before the host answers, so the indicator never moves, and the Update button only disables. Refresh blanked the Installation rows while the provider was asked again, then moved "Checking…" from the Version row to the Updates row. The rows now keep their last answers until the new ones arrive, and the Refresh button shows the refresh until both the models and the installation are read again. * fix(app): show a provider update's progress on its Update button The pressed button carries an action's progress everywhere else in Settings: Button's own loading state with a present-participle label, as Browser data's Clear and Project settings' Save do. Update now does the same, reading "Updating..." from the tap until the update settles, and the update's row holds only the output while it runs, then the result. This replaces the row-owned spinner from the previous commit, which no other surface uses. The installation's in-flight labels use three dots like their siblings. * fix(app): keep a running update's progress visible whatever the inspection reads Update carries the update's progress, but its row rendered only while the inspection read "installed". An inspection that ran during the update (on reopen or Refresh) could read loading, not installed or failed while the binary was replaced, and the sheet then showed nothing about the running update. The Updates row now stays while an update runs. * fix(server): show and update the provider CLI its agents launch The installation contract found the CLI on the daemon's PATH, while agents spawn the bare command with the provider's environment. A provider whose env sets PATH could launch one copy and show and update another, so an update succeeded while new agents kept the old version. The CLI is now resolved with the provider's environment. The section test's check-state table now always names the text it expects, so no case can skip its assertion. * test(server): name the provider PATH test for what it shows The availability check that gates a Copilot spawn still looks on the daemon's PATH, so the copy on the provider's PATH is not always the one agents launch. * test(antigravity-provider): read the version from the CLI, not its acp subcommand Antigravity now launches `agy acp --disable-telemetry`, so the launch the installation receives ends with the ACP subcommand. The version read drops it, since `agy acp --version` starts the ACP server. * feat(plugin): pass the inspected version to checkForUpdates checkForUpdates now receives installedVersion, the version inspect reported, and the daemon keys the cached answer on it. Before, each provider read its version a second time and the daemon recorded which version a cached check answered for, so a check could compare a different version than the one shown, and a plugin had to put everything its check compared into the reported version. An update check now waits for the provider's inspection (shared with a concurrent inspect, refreshed with it), answers Not installed or the inspection's error without asking the provider, and is asked again once the inspection reports a different version. * fix(server): clear a failed provider update when the provider is refreshed The daemon kept a provider's last update for its whole lifetime, so a failed update stayed the current update until a later update succeeded or the daemon restarted, and the provider looked broken after the user fixed it. A refresh of the provider's installation or update check now drops a failed result. A running update is never dropped. * docs(server): say which agents look up the provider CLI on its PATH * fix(server): tell open provider views when a refresh drops a failed update A refresh deleted the failed update on the daemon but sent nothing, so a view already observing the provider's updates, in this client or another one, kept showing the failure until it observed again. The daemon now pushes provider.installation.update.cleared with the dropped operation's id to every subscriber, and the app clears the update it shows when the ids match. |
||
|
|
32218adfec |
Read a restored worktree again instead of serving its not-git snapshot (#10224)
When a worktree folder disappears, the workspace git service can cache a not-git snapshot before it notices and suspends the workspace. After the folder comes back, a plain getSnapshot returned that cached snapshot before it tried to resume, so checkout status said "not a git repository" until the 60 s missing-folder probe. The Changes panel of a just-restored worktree had no repository header during that time. Resume a suspended workspace first, then serve the cached snapshot. This made e2e worktree-restore.spec.ts:167 flaky in CI. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> |
||
|
|
4929ed5a0f |
fix(codex): restore subagent status after reopen and rewind (#10171)
* fix(codex): settle historical collaboration subagents * fix(codex): reconcile replayed collaboration with child turns |
||
|
|
c951de2332 |
Keep waiting heartbeats out of Running (#10216)
* fix(agents): keep waiting heartbeats out of Running * fix(protocol): keep the work count default as a wire contract * test(app): verify heartbeat status before, during, and after its turn |
||
|
|
4fb95106e7 |
Notify once while an agent's finish is unread, not on each turn it starts on its own (#10200)
* fix(server): notify once while an agent's finish is unread Since v0.16.0, a turn that an agent starts on its own cleared the agent's unread "finished" attention. Every such turn that then ended raised a new "finished" notification. A Claude Code agent that reacts to each event of a Monitor or a background task starts one turn per event, so the user got a notification every few seconds. A turn that the agent starts on its own now clears only error attention, which is what the earlier change intended. An unread finish stays unread, so the next finish does not notify again. After the user reads the agent, the next finish notifies as before. A prompt from the user still clears all attention. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(server): notify a repeat finish the user was not told about The previous commit kept an unread finish across turns that an agent starts on its own, and the agent manager then sent no attention for the later finishes. Suppose the user had the agent on screen for the first finish. The app keeps that finish unread, and no notification is sent while the agent is on screen. After the user left, no later finish notified at all. The agent manager now reports each finish, and marks a finish that repeats an unread finish. The websocket server owns delivery, so it records whether it delivered a notification for the unread finish. A repeat notifies only when nothing was delivered for it yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(server): key the notified unread finish by its attention timestamp The websocket server recorded only that it had notified for some finish of an agent. Mark as unread starts a new unread finish without an attention event, so a later repeat used the record of an older finish that the user had already read, and sent nothing. The attention callback now carries the timestamp of the agent's current unread attention, which identifies the unread finish. The server stores the timestamp it notified for, and suppresses a finish only when it belongs to that same unread finish. This replaces the repeatsUnreadFinish flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
c4e8c17022 |
Wait for starting file watchers to close during shutdown (#10208)
* fix(server): drain starting file observations during shutdown Workspace Git aborts starting watchers on shutdown. The observer only tracked completed subscriptions, so close could return while a startup scan was still releasing its resources. * test(server): verify watcher release during startup shutdown Use an internal backend adapter to hold startup open and observe watcher release when close returns. * fix(server): leave startup scan drainage to watcher backends Both backends already drain their admitted scans. Preserve cleanup for a failed root lookup after the observer takes ownership up front. |
||
|
|
120df507a9 |
Start a workspace in an existing worktree, and branch off or check out any branch or pull request (#10190)
* feat(server): branch off a pull request and list every git worktree A workspace.create worktree source with action "branch-off" and a checkoutSource used to check the pull request out, because core took any change request as a checkout. Branch-off now fetches the pull request's head into a remote-tracking ref (origin/<head> for a same-repo head, paseo-pr-<N>/<head> otherwise) and starts the new branch there, with no upstream and no remote added. A request with no action still checks the pull request out, as older clients expect. checkout.worktrees.list returns all git worktrees of the repository, not only the ones Paseo created, so the New workspace screen can offer any of them. Bare and prunable entries are left out. Hosts advertise both through server_info.features: worktreeRefActions and checkoutWorktreeList. Older hosts ignore the branch-off action on a pull request, so the app must gate on the flag. * feat(app): pick an existing worktree, and branch off or check out a ref Isolation now offers Project directory (was "Local"), New worktree, and Existing worktree. Existing worktree is a local workspace at the chosen worktree's path, not a third isolation value, so plugins, preferences, and the create request still see "local". The list comes from checkout.worktrees.list, so it includes worktrees Paseo did not create. The ref picker gains Branches / Pull requests pills and a Branch off / Check out toggle with a tooltip per action. Branches default to Branch off and pull requests to Check out. On a host without worktreeRefActions the toggle is hidden and the defaults apply. Git keeps a branch in one worktree at a time. Picking a held branch in Check out mode moves to the worktree that holds it, and creating from a held branch that was never picked fails with an explanation. Without this the server would silently check out a "<branch>-1" copy. * docs: describe Existing worktree and Branch off / Check out * fix(server): give a fork pull request branch-off a base the repository has A branch off a fork's pull request stored the fork's head as its base, under refs/remotes/paseo-pr-<N>. Create PR then asked for a pull request into a branch the base repository does not have, and the ref piled up in base branch pickers because no remote owns it. The new branch now starts at the fetched head, kept under refs/paseo/change-requests/<N>, and its base is the pull request's base branch. A same-repository branch-off still stacks on the pull request's branch. A routed create_workspace with a prNumber and no mode checks the pull request out again, as before branch-off could start from a pull request. The worktree list skips a locked worktree whose directory is gone, since it cannot be opened. * fix(app): start an existing worktree's agent in that worktree Existing worktree created the workspace at the worktree, but the composer and terminal still used the project directory, so the daemon rejected the first agent as outside the workspace. The screen now derives one working directory from the isolation and uses it for the workspace, the composer, and the terminal. A worktree that left the list is no longer a choice. The ref picker names change requests the way the project's forge does, so a GitLab project shows Merge requests. The schedule form uses the isolation labels Project directory and New worktree. * fix(server): compare a fork pull request branch-off against the remote base The base was stored as the bare branch name, which resolves to the local branch first. A local main behind origin/main put upstream commits in the workspace's changes for its whole life, and a base branch the clone never fetched failed creation. The base branch is now fetched from origin and stored as its remote-tracking ref. * fix(server): take a pull request's base and a checked-out branch from the remote that has them A fork branch-off fetched its base from origin. In a clone whose base repository is upstream, origin is the user's fork or missing, so the base was stale or the create failed. The base now comes from the remote that served the pull request, and a failed base fetch falls back to the bare branch name. Check out of a branch that only a remote other than origin has failed with an unknown branch. The local branch is now created from the one remote-tracking ref with that name, tracking it, as git does. The fork branch-off test passes a git identity to commit-tree, which CI runners do not have. * fix(server): branch off a pull request from the remote that serves it A same-repository pull request's head was fetched into refs/remotes/origin. In a fork clone, upstream serves the pull request and origin is the fork, so the base refresh replaced the head with the fork's branch of the same name and the new branch started from code that is not the pull request. The head now lands under refs/paseo/change-requests/<N>, the branch starts there, and the base is fetched from the remote that served the head. A routed create_workspace that branches off a pull request is refused, as it is on the local host. * fix(app): branch off a plugin's base ref whatever the branch action setBaseRef chose the base but kept the user's Check out switch, so a plugin's base became a checkout or a held-branch error. A base is what a new worktree starts from, so setBaseRef switches branches back to Branch off. |
||
|
|
b76533830a |
test(terminal): wait for a killed worker's processes before cleanup (#10198)
Four worker-terminal-manager tests SIGKILL a terminal worker whose terminal program runs in the test's temporary home. On Windows that program ends only when the dead worker's console closes, a moment later. afterEach then removed the home with a 0.5 s retry budget, and Windows refuses to remove a directory that is a live process's working directory, so cleanup failed with EBUSY. The tests now kill a worker through crashWorker, which records the worker and its terminal programs. afterEach waits up to 10 s for them to end before it removes the temporary dirs. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
c1f04a8cae |
Keep Changes available when Git metadata watching fails (#10188)
* fix(server): keep Changes available when Git metadata watching fails A valid checkout could lose its first comparison when metadata observation exceeded the directory limit. Keep working-tree observation active and share a backing-off metadata sample per Git root so quiet comparisons stay idle. * fix(server): probe only revisions used by degraded Changes streams Reuse each comparison's initial Git resolution as the baseline. Batched ref lookups run after subscription setup, stay bounded when the repository has a large ref table, and refresh only comparisons with changed inputs. * fix(server): report Changes metadata fallback in daemon diagnostics Log the watcher failure once per root and count comparisons currently using the fallback. Exercise the transition from an active watcher to polling and the release of the last comparison. * fix(server): keep Changes probes working across Git versions and worktrees Use line-delimited batch input for older Git versions. Resolve shared refs in the common Git directory so a removed worktree cannot block the remaining comparisons. * fix(server): isolate invalid revisions in Changes polling Git aborts a batch when an upstream or reflog expression cannot resolve. Resolve expressions independently so a failed lookup leaves other comparisons current. |
||
|
|
1c479d7b3d |
Keep finished replies visible across idle notifications (#10135)
* fix(timeline): keep replies visible across idle notifications Resolve notification membership at the manager's live event boundary. An idle notice gets a display turn without starting a run, and in-flight notices join the open run. * test(timeline): keep notice paging assertions compatible with async history * fix(timeline): reuse managed turn assignment for notices Resolve notices before waiter matching with the same rule used by live persistence. Verify untagged foreground runtime notices through runAgent and idle Pi notices through timeline paging. |
||
|
|
157abbbbda |
Let agents choose which desktop opens a browser tab (#10189)
* fix(browser): let agents choose which desktop opens a tab Registration order sent new tabs to the wrong desktop window. Let the agent discover and select the intended window by name, and require a choice when several windows can open tabs. * test(desktop): run browser host selection in a fresh app session Closing the second window can leave the existing browser journey in a different renderer state. Give both journeys their own windows and daemon so the routing test does not change the old test setup. * fix(browser): keep window names visible and stable across reconnects Frameless desktop windows need an in-app place to see and copy their name. Give each window one browser host identity so a reconnect replaces a lingering connection without creating a duplicate choice. * test(desktop): cover host selection in the browser journey Open the second window after the existing browser checks finish so their setup remains isolated within one CI run. |
||
|
|
b09b17e6ee |
fix(opencode): fail the turn when a shared OpenCode service stops (#10187)
When Paseo used an OpenCode v2 service it did not start (a discovered `opencode serve --service`, or a configured server URL), nothing reported that service going away. The connection's `exited` signal resolved only when Paseo itself stopped using it. A turn that was running when the service died was never failed, the event stream retried the dead port every 100 ms, and Stop, send and reload were refused with "active run cancellation was not acknowledged". The shared connection now treats a refused connection as the service exiting, the same signal an owned server's process exit gives. The session fails the turn, stops its stream, and reconnects on the next operation. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f5d27b7901 |
Let agents watch a pull request (#10148)
* feat(server): let agents watch pull requests * fix(server): isolate PR watch test homes * fix(server): preserve watch delivery during subscription changes * fix(server): batch co-due PR observations and drain admitted updates * fix(server): settle combined poll requests with await * fix(server): deliver overdue PR updates together * fix(server): include failing check links in PR watch updates * test(server): verify PR watch check links on live GitHub * fix(server): deliver PR digests through the shared agent queue * test(server): verify PR and child updates share the next turn * fix(server): withdraw queued updates before provider admission * feat(server): show PR watches as agent background work Render active watches beside heartbeats so users can see and stop them while the agent is idle. Bind Stop to the original subscription so a delayed request leaves a replacement intact. |
||
|
|
2327701497 |
fix(codex): support flex speed (#9809)
* fix(codex): offer the Flex speed and thread it through Speed choices came from the model list's `serviceTiers`, and Codex never advertises Flex there: `ModelInfo::supports_service_tier` treats it as an API request option that is valid whatever the model advertises. So the Speed menu could never list it, choosing `flex` threw "Codex speed 'flex' is not available", and a stored `service_tier: "flex"` was rewritten to Normal before the first turn. Flex now joins Normal as a tier Paseo knows, on every Codex model. The Speed control and the tier checks read one list, so what the control offers is what the session runs: `turn/start` and rewind's `thread/fork` carry `serviceTier: "flex"`, a saved Flex survives open and model switches, and a catalog that does advertise Flex keeps its own entry instead of duplicating it. Ref: #9773 * Verify Codex Flex in the browser Speed menu * Gate unadvertised Flex on Codex 0.156 Codex 0.155 silently strips Flex from outgoing requests when the catalog omits it. Use the connected app-server version to gate the locally added option and normalize unsupported saved selections. Keep the Speed icon highlight for any explicitly selected tier and verify Flex follows that behavior. --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com> |
||
|
|
51baa2beb8 |
feat(claude): give Ultracode its own toggle (#10150)
Keep Ultracode independent of effort in the Claude composer and retain support for saved Ultra Code choices. Co-authored-by: fivetaku <zipsanyang.ai@gmail.com> |
||
|
|
3da26f32ab |
fix(server): say which browser_wait condition expired (#10172)
An expired browser_wait condition reached the agent as "The browser did
not respond before the timeout. Try again or check the browser host."
The host did respond. summarizeBrowserError replaced every
browser_timeout message with that fixed text, so the host's own message
("Timed out waiting for browser text: ...") never reached the agent.
The tool text is now the producer's message for browser_timeout. The
broker's round trip timeout, the one case where the host did not
answer, now says so in its own message.
Closes #10128
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|