Commit Graph
6758 Commits
Author SHA1 Message Date
Mohamed Boudraandyz 576b9b552b Preserve conversations when directory capitalization differs (#10555)
* Use the filesystem’s capitalization in directory suggestions

* fix(server): preserve conversations across path casing changes

A case-insensitive volume can resolve the old and new record paths to the file installed by the same atomic write. Check file identity before removing the old entry so startup recovery preserves both the record and its workspace.

* fix(server): keep case-only symlink names in directory suggestions

A case-sensitive volume can store a symlink whose name differs from its target only by capitalization. Inspect the changed components before using the resolved spelling so Add Project receives the visible path.

* fix(server): preserve symlinks under case-distinct parents

A symlink can point into a parent whose name differs only in case while keeping the same basename. Inspect each changed path component before choosing the resolved spelling.

---------

Co-authored-by: yz <43207690+yzim@users.noreply.github.com>
2026-11-23 10:15:35 +07:00
paseo-bot[bot] 175d858e05 test(server): stop terminal fixtures that outlive a crashed worker (#10540)
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
2026-11-23 00:22:43 +00:00
112c4b78e1 Reopen OpenCode sessions after tool definitions change (#10533)
* fix(opencode): replace stale bridge tool definitions instead of failing the bind

The shared bridge plugin keeps tool definitions in an in-memory cache
(state.mjs) that survives OpenCode's plugin reloads. When the Paseo daemon
upgrades and ships a changed tool definition (e.g. the description or input
schema changes), the next bind finds a signature mismatch and throws
"Conflicting Paseo tool definition", leaving every existing session in that
location unable to rebind. This is the upgrade path: the bridge changed, not
a second live bridge.

Treat a changed definition as a refresh, not a conflict: dispose the stale
registration and re-register the new one. Track the whole installed manifest
per location and reconcile on each bind so removed tools also disappear,
instead of letting the first per-tool difference fail the bind.

Add tests covering a definition upgrade (bind succeeds, tool reflects the
new schema) and a manifest drift (a removed tool leaves the registry).

* fix(opencode): resume sessions after bridge tool definitions change

A retired bridge can leave tool definitions cached in a shared OpenCode location. Replace a conflicting definition once the bound sessions confirm that it is unused. Preserve tools that other live sessions still use.

Co-authored-by: Peanut-HZM <34237301+Peanut-HZM@users.noreply.github.com>

* test(server): wait for the worktree manager ready marker

The marker confirms that the plugin entered the create hook. Give the hook the same deadline as the other worktree fixture handshakes, and observe the pending request if teardown closes the client.

---------

Co-authored-by: huazhongmin <peanut_hzm@163.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Peanut-HZM <34237301+Peanut-HZM@users.noreply.github.com>
2026-11-22 19:49:03 +00:00
Mohamed Boudra 8d287e5f56 chore(release): reconcile v0.17.3 (#10535) 2026-11-23 00:50:37 +07:00
Mohamed Boudra ec22b82659 Let iPhone sheets expand and collapse from their body, so every workspace tab is reachable (#10525)
* fix(app): let iOS sheet bodies expand and collapse their sheet

PaseoScrollViewComponentView defined a private helper named contentView,
which overrode RCTViewComponentView's contentView getter. Gesture-handler
reads that getter to choose the view a gesture binds to, so a bottom
sheet scroll view's native gesture bound to its content child. Its pairing
with the UIScrollView pan failed, and below the top detent the sheet
locked scrolling while body drags no longer moved the sheet: the
workspace tab picker, Usage and tool detail sheets stayed stuck at their
first height. Renaming the helper restores the inherited getter.

* test(app): cover dragging the iPhone tab switcher sheet by its list

The sheet exposes its rows to XCUITest as one element, so the flow taps
fixed points that hit a row only at the expected sheet height and asserts
which tab opens. It fails at the expansion step without the scroll view fix,
and at the final step when the collapse swipe is removed.
2026-11-22 22:32:58 +07:00
Mohamed Boudra 02e7b10648 fix(antigravity): offer each model its own thinking levels (#10524)
agy lists `thought_level` choices only for the selected model, and drops
the option entirely for Orchestrator and GPT-OSS. ACP catalog discovery
read one session/new and copied the startup model's levels onto every
model, so the composer offered and defaulted to a thinking level for
Orchestrator. Opening the draft session then set the model, found no
`thought_level`, and failed with "ACP session does not expose thinking
configuration".

The new `acpOptions.perModelThinkingOptions` makes discovery select each
model in the throwaway catalog session and record the levels the agent
lists for it, or none; Antigravity turns it on. It is opt-in because
selecting a model can reset other options in some agents. The server
also stops giving a model the catalog's default when the model brings
its own options, since that default came from another model's list.

Closes #10468
2026-11-22 22:12:11 +07:00
Mohamed Boudra 3e4f67d88f chore(release): reconcile v0.17.2 (#10513) 2026-11-22 20:22:26 +07:00
paseo-bot[bot] e886aebff3 test(server): stabilize plugin shutdown coverage (#10512)
Release the fixture connection from plugin cleanup so the parent test runner does not have to write a file before the runtime shutdown deadline.

Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
2026-11-22 12:51:39 +00:00
paseo-bot[bot]andlikaixuan f596e3f7aa Keep slash and file pickers available after window navigation (#8954)
Keep every live floating-panel host registered under its name. When one host unmounts, the surviving workspace can still position the slash and file pickers.

Closes #8945.

Co-authored-by: likaixuan <likaixuan@mucang.cn>
2026-11-22 11:51:23 +00:00
Mohamed Boudra 884adbcc2f Archive the open workspace from the mobile workspace actions menu (#10507)
* feat(app): add Archive workspace to the mobile workspace actions menu

The compact header's actions menu had no way to archive the open workspace; it
was only reachable from the sidebar row or the keyboard shortcut. The route-keyed
archive logic behind the shortcut now lives in useActiveWorkspaceArchive so the
menu and the shortcut share one path (confirmation, undo toast, redirect).

* fix(app): redirect after archive from where you are now, not where the header was

The archive starts after the host check and confirmation. The header that began
it can be gone by then, and its last-rendered route would still match the
archived workspace, replacing the workspace you had since opened. Read the
current selection from the navigation owner when the archive starts.

* fix(app): skip the post-archive redirect when you have left workspace routes

The last-remembered workspace selection survives opening Settings, so an archive
that finished while Settings was open still redirected away from it. Read the
focused route instead, which is null on any non-workspace screen.
2026-11-22 18:25:55 +07:00
Mohamed Boudra 91247c8218 fix(app): keep turn timing inside the footer (#10510)
The Turn stats button narrows the timing column. On web, preserved spaces at soft wraps extend the timing text range past the button. Collapse wrapping spaces for the timing labels and include Turn stats in the existing hover stability check.
2026-11-22 18:01:18 +07:00
Mohamed Boudra 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.
2026-11-22 16:43:56 +07:00
Mohamed Boudra 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
2026-11-22 16:43:11 +07:00
Mohamed Boudra 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
2026-11-22 16:42:52 +07:00
Mohamed Boudra 234ddf8dd7 Simplify setup across supported provider docs (#10502)
* docs(providers): simplify setup across supported provider pages

Lead each supported provider page with the official CLI/protocol Paseo uses and the simplest default setup path, removing config.json snippets from Getting started on Antigravity and Oh My Pi. Fixes the outdated Settings path on Codex and keeps all Chinese translations in sync.

* docs(providers): address review feedback on Antigravity, Codex, Muse, and Pi
2026-11-22 15:22:12 +07:00
Mohamed Boudra 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
2026-11-22 15:13:31 +07:00
Mohamed BoudraandClaude 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>
2026-11-22 14:50:02 +07:00
Mohamed Boudra c28aa2570c docs(website): refresh sponsor page visitor and Discord member counts (#10498)
Homepage and docs visitors use the site-wide Plausible figure for the 30 complete days to 2026-11-21 (107,693), rounded down to 100,000. Discord members come from the live guild count (2,678). The README figure is unchanged because GitHub only exposes 14 days of traffic.
2026-11-22 14:29:02 +07:00
Mohamed Boudra 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
2026-11-22 14:01:15 +07:00
Mohamed Boudra 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.
2026-11-22 13:44:56 +07:00
paseo-bot[bot] 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>
2026-11-22 06:07:40 +00:00
ff5a83bc5a Keep stale slash menu choices from archiving agents (#10484)
* fix(app): ignore slash menu picks made before the menu filters

On web the cursor reaches the autocomplete after paint. A Tab or Enter
pressed right after typing could pick from the unfiltered list, where
/exit is the default highlight, and archive the agent. Skip the pick when
the typed command no longer matches the query the menu was built for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(app): limit the stale slash menu guard to key presses

Clicks also pass the live input snapshot, so the guard could drop a
click on a visible option while the cursor update was still pending.
A click picks what the user sees. Check for a stale menu only when Tab
or Enter selects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: 3ae3ae <ogyshjsm@naver.com>
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: Bae Seongmin <83870598+3ae3ae@users.noreply.github.com>
2026-11-22 05:50:48 +00:00
Mohamed Boudra 9cb0625cf5 Start an edited New workspace after a failed creation, and unify composer errors (#10482)
* fix(app): allow edited New workspace retries and unify composer errors

New workspace and the workspace setup dialog reused the mount's raw draft
or creation ID as the workspace.create idempotencyKey. When workspace
provisioning failed before readiness, the daemon kept that key's request
fingerprint on disk, so editing isolation, project, branch, prompt, or
model on the same screen failed with workspace_request_key_conflict.

Deriving the workspace idempotencyKey with draftCreationKey(id, request)
matches #9534 for agent drafts: unchanged retries (double-click,
reconnect, or resending as-is) keep one key, while edited retries start a
new workspace creation without requiring daemon or protocol changes.

Also move composer submission errors into one <Alert variant="error"
size="sm" /> slot owned by <Composer> (directly above the input, and in
ComposerFullscreenFooter when fullscreen) so New workspace, Workspace
draft tab, Workspace setup dialog, and active chat share the composer's
outer and inner rails without duplicate error toasts.

* fix(app): include launch target in creation key and toast background failures

Include launchTarget when deriving the New workspace creation key so
switching between blank Chat and a promptless terminal profile after a
pre-ready failure starts a fresh creation instead of replaying the failed
receipt.

Also show toast.error when workspace creation fails after the user has
left New workspace or closed WorkspaceSetupDialog, while keeping the
single composer alert with no duplicate toast when the form is still
visible.

* fix(app): avoid duplicate toast when handed-off agent startup fails

Once New workspace hands a ready workspace to its draft tab, the draft
tab awaits agentCreation.result and displays startup errors in its own
composer alert. Returning early after handoff prevents New workspace's
catch handler from firing a duplicate app-wide toast.
2026-11-22 12:28:10 +07:00
Mohamed Boudra 03adc4d4ba Keep working host connections from flapping on busy heartbeats and back off background probes (#10395)
* fix(app): stop busy-heartbeat adaptive switches and back off online probes

Hosts with multiple saved connections still replaced healthy relay links
during active use: every 120 seconds the runtime compared an idle alternate
probe against the single latest heartbeat RTT on the busy active socket
using a fixed 40 ms threshold, then tore down the live socket before
connecting the replacement (leaving the host in connecting for ~2 s).

Use the 60-second rolling minimum of active heartbeats as the baseline,
require at least max(40 ms, 35% of baseline RTT) improvement to switch,
exponentially back off inactive online probes from 2m to 30m while the
active connection keeps winning (resetting on candidate win, reconnect,
connection list changes, or foreground verify), and connect the replacement
before disposing the live client on adaptive switches.

Closes #9149

* fix(app): preserve active listener, recheck candidate, and refresh caches on make-before-break upgrade

Keep installed active-client status listeners bound to `this.activeClient`
rather than `switchRequestVersion` so a pending or failed speculative
upgrade never mutes disconnect events on the active socket. Recheck that
the target connection still exists and matches before and after disposing
the old client so removing or editing an endpoint during handshake aborts
the upgrade. Track the last online `connectionEpoch` in `HostRuntimeStore`
so make-before-break upgrades that stay `online` still trigger reconnect
cache invalidation and history sync generation bumps.
2026-11-22 11:27:27 +07:00
Mohamed Boudra 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
2026-11-22 11:11:59 +07:00
Mohamed Boudra 20f217b8cb fix(acp): finish Antigravity turns after recurring schedules (#10469)
Antigravity returns end_turn while a recurring schedule stays in progress. Exclude cron registration from the provider's deferred-turn blockers so waiting for a tool completion cannot strand the foreground turn.
2026-11-22 11:11:55 +07:00
Mohamed Boudra 984e2ea5e7 Lead the 0.17.1 changelog with Antigravity and keep instructions out of release notes (#10466)
* docs(changelog): lead 0.17.1 with Antigravity and cut instructions from the entry

The 0.17.1 entry ranked Antigravity seventh and carried setup steps, click
paths, migration notes, and edge-case qualifiers. Each highlight is now one
sentence that announces the change, and Antigravity leads. Two details that
left their highlight keep their own bullet: plugin worktree management moves
to Plugins and green quota bars move to Changed.

docs/release.md allowed highlights up to three sentences and exempted them
from the conciseness rules, which is how the instructions got in. The rules
now cover highlights too, permit a second sentence only for a breaking
requirement, and put the headline change first whatever its ordering group.

* docs(changelog): keep shortened 0.17.1 bullets within what shipped

Three bullets lost a clause that limited their claim: provider updates exist
only for CLIs with an update command, the scroll fix leaves out HTML previews
on iOS, and Git status reloads when files changed during the disconnect. Each
bullet now names what it covers instead of carrying an exception clause, and
the release guide says to shorten that way.

The Antigravity requirement links the setup page, which has the `acp`
argument a custom command needs.

* docs(changelog): scope the agent message and quota forecast highlights

An explicit interrupt from another agent still replaces the running turn, and
Usage shows a run-out time only for a quota on pace to run out before it
resets. Both highlights now say so in one sentence, and the release guide uses
the agent message highlight as its example of keeping that distinction.

Rewind in Command Center applies to the latest turn, so the bullet names it
again.

* docs(antigravity): explain the Hub model error after the CLI upgrade

The 0.17.1 highlight used to carry this recovery step. The highlight now links
the setup page, so the step lives there in both languages.
2026-11-22 10:14:31 +07:00
paseo-ai[bot] 133b078ac4 fix: update lockfile signatures and Nix hash [skip ci] 2026-11-21 22:46:04 +00:00
Mohamed Boudra 6ea095cb49 chore(release): reconcile v0.17.1 (#10457) 2026-11-22 05:36:59 +07:00
Mohamed Boudra 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
2026-11-22 04:01:42 +07:00
paseo-bot[bot] 2445adecdf fix(app): finish custom model saves when the daemon confirms them (#10432)
The daemon already schedules catalog discovery when provider configuration changes. Waiting on a second discovery kept the Add sheet open after the model was saved.

Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
2026-11-21 18:33:44 +00:00
paseo-bot[bot] 0c02cfdfb1 fix(app): keep the composer focus hint from covering the placeholder (#6200)
* fix(app): keep the composer focus hint off the placeholder

The web composer draws its focus shortcut hint over the input's top-right
corner. When the placeholder and the hint did not fit on one line, as in
French at a phone width or with the longer desktop placeholder, the hint
was drawn on top of the end of the placeholder. The input now reserves
the hint's width as right padding while the hint shows, so the
placeholder wraps before it.

Closes #6191

* test(app): wait for the focus hint padding before checking overlap

* Keep focus hint padding in sync with composer layout

Reveal the shortcut after the input reserves space for its label. Remeasure draft height when padding changes the available text width.

---------

Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
2026-11-21 15:56:48 +00:00
paseo-ai[bot] 2098eb787c fix: update lockfile signatures and Nix hash [skip ci] 2026-11-21 13:55:05 +00:00
Mohamed Boudra 9c4106561a Refresh the Paseo Hub website (#10309)
* feat(website): refresh Paseo Hub page and add homepage Hub entry points

* chore(website): align Hub automation source copy and team visibility wording

* chore(website): simplify homepage Hub flow layout and remove highlight cards

* feat(website): unify page frame, rails, section rhythm, and hairline grids across home and /hub

* chore(website): remove forced eyebrow numbering and redundant section eyebrows

* feat(website): use Plus Jakarta Sans for display titles

* style(website): remove hairline rails from header and hero bands

* feat(website): derive landing page plugin count from published registry

* feat(website): replace Hub Discord demo with animated Slack mockup

* style(website): tighten display-scale Paseo Hub lockup gap

* website: interactive source showcase on /hub automations section

* website: prevent font-swap wrap jank and remove left bar on /hub source pills

* fix(website): align Hub examples and docs with service behavior

* fix(website): keep navigation and plugin carousels within the page frame

* fix(website): address Hub refresh review findings

* fix(website): preserve focus and labels in Hub showcase tabs

* fix(website): show the selected Hub preview immediately

* fix(website): keep Hub pricing tooltips inside their cards

* fix(website): wrap Hub source labels with larger text

* fix(website): scale Hub preview height with browser text

* fix(website): wrap long identifiers in Hub previews

* fix(website): wrap result chips in the Hub schedule preview

* fix(website): keep the Discord preview thread title readable

* fix(website): let Hub source descriptions wrap

* feat(website): link Hub previews to their trigger guides

Keep the self-hosting guides aligned with the Hub documentation already on main.

* fix(website): keep Hub previews readable at large font sizes

Let preview rows stack when the frame is too narrow for the avatar, padding, and text. Check the rendered text bounds at twice the default font size.
2026-11-21 20:47:56 +07:00
Mohamed Boudra 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.
2026-11-21 20:41:28 +07:00
Mohamed Boudra 1e30f9e046 Polish Usage quota bars, labels, and forecasts (#10397)
* fix(usage): clarify quota labels and show weekly forecasts sooner

* fix(usage): show the exhaustion time and keep exhausted bars red

* fix(usage): hide forecast text for quotas on track

* fix(usage): label quota times by local calendar date

* test(usage): keep the exhaustion clock test stable at midnight
2026-11-21 20:08:09 +07:00
paseo-bot[bot] 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>
2026-11-21 12:39:02 +00:00
paseo-bot[bot] 344da5d088 Let every split divider drag after panes are added to a resized row (#5996)
* fix(app): let every split divider drag after panes are added to a resized row

Divider drags store sizes per group id, apart from the layout tree. A group
keeps its id when panes are added, so after resizing a row and splitting it
again the stored list had fewer entries than panes, and dividers past its end
could not move. Use the dragged sizes only while they have one entry per pane.

Closes #5893

* refactor(app): choose split group sizes at the call site

* test(app): take the page from the divider locator in the split resize spec

* test(app): name the split resize helper arguments

---------

Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
2026-11-21 11:56:09 +00:00
Mohamed Boudra 01aa8b3406 Verify releases on isolated release branches and harden shipping (#10396)
* chore(release): verify releases on isolated release branches and harden shipping

High-traffic merges on main cancel more than half of main CI runs, so waiting on main CI repeatedly stalls releases. Releases also ran duplicate post-tag CI, lacked a release-branch Desktop Packages trigger, hit unretried Apple notarytool polling errors and a finalize-rollout directory bug on macOS retries, and relied on a non-idempotent npm publish chain and conflict-prone reconcile cherry-picks.

This splits release execution into release:prep:* (reversible version commit without tagging, pushed once to release/** for isolated CI + Desktop Packages) and release:ship[:beta] (idempotent npm publishing with retry, propagation checks, automatic beta dist-tag sync on stable, and release/*-only tag push), adds conflict-free main reconciliation, and extends macOS xcrun retries to notarytool submit and wait.

* fix(release): address review findings on Docker retries, tag push, and reconciliation

Isolate manual Docker publish dispatches in their own non-cancelling concurrency group, verify HEAD matches origin/<release-branch> before release:ship publishes or tags (and remove one-shot combined scripts that bypassed release-branch checks), drop --refs from peeled annotated-tag lookups in push-current-release-tag.mjs, retry lockfile sync in reconcile-release.mjs when package-lock.json version lags package.json, and document cutting from pre-existing tags.

* fix(release): preserve TTY OTP prompts in npm publish and keep newer beta changelogs

Inherit TTY stdin/stdout for interactive npm publish and dist-tag add (plus --otp passthrough) while keeping stderr piped for retry classification, and keep newer beta or promoted stable changelog entries intact when an older beta tag is reconciled.
2026-11-21 18:32:08 +07:00
Mohamed Boudraandtabulius-ux 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>
2026-11-21 17:08:42 +07:00
Mohamed Boudraandtabulius-ux 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>
2026-11-21 17:08:23 +07:00
Mohamed Boudra 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.
2026-11-21 16:41:17 +07:00
Mohamed Boudra b3ea018d77 fix(app): show the quota forecast as a plain datapoint on the usage line (#10385)
The forecast sat right-aligned and tone-coloured beside the reset line, so it
read as a second kind of information. It is now one more ' · '-separated
datapoint after the reset countdown and exact time; the meter keeps the tone.
2026-11-21 16:17:21 +07:00
Mohamed Boudra 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
2026-11-21 16:05:48 +07:00
paseo-ai[bot] 2bc10ff540 fix: update lockfile signatures and Nix hash [skip ci] 2026-11-21 09:01:59 +00:00
Mohamed Boudra 24a30b183a Polish Antigravity tool calls in the timeline (#10379)
* fix(providers): render Antigravity tools with timeline details

* fix(providers): preserve search queries and ambiguous MCP names

* fix(app): bound tool call diff previews
2026-11-21 15:54:07 +07:00
Mohamed Boudra 1bd9b4673d Update the Hub guides for self-contained triggers (#10375)
* docs(hub): update guides for self-contained triggers

* docs(hub): match Activity and integration controls to the dashboard

* docs(hub): clarify overview and legacy bundle deployment
2026-11-21 15:34:59 +07:00
Mohamed Boudra 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.
2026-11-21 15:09:28 +07:00
Mohamed Boudra 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.
2026-11-21 13:51:28 +07:00
paseo-bot[bot] 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>
2026-11-21 06:45:56 +00:00