Setup is for getting started, so the Orchestration step shows a plain
Enable tools switch next to skills and the CLI. Tool groups stay in
Settings > Tools & prompts. Setup writes only the main switch, so the
groups a host already saved are never touched.
tools-config.ts imported the default tool groups from protocol/messages,
which pulled every wire schema into @getpaseo/server/configuration. The
group constants now live in the Zod-free protocol/tool-groups module, and
messages re-exports them.
The WebSocket server read the config store behind a guard that only
existed for incomplete test stubs. The store is a required dependency, so
the guard is gone and the stubs provide get().
The Orchestration step started its tool groups from the defaults and wrote
all four on Continue, so a host with Browser on or Schedules off lost those
choices when the user opened setup again. The groups sit in a collapsed row,
so the user never saw the switches. Setup now shows the host's groups and
writes only the groups the user changed.
The compact-layout setup test assumed the host starts with tools off; it now
turns them off first, since tools are on by default.
Replace the separate "Enable Paseo tools" and "Browser tools" settings with
one `daemon.tools` configuration: an `enabled` switch plus per-group switches
for orchestration, schedules, PR watching, and browser. Every built-in tool
now declares its group, scope, and daemon permission in one registry, so
native providers and the loopback MCP endpoint filter the same catalog.
Tools are on by default for hosts that never set the legacy injection flag.
Hosts that set `daemon.mcp.injectIntoAgents: false` keep tools off. Legacy
`daemon.mcp.*` and `daemon.browserTools.enabled` are still read when
`daemon.tools` is absent; those shims are tagged COMPAT.
Voice mode now requires tools. When tools are off it refuses with reasonCode
"tools_disabled" and the voice settings page offers a one-click Enable tools
action. Dictation is unaffected.
The Claude listing heap test capped its child at 96 MB, but most of
that budget went to loading the modules. Since prompt attachments
import the file-upload module, agent.ts also loads the protocol message
schemas, about 50 MB more. The 14 MB listing then ran out of heap on
runs where GC ran late. The test now measures what the imports retain
in a first child, then caps the listing child at that plus 64 MiB. That
is still below the 128 MiB transcript, so loading a whole history still
runs out of heap.
The opening-scene tests advanced the paused page clock once, right
after the scroll. The scene starts a few page tasks later
(IntersectionObserver, then a React render and effect). When the clock
advance ran first, the scene started on a paused clock and the request
never appeared. The tests now advance the clock in 1 s steps until the
request shows.
CI also uploads the website Playwright results when that step fails,
so the next stall has a trace.
* fix(ci): let Docker and Desktop Packages runs on main finish
Each merge cancelled the packaging runs still going for the previous main commit, and the CANCELLED checks painted that commit red. #11192 fixed this for CI only.
* test(terminal): give slow Windows output time to reach the buffer
The test allowed 10s for 3000 console writes. Passing Windows CI runs take 0.7s to 9.5s, so a loaded runner crossed the limit. The suite allows 30s per test.
* feat(providers): choose which models pickers show first
Provider settings now let you check the models pickers should list first,
with Reset and Undo. Claude's previous releases are marked legacy so
pickers can fold them; the default model is never legacy.
shownModels is overlaid on the provider snapshot at publish time instead of
living in the provider definition's configuration. Anything in that
configuration rebuilds the client and rediscovers the catalog when it
changes, which a checkbox toggle must not do. The catalog is never trimmed,
so search still finds every model.
The settings list keeps its order while you check boxes and re-sorts only
on search, reload, reset or undo, so rows never move under the pointer.
Gated on server_info.features.providerShownModels.
* feat(app): browse models in a two-pane desktop picker
On wide layouts the model picker shows a rail of Profiles and providers
beside the open provider's models. Each provider lists its chosen models
first and folds the rest under "Older models" or "All models". Search
covers every provider and profile at once, ranks shown models ahead of
folded ones, and tags folded matches. Arrow keys move between the rail
and the list, and Escape clears a query before it closes the picker.
The rail is kept on any surface that offers profiles, even with none
yet, so a one-provider host can still reach profile creation. Surfaces
without profiles and with one provider get a single 360px pane. Compact
layouts keep the existing sheet.
* feat(app): set up agents from one drawer on phones
The compact composer opened a second sheet on top of the first for the model
and each control. Phones now get one "Agent settings" drawer whose pages swap
in place: Home inlines thinking and speed pills, switches, and Mode as a radio
list (bypass modes in the warning colour); Model stacks providers as cards with
the open one in a fixed 220px box, so the others stay reachable below it, and
search sits in the thumb zone; Profiles lists saved profiles. Escape clears the
search, then returns Home, then closes. The standalone selector reuses the
Model page. Wide and desktop layouts are unchanged.
The Model page shows an empty state when the host lists no providers, which is
also the state before the first provider snapshot; the shared picker otherwise
falls back to its profiles rail and the page threw.
Themed padding sits on wrapper Views, not contentContainerStyle: the sheet
scrollers drop a themed contentContainerStyle on web.
* fix(app): finish the model picker redesign on phones and in search
- Cycle modes with the keyboard on phones again. The shortcut lived in the
Mode control, which on phones only mounts while the settings drawer is
open; the composer's controls now own it on every layout.
- Scroll a folded selected model into view when the phone Model page
reopens. The fold opened, but the list stayed at the top.
- Rank search results by match strength before shown-vs-folded. Putting
every shown row first let loose letter-order matches on uncurated
providers bury exact matches on folded models, such as "Opus 4.6".
Shown models still win ties.
- Drop ModelBrowser options and sheet scrolling that no caller uses, and
let SettingsCard shrink instead of the phone list copying its style.
* feat(app): polish mobile model drawer, thinking slider, and desktop focus
- Use a pencil icon button for provider model customization instead of a text label.
- Restore composer focus after picking a model on desktop in workspace drafts and New Workspace, which previously omitted onDropdownClose on DraftAgentControls.
- Move Profiles out of the phone Home card into the Model accordion as the first collapsible category with unified profile + model search, and let every accordion section collapse.
- Render ordered thinking effort and token-budget ranges on phones as a switch-style stepped capsule slider with step dots, and restore the provider icon beside the selected model name plus control icons on inline sections.
* fix(app): fix Android bottom search dock height and update E2E picker helpers
- Give SheetSearchDock flexDirection: "row" and relax SearchField's input height from 20 to minHeight: 20. Inside a column container, SearchField's flex: 1 collapsed vertically on Android and clipped text at the bottom of the Model drawer.
- Update E2E helpers for the redesigned picker: selectPluginModel picks directly from the two-pane rail without clicking Back; applyProfileFromPicker opens the Profiles rail entry first; selectModel clears search on first Escape before closing on second; codex-speed interacts with compact Speed pills inline on Home and verifies the section header icon highlight.
* fix(nix): trace runtime edges with dynamic import and verify Nix on PRs
Bundling @getpaseo/cli in #11155 added an esbuild banner that aliases
createRequire as __paseoCliCreateRequire. @vercel/nft only follows
injected require() calls in ESM when createRequire is imported unaliased,
so scripts/trace-daemon.mjs silently dropped @getpaseo/server's exports.js
and exited 0 while the Nix daemon smoke failed at startup.
Inject runtime dependency edges with dynamic import() so nft follows them
in ESM regardless of createRequire aliasing and in CJS without changing
the parsed module type. Assert after tracing that every declared runtime
dependency target and its importer edge are present in nft's file list
before expanding additionalInputs, and run the Linux Nix build and daemon
smoke on pull requests touching Nix, CLI, server, or daemon packaging
inputs.
* fix(nix): include desktop and is-main-module in Nix PR path filter
scripts/trace-daemon.mjs imports scripts/is-main-module.mjs and the
Linux Nix build job also builds .#desktop with PASEO_TRACE_DESKTOP=1.
Include both paths in nix.yml pull_request.paths so changes to either
exercise the Nix build and trace checks before merge.
* fix(ci): finish main runs and run CLI tests on daemon changes
Cancelling a main run mid-flight left CANCELLED checks that painted the
commit red. Server PRs skipped cli-tests, which drive a real daemon, so two
server regressions first failed on main.
* test(plugin): let the ACP crash be reported before replay ends
The fake agent exits 20 ms after its last history chunk, and the provider
ended replay after 100 ms of silence. When Windows reported the exit later
than that, the open succeeded and the test never saw request.failed.
The fake agent streams a history chunk every 20 ms, but the provider ended
replay after 100 ms without one. A runner stall longer than that ended
replay before the daemon stopped, so the reopen finished and the timeline
request resolved instead of being rejected. A 1 s quiet period keeps the
test on the path it checks: shutdown while replay is still streaming.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
The v2 thinking picker listed only a model's explicit variants, so a user who
picked one could not go back to the model's base behaviour. List Default first,
as the v1 adapter does, and send no `variant` when it is selected.
Closes#7225
Co-authored-by: 3ae3ae <ogyshjsm@naver.com>
While a reply streams, the last line of an open code block can hold one or
two backticks of the fence that will close it. Painted, they are a line of
code that disappears a moment later.
The reveal now withholds that line while the turn streams until it closes
the block or turns out to be code. Finished turns paint everything.
Co-authored-by: RoundRedDot <roundreddot@gmail.com>
* refactor(server): let the daemon decide whether an agent message is a tool call or a message
Lifecycle notices (finished, errored, needs permission, closed, still working) now reach
clients as ordinary plain-text tool calls such as "Agent finished · Child". Only peer
send_agent_prompt messages keep the agentMessage sender so they still render as a
"Sent by" bubble. No protocol fields were added.
Delivered prompts carry a trailing <paseo-message .../> marker instead of a leading
<paseo-system> envelope, so the body (including a slash command) stays at character 0
and is no longer XML-escaped. Plain human messages get no marker unless they share a
turn with agent messages or contain marker syntax. Legacy envelopes and legacy
agentMessage notification rows keep rendering (COMPAT tagged).
* fix(server): keep a delivered message's sender when a provider trims the replayed prompt
Claude history replay trims each user prompt, so a body that started with whitespace came
back shorter than the marker's length and replayed as raw text. Drop the body's leading
whitespace before writing the marker.
* fix(server): stop waking the parent when a delegated child ends its turn but is still working
#10864 told the caller "ended its turn but is still working" whenever a child's turn ended
with work pending, and "is still working" after 24 hours of following. The caller could not
act on either notice; it only woke up to wait again. The watch now follows such a child
silently and reports once: finished when it settles, or errored, permission, and closed as
they happen. After 24 hours it reports finished with the child's last reply, so a task that
never ends cannot hold the caller forever.
The still-working event and its agent_still_working tool are gone. Transcripts with #10864's
event="message" notices replay as messages from the child, as clients showed them then.
* fix(server): report every turn end and keep following until the child settles
A child that ends its turn while it still has pending work (a background task such as
`npm run dev`, queued messages, or its own delegated agents) now reports `finished` to its
caller at once. The notice names the pending work and says the caller will hear again. The
subscription keeps following the child: each later turn end reports again, and the child
settling with nothing pending, with or without another turn, sends the final `finished`.
The 24-hour follow limit sends a final `finished` with the child's last reply.
Every notice is a plain `agent_finished` tool call. There is no still-working event.
The observation's initial wait no longer repeats a turn end the stream already reported,
which would have sent the first turn end twice.
* fix(server): share concurrent agent refresh results
Keep a refresh in flight until provider history has been hydrated so concurrent
requests receive the same reload outcome across connections.
* fix(server): keep concurrent refreshes within their daemon
Hold reload and history hydration together across client connections, and scope
pending work to the agent manager that owns it. Exercise the real daemon with a
slow-history provider, separate managers, shared failures and subsequent retries.
Co-authored-by: tieo <65707274+tieo@users.noreply.github.com>
* fix(server): capture reload reply before publishing updates
* test(server): run concurrent refresh coverage in CI
* fix(server): preserve each refresh caller workspace recovery
---------
Co-authored-by: tieo <65707274+tieo@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(server): reuse provider images across daemon restarts
Co-authored-by: Christoph Leiter <christoph@leiter.io>
* test(server): isolate provider image fixtures from the daemon home
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Christoph Leiter <christoph@leiter.io>
* feat(server,client): support activeTurnBehavior queue without sourceAgentId
Plugins and human UI surfaces previously had to pass steer or interrupt when sending a prompt without sourceAgentId, which could interrupt in-flight tool calls. Non-agent senders can now pass activeTurnBehavior: "queue" to wait behind a running turn and deliver as a normal user prompt once the turn ends, or start immediately when the agent is idle.
- Allow optional source in AgentMessageDelivery; non-agent queued messages skip the 2-second agent coalescing window when idle, stay unwrapped when dispatched alone, and use kind="user-message" envelopes when sharing a provider prompt with other messages.
- Route non-agent queue requests through Session's message queue with prepareAgentMessage, MessageReceipts deduplication, and clearPendingPermissions: false.
- Advertise features.nonAgentMessageQueue and gate non-agent queue in DaemonClient.activeTurnBehaviorForHost with COMPAT(nonAgentMessageQueue).
* docs: document non-agent activeTurnBehavior queue support
* chore: tag nonAgentMessageQueue COMPAT comments with v0.18.2
* test(cli): update terminal-worker upgrade test for protocol version 7
Commit d9497fb1e (#11163) bumped TERMINAL_WORKER_PROTOCOL_VERSION from 6 to 7 with a v6 draining adapter, leaving protocols 0-5 obsolete. Update 46-daemon-terminal-worker-upgrade.test.ts to match protocol version 7 so cli-tests shard 1 passes.
* feat(usage): push live Claude and Codex usage telemetry and preserve poll schedule
Stream Claude rate_limit_event and Codex account/rateLimits/updated observations
into cached discovered account reports, push status.usage_report_changed updates
to subscribed clients, preserve the 5-minute poll schedule across sidebar
toggles, and retry failed usage fetches with exponential backoff from 30s.
Closes#11115
Co-authored-by: Zayooo <mrcold135@gmail.com>
* fix(usage): preserve poll schedule on push and schedule trailing post-turn refetch
---------
Co-authored-by: Zayooo <mrcold135@gmail.com>
When Claude or Codex runs through a wrapper command (such as TeamClaude or a per-profile proxy wrapper) or an explicit login environment token (CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CODEX_API_KEY, CODEX_ACCESS_TOKEN), Paseo previously fell back to reading local ~/.claude / macOS Keychain or ~/.codex/auth.json from disk and showed another account's quota card or a rejected-login error.
- Add buildProviderUsageLaunch and expose resolved launch metadata from ClaudeAgentClient/ClaudeAgentSession, CodexAppServerAgentClient/CodexAppServerAgentSession, and ProviderSnapshotManager.listProviderEnvironments.
- Allow built-in claude and codex usage sources to declare provider so PluginService attaches resolved launch metadata on global discovery.
- Suppress local ~/.claude / Keychain and ~/.codex/auth.json fallback across global discovery, configured-provider host discovery (selectProviderUsageEnv), and agent session discovery when launched via a wrapper command, login token override, or foreign endpoint/cloud backend.
- Preserve plain OPENAI_API_KEY without OPENAI_BASE_URL for Codex (matching Codex load_auth precedence), legitimate custom CLAUDE_CONFIG_DIR / CODEX_HOME profiles, custom paths to the default claude / codex binary, and independent OpenCode/Pi/OMP harness routes.
Closes#3228
Dependency declarations that `import "node"` (e.g. utif2) pulled @types/node
into the install-time type walk, which failed on node: specifiers newer than
the host Node (node:stream/iter on Node 24) or, with @types/node absent,
on the unresolved "node" import. Map bare "node" in declarations to
@types/node and treat any node: specifier as a builtin.
Co-authored-by: Gabriele Magno <gabrigmm@gmail.com>
Co-authored-by: Gabriele Magno <36011800+nkwib@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* feat(mcp,plugin): expose workspace metadata updates via MCP and plugin snapshots
* fix(app,server): persist workspace metadata in replica cache and normalize null keys on create
* fix(pi): finish tintinweb subagents collected with get_subagent_result
@tintinweb/pi-subagents returns get_subagent_result as plain text with no
details, and reading a result cancels the completion notification. The
adapter only read details.status, so a background child collected this way
stayed running, and history replay after a restart rebuilt it as running.
Read the status from the result's "Agent: <id> / Type: ... | Status: <status>"
header, and look the child up by the header's id, because agent_id can be
the agent's name instead of its id.
* fix(pi): match tintinweb results to the spawn or resume that produced them
A resumed agent gets a new Agent call and its own row, but results were
matched by agent id to whichever call was latest. A completion notification
built before a resume, or a get_subagent_result that started before one,
could mark the resumed run finished while it was still running.
Notifications now go to the call named in their <tool-use-id>, and a
follow-up goes to the attempt that was latest when it started. A
notification without details is read from its <task-notification> blocks.
* fix(pi): finish tintinweb rows for scheduled spawns
An `Agent` call with `schedule` registers a job and returns only text, with
no `details` and no agent id. The adapter added a running row for the call
and never sent a final status, so every scheduled spawn stayed running.
When a completed `Agent` call with `schedule` has no `details`, the row now
ends `completed` if the text reports the registered job (`Scheduled "<name>"
(id: <id>, type: <type>)`), and `failed` for the extension's refusals, such
as scheduling being disabled.
* fix(pi): match name-based follow-ups to the attempt they started on
get_subagent_result accepts a handle such as `explore` as well as an
agent id. The adapter only saved a target for follow-ups that used an
id, so a follow-up by name fell back to the agent's latest call. If the
agent was resumed before the result arrived, the old result marked the
resumed run finished.
Record each agent's spawn and resume calls in order, and note how many
calls existed when a follow-up started. The result header supplies the
agent id, and the follow-up resolves to that agent's latest call from
before it started, whether it named the agent by id or by handle.
* fix(pi): keep collected subagent results on the right run
History replay visits every call in an assistant message before processing their results. Record attempt order as the calls start and attach the native ID when it arrives, so a collected result can finish the child it belongs to. Keep scheduled job registration outside the scope of this fix.
Co-authored-by: Andrew McFague <144809+amcfague@users.noreply.github.com>
---------
Co-authored-by: Andrew McFague <144809+amcfague@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Reconcile streamed Claude content blocks per block index instead of
against the whole message, preventing duplicate final thinking/text
blocks in multi-block messages (#6463). Buffer thinking deltas until
each block's completed snapshot arrives so blocks marked in
`narration_block_indexes` render as assistant text (for example before
AskUserQuestion) rather than inside Thinking (#6199), while flushing
any unfinished thinking on message stop or terminal turn events with
their explicit turnId preserved.
Co-authored-by: ThePharmer <metastallion@gmail.com>
Pi and OMP tag streamed assistant deltas with contentIndex and can emit deltas for an earlier block after a later block starts. Forwarding deltas in raw arrival order split thinking blocks and cut answer text mid-word or mid-code-fence during live streaming.
Share a MessageContentStream helper across PiRpcAgentSession and OmpAgentSession that holds later indexed text/thinking blocks behind active earlier blocks until block end, flushes buffered content on message boundaries and on turn abort/interrupt/error paths, and avoids blocking on non-streamed or toolCall entries.
Send the active terminal defaultColors at creation time and sync live palette
updates from the focused viewer through active-viewer ownership (mirroring
terminal-size-ownership). Derive COLORFGBG at PTY spawn unless already set in
env, keep the daemon as the single OSC 10/11/12 responder, track DEC mode 2031
(CSI ? 2031 h/l + DECRQM) and DSR 996/997 reports on live light/dark polarity
switches, and bump TERMINAL_WORKER_PROTOCOL_VERSION from 6 to 7 with a v6
draining adapter.
Closes#2795
Supersedes #4345
Co-authored-by: Glen Stampoultzis <gstamp@gmail.com>
Android 12+ system "Bold text" sets Configuration.fontWeightAdjustment (+300).
TextView applies that weight increase at draw time to text without an explicit
fontWeight or fontFamily, while React Native 0.86.3's TextLayoutManager measures
the text unbolded. The wider drawn glyphs overflow the measured box and clip
trailing words, characters, and lines app-wide (#4057, #10152, #10850).
Add an Android Expo config plugin that overrides MainActivity.attachBaseContext
to zero fontWeightAdjustment on an empty sparse Configuration(), so measurement
and drawing agree while unrelated configuration fields (uiMode, densityDpi,
orientation, screenWidthDp, fontScale, locales) continue updating across
onConfigurationChanged and compose cleanly with PaseoDisplayMetrics (#9995).
Paseo's own bold styles (Markdown **bold**, headings, bold labels) remain bold.
Co-authored-by: JustinJoshi <JustinJoshi@proton.me>
* fix: prevent workspace update storms and batch client directory commits
Fixes three compounding causes of reconnect stalls, 60s RPC timeouts, and
client freezes/ANRs on hosts with many workspaces (especially sharing a Git
checkout):
1. Seed sequenced workspace subscriptions in Session from the full, untagged,
visibility-filtered descriptor set instead of syncSeq-tagged or partial
changes-mode response entries, eliminating redundant workspace_update
re-emits and preserving includeBackground filtering and git observation.
2. Retain a bounded LRU (2,000 entries) of last-known WorkspaceGitService
snapshots past the 90s warm release grace, serving retained snapshots
stale-while-revalidate on non-forced getSnapshot reads while revalidating
in the background Git lane and staying silent when Git state is unchanged.
3. Coalesce overlapping workspace update flushes per subscription and pace
multi-workspace workspace_update bursts one drained frame at a time so
interactive RPC replies are never head-of-line blocked on the transport.
4. Batch incoming workspace_update frames per animation frame/tick in
DirectorySync and WorkspaceDirectoryReplica so a 200-workspace burst
produces one mergeWorkspaces store commit and one checkpoint write.
Closes#5530
Refs #9487, #7760
Co-authored-by: Daniel Stieglmayr <theunlimited64@gmail.com>
* fix(server): decouple paced workspace burst queue from flush and bootstrap
---------
Co-authored-by: Daniel Stieglmayr <theunlimited64@gmail.com>
* fix(desktop): isolate browser webview focus during agent automation
Prevent Electron browser guests from stealing keyboard focus from the
chat composer while an agent drives parked or visible split-pane tabs:
- Gate BrowserPane's webview focus/mousedown promoter so non-presented
panes and agent-guarded presses never call onFocusPane, webview.focus,
or paseo:browser:focus; mark parked 1x1 surfaces inert with tabindex=-1.
- Focus browser_type and browser_keypress targets via DOM element.focus
plus caret-to-end positioning instead of CDP mousePressed.
- Bracket CDP pointer presses (browser_click, browser_drag) with a
ref-counted host focus guard (including IME composition protection,
50ms late-focus recheck, and Emulation.setFocusEmulationEnabled(true)).
Closes#4679
Supersedes #10603
Co-authored-by: Oleg Puchkov <puchkoff@gmail.com>
* fix(desktop): verify DOM focus in browser_type and require host focus guard in ipc
---------
Co-authored-by: Oleg Puchkov <puchkoff@gmail.com>
* fix(usage): discover configured custom provider accounts with strict source scoping and locator env allowlist
Host Usage listings previously scanned only the daemon's default login stores,
leaving custom Claude and Codex providers configured with their own
CLAUDE_CONFIG_DIR, CLAUDE_SECURESTORAGE_CONFIG_DIR, or CODEX_HOME invisible in
Usage until one of their agents was opened.
Host Usage now discovers enabled providers that configure usage-locator
environment variables, while enforcing two strict security boundaries:
- Provider-matched dispatch: each configured provider scope is sent ONLY to
usage sources whose declared `providers` list includes that provider's base
provider ID (never broadcast to unrelated or third-party usage plugins).
- Explicit locator env allowlist: only non-secret config-directory /
credential-store locator environment variables (including
CLAUDE_CONFIG_DIR, CLAUDE_SECURESTORAGE_CONFIG_DIR, CODEX_HOME,
OPENCODE_CONFIG_DIR, XDG_CONFIG_HOME, XDG_DATA_HOME, HOME, etc.) cross into
usage discovery. Raw auth tokens, API keys, and arbitrary custom env vars
are stripped, and foreign-endpoint providers are excluded daemon-side.
Also adds CLAUDE_SECURESTORAGE_CONFIG_DIR support to Claude Keychain route
derivation and preserves cached usage, recovery history, sidebar summary, and
source-toggle behavior across provider renames.
Closes#3589
Co-authored-by: Qichang Zheng <qichang.zheng2000@gmail.com>
* refactor(usage): keep provider env allowlist filtering solely inside UsageSourceRegistry
* fix(usage): allow OPENCODE_DB in host usage discovery locator env allowlist
---------
Co-authored-by: Qichang Zheng <qichang.zheng2000@gmail.com>
* perf(cli): cut CLI startup overhead with lean client, lazy dispatch, and esbuild bundling
- Add lean protocol codec and @getpaseo/client/node/lean entry that skip ws-outbound.aot.js and full Zod message schemas, and dynamically import @getpaseo/relay only for pairing-offer/E2EE targets
- Replace eager command imports in packages/cli/src/cli.ts with a static command manifest + lazy dynamic imports, remove duplicate createCli() in run.ts, and lazy-load yaml/chalk in output rendering
- Extract zero-Zod PID, home, and credential helpers to @getpaseo/server/daemon-files
- Bundle @getpaseo/cli with esbuild code splitting (--splitting --format=esm --minify) and update scripts/trace-daemon.mjs
- Fast-path complete agent UUIDs in resolveAgentEntry() via fetchAgent() without paginating archived agents
* fix(client): generate zero-Zod schema defaults for lean protocol codec
- Generate message-defaults.ts from Zod protocol schemas inside generate-validation-aot.mjs (50 outbound + 11 inbound tables, agent snapshot defaults, legacy transform fallbacks, and hello.rejected reasons)
- Apply generated defaults in leanProtocolCodec so older daemons get the same defaulted fields as strictProtocolCodec without loading Zod or ws-outbound.aot.js
- Add strict-vs-lean parity tests across legacy outbound, inbound, and status payloads
- Deduplicate sync/async CLI renderer dispatch between render.ts and render-async.ts
- Switch startup-boundary runtime hook test to module.registerHooks + synchronous stderr flush and it.skipIf for missing dist
* fix(protocol): support prefault and reject unlisted non-pure schemas in defaults generator
- Support Zod .prefault() nodes directly in message-defaults.ts (e.g., pull_request_timeline_response with omitted payload)
- Fail generate:validators loudly if any new .catch() or .transform()/.preprocess() schema is added without a lean rule or explicit legacy allowlist entry
- Add pull_request_timeline_response omitted-payload parity test to lean.test.ts
* feat(plugins): add tunnel provider plugins with cloudflared and tailscale funnel built-ins
Plugins can now register a tunnel provider that turns a local HTTP host:port
into a public HTTPS URL. The daemon's TunnelManager owns exposures and their
lifecycle, so a provider only reports state through report() and stops when
its signal aborts. Exposures close when the owning plugin stops, reloads, is
disabled, or crashes, and when the daemon shuts down.
This is the shared primitive that later work uses to expose MCP servers and
workspace services. Clients gate on server_info.features.tunnelProviders.
* fix(plugins): keep tunnel exposures from reporting wrong URLs or outliving Paseo
- cloudflared: the quick-tunnel URL pattern matched api.trycloudflare.com in
provisioning errors, so an offline open reported ready with the API endpoint.
- tailscale-funnel: `funnel --bg` stored the Funnel in tailscaled, so a crashed
plugin or daemon left the target public with no owner. Run the Funnel in the
foreground instead; tailscaled drops it when the CLI exits.
- tailscale-funnel: a failed `funnel status` counted as "no ports in use" and
could replace and later remove the user's own handler. Fail the open instead.
- Add the Chinese translation of the tunnel providers reference section.
* fix(plugins): ship cloudflared with quick tunnels only
A named Cloudflare tunnel routes through ingress set in the Cloudflare
dashboard, so its URL never served the exposure target. Two exposures for
different targets both reported ready at the same URL. Named tunnels return
later with per-target routing.
Also mark the tunnel-provider example as requiring 0.18.0-beta.1, like the
notifications example, so the example build test loads it.
* fix(plugins): detect missing tunnel CLIs and run tunnel tests on Windows
On Windows a bare name that is not on PATH runs through cmd.exe, which exits
9009 instead of failing the spawn with ENOENT. The providers reported a
missing tailscale as "not running". Treat exit 9009 as not installed.
The fake CLIs were shebang scripts, which Windows does not run, and the
tests relied on SIGTERM handlers that a Windows force kill skips. The fakes
now get a .cmd launcher on Windows, and the tests check that the fake
process is gone instead of a handler side effect.
* test(plugins): replace the Windows Path variable in tunnel CLI tests
Windows keeps the original case of environment names, usually `Path`.
Spreading process.env and setting `PATH` left the real search path beside
the override, so the missing-CLI tests could still find or query a real CLI.
The missing-CLI tests now assert the exact "not installed" status.
* test(plugin): parse shared declarations once in SDK boundary type checks
Each typeErrors() call built a fresh program and parsed the SDK, library,
and dependency declarations again. On a slow Windows runner one check took
over the 5 s test timeout. The checks now share the parsed configuration
and declaration files, so each one parses only its snippet. The file runs
in about a quarter of the time locally.
* fix(plugins): launch tunnel CLIs without a shell so a missing CLI reads as not installed
On Windows a bare name that is not on PATH ran through cmd.exe, which exits
with a generic code and a localized "not recognized" message. The providers
then reported a missing tailscale or cloudflared as "not running" or "failed
to query". Without a shell the spawn fails with ENOENT on every platform.
Both CLIs ship as executables; a .cmd set as a full binary path still runs
through cmd.exe. This replaces the exit-code 9009 check, which cmd.exe does
not return as the process exit code.
Cursor 3.27+ encrypts `cursorAuth/accessToken` in `state.vscdb` with a
`cursor-safe-storage:v1:` Electron safeStorage prefix, so sending that
value as a bearer token caused Usage to fail with HTTP 401. At the same
time, discovery missed the macOS Keychain (`cursor-access-token` /
`cursor-user`), macOS `~/.cursor/auth.json`, and Windows
`%APPDATA%\Cursor\auth.json`, and stopped at the first candidate instead
of letting the usage registry fall back after a 401.
- Skip `cursor-safe-storage:` values across every token store and reader
so ciphertext is never sent as a bearer token.
- Add macOS Keychain (`cursor-access-token` / `cursor-user`) and
`~/.cursor/auth.json` discovery to both global and session lookup.
- Add Windows `%APPDATA%\Cursor\auth.json` discovery to global lookup.
- Return all unique usable credentials in priority order so
`UsageSourceRegistry.fetchWithFallback` tries the next candidate when
an earlier credential is rejected.
Co-authored-by: jasonhnd <3293256+jasonhnd@users.noreply.github.com>
Co-authored-by: Kevin <kevin.pierrot@gmail.com>
Co-authored-by: Sian Lerk Lau <kiawin@gmail.com>
Co-authored-by: ChicorSun <125846596+ChicorSun@users.noreply.github.com>
Co-authored-by: Karl Bitz <kb@wardbitz.com>
* fix(usage): support OpenCode v2 usageSession, session scopes, and Codex opencode.db logins
- Implement usageSession() on OpenCodeV2Session with provider "opencode",
authoritative model tracking (info.model falling back to config.model),
effective provider + launch harness environment, and a stable sessionKey.
- Read active and migrated OpenAI OAuth logins from OpenCode v2's opencode.db
in codex-usage-source (honoring absolute/relative OPENCODE_DB, active=1 or
migrated active IS NULL, falling back to v1 auth.json, and normalizing
provider to "opencode").
- Add OpenCode session-scope discovery to built-in usage sources OpenCode
serves (opencode-go, minimax, zai, kimi, grok, copilot, openrouter-host).
Co-authored-by: Jiayang Wu <651475459@qq.com>
* fix(usage): keep Copilot/Kimi default visibility hints and deduplicate session discovery helpers
---------
Co-authored-by: Jiayang Wu <651475459@qq.com>
* feat(app,server): upload image attachments via file.upload.request
Previously, sending images inlined base64 payloads directly inside
send_agent_message_request and create_agent_request JSON messages,
causing phone photos to exceed relay message limits (#2668) and
multi-photo batches on Android to overflow OkHttp's 16 MiB outbound
WebSocket queue and close with code 1001 (#11117).
- Upload attached images sequentially via DaemonClient.uploadFile
(file.upload.request + 128 KiB FileChunk frames) across all composer,
queued send, draft creation, new workspace, and workspace setup paths.
- Pace DaemonClient.uploadFile on unpaced transports (supportsDrain=false)
with a 1 MiB correlated ping/pong flush barrier so single >16 MiB files
cannot overflow OkHttp's outbound queue, and start the 60s RPC response
deadline only after FileEnd so slow uplinks do not time out mid-stream.
- Resolve uploadedImages on the daemon into native { type: "image" }
provider content blocks after enforcing canonical realpath containment
inside join(paseoHome, "uploads"), and project UploadedImage metadata
onto user_message timeline items so thumbnails and lightbox previews
persist across reloads and devices.
- Preserve full resolution and quality for JPEG/PNG images (picker
quality: 1, no downscaling for already-supported formats) while keeping
HEIC/HEIF conversion to resized JPEG for provider vision compatibility.
* test(server): canonicalize temp paseoHome path in prompt-attachments test
* refactor(protocol,app,server): carry uploaded images as uploaded_file attachments with role="image"
Replace the separate top-level `uploadedImages` wire field with an
optional `role: "image"` hint on `UploadedFileAttachmentSchema` inside
the existing `attachments` array.
- On current daemons, `resolveAgentPrompt` partitions `uploaded_file`
entries with `role: "image"` out of `attachments`, validates canonical
`realpath` containment in `$PASEO_HOME/uploads`, resolves them into
native `{ type: "image", data, mimeType }` provider vision blocks, and
projects `user_message.images` thumbnails.
- On older daemons (v0.1.91-v0.18.1), Zod strips only the unknown
optional `role` field and preserves the valid `uploaded_file`
attachment (`type`, `id`, `fileName`, `mimeType`, `size`, `path`), so
an auto-updated mobile or web app never silently drops photos against
an older host.
- Plain `Upload file` attachments (without `role: "image"`) remain
unchanged (`Uploaded file: ... Path: ...`).
- Also reverts the unrelated conditional-spread refactor in
`DaemonClient.createLegacyAgent`.
Local agent subprocesses expect an HTTP loopback URL for Paseo's built-in
MCP server (/mcp/agents) and terminal activity hooks (/api/terminal-activity).
Previously, bootstrap derived both URLs directly from the primary listener,
so Unix-socket and named-pipe daemons returned null (silently omitting MCP
and terminal activity) and non-loopback TCP listeners handed agents a
non-loopback address that fails loopback validation and proxy bypass. In
addition, providers spawned under a user's HTTP_PROXY routed local 127.0.0.1
MCP requests through the proxy and failed with HTTP 502 / handshake errors.
Introduce a daemon-owned loopback agent endpoint that reuses the primary
listener when it is already loopback-reachable TCP and otherwise binds a
dedicated 127.0.0.1:0 HTTP server exposing only /mcp/agents and
/api/terminal-activity with loopback remote-address, Host-header, and bearer
auth checks. Merge 127.0.0.1, localhost, and ::1 into NO_PROXY (and no_proxy
when set) in the shared provider launch environment without clobbering user
entries.
* fix(app): replace hidden Android terminal TextInput with native input view
Android's hidden React Native TextInput splits every IME edit into two
unsynchronized JS events (onChangeText and onKeyPress), hides Android's
active composing span, omits deleteSurroundingTextInCodePoints, and leaves
multiline newline residue after Enter. Those boundary flaws caused doubled
first/initial characters, locked or dropped Backspace, swallowed Latin
candidates in mixed CJK/English keyboards, broken Korean Hangul after
Enter, and duplicate hardware Enter presses.
Replace the hidden Android TextInput with a dedicated 1x1 native Android
PaseoTerminalInputView backed by a custom BaseInputConnection
(TerminalInputConnection) and onKeyDown handler in paseo-terminal. The
native input connection coalesces batch edits, diffs against real Android
composing spans, clears its private Editable after commit/finish, handles
all three Backspace paths, emits a single CR on Enter, and sets
EditorInfo flags directly without ReactFindViewUtil patching.
Co-authored-by: Ouyang Xingyuan <galaxyroaming@qq.com>
Co-authored-by: Lennart Schoch <lennart@usebounce.com>
Co-authored-by: Jason <jaeysin@gmail.com>
* fix(app): expose composing state via ComposingTextOwner and deduplicate terminal input types
React Native's BaseViewManager.setTestId overwrites the unkeyed View.tag
with the string testID, which would hide PaseoTerminalInputView's active
IME composing span from PaseoHardwareKeyboardModule.
Introduce ComposingTextOwner in paseo-hardware-keyboard and implement it
on PaseoTerminalInputView so hardware arrow routing reads composing state
without touching View.tag. Also re-export shared terminal input types
from terminal-input.types.ts in terminal-input.native.tsx and drop its
unreachable Android hardware-keyboard effect.
---------
Co-authored-by: Ouyang Xingyuan <galaxyroaming@qq.com>
Co-authored-by: Lennart Schoch <lennart@usebounce.com>
Co-authored-by: Jason <jaeysin@gmail.com>
On Windows, node-pty's kill closes the pseudoconsole and kills the
console's processes only after a forked helper reports them. The force
step of killAndWait repeated that same soft kill. The terminal worker
exits right after killAndWait during shutdown, so on a slow machine the
helper's kill never ran and the program outlived its worker. This made
"Restart and close terminals" leave the program running and flaked the
terminal-worker-lifecycle Windows test.
The force step now kills the program's process tree with tree-kill.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The new tagline is the sponsor's own wording and is much longer. With two
long captions the footer sponsors band pushed "Become a sponsor" onto its
own row in the docs column (max-w-prose, about 700px), so the footer
placement uses narrower captions and a smaller column gap.
The interface font rule applies to every element outside a `data-pmono`
surface. The terminal root had no marker, so xterm's DOM renderer rows took
the interface font while the cell grid was measured with the code font.
Fixes#6903
Co-authored-by: sh0nuff <sh0nuff@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Codex combines process-level -c overrides and thread/start request config
overrides sequentially in build_cli_overrides_layer. Sending a whole-table
mcp_servers object (including an empty {}) replaces the entire mcp_servers
table built from earlier -c mcp_servers.* flags, wiping out alias-configured
MCP servers.
Emit dotted mcp_servers.<name> keys (and omit MCP keys entirely when empty)
so Paseo-injected MCP servers and tool-policy preapprovals merge alongside
alias -c overrides and config.toml servers. Fall back to a single whole-table
mcp_servers only when a server name contains a dot, which Codex's
path.split('.') override parser cannot represent as one segment.
Close three verified provider child-process leaks (Part of #4450):
1. Single-flight Claude query launch (`ensureQuery`): concurrent callers
(such as the app and plugins both requesting commands on resume) now
share one in-flight `queryStart` promise instead of spawning duplicate
`claude` processes and overwriting `this.childProcess`. A restart
requested mid-launch retires the stale query and relaunches once, a
pre-launch restart mark is consumed when launch options are copied,
and `queryStarting` is always cleared in `finally`.
2. Pre-init prompt withdrawal (`ClaudeRuntimeSafety`): track `initSeen`
separately from `turnSeen` so withdrawing every unstarted prompt before
`system/init` clears `turnSeen` and allows idle collection to stop the
runtime, while preserving the hold when a turn had already started or
announced `init`.
3. Bounded structured metadata generation (`generateStructuredAgentResponse`):
enforce a 300s default deadline across retries and share one deadline
across `generateStructuredAgentResponseWithFallback`, so stalled
internal metadata agents always reach `finally` and call `closeAgent`.
Co-authored-by: Desmond Leong <desmond@returning.ai>
Co-authored-by: Nicholas Salgueiro <nickmaglowsch3@gmail.com>
Add image converted HEIC photos to full-resolution PNG. Inlined as base64,
a sub-5 MB iPhone photo became a 56 MiB message and was rejected by the
32 MiB relay limit (getpaseo/paseo#2668).
HEIC/HEIF now becomes JPEG (quality 0.85); other unsupported formats still
become PNG to keep transparency. Any picked image whose long edge exceeds
2000 px is downscaled to fit, keeping its JPEG/PNG format.
Co-authored-by: Brandon Elliott <923787+Brandon168@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(plugin): show ACP form elicitations as native question cards
The shared plugin ACP client advertised empty clientCapabilities and
had no createElicitation handler, so ACP agents like Antigravity (agy)
could not send structured form elicitations and fell back to plain
markdown option lists (leaving ask_question unanswerable via Paseo's
question card).
Advertise clientCapabilities.elicitation.form by default and map ACP
1.x form elicitation schemas onto Paseo's existing kind: "question"
permission card inside packages/plugin/src/server/acp-internal:
- Track tool approvals and form elicitations in one unified pending map
so deferred turns, mode-switch guards, turn end, interrupt, close,
and failure cleanup stay consistent.
- Never auto-accept elicitations in autoAcceptMode; decline url mode,
out-of-turn, mismatched-session, and unsupported/malformed schemas
cleanly without throwing.
- Fold optional sibling <key>_other string fields into allowOther for
both no-sentinel (agy) and "other"-sentinel schemas, preserve unique
headers/labels and ", " multi-select handling, mark defaults, and
keep __proto__ keys safe via Object.hasOwn and Object.fromEntries.
Co-authored-by: Daniel JB Clark <djbclark@gmail.com>
Co-authored-by: Jake Cattrall <krazyjakee@gmail.com>
* fix(plugin): keep _other separate when required choice has no other sentinel
---------
Co-authored-by: Daniel JB Clark <djbclark@gmail.com>
Co-authored-by: Jake Cattrall <krazyjakee@gmail.com>
On Windows the PTY kill ends the shell at once and the script's node
process later, so the test's temp-dir rm raced it and failed with EBUSY.
The test now records the script's pid and waits for it to exit after
the stopped status.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Wrapping a long line with Unicode or code ligatures repeatedly measured most of the remaining line. Start the search near the next wrap so narrow viewports avoid shaping the same text repeatedly.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* feat(desktop): draw the app icons from the new butterfly mark
The desktop and mobile icons still carried the old butterfly, and each
was a hand-exported file. They now come from one script that renders
them from the canonical mark in assets/brand, so a change to the mark
reaches every icon.
The icons are flat. Each platform masks and lights its own icons, and
artwork that arrives already lit ends up lit twice. The lit versions
are kept in assets/brand/app-icons and nothing uses them.
The packaged Mac app now takes its icon from an Icon Composer document
instead of the .icns, so macOS draws the tile, the margin, the lighting
and the dark, tinted and clear variants itself. electron-builder
compiles the document with actool, which needs Xcode 26 or later. The
Nix build has no Xcode and keeps the .icns, and so does the DMG volume
icon, because the .icns actool derives stops at 256 px.
macOS draws a dev build's Dock icon and an .icns exactly as supplied.
Their tile is now 824 of 1024 px with continuous corners, measured from
the icon macOS 27 draws for the document. The old production tile was
88% of the canvas and looked oversized next to other Dock icons.
* test(desktop): put the tunnel heartbeat test on a fake clock
The test ran a 25 ms heartbeat against a 65 ms timeout on the real
clock. A heartbeat tick closes the wire instead of pinging once the
timeout has passed, so when the first tick landed late on a slow
Windows runner the wire closed with no ping sent, and the assertion
that a ping went out failed.
With a fake clock the ticks land at 25, 50 and 75 ms every time: two
pings, then the heartbeat close.
* fix(server): keep a streamed assistant message whole across a steer
Steering an agent mid-stream records the user message at the next
timeline seq, between two chunks of the assistant message that is still
streaming. The projection merged assistant chunks only when they were
adjacent, so the interposed user row split one provider message into two
timeline rows at whatever character had arrived, often mid-word.
An assistant message that carries a provider message id now has a
timeline identity, like a tool call does, so its chunks collapse into one
item wherever they land. Chunks without a message id keep the existing
adjacency merge.
* test(server): synchronize the steer regression test on timeline state
Replace the fixed sleeps with polling assertions, and run the coalescer
with a zero window so every chunk flushes on its leading edge.
* fix(server): merge a steered message only across user rows
The identity merge joined every chunk of one provider message into its
first row, whatever rows were recorded between them. Text a provider
wrote after a tool call moved above the tool call, and seeded rows lost
the turn stats on the merged reply.
A chunk now continues the assistant message right before it, or, when
it carries a provider message id, the assistant row before a run of
user rows recorded mid-stream. Any other row in between keeps the
provider's order. The merge carries the stats from the later chunk.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): keep streamed replies whole across steering messages
---------
Co-authored-by: paseo-bot <paseo-bot@users.noreply.github.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>
Command Center scored contributions and workspaces with right-edge text-match tiers (TIER_EXACT and TIER_WHOLE_WORD), so rows flipped mid-word whenever a shorter word or title finished on the latest keystroke (for example, typing renam then e flipped Rename workspace and Rename, and typing to jumped Pin to top above Toggle Explorer sidebar). Because CommandCenterInteraction resets active selection to index 0 on every keystroke, Enter executed the wrong action.
Score Command Center matches by left-edge rank only (field start, word start, inside word, scattered) and rank workspaces within the same MatchClass by recency directly instead of raw sub-tiers. Also label the active tab rename action with the existing Rename agent / Rename terminal keys instead of bare Rename.
Pi starts runs on its own, for example for an extension message or a
background result, and reports them only at agent_start. A prompt sent
in that window had no streamingBehavior, so Pi rejected it with
"Agent is already processing" and the message was lost.
Send prompts with streamingBehavior followUp. Pi queues the prompt into
its running turn, and ignores the option when it is idle.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
OpenCode v2 removes a pending approval without a `permission.replied`
event when the tool call that asked is interrupted, and answers a later
reply to it with HTTP 404. Paseo kept its copy, so the card stayed and
every answer failed. A message sent while the card was open failed the
same way, because clearing the card threw the 404.
Reconciling a session now drops approvals OpenCode no longer lists, and
a 404 reply resolves the approval instead of failing.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: rhettjay <67493409+rhettjay@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
glab ci get --merge-request fetches the MR from the target repository, reads
head_pipeline.id, and then requests that pipeline from the target repository
instead of head_pipeline.project_id. For fork merge requests whose pipeline runs
in the fork project, GitLab returns 404 Not Found on every PR status poll and
PR-pane pipeline drill-down.
Query the GitLab REST API directly via glab api using head_pipeline.project_id
(falling back to target_project_id, the MR project path, or :fullpath) for both
fetchPipelineChecks and getCheckDetails, matching how gitlab-change-requests.ts
already resolves fork pipelines.
* Reopen an ACP agent whose process exited while it was idle
When a generic ACP agent's process exits between turns, for example after
an external kill -9, every later message failed with "ACP agent
disconnected" until someone reloaded the agent by hand.
startTurn now reports a dead connection as a stale provider session when
the provider can reopen sessions (session/load or session resume). The
prompt path already reloads a stale session from persistence on a new
process and retries the message, as it does for plugin sessions. A
provider that cannot reopen a session keeps the current error, because a
reload would close the agent without a way back.
The exit handler also logs an unexpected exit, with the pid, the exit
code or signal, and whether a turn was running. Before, an exit while
idle left no line in the daemon log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Wait for the daemon to see the ACP exit in the recovery test
On Windows the test saw the killed process gone before the daemon read
the closed pipes, so the next message started a turn on the dead
connection. The test now waits for the daemon's exit warning, and checks
the disconnect text without the signal, which Windows reports as an exit
code.
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>
Carry OMP tool-call `intent` strings in `ToolCallBase.metadata.intent` across live updates (`running`, `completed`, `failed`, `canceled`) and replayed session history, reusing the existing tool-call `metadata` path through the daemon, app stream, replica cache, and client timeline plugins without changing the shared protocol.
Replay reads only string `content.intent` values (ignoring non-string values and never deriving intent from a tool argument named `i`). Updates `docs/plugins.md` and `public-docs/plugins/reference.md`, and retries Windows temp-dir cleanup in `forge-cli-command.test.ts`.
Fixes#10730
Co-authored-by: Matt Cowger <matt@cowger.us>
The v2 runtime safety check vetoed collection whenever any session on
the server was active. The shared server stays up after its last lease
goes, so that veto kept every idle chat resident while one unrelated
session worked. Another session's execution now vetoes only when
releasing the lease would stop the server; the chat's own session and
its descendants still veto as before.
Fixes#10305
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(settings): add host-wide instructions for metadata generation
Add a single host-level agents.metadataGeneration.instructions field instead of a language-only switch or per-artifact host overrides. It applies across workspace titles, worktree branch names, commit messages, and pull request drafts alongside Paseo's default styles, while letting per-project paseo.json overrides take precedence on conflict.
Gate the UI field on server_info.features.metadataGenerationInstructions so older daemons that drop the field on patch do not show a no-op editor, and split MutableMetadataGenerationConfigPatchSchema without a default providers array so patching instructions never wipes configured providers.
* fix(server): read host metadata instructions through structured-generation config helper
The lifecycle tests reserved a free port, released it, and later started
a daemon on it. Another process could bind the port in between, and the
daemon then exited with EADDRINUSE. That failed "raw log following" on
main. Tests that need no fixed port now configure 127.0.0.1:0, so the
daemon allocates the port itself and publishes it.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Opening the Starting ref popover in New Workspace for the first time jumped in two steps: the query was disabled until open, buildPickerOptionData rendered a lone [main] row in a 132px frame, and when branch suggestions arrived the popover grew to 400px while pushing main down below newer branches.
Lock the desktop popover height to 400px (and clamp fixed minHeight to availableHeight in buildDesktopFrameStyle so short viewports do not overflow), warm default branch suggestions and forge wording while the trigger is visible on the focused screen, retain same-project results while filtering, and show the searching state instead of a premature single-row placeholder on cold opens.
A terminal that goes from working to idle records finished attention, and the
workspace status rolls it up as attention. The workspace clear-attention
handler only cleared agents, so a workspace kept green by a terminal stayed
green after Mark as read, with no agent inside showing why.
Terminals are matched by the workspace they belong to, not by cwd: a terminal
can run in a different directory than its workspace. Needs-input attention is
left alone, matching how agent permission prompts are handled.
* fix(app): restore composer autocomplete after closing web overlays
Closing a web overlay such as the New Workspace branch picker runs useOverlayRegistration's teardown inside a useLayoutEffect cleanup. React 19 runs layout effect cleanups during the mutation commit phase while its DOM event system is disabled, so calling target.focus() synchronously drops focusin. React's SelectEventPlugin then keeps activeElement unset and skips onSelect/onSelectionChange, leaving the composer cursor stuck at 0 so slash and @ autocomplete never open until another event refocuses the textarea.
Defer focus restoration in addWebOverlay via queueMicrotask so focus runs after React finishes its mutation commit, guarded so a newer overlay opened in the same commit is not stolen from. Also hide ComposerAutocompleteBinding while isComposerLocked is true so autocomplete cannot appear over a submitting composer.
* fix(app): preserve focus claimed during overlay close and guard missing DOM
Skip deferred overlay focus restoration when the closing commit moves focus to a new element (such as an autofocused inline input mounted by a menu action like file explorer Rename, New file, or New folder). Also guard typeof document and typeof HTMLElement in the deferred focus-restore helpers so Node unit tests that tear down DOM stubs before microtasks run do not throw.
* fix(app): restore overlay focus during layout phase before passive effects
Deferring focus restoration to a microtask when active flipped true -> false ran after passive useEffect hooks updated, which let HoverCard's focusin listener re-enable and reopen the workspace hover card when closing a sidebar context menu.
Split registration/deactivation from unmount cleanup in useOverlayRegistration so active: true -> false restores focus synchronously inside the layout effect (after React re-enables DOM events and before passive effects run), reserving queueMicrotask for unmount-while-active where no layout setup runs. Also detach the overlay entry before clearing scopeRef so the departing scope is preserved.
* feat(release): preserve in-flight iOS reviews and add EAS review queue controls
Release builds previously passed reject_if_possible: true to fastlane deliver, which cancelled any in-flight Apple review whenever a quick desktop or daemon patch shipped.
submit_review now checks App Store Connect for active in-flight iOS versions and ReviewSubmissions before submitting. When a review is already in flight and REPLACE_IN_REVIEW is not true, it leaves the active review untouched, logs a machine-scannable IOS_REVIEW_SKIPPED line naming both versions, and exits 0 so Release Mobile stays green while still uploading the new binary to TestFlight.
When replace_in_review=true is explicitly requested, submit_review validates the replacement TestFlight build first and cancels the active ReviewSubmission before calling deliver, avoiding fastlane 2.241.1's verify_version-before-reject_version_if_possible ordering race. Added on-demand EAS workflows and Fastlane lanes to inspect live App Store Connect review status and cancel an in-flight review with an expected_version safety guard.
* fix(release): clear stale UNRESOLVED_ISSUES submissions and re-check review queue after build wait
When Apple rejects an earlier version, fastlane 2.241.1's Deliver::SubmitForReview#create_review_submission fails if the prior ReviewSubmission stays in UNRESOLVED_ISSUES.
Instead of passing reject_if_possible: true on the default path (which could cancel a newly-submitted WAITING_FOR_REVIEW/IN_REVIEW review that arrived during build processing), submit_review now re-checks find_blocking_review after TestFlight processing completes and clears only UNRESOLVED_ISSUES submissions before invoking deliver with reject_if_possible: false.
* fix(app): clear the iOS status bar on wide browser layouts
In an iOS Home Screen web app at a wide (non-compact) layout there is no
compact header to absorb the top safe-area inset, so the top rows sat
under the status bar and could not be tapped (#9524). The window surface
now consumes the top inset on the web when the layout is not compact;
native window chrome keeps its own top band.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): keep the Mermaid fullscreen controls below the status bar
The fullscreen Mermaid viewer is a Modal that covers the whole window,
but it padded its content with the insets of the chat message that
opened it. On wide web layouts the layout surface now spends the top
inset itself and hands its children top 0, so the viewer's zoom and
close buttons moved under the iOS status bar.
Wrap the viewer in WindowSafeArea, as the attachment lightbox does, so
it reads the window's insets.
Co-authored-by: Matt Abar <mattaabar@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): keep the overlay left sidebar below the status bar on wide browser layouts
The wide layout surface now pads the status bar itself and hands its
content a top inset of 0. The overlay sidebar is absolutely positioned
against the surface, over that padding, so it starts at the window's top
edge and needs the window's top inset. The docked sidebar keeps reading
the inset the surface leaves its content.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): keep the autocomplete popover below the status bar from a wide layout surface
The popover clamped its height with the composer's top inset, which a wide
browser layout surface now sets to 0. The root portal host the popover can
render into sits outside that surface, against the window's top edge, so
the popover's top went under the status bar. The frame now reads the inset
where it renders, inside the portal host: the root host gets the window's
inset, and the workspace host, inside the surface, keeps 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: state that the wide web layout surface owns the top inset
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Matt Abar <mattaabar@gmail.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>
* fix(server): send push notifications at high priority so Android delivers them on time
* test(push): cover urgent notifications without global stubs
Keep the push transport explicit so the priority regression exercises every batch without replacing global fetch. Production callers retain the native transport by default.
Co-authored-by: Andrii Panasiuk <andrew.panassiouk@gmail.com>
* refactor(push): name notification sender dependencies
Use an options object for the logger, token revocation callback, and HTTP transport while retaining native fetch by default.
---------
Co-authored-by: Andrii Panasiuk <andrew.panassiouk@gmail.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* docs(release): parallelize post-approval release shipping
Every tag-triggered GitHub Actions workflow and EAS workflow builds from the checked-out tag commit with local workspace packages, so tag builds do not depend on public npm publication. Update release:ship and release:ship:beta to push the tag before publishing npm, and document the parallel ship fan-out and sync gates in docs/release.md.
* docs(release): document npm publish recovery after tag push
* Find Kimi usage for logins to kimi.ai
The Kimi CLI keeps one credential slot per deployment. A login to the
global (kimi.ai) deployment writes its token to
credentials/kimi-code-env-<hash>.json and talks to api.kimi.ai, but the
usage source only read credentials/kimi-code.json and only called
api.kimi.com. Users signed in through kimi.ai saw no Kimi usage, or a
"Login expired. Sign in again." message when an old kimi-code.json from
an earlier login was still on disk.
Discovery now checks the slots of both official deployments and picks
the one with the latest expiry, which is the slot the CLI keeps
refreshing. The usage request goes to the API of that deployment.
Kimi access tokens last 15 minutes, so a CLI token is often expired
while the user is still signed in. Report those with refreshedBy so the
Usage page says to run kimi instead of asking for a new sign-in.
* fix(usage): preserve the selected Kimi credential home
Compare deployment credentials within each home so a newer legacy-home
login cannot override KIMI_CODE_HOME. Cover the expired-default plus live
global workflow through discovery and usage fetching.
Co-authored-by: benthecarman <benthecarman@live.com>
---------
Co-authored-by: benthecarman <benthecarman@live.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
antigravity-provider status() now runs --version and requires >= 1.5.1 (#10992). Without a --version handler, supervisor-acp.cjs exited with empty stdout on the version probe and broke 23-daemon-sigint-supervisor.test.ts at createAgent().
* fix(usage): follow the CLIs' current auth locations for MiniMax and Z.ai
The usage sources look for credentials where the CLIs used to keep them, so
their plan quota never appears in Settings → Usage.
MiniMax Code (`mcode`) moved its OAuth login to
`~/.minimax/auth/<buildEnv>/<region>/<clientId>/auth.json`, with the token
inside a `records` map and the region in a sibling `auth-state.json`. The
source still looked in `~/.mmx/` for the older `access_token` shape. It also
called `/v1/token_plan/remains`, which the agent backend answers with
`status_code 1004` ("Please carry the API secret key in the 'Authorization'
field"); the coding-plan endpoint the CLI itself uses is
`/v1/api/openplatform/coding_plan/remains`.
Z.ai's `glm-acp-agent` reads `Z_AI_API_KEY` and persists it to
`~/.config/glm-acp-agent/credentials.json` as `z_ai_api_key`. The source
looked for `ZAI_API_KEY` and `GLM_API_KEY` only, and never read the
credentials file.
Both keep their existing lookups working, so a configured environment
variable or the older `~/.mmx/` layout still resolves.
* fix(usage): narrow credential discovery repair to the verified GLM path
Keep the independently reproduced GLM discovery fix and isolate its file test from inherited XDG_CONFIG_HOME. Leave MiniMax quota routing for separate verification before changing existing API-key requests.
Co-authored-by: peanut_hzm <peanut_hzm@163.com>
* test(usage): isolate the legacy login locator from inherited credentials
---------
Co-authored-by: peanut_hzm <peanut_hzm@163.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* feat(highlight): highlight diff and patch fences and files
Register CodeMirror's legacy diff mode for .diff and .patch files and diff/patch code fences, mapping inserted/deleted tokens to diffAddition/diffDeletion roles and stripping legacy trailing-whitespace error prefixes so CodeMirror emits no unknown-tag warnings.
Co-authored-by: Hyacinthe Malaspina <malaspina.hyacinthe@gmail.com>
* feat(highlight): add Ruby syntax highlighting
Register @codemirror/legacy-modes ruby via StreamLanguage for rb, rbw, rake,
gemspec, ru, jbuilder, podspec and thor, plus extensionless Ruby files
(Gemfile, Rakefile, Guardfile, Capfile, Podfile, Vagrantfile, ...).
* feat(highlight): add Kotlin syntax highlighting for .kt/.kts files
Kotlin files previously rendered as plain text in diffs, the read-only
source panel, and the editor because the extension map in
@getpaseo/highlight had no entry for kt/kts. Register the kotlin stream
parser from @codemirror/legacy-modes/mode/clike, the same package already
used for Swift and Dart.
* test(highlight): assert Kotlin token styles in highlightCode
Follow-up to review feedback: the parsers tests only checked that
kt/kts are registered. Add a Kotlin case to the highlightCode suite,
mirroring the Swift and Dart cases, asserting keyword ('class', 'val'),
type ('String'), and string token styles. Fails on main without the
parser registration, passes with it.
* feat(highlight): add TOML syntax highlighting
* feat(highlight): add remaining legacy-mode languages and fence aliases
Register SQL, Lua, Protobuf, PowerShell, Groovy/Gradle, Scala, CMake (including CMakeLists.txt), Properties/INI, R, Perl, and LaTeX/TeX from @codemirror/legacy-modes, and add fence alias parity (including shell, ruby, kotlin, powershell/pwsh, protobuf, perl, and latex) in HighlightedCodeBlock.
Co-authored-by: Maxime Conan <maximeconan@MacBook-Pro-de-Maxime.local>
* fix(highlight): unify diff token colors and support binary diff frames
Append diffAddition and diffDeletion to DIFF_HIGHLIGHT_STYLES so Changes panel binary diff frames preserve diff colors for .diff/.patch files while older clients safely decode unknown indices as null. Unify syntaxTokenStyles onto theme.colors.syntax and tune light syntax theme diff colors to >=4.0:1 contrast on code surfaces.
---------
Co-authored-by: Hyacinthe Malaspina <malaspina.hyacinthe@gmail.com>
Co-authored-by: Karol Bąk <kukicola@gmail.com>
Co-authored-by: Anton Prokhorov <anton.prokhorov@jetbrains.com>
Co-authored-by: chandlerok <chandleroking@gmail.com>
Co-authored-by: Maxime Conan <maximeconan@MacBook-Pro-de-Maxime.local>
Workspace file drops already called focusInput(), but raster image drops went directly to addImages() and generic file drops only uploaded without focusing. Focus the composer when dropped images attach and as soon as dropped files are accepted for upload, so users can type right away without waiting for uploads to finish.
The PTY child finishing its write does not mean the worker has parsed those
bytes. On Windows, ConPTY renders before the worker reads, so the reconnect
snapshot can be cut before the last marker; that marker then reaches the
viewer as live output. Wait for it across the replay and the live output
that follows the replay end.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(plugins): prevent iOS PushNotificationIOS crash when plugins import react-native
Filter unsupported throwing getters (PushNotificationIOS, AsyncStorage, ImagePickerIOS, ProgressViewIOS, DatePickerIOS, Slider) and raw default from the react-native runtime exposed to client plugins, while preserving lazy property descriptors on safe exports.
Also replace eager Hermes CommonJS interop evaluation (value: from[key]) with per-key lazy getter closures (get: ((k) => () => from[k])(key)) in the server plugin compiler so namespace imports no longer evaluate unrelated host module getters.
Closes#10978
* fix(plugins): allowlist safe react-native exports for client plugins
Replace the react-native denylist in evaluate.ts with an explicit allowlist of cross-platform UI, layout, and animation exports (PLUGIN_REACT_NATIVE_EXPORTS) while preserving lazy property descriptors.
Add a wiring test verifying require('react-native') returns the allowlisted runtime object rather than the raw ReactNative namespace, plus a contract test verifying every allowlisted key exists as a non-deprecated, non-throwing getter in react-native/index.js.
* fix(plugins): retain SafeAreaView and InteractionManager in react-native allowlist
Keep SafeAreaView and InteractionManager in PLUGIN_REACT_NATIVE_EXPORTS so existing published plugins that import them from react-native (e.g. SafeAreaView insets and InteractionManager.runAfterInteractions) keep working on iOS, Android, and web. Both exports are safe cross-platform getters on iOS and react-native-web and remain lazy under the compiler's per-key getter interop.
Also harden the react-native/index.js getter contract test to assert the parser matched getters and that PushNotificationIOS stays excluded.
* fix(plugins): omit only PushNotificationIOS and default from plugin react-native runtime
Replace the 46-key react-native allowlist with copying all own enumerable descriptors from Object.keys(source) lazily while skipping only PushNotificationIOS and default. An audit of published plugins showed 14 plugins rely on react-native exports outside the allowlist (TurboModuleRegistry, NativeModules, UIManager, DeviceEventEmitter, AppRegistry, Clipboard, Settings, and RN-web render).
Keep the lazy per-key Hermes interop fix in compiler-build.ts, the require('react-native') wiring test, and the react-native/index.js enumerable getter contract test.
* feat(acp): make ACP catalog probing respectful and clean up Antigravity ACP hygiene
* fix(acp): address Windows CI failures and paseo-bot review findings
* refactor(acp): remove manual catalog mode and use on_demand for Antigravity
* fix(server): share Windows WinGet candidate resolution when findExecutable skips probing
* test(server): compare Windows PATHEXT casing case-insensitively in executable-resolution test
* fix(opencode): settle v2 turns from persisted session state and decouple stop from full history
OpenCode v2 disables durable event log persistence by default, so GET /api/experimental/session/:id/log returns only log.synced on live servers. Any missed terminal SSE event left SessionTurns unable to settle while the OpenCode server reported the session idle, causing Stop, send, reload, and rewind to fail with active run cancellation was not acknowledged.
In addition, SessionTurns.interrupt() awaited a full-history order=asc reconcileSnapshot() before releasing turn completion, exceeding AgentManager's cancel timeout on large sessions even when OpenCode stopped within milliseconds, and OpenCodeV2Session.consume() awaited HTTP reconciliations inside the SSE loop.
Reconcile missed terminal outcomes from OpenCode's persisted SessionInfo (outcome, time.idle, time.busy) and tail failure messages while keeping shutdown-resumable turns alive, settle interrupted and failed turns without blocking on history reload, switch live parent and child syncs to bounded descending tail reads, move reconnect and child reconciliations off the SSE reader loop, and add a 45s silent-stream reconnect watchdog.
* fix(opencode): settle unfinalized turns on Stop, bound poll, and clean up child queue
* fix(opencode): flush tail snapshot before turn_canceled and preserve tool turnId
* feat(agent-profiles): allow profiles to set a system prompt
Agent profiles can now store an optional creation-only systemPrompt field, surfaced in the profile editor with micro copy clarifying that it applies to new agents only.
Applying a profile in a draft composer passes systemPrompt into the created agent config without persisting it to FormPreferences, and clears it if the user later picks a raw model or another profile without one. Applying a profile to a running agent continues to omit systemPrompt.
Also exposes settings.systemPrompt on the create_agent MCP tool so orchestrating agents can forward a profile's systemPrompt from list_profiles, and adds a one-sentence description under the Agent profiles settings heading.
* fix(agent-profiles): preserve stored systemPrompt on older client edits
Match the existing options compatibility rule with a dated COMPAT(agentProfileSystemPrompt) shim: the daemon preserves a profile's stored systemPrompt when a client write omits the key, while newer clients always send systemPrompt (empty string clears it and omits the key on disk).
* feat(website): add Encore as a company sponsor
Encore's wordmark is bolder than Hoplite's lockup, so its SVGs pad the
official paths into a box that puts the "E" mark at the Hoplite mascot's
height on a shared baseline. Captions now wrap at 18rem and the row aligns
to the top, so a sponsor's sentence-length tagline wraps under its logo
instead of pushing other logos and the invitation onto new rows.
* docs(readme): top-align the sponsors row
Table cells center vertically by default, so a sponsor with a two-line caption sat higher than its neighbours. Top alignment keeps the logos level.
* feat(network-tunnel): add daemon binary TCP stream tunnel protocol and server
Adds the reusable multiplexed TCP stream tunnel primitive so desktop and future clients can proxy traffic through a remote daemon over a dedicated secondary binary WebSocket (direct TCP, SSH, or E2EE relay) without stalling control or terminal frames on the primary session.
- Dedicated secondary sockets authenticate with a single-use, 30s-TTL ticket minted on an authorized control session (workspace.write) and detach from WebSocketServer before entering binary mode so they never create a Session or receive control broadcasts.
- Destination policy resolves DNS once, fails closed if any record points to cloud metadata or link-local ranges (including IPv4-mapped IPv6), and dials the validated IP directly to prevent DNS rebinding while permitting loopback services.
- Stream and connection credit windows drive real TCP pause/resume and drain backpressure, refunding connection credit on abrupt stream close.
* feat(browser-proxy): route remote workspace browser tabs through host tunnel
Electron main keeps one fixed-port loopback SOCKS5 server per remote host behind an OS socket-owner check so Chromium's per-host partition (persist:paseo-browser-host-<hash>) never has to retarget proxy rules across tunnel reconnects, while the pooled binary WebSocket reconnects underneath.
Remote browser tabs fail closed and stay unmounted until Electron verifies session.resolveProxy(...) or the user explicitly switches to Local, preventing localhost requests on remote workspaces from silently hitting the local machine. Popups inherit the opener's session and proxied guests disable non-proxied WebRTC UDP so OAuth callbacks and media traffic stay isolated to the host partition.
* fix(browser-proxy): preserve tabs on reconnect, add tunnel liveness, warm win32 worker, reuse ssh proxy
Addresses review findings on PR #10944:
- Keep already-prepared host-routed webviews mounted with reconnecting status during transient host disconnects/reconnects instead of destroying the guest, and force-reconnect the pooled tunnel when the control connection comes back online.
- Add periodic client binary ping/pong heartbeats (15s ping / 30s silence timeout + dead-wire close on silent openStream timeout) and a 45s daemon TunnelSession liveness timeout so half-open tunnels recover and tear down upstream TCP sockets.
- Replace per-connection powershell.exe spawns on Windows with one persistent warm PowerShell worker caching PID owner checks for 10s, disposed cleanly on shutdown.
- Extract createSshProxy into packages/desktop/src/daemon/ssh-proxy.ts and share it between local-transport and browser-proxy.
* fix(browser-proxy): keep prepared host partition mounted across cached reconnect errors
* fix(browser-proxy): derive prepared routing pill status solely from live snapshot
* feat(browser-proxy): use compact host icon button with status dot in browser toolbar
* chore(i18n): remove unused workspace.browser.routing.local key
In a fork clone, origin is the fork and upstream is the base repository.
The GitHub service looked the pull request up in the base repository but
fetched refs/pull/N/head from origin first. When the fork had its own
pull request with the same number, that fetch succeeded, so the workspace
got the base pull request's branch name and the fork's commits.
The checkout refs now name only the remotes whose URL points at the
repository the pull request was looked up in. Without such a remote,
origin and then upstream are tried, as before.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The usage source ran `agy -p /usage` in the background on behalf of the
user. Google's Antigravity FAQ says headless mode is intended for direct
scripting and CI, and that wrapping agy inside third-party applications is
not supported on consumer plans and can lead to account suspension. A
maintainer reply in google-antigravity/antigravity-cli#1493 confirms that
driving `agy -p` from a third-party harness breaches the terms, with no
exception for personal use.
Remove the Antigravity usage source so Paseo no longer runs agy in headless
mode. The provider and the generic usage-source launch plumbing, used by
other plugins, are unchanged.
Co-authored-by: RoundRedDot <roundreddot@gmail.com>
* fix(app): keep a pressed model row under the pointer
Pressing a model row focuses it. The row's focus handler marked it as the
keyboard-active row, and the list then scrolled that row into view. When
the list had not yet reported which rows it shows, as on a slow machine
right after a provider opens, it centered the row. The row moved before
the button came up, and the click selected nothing.
Only keyboard focus (:focus-visible on web) now marks a row active, so a
press never scrolls the list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): keep model search focused when the model list scrolls on web
React Native Web blurs the focused input on every scroll when
keyboardDismissMode is on-drag. The reveal scroll after ArrowDown, or a
wheel scroll, moved focus out of the search field, and the sheet focus
trap put it on the Back button, so Enter went back instead of selecting.
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>
A run that Pi starts without a Paseo prompt (an extension message, a
process exit notice, an answered ask) had no turn id in the Pi session.
The agent manager gave it a synthetic id and steered with that id. The
Pi session compared the id with its own null id, refused the steer, and
the manager fell back to clear_queue + abort + prompt. So a message sent
with activeTurnBehavior "steer" aborted the running work.
The Pi session now names a self-started run with its own autonomous id,
reports it on turn_started, and accepts a steer for that id. Stop and
process exit use the same id, so their terminal events still match the
run. An idle agent still refuses the steer and gets a new run.
Fixes#10733
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: viiqswim <2517461+viiqswim@users.noreply.github.com>
Fixes#10934 and #10968. Removes the HeaderCopyButton.getContentDescription() override completely so AppCompatImageButton.<init> (and Samsung One UI's View.semSetHoverPopupType) never dispatches into uninitialized subclass fields, and sets View.contentDescription directly with recursive sync on copyLabel updates.
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
On Android, a mouse sends a click as DOWN, BUTTON_PRESS, BUTTON_RELEASE and UP.
Gesture handler's Tap ignores DOWN and UP from a mouse and waits for the BUTTON
events. Android delivers those through dispatchGenericMotionEvent, and
RNGestureHandlerRootView forwarded only hover events from there. A mouse click
on a Gesture.Tap row, such as a provider or model row in the wide model
picker, never fired.
Backport upstream react-native-gesture-handler#4265 (2.33.0) into the 2.32.0
patch: forward BUTTON_PRESS and BUTTON_RELEASE to the orchestrator, and start
the LongPress timer on BUTTON_PRESS.
Fixes#10744
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Each browser tab runs its own replica cache over one shared IndexedDB
database. When one tab ran over the 32 MiB budget it deleted a host's
rows, but only that tab knew. Another open tab kept writing workspace
and agent updates with its old checkpoint, so the database ended up with
a projects cursor and no project rows. A new tab trusted that cursor,
the daemon answered "no changes", and the sidebar showed no projects or
workspaces for the host.
The IndexedDB store now keeps a revision on each host's checkpoint. A
tab may write directory rows only while the stored revision matches the
one it last read or wrote, checked in the same transaction as the write.
Each write rotates the revision. A tab whose host was evicted or
rewritten by another tab has its directory writes dropped until a full
refresh replaces the baseline. Timeline writes are not affected.
Malformed-row repairs go through the same check.
Version 2 checkpoints could have been written by the cross-tab path, so
the checkpoint version moves to 3 and existing caches re-sync their
directory once.
Fixes#10206
Co-authored-by: Gtio <gtoxlili@outlook.com>
* feat(app): split client and host settings and consolidate sections
Previously, client-local host configuration (connection routes, sidebar appearance, removing a host from this device) lived under Host settings alongside daemon-owned configuration, while agent prompts, tools, skills, and lifecycle toggles were split across overlapping sections and several single-row app settings had standalone sidebar pages.
Separate Settings strictly by ownership:
- 'This device' owns client-local preferences plus a new 'Hosts' page (/settings/hosts and /settings/device-hosts/[serverId]) for saved hosts, connection routes, local sidebar appearance, and removing a host from this device.
- 'Host' owns daemon-scoped settings only: 'Tools & prompts' combines system prompt, Paseo/browser tools, and Paseo skills; 'Workspaces' combines auto-archive and metadata generation while 'Projects' stays dedicated to the project list; 'Daemon' owns daemon status, updates, agent runtime lifecycle (resume after restart, release idle agents), and restart.
- Collapse sparse app sections into General (+ CLI), Chat & panes (+ sending, open location, editor, terminal, conditional files, browser data), Notifications & access (+ permissions), and About (+ diagnostics), while keeping redirects for all legacy settings routes.
* fix(app): restore offline Workspaces card, prune unused wrappers, and update docs
* docs: update Settings paths across EN and zh-CN docs
* test(e2e): update remaining app and desktop settings section selectors
* test(desktop): update Settings destination labels in memory regression check
When a worktree directory is gone, the marker search walks up from its
path and stops at the first Paseo worktree above it. If the daemon home
lives inside another Paseo worktree, that search found the enclosing
worktree and reported it as the owner. Legacy restore then ran
`git worktree add` on the enclosing path and failed with "already
exists", and deleting the missing worktree removed the enclosing one.
A Paseo worktree that holds the worktrees root owns none of the
worktrees beneath it, so the marker search now ignores it and the path
under the worktrees root decides ownership.
Closes#10745
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(push): filter daemon push notifications per device token preferences
Persist per-token notification preferences alongside push token leases and filter agent, terminal, and plugin push deliveries per device. Agent error attention is now push-eligible and governed by per-device preferences instead of hardcoded off, while default preferences suppress finished turn pushes and keep permission, error, terminal needs-input, and plugin notifications active.
* feat(app): add cross-platform notification preferences UI and client filtering
Persist per-device NotificationPreferences in AppSettings, sync preferences with mobile push token registrations on capable hosts, filter desktop and web OS notifications locally (allowing error notifications by default and suppressing finished turns until enabled), and expose Settings -> Notifications across desktop, web, iOS, and Android with per-plugin mute switches covering both client and server-only plugins.
* feat(plugins): add plugin notification send API and tap routing
Expose server.notifications.send and client.onNotificationOpen in @getpaseo/plugin so server plugins can deliver deduplicated, rate-limited notifications through Paseo's session and Expo push pipeline while honoring per-device notification preferences and per-plugin mute switches. Tapping a plugin notification waits for the host's plugin catalog on cold launch before running client.onNotificationOpen or falling back to declarative agent, workspace, or screen open targets.
* docs(plugins): add Chinese translation for notifications reference
* fix(plugins): keep catalog loading before server_info and simplify push seams
* fix(plugins): align notifications example Paseo requirement with current daemon version
* fix: harden notification preferences compatibility and plugin notifications
- Preserve legacy push filtering for mobile push tokens registered without explicit preferences so older mobile apps keep receiving agent finished pushes (tagged COMPAT(pushNotificationPreferences))
- Truncate over-limit plugin notification title (160 chars) and body (500 chars) instead of rejecting, and bound declarative open target IDs and serialized size
- Skip subscribing native mobile sessions to plugin.notification so active phones do not suppress their own Expo push alerts
- Restore >=0.18.0-beta.1 Paseo version requirement on plugin-examples/notifications and test against 0.18.0-beta.1 in runtime.posix.test.ts
- Fall back to declarative open when every client.onNotificationOpen handler throws, keep host notification taps on router.navigate, deduplicate PluginHostNavigationActions in @getpaseo/plugin, and strengthen the muted-plugin browser E2E check
* test(server): pass explicit default preferences in websocket push filter tests
* fix(workspace): eliminate flashes and show unarchiving state on restore
Unarchiving a workspace previously broadcast workspace_update before its archived agents finished unarchiving, emitted spurious agent_update(remove) deltas for archived agents, and dropped the Restoring screen before tabs and chat timelines settled—causing the archived-agent callout and multiple loading spinners to flash before the chat stabilized.
Defer workspace publication with token-scoped holds until workspace-archived agents finish unarchiving and their agent_update messages flush; track positive directory membership in AgentUpdatesService and suppress intermediate close broadcasts during unarchiveSnapshot; hold the Restoring overlay in an isolated stacking context until auto-open agent tabs and visible agent timelines settle; keep already-ready archived chats mounted without reverting to boot; and display an inline Unarchiving... state during both single-agent unarchive and mid-teardown workspace undo without mislabeling pre-archived agents.
* fix(server): keep mid-teardown undo visible in directory reads and update stubs
Split deferBroadcast from isPublicationDeferred so a mid-teardown archive undo holds workspace_update emission until all agents finish unarchiving without hiding the already-active workspace from WorkspaceDirectory reads for other clients.
Update createStub<WorkspaceRegistry> test harnesses with the deferral methods and seed the tracked agent in session.workspaces.test.ts before clearing its workspaceId.
* test(server): seed matching label before asserting filtered agent removal
With positive directory membership in AgentUpdatesService, filtered agent subscriptions only emit remove when an agent that was previously included leaves the filter.
* feat(app): support arrow-key navigation in the model picker
ModelBrowser renders profiles, providers, and models as custom children inside Combobox (with an empty options array) and AdaptiveModalSheet, so arrow keys were swallowed by Combobox on wide layouts and ignored in the folded sheet.
Add a pure navigation model in ModelBrowser for profiles, providers, models, and search results, delegate overlay keys from Combobox and AdaptiveModalSheet, scroll active rows into view on explicit keyboard movement without clipping the pinned Profiles header on open, and stabilize DesktopComboboxBody's floating callback ref so Combobox re-renders do not re-register the overlay scope and steal focus onto the Back button.
* fix(app): unify model browser projection and skip native initial highlight
* fix(app): share FlatList scroll reveal and honor native hardware keyboards
* fix(linux): strip AppImage runtime env from shells and child processes
The Linux AppImage wrapper exports APPIMAGE, APPDIR, ARGV0, and OWD and prepends $APPDIR paths before launching Electron. That environment leaked through Desktop's login-shell probe, the daemon launcher, and external child builders, causing zsh to override argv[0] for external commands and breaking tools like mise and systemctl aliases.
Add a shared Linux-only stripAppImageRuntimeEnv helper and apply it at the login-shell probe, daemon launch, server external process, and Desktop editor-target boundaries while leaving process.env.APPIMAGE intact in Electron main for auto-updates and CLI installation.
* fix(desktop): strip AppImage runtime env from SSH transport spawns
Electron main intentionally retains AppImage environment variables for auto-updates and CLI symlinking, so spawning ssh without an explicit env passed ARGV0 and $APPDIR paths into OpenSSH ProxyCommand/ProxyJump shell invocations.
* chore: export stripAppImageRuntimeEnv solely from @getpaseo/server/process
Drop the duplicate re-export from @getpaseo/server/daemon-control and run the platform-parameterized config-environment AppImage tests on all OSes.
In pair-device-relay.spec.ts, slowConnectionToHost left delayed WebSocket frames in its queue after restoreSpeed() ran, and disableTailscale returned once the Tailscale listener closed before the browser received daemon.tailscale.set.response. Under CI load, enableTailscale could run while the prior change was still in flight.
Wait for the Tailscale switch to return to the enabled state in enableTailscale and disableTailscale, flush queued WebSocket frames when restoring speed, and verify slow-connection off-then-on toggling in pair-device-relay.spec.ts. (PR #10903 already disabled the Tailscale switch in app code while a toggle is pending.)
A rewind mints a new timeline epoch on the daemon. A client that misses the
agent.timeline.replacement invalidation then sees every subsequent live row in
the new epoch, and the sequencing gate dropped those rows with no recovery: the
chat stayed on pre-rewind history forever while the new epoch streamed.
Treat an epoch mismatch on a live row like a sequence gap. The app asks for
catch-up from its own cursor, the daemon answers a stale-epoch request with a
reset tail, and the existing destructive replacement installs current history.
The seq 1 fast path stays as is.
* feat(devices): add Refresh button for Tailscale availability
When Tailscale is unavailable, waiting to start, or fails its status check in Host Settings -> Devices or Setup -> Mobile, show a Refresh button so users can install or start Tailscale in place and continue without restarting Paseo or leaving the screen.
On the daemon side, live interface detection via os.networkInterfaces() already re-probes on every daemon.get_status.request without caching, but extra listeners in the waiting state waited for their 2-second retry timer before re-attempting bind. Refreshing daemon status now re-probes waiting listeners immediately before reporting status.
On the app side, enable refetchOnWindowFocus for Tailscale status, separate manual Refresh state from background polling so polling does not flicker the button, surface manual refresh failures even when a previous status is loaded, and make refresh and toggle actions mutually exclusive.
* test(e2e): verify Refresh triggers status request ahead of poll
* test(terminal): batch writes in ten-thousand-row history test
Matches #10683: Windows ConPTY timed out at 15s while writing 12,050 rows one write at a time under parallel test load. Batching in 256-row chunks produces the identical terminal output and assertions.
* ui(devices): use circular icon button for Tailscale refresh
Replace the text-labeled Refresh pill with a circular outline icon button (with desktop tooltip and localized accessibilityLabel) so the Tailscale row stays quieter and fits on one line beside the switch on 390px compact viewports.
* ui(devices): drop Relay Recommended badge and lead subtitle with No setup
* test(website): drive code review scene clock explicitly
Matches #10808: headless WebKit on CI paints slowly, so the code review scene missed its 10s wall-clock timeout under the 64ms/frame cap. Use openHomepageWithSceneClock, page.clock.runFor, and finishPanelSwap like the sibling scene tests.
The test starts the daemon twice, archives four times, and restores twice.
On Windows CI it took 18 to 46 seconds on green main runs and timed out at
60 seconds on main run 45734061560, where every test in the file ran about
twice as slow.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* feat(desktop): pace stable updates with a canary, a check interval, and a cooldown
Stable releases now ship once or twice a day from main. The old client
checked every 30 minutes, used one fixed rollout bucket per install, and
ramped linearly over 36 hours. With daily releases that prompted the same
installs first every time, never reached the installs with a high bucket
before the next release replaced it, and put a bad release on a large share
of installs overnight.
Automatic stable updates are now paced on the client, with no server state:
- An automatic check runs at most once every 6 hours. The time of the last
check is stored, so a restart does not reset it.
- The rollout bucket is salted with the release version, so each release
draws a different first group.
- A release holds at 5% of installs for a canary period, then ramps to 100%.
The default rollout is 18 hours.
- After the app moves to a newer version, automatic updates wait 72 hours
before the next paced release.
- A downloaded build keeps its place when the next paced release appears,
so a session that outlives a release still installs something at quit.
Every pacing decision fails open, because an install that cannot update
itself can only be repaired by a manual download. Missing, damaged, or
unwritable state, a clock that moved, a failed check, and any unexpected
error all answer "check now" and "admit". A manual check skips every gate.
A release with rollout_hours=0 skips the curve, the cooldown, and the hold
of a downloaded build. Beta is not paced.
docs/release.md gains the runbook to halt a release and to ship a fix.
* docs(desktop): state that a minor release ends the staged-update hold
Version numbers cannot show whether a fix shipped between a staged patch and
the next minor release, so the hold treats a minor or major release as a
missed release. The runbook now says so and a test pins it.
A plugin provider's connection negotiates permission.tool_policy, so the
registry lets a toolPolicy through. When the connection does not offer it,
ProviderRuntime.openSession threw a plain Error, which Hub reported as
create_failed instead of tool_policy_unsupported. It now throws
ToolPolicyUnsupportedError before sending session.open.
The create_agent `background` description told agents to use it for
helpers the user does not need to watch, so they passed `background: true`
on their own and the subagents disappeared from the UI. Both tool
descriptions and the bundled skill now state what the flag does and that
it is omitted unless the user asks, with no reasoning to latch onto.
* feat(desktop): add automatic update modes and download progress
Give desktop users control over background updater network traffic with a persisted updates.mode setting (automatic, notify, off; default automatic).
Enforce off and notify behavior in the Electron main process as well as the renderer so automatic checks never leave the machine when opted out, quit-time installs only run in automatic mode, and explicit downloads stream live progress to both the OS window progress bar and the in-app UI.
* fix(desktop): harden update mode races, installer errors, and shared UI state
Address review findings across the desktop updater and settings store:
- Re-evaluate the saved updates.mode before authorizing background downloads during an in-flight manifest check.
- Serialize read-merge-write operations in the desktop settings store so overlapping patches cannot overwrite each other.
- Capture synchronous installer launch errors from quitAndInstall and report failures on both cached and downloaded install paths.
- Share updater state across Settings and the sidebar callout and guard against duplicate install commands and stale download loops.
* fix(desktop): gate queued update checks and await macOS install handoff
* fix(desktop): preserve quit-lifecycle handoff deadline on macOS
* fix(desktop): consolidate update mode ownership and harden settings fallback
* fix(desktop): read update mode after rollout bucket lookup
Settings → host → Devices replaces Pair a device. It keeps relay pairing and adds a Tailscale switch that shows the address to enter on another device. The phone step in setup has the same switch.
daemon.listen accepts a comma-separated list when the first entry is a network address. The first entry is the main listener and still needs a restart to change. Extra entries are TCP listeners that the daemon adds, removes, and retries while it runs. A Unix socket or named pipe stays one literal path.
Older hosts show an update prompt, gated on server_info.features.tailscale.
Refs #5264
* fix(app): keep Android chat long-press selection from leaving the magnifier stuck
On Android, long-pressing assistant Markdown prose and dragging vertically showed the system magnifier, then let the parent chat ScrollView steal the gesture and dispatch ACTION_CANCEL. Because AOSP's Editor.SelectionModifierCursorController.onTouchEvent handles ACTION_UP but not ACTION_CANCEL, dismissMagnifier() was never called and the magnifier stayed stuck on screen while scrolling.
The trigger was reallowParentInterceptIfLinkReleased() in the vendored react-native-enriched-markdown package calling parent.requestDisallowInterceptTouchEvent(false) on every non-ACTION_DOWN event whenever no link was active, undoing Editor's disallow-intercept claim on the first ACTION_MOVE.
Backport software-mansion/enriched-markdown#1012 so LinkLongPressMovementMethod owns parent intercept disallow/release only for link/image/code-block presses it initiated, and keep Editor's disallow intact if selection started during the touch before touch slop was exceeded.
* fix(app): release parent intercept when a checkbox gesture cancels on Android
Removing reallowParentInterceptIfLinkReleased() left CheckboxTouchHelper's parent.requestDisallowInterceptTouchEvent(true) uncleared when a swipe starting on a task checkbox exceeded touch slop (such as checkboxes inside quoted lists where BlockquoteContainerView leaves checkbox hit-testing enabled).
Move parent-intercept claim/release into CheckboxTouchHelper symmetrically to LinkLongPressMovementMethod so it releases its own claim on slop exceeded, ACTION_UP, ACTION_CANCEL, or when disabled. Also update the table test to dispatch a horizontal drag through an intact overflowing TableContainerView and add a ScrollView regression test for vertical swipes starting on a checkbox.
* test(terminal): reduce PTY output needed to exercise socket overflow
The terminal must finish writing before the stalled controller resumes. Use enough output to force the 4 MiB queue limit while reducing the load on Windows runners.
* test(terminal): assert both markers survive socket overflow
Write the overflow burst to the alternate screen so it does not scroll the startup marker out of the replay window. Use distinct markers to exercise replay across the disconnect.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(app): keep sheet footer safe-area clearance in lockstep with keyboard transitions
Bottom sheet visible height and bottom safe-area clearance were owned by two
separate keyboard signals on different threads: SheetVisibleFrame shrunk and
restored height on the UI thread from Gorhom's animatedKeyboardState (driven by
React Native Keyboard events), while AdaptiveModalSheet toggled
footerPaddingBottom on the JS thread from useKeyboardVisibility (driven by
react-native-keyboard-controller's keyboardWillShow and keyboardDidHide).
On keyboard close, SheetVisibleFrame restored full height at animation start
while footerPaddingBottom stayed 0 until keyboardDidHide fired after the
animation ended (~200ms later), leaving the footer visibly behind the system
navigation bar before snapping back up. On Android open, SheetVisibleFrame
shrank before the JS commit cleared safe-area padding, producing a 1-frame
upward overshoot by the nav-bar inset.
Move bottom safe-area clearance into SheetVisibleFrame (and a shared UI-thread
hook for scrollable footerless bodies) using the same effective keyboard height
that sizes the frame, keeping height and paddingBottom atomic in one commit and
removing the now-unused useKeyboardVisibility hook and sheet layout helper.
* test(app): replace JSDOM visible-frame test with Android frame-by-frame regression check
Removes the JSDOM + module-mock test in visible-frame.test.tsx per docs/testing.md
and adds a native Android screenrecord regression runner and frame analyzer under
packages/app/e2e/mobile/modal-sheet/ that verifies every frame of the Add project
footer across keyboard show/hide cycles (catching both the behind-nav-bar drop on
dismiss and the 1-frame upward overshoot on open on the parent commit).
* test(app): check absolute nav-bar clearance and keep device settings untouched in sheet footer QA script
* fix(app): drag agent profiles on phones and tidy their rows
On a phone, holding a profile's grip and dragging scrolled the page instead
of moving the row. A native drag arms after a short hold and asks the nearest
scroll view to stop scrolling through the content-drag context, but only the
sheet scroll view provided that context. Usage cards live in a sheet, so they
dragged; agent profiles live on a page, so the page scroll took the touch past
the touch slop before the list's pan activated. Page scroll views now host
content drags too (withContentDrag, used by ScrollView outside a sheet and by
PageLayout). docs/drag-reorder.md records the pattern.
Settings rows with a long summary, such as the profile sheet's options row,
grew several lines tall on a phone: the label column has a zero flex basis, so
the summary squeezed it and the label wrapped. A label-only row now keeps the
label's width and truncates the summary in the remaining space.
Profile rows hang the grip in the leading padding like a Usage card, keep the
kebab on the trailing rail, and drop the repeated provider icon and the
chevron from the stacked phone layout.
* fix(app): keep scroll children intact and summaries beside their chevrons
The content-drag context sat between a scroll view and its children, so a
native scroll view saw one child and stickyHeaderIndices pinned nothing. The
context now wraps the scroll view instead. Content drag gets its own module,
content-drag.tsx, with one withContentDrag for both page and sheet scroll
views, so the browser tests can lock the scroll lock and the child pass-through.
A label-only settings row whose label column reached its 75% cap left the rest
of the row to space-between, which pushed short summaries and controls away
from the chevron on wide pages. The column's auto right margin now takes it.
* feat(app): select sidebar workspaces with Cmd/Ctrl+click and Finder-style Shift ranges
Cmd+click on macOS/iOS (Ctrl+click on Windows, Linux and Android) now enters
select mode on the clicked row and toggles rows without opening them, matching
Shift+click entry. The first modifier click selects only the clicked row and
never includes the open workspace, so starting a bulk archive from another row
cannot mark the workspace you are reading.
Shift+click now rebuilds the range from the anchor on every click instead of
only adding to it, so a closer Shift+click shrinks the range and crossing the
anchor flips it. Rows picked before the current Shift run are kept, and a
Cmd/Ctrl or plain click moves the anchor and commits the range.
The primary modifier follows the shortcut layer's `mod` (Meta on mac, Control
elsewhere) because Ctrl+click on macOS is the secondary click. The held-key
tracker now follows Cmd and Ctrl as well as Shift, since native responder
events from a hardware keyboard carry no modifier flags. Both sidebar lists
share one press hook instead of duplicating the routing.
* fix(app): select on the first tap after a scroll or long press in the sidebar
A scroll, swipe, drag, or long-press menu on a workspace row sets the row's
long-press flag, and only the drag interaction's press-in clears it. Modifier
taps and select-mode taps skip that press-in, so the stale flag swallowed the
next Shift/Cmd/Ctrl tap on native hardware keyboards, and the next plain tap
in select mode. Those presses never arm the long-press gesture, so the
selection press hook now clears the flag when it takes the press-in.
* fix(app): keep web context-menu rows clickable after a held press
On web, ContextMenuTrigger always handed react-native-web an onLongPress,
even though the web menu opens on right-click and the handler did nothing
there. With any onLongPress set, react-native-web marks a press held past
the long-press delay as a long press and cancels the click that ends it.
Only the next responder grant clears that mark, and react-native-web grants
none to Ctrl or Alt mousedowns. So a slow click on a sidebar row did not open
it, and on Windows/Linux the next Ctrl+click on that row was dropped too.
On web the trigger now passes only the caller's onLongPress.
* fix(app): stop selecting presses from reading the row's long-press flag
The selection press path cleared and honored the row's long-press flag, but
only the drag interaction's press-in resets that flag. A Ctrl+click on web
gets no press-in, so a flag left by an earlier touch swipe or scroll on the
row swallowed it. Selecting presses never arm the long-press gesture, and a
native long press already cancels the press, so the selection path no longer
reads the flag at all. Navigation keeps its own guard.
* fix(server): keep a restarted plugin's agent tools on live sessions
A plugin restart (reload, update) gives the plugin a new instance id.
Tools attached to an open session are stamped with the old one, so
getPluginTools filters them out and the agent MCP neither lists nor
serves them ("Tool ... not found"). They came back only when the session
reopened, which happens before a prompt to an idle agent; messages to a
busy agent are steered or replace the run on the stale session, so a
busy agent could go without its plugin tools for as long as it stayed
busy.
The agent MCP now reattaches them before it builds a request's catalog:
AgentManager remembers the request a session opened with, and for
plugins whose instance changed it replays agent.open.before to those
plugins only and keeps only the tools they return. Env and MCP server
changes still wait for the reopen, which is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(server): keep stopped plugins eligible and guard tool replays
- A plugin that is stopped or mid-restart during an MCP request keeps its old
attachment, so a later request retries it instead of losing its tools.
- A reopen waits for an in-flight replay, so the replay cannot overwrite the
reopen's tool definitions inside the plugin process.
- Refreshed tools that collide with a Paseo tool or another plugin's tool are
dropped for that plugin instead of breaking the agent's whole catalog.
* fix(server): retry a plugin whose tool replay failed
A failed replay is left out of the result like a stopped plugin, so the
agent's next MCP request retries it instead of dropping its tools until the
session reopens. The reopen race test now waits for the replay to reach its
gate before it starts the reopen.
* fix(server): replay a restarted plugin's open once per instance, as refresh
A replay whose hook threw or timed out ran again on every agent MCP
request, so each Paseo tool call waited on the broken plugin. The
runtime now remembers the instance that failed and replays it only
after the next restart.
The replay now arrives with reason "refresh", like the idle reopen the
same restart causes, so plugins no longer see "create" again.
An open waits until no replay is pending before it detaches, and a
replay that outlives its session detaches only the plugins it replayed.
Co-authored-by: Tom Gringauz <17593920+tomgrin10@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(server): keep no replay failure record for a closed agent
The replay takes the agent's record when it starts and writes a failure
into that record. Closing the agent drops it, so a replay that fails
afterwards no longer leaves an entry behind.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(plugins): say native-tool agents keep launch-time tools until the reopen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(server): reserve provider-disabled Paseo tool names in a tool replay
A replayed plugin tool named after a Paseo tool that the agent's provider
disables was accepted, and every later agent MCP request then failed on
the plugin collision check. The replay now builds its reserved names with
an all-enabled policy, the same names that check reserves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(server): reopen only sessions a plugin change affects
A plugin reload bumped one global session-open generation, so every live
agent reopened at its next idle prompt. The reopen closes the provider
session, cancels its subagents and clears background work, even for agents
the plugin never touched.
SessionAttachments now owns what each agent.open.before plugin contributed
to each live session. A refresh reruns only the plugins whose instance
changed, swaps their tools in place, and marks the session stale only when
its launch would differ. This replaces the AgentManager maps, the runtime's
failed-replay record, and the global generation. Native-tool providers
resolve plugin tools by name at call time, so their calls reach the new
instance.
* fix(server): compare plugin refreshes with the running launch
A plugin refresh decided staleness against the last refresh with a sticky
flag, so reverting a tool edit still reopened the session. A failed reopen
also deleted the session's plugin record while the old provider session kept
running, which left it without any plugin tools.
SessionAttachments now keeps the contributions the session launched with as
the baseline and works out staleness against it on every refresh. A failed
rerun or collision is kept on that plugin's contribution. A failed open keeps
the running session's record and marks its plugins for reattach on the next
refresh.
A launch-time native catalog entry now resolves the tool by plugin id and
name, so a different plugin that took the name is never called.
* fix(server): make a plugin open the baseline only once its launch takes over
A reopen whose plugin hooks succeed can still fail launch validation: a
plugin tool that takes a Paseo tool name, or an MCP server on a provider
without MCP support. The open had already replaced the session's record, so
the session lost its plugin tools, or kept a record for a launch that never
ran, and the next idle prompt did not retry.
An interactive open now stays pending until registerSession reports that the
provider launch took over. A launch that fails before then discards the
pending open, and the still-running session keeps its record. Its plugins
attach their tools again on the next refresh, and each idle prompt retries
the reopen.
* fix(server): discard a reload's plugin open on every pre-takeover rejection
resolveProviderLaunchConfig rejects a plugin MCP server that takes a saved
server name after the open is staged, and nothing discarded the staged open.
The reload now resolves and validates its launch config in one scope that
discards the staged open on any rejection, so the running session keeps its
plugin tools and the next idle prompt retries the reopen.
* fix(server): keep a tool name with its owner when a refresh replays every plugin
After a rejected reopen, every plugin replays on the next refresh, and the
collision check gave a contested name to whichever plugin sorted first. A name
now stays with the plugin that has it in the session's record, as long as that
plugin still returns the tool.
* fix(server): rerun a refreshed plugin callback with the agent's current metadata
A plugin reload used to reopen every session, so its callback saw the agent's
current title, workspace, labels, and metadata. A refresh now replays the
recorded open request instead, so a hook that filters on metadata set after
launch kept returning nothing. The refresh now overlays those agent fields,
which plugins cannot change, on the recorded request.
* fix(server): replay the plugin chain in order, hold refreshes over a plugin restart, and roll back every failed launch's plugin open
- A cached plugin contribution is reused only when its instance and the env and instructions it received still match; otherwise the plugin reruns in open order and the composed launch is compared with the running one.
- A plugin reload or source update publishes one settled change: a session refresh waits for the restart instead of reading the stop as removal.
- Create, resume, import, and reopen share one launch boundary: the pending plugin open commits when registerSession admits the agent and is discarded when the launch throws before that.
* fix(server): decide a plugin reopen from the same launch the open builds
The open and the refresh now compose the launch with one function. The staleness check compares which plugin provides each tool, so a native-tool catalog bound to a removed plugin reopens, and a proposed launch with an MCP server name collision counts as changed, so the reopen reports it.
* fix(server): reserve only Paseo's own tool names when a plugin refresh checks collisions
The agent's catalog also lists its plugin tools, so a later plugin rerun by an earlier plugin's edit saw its own tool as taken and lost it. The session owner settles names between plugins from its record. The hooks reference now says an MCP server name collision fails the reopen without hiding tools.
* fix(plugins): let a refreshed plugin's running tool calls finish
The plugin process detached the session's tools at the start of every agent.open.before, which aborted calls already running. Attaching replaces the definitions for later calls; the daemon still detaches before an open that replaces the provider session.
---------
Co-authored-by: Tom Gringauz <17593920+tomgrin10@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: paseo-bot[bot] <paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
* fix(app): return focus to the composer after choosing a New Workspace field
A closing picker restored focus to whatever had focus when it opened. Opening
the project picker by clicking its trigger left focus on the trigger after a
keyboard pick, and every later Cmd/Ctrl+N pick captured the trigger again, so
the user had to click back into the prompt.
The New Workspace form now passes the composer as the restore target for its
pickers. The overlay accepts any handle with focus() as a restore target, so
the composer's own retrying focus can be used instead of a raw DOM element.
* fix(app): keep focus on the field when the terminal profile takes no prompt
A terminal profile without a prompt shows a read-only command preview, so there
is nothing to type into. Its pickers now fall back to returning focus to the
field that opened them instead of losing focus to the preview.
* feat(app): select multiple sidebar workspaces to archive together
Let users enter workspace select mode from Shift+click/tap or the row menu, toggle additional rows with plain clicks without holding Shift, extend ranges with Shift+click, and archive all selected workspaces in one batch with a single worktree warning and undo toast.
Tracks live hardware Shift state in the keyboard pipeline (clearing on blur and AppState backgrounding) so Shift+tap and Shift+click also work on native tablets with hardware keyboards where Pressable responder events omit shiftKey. Adds an action layout variant on ToastCard so pill controls inside action toasts share concentric padding and radius.
* fix(app): preserve batch undo and selection ownership during bulk archive
Keep workspace.archive bound for the full lifetime of sidebar select mode so pressing it at 0 selected or during a worktree check does not fall through to archive the open workspace.
On partial archive failures, update the open UndoWindow toast in place with error styling and the failure message instead of calling toast.error, so Undo and Cmd/Ctrl+Z remain available for succeeded workspaces and their layout state is not purged early.
Guard isArchiving cleanup with a per-attempt token so an earlier batch cannot unlock a newer batch's worktree check, and read the active workspace lazily at redirect time rather than capturing it at submission.
* fix(app): stack sidebar selection bar below toasts and protect newer undo
Keep the sidebar selection bar visible alongside active transient toasts (such as Undo or error toasts) by rendering both slots in ToastViewport's sidebar stack instead of hiding the persistent bar while a transient toast is open.
Route late archive errors from a superseded batch to the app-level toast when a newer batch holds an open Undo window, so an older failure does not replace the active Undo toast or purge the newer batch's layout state.
* fix(app): toggle focused sidebar workspace checkboxes with Space on web
React Native Web's Pressable activates Space only for role='button', not role='checkbox'. Handle Space on focused checkbox rows in SidebarWorkspaceContextMenu so keyboard users can toggle rows in either sidebar grouping.
* fix(app): ignore repeated Space keydown on focused workspace checkboxes
* fix(app): keep Escape owned by select mode during worktree checks
* fix(website): stabilize scene and keyboard language checks
Drive scene frames explicitly so sparse browser paints do not consume the test deadline. Let the landing page commit a locale change while its optional plugin count loads.
* test(website): advance the plugin panel crossfade before asserting removal
* test(website): settle native animations during the plugin panel swap
Playwright advances JavaScript frames, while the browser keeps a separate timeline for native animations. Finish the mockup’s finite native animations at the panel checkpoint so either animation path removes the outgoing panel.
* docs(skills): teach the current plugin API in the paseo-plugin skill
The skill still taught server.on and server.before, a deprecated panel
context, and an older publishing rule. It linked to hook anchors that
moved to the hooks page, and it had no entry for half of the shipped
contributions. Its RPC example imported a contract that the shared file
did not export.
The skill now indexes every public registration and links to the
reference section that owns its contract. It keeps a few complete
examples. Every ts and tsx block in the skill names its file, and the
blocks under each heading must typecheck as one plugin against the SDK,
so an example cannot drift from the API without a failing test.
* docs(skills): match the plugin skill RPC example to the scaffold and run its tests in CI
The RPC example used names that the generated client entry does not import, and it had no client entry. A PR that changed only the skill also skipped the SDK tests that typecheck its examples.
* docs(skills): keep the generated client entry in the plugin skill RPC example
Replacing index.client.tsx with a screen-only entry removed the scaffold's
Greeting sidebar item, which is the only control that opens the screen.
* docs(skills): say that npm plugins declare build for generated files
Paseo installs npm plugins with lifecycle scripts disabled, so a postinstall
step never runs.
With the left sidebar collapsed, every content header renders
SidebarMenuToggle in its leading slot. On macOS it is a blank space
under the toggle the window draws beside the traffic lights; on
Windows and Linux it is the toggle itself. The plugin screen header
built its own left side without it, so on macOS the floating toggle
sat on top of the title, and on Windows and Linux the screen had no
toggle to reopen the sidebar.
* fix(opencode): clear deleted subagents from the track
Handle provider deletion events before fetching the missing session, and reconcile removals after complete parent listings so reconnects also clear stale rows. Keep descendant cleanup scoped to the deleted child.
* fix(opencode): retain live subagents skipped during reconnect
* fix(opencode): reconcile skipped subagent descendants
* fix(opencode): restore live subagents after reconnect
A deleted child rejects environment restoration before reconnect can clean up its row. Let the child tracker remove confirmed deletions and continue restoring live descendants.
* fix(opencode): clear deleted subagents after reconnect
Let the OpenCode SDK decode missing-session responses in both runtimes. The child tracker can then remove the stale row and restore the live children when it reconnects.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* feat(app): redesign agent profiles settings, inspector drawer, and 1-tap composer creation
Promote Host -> Agent profiles to its own settings section with a searchable 3-column roster and slide-over inspector drawer, eliminate async layout jump when provider options load, and make composer model picker '+' save, select, and toast with Edit and Undo.
- Seed cached host provider catalogs synchronously and retain same-provider controls while refetching so the form no longer collapses and jumps when switching models or modes.
- Keep form session state above drawer/modal framing so resizing across breakpoints preserves unsaved edits, and render the drawer as a right-edge overlay below 1320px pane width so opening a profile never crushes or reflows table rows.
- Reuse Paseo's SearchField, CombinedModelSelector, SettingsCard, SettingsSwitch, SettingsCollapsibleRow, SegmentedControl, ToolbarButton, DismissBackdrop, WindowChromeRegion, and ToastHost across all surfaces.
* fix(app): preserve remounted drafts, guard duplicate, and serialize profile writes
Seed profile FormTextInput fields from the live session draft so drawer-to-modal resizes and collapsible toggles display the values Save will write. Share one confirmDiscardIfDirty guard between editor transitions and Duplicate. Serialize host profile mutations through a per-host queue in useAgentProfiles so overlapping composer quick-creates and Undo compose against the latest stored list.
* fix(app): keep profile editor across compact settings and Remove cancel
Unify compact and desktop Settings detail pane wrappers into SettingsDetailPane so resizing across the 600px compact breakpoint never unmounts HostAgentProfilesPage or drops an active edit session. Remove the premature onClose() call from AgentProfileEditModal's Remove handler so the caller closes the modal only after confirmation and deletion succeed.
* fix(app): allow roster search with docked drawer and guard Settings exits
Pass manageFocus: overlay to useOverlayRegistration in AgentProfileDrawer so slide-over overlays trap focus while docked drawers keep Escape handling and allow typing in roster search. Add a before-leave guard hook in SettingsScreen wired to AgentProfilesPage's confirmDiscardIfDirty so sidebar section switches, host switches, and back navigation prompt before discarding an unsaved profile draft.
* fix(app): guard browser Back and route removal on unsaved profile draft
Add navigation/route-leave-guard so web popstate events are intercepted before Expo Router's createMemoryHistory resets the root navigator, plus beforeRemove handling for native swipe-back and hardware Back. Canceling restores the history entry and keeps both route and draft; confirming replays the exit cleanly.
* fix(app): preserve intervening history on canceled multi-step Back jumps
Track ordered Expo Router history entry IDs in route-leave-guard instead of restoring via pushState. Canceling any Back/Forward traversal now reverts via history.go(delta) without truncating intervening or forward entries, and confirming replays popstate at the browser's exact selected destination.
* fix(app): restore Back-jump URL after reload and compute dirty from resolved defaults
Persist the tab's ordered history entry IDs in sessionStorage and verify the target entry ID when reverting a canceled popstate traversal, so canceling a multi-step Back jump after a page reload always restores the exact editor URL. Move isDirty into profile-form-model against the resolved initial baseline after catalog defaults hydrate so opening an untouched provider-and-model-only profile closes without a discard prompt.
* fix(app): dismiss profile-saved toast when its composer unmounts
Scope the composer's profile-saved toast to the lifetime of useAgentProfileEditor so closing an agent tab dismisses the toast instead of leaving a dead Edit action.
* fix(app): scope save completion close to the editor session that started it
Skip onSaved when useAgentProfileFormSession has unmounted mid-save, and guard handleSavedClose and composer handleSave by session key/request identity so switching to another profile during a slow save never closes the next profile's draft.
* fix(app): unify delayed editor transitions behind a session token
Track a monotonic editor session token in AgentProfilesPage and route delayed open/close transitions (Save completion, Duplicate completion, and async discard confirmation) through applyDelayedEditTarget so a slow Duplicate updates the roster without replacing a newer profile draft.
* fix(app): track draft revision so post-confirm edits veto delayed Duplicate
Add draftRevision to AgentProfileFormState and read isDirty/draftRevision directly from the live form model instead of mirroring a boolean ref. Approve discard for a specific (sessionToken, draftRevision) pair so any edit made after confirming Duplicate advances draftRevision and keeps the newer draft open when the host responds.
* Scope discard approval to each action so failed duplicates stay dirty
* Report agent profile write failures with toast across web and native
* Use usePreventRemove for Settings dirty-draft guard so native stacks block swipe dismiss
* Keep Settings sidebar scroll anchoring intact across font-size reflows
* fix(app): preserve turn footer on plugin-transformed assistant replies
Retain sourceMessageId and sourceText when timeline projection replaces an
assistant_message with plugin items, and recognize projected assistant replies
across turn timing, footer layout, fork boundary resolution, and turn copy
(deduplicating split cards by sourceId).
No plugin SDK changes.
Closes#10438
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(app): keep the replaced row on plugin timeline cards
Projected plugin rows copied fields from the row they replaced one at a
time (sourceId, sourceKind, sourceMessageId, sourceText), and each copy
missed a footer input: turn stats from #10496 were still dropped for a
transformed reply. Projection now keeps the replaced row as `source`,
and `getAssistantReply` reads the reply through it for turn folding,
timing, copy, fork, and turn stats.
Refs #10438
Co-authored-by: Brandon Elliott <brandon.elliott@vercel.com>
* docs(plugins): note that a replaced reply keeps its turn footer
Refs #10438
* test(app): check the turn duration under a plugin-transformed reply
Refs #10438
---------
Co-authored-by: Brandon Elliott <brandon.elliott@vercel.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
Codex uses a thread's developerInstructions in place of the
developer_instructions in its config. Paseo now reads the configured
value through config/read and sends it ahead of the agent, daemon, and
plugin instructions on thread/start, thread/resume, and rewind forks.
Closes#10644
* fix(server): avoid event-loop stalls and timeouts during Git watcher scans
Compile file-observer and Git ignore root lists into ancestor-Set matchers so directory scans check direct children in O(1) instead of scanning all ignored roots per entry. Add cooperative time-sliced yielding and mid-directory abort/ignore checks to NativeRecursiveBackend and LinuxBackend directory scans, and enforce the monotonic watcher subscription deadline after Promise.race so late microtask resolutions cannot bypass timeouts.
* fix(server): attach Linux directory watches before scanning entries
Attach the inotify watcher for each newly discovered directory before calling readdir() in LinuxBackend.scan(), so writes that land during readdir() or mid-directory scan yields are captured live rather than missed between the snapshot and post-scan watch attachment.
* fix(server): track Linux directory watch inode identity across replacements
Store each Linux directory watcher with its (dev, ino) identity so watch attachment and scan reconciliation detect when a directory at a watched path is moved aside and replaced. Close stale watchers, rebind to the replacement inode, and re-verify identity after attach, readdir, and scan yields.
A dev window open for a few hours took twice as long to open the sidebar
hover card as a fresh one. Three dependencies produced the cost:
- Unistyles 3.2.4 web rewrote the whole stylesheet on every class add or
remove. Backport upstream PR jpudysz/react-native-unistyles#1354 (3.8.0):
classes become CSSOM rule inserts and deletes.
- @gorhom/portal kept all portal state in one context value at the app
root, so each portal change made React search every mounted fiber. Portal
state now lives in a store each PortalHost subscribes to. Also backport
gorhom/react-native-portal#62 so closing one overlay no longer remounts
later overlays in the same host.
- React 19.2 development builds never cleared their render timings.
Backport the React 19.3.0 clearMeasures change.
The shared stylesheet e2e helper counts rules inserted, deleted and edited
for the whole interaction, so transient and in-place changes fail the
explorer resize spec.
Supersedes #10605.
Co-authored-by: Marcel W. Wysocki <maci.stgn@gmail.com>
Detaching a pane's active tab via splitPane or moveTabToPane previously dropped focusedTabId and fell back to the rightmost remaining tab in the strip, so dragging a file tab out after coming from tab A left the previous pane on tab B instead of putting A and the file side by side.
Track per-pane tab focus recency in memory and route both close and relocate focus transitions through one explicit policy table. Closing a tab keeps its existing parent-then-neighbor order, while splitting or moving a focused tab out of a pane returns the source pane to its most recently focused remaining tab (falling back to a same-pane parent tab and then an adjacent neighbor). Keeping the focus history in memory avoids adding a new key to the strict persisted layout schema.
Schedules created through the CLI or MCP archived every run's workspace and agent, and only the app's switch could change that. Add --archive-on-finish and --no-archive-on-finish to paseo schedule create and update, and archiveOnFinish to create_schedule and update_schedule. Omitting the option stores nothing, so the default stays on.
A repeated named create_schedule that changes only Archive on finish refreshes the existing schedule instead of creating a duplicate, and keeps the saved value when the request omits it.
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
* fix: bound import listing and clean up ACP probes
* fix(server): keep the full Import Session deadline
Start ACP probe cleanup when the agent manager stops waiting. Keep the 90-second window for listings that still have time to finish.
Co-authored-by: Chirag Singhal <76880977+chirag127@users.noreply.github.com>
* fix: show import provider errors and retry progress
* fix(server): return Import Session results before probe cleanup finishes
A timely ACP listing was discarded when process shutdown crossed the listing deadline. Return the completed rows and let the adapter finish reclaiming the probe.
* fix(server): preserve timely ACP listing errors during cleanup
A provider error returned within the listing window can still be displayed while its probe shuts down.
* fix(server): preserve timely ACP initialization errors during listing
* test(server): give Worktrunk integration fixtures time to finish
* fix(app): scope Import Session results to the selected host
Co-authored-by: derek <174018435+derek-geekdive@users.noreply.github.com>
* Keep pending session imports tied to their original host
* fix(server): reclaim ACP listing providers after launcher exit
---------
Co-authored-by: Chirag Singhal <76880977+chirag127@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: derek <174018435+derek-geekdive@users.noreply.github.com>
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
Workspace snapshots now carry parentWorkspace, the ref of the workspace whose agent created this one on the same host, null when the host records no parent. Based on #10330 by Sammy Patenotte.
Co-authored-by: Sammy Patenotte <sammy.patenotte@yahoo.com>
The catalog launched Factory Droid with `npx -y droid@0.249.0`, which
predates the models Factory added since, including Droid's current
default `gpt-6.2-sol`. Bump the pin to 1.20.0, the version the ACP
registry now publishes for Factory Droid. The registry still distributes
Droid as a pinned npx package with auto-update disabled, so the entry
keeps that shape and stays covered by `npm run acp:version-drift`.
Co-authored-by: Dhruv Singal <170742396+dsingal0@users.noreply.github.com>
* feat(app): add projects from one sheet with Existing, Clone, and New folder tabs
Add project used to start on a method list, so every use cost a step before
typing. The sheet now opens on Existing with the search focused, and Clone and
New folder sit one tab (or Mod+2/3) away, each keeping its own draft. A host
pill appears only when more than one host is online.
Rows are select-then-confirm: a tap or arrow key picks a row and the primary
button (or Enter) commits it, so a scroll-tap on touch never clones or opens
by accident.
The sheet owns its keys through AdaptiveModalSheet's new `keyboard` prop
rather than a child overlay registration, because a child at the same layer
loses to the sheet. Enter leaves a focused button alone (Close, a tab, Add
host) so keyboard users can still activate it.
Inputs focus on open only when a hardware keyboard is present; on a phone the
focus popped the keyboard and the bottom sheet jumped between snap heights on
every tab switch.
Searches keep the previous results while the next request is pending, so the
list no longer flashes to a loading state on each keystroke.
* fix(app): keep Add project results, selection, and submissions tied to their host
Searches now answer only for the host and query they were sent for. With
keepPreviousData, switching host showed the previous host's folders as
settled results, and Open project sent one host's path to the other. A
failed request no longer leaves a spinner, an old query's error no longer
shows while the next one loads, and directory search errors from the host
are shown instead of "No matching folders".
The picked row is stored by id instead of position, so a search refresh
cannot move the selection to a different folder or repository. Focusing a
row picks it, so Enter on a focused row adds that row.
A submission belongs to the open sheet and its host. Closing the sheet or
losing the host abandons it, so a late result neither navigates away from
where the user went nor blocks the next submission.
New folder and Clone default to a parent known to exist (last used, a
recent project's parent, or home) instead of ~/dev, and the Clone preview
drops a trailing .git like the host does. Tabs and rows are locked while a
submission runs, and tabs whose host lacks the capability are read-only.
* fix(app): don't open a stale Add project row, keep drive roots in Location
Enter while a new search is pending no longer opens a row from the
previous search; typed paths and URLs stay usable. Location derived from
a project at a drive or filesystem root keeps the root separator (C:\\, /).
* fix(app): keep Location on a pending search, reject drive-letter folder names
Enter in the Location picker no longer confirms a folder from the
previous search while the new one runs; a typed path still confirms.
Combobox gains remoteSearchPending for this. New folder flags names
like "C:repo" inline, matching the host's rule.
* fix(app): don't swap a dropped Add project pick for the first row
The first row is the default only while the user has not picked one.
When a new answer drops the picked row, nothing is active and the
primary action stays disabled until the user picks again.
* fix(app): keep Add project on the chosen host when it disconnects
The sheet no longer moves the draft to another online host when the
chosen one drops. It stays on that host, shows "<host> is offline", and
blocks submit until the host returns or the user picks another one.
* fix(app): block the native Go key while the Add project host is offline
Each tab's view is gated once, so the footer button, Enter and the
text field's submit key all read the same unavailable submit.
* fix(app): disable Browse while the Add project host is offline
* fix(app): don't default Add project Location to a share's server name
A project at a Windows share root (\\\\server\\share) has no parent folder,
so the default Location falls back to the next project or ~.
* feat(app): find agent profiles by searching models and the Command Center
Typing in the model picker used to hide profiles, so a profile could only
be reached by clearing the search. Search now lists matching profiles
above matching models, matched on the profile name and its summary, so
searching a model also finds the profiles built on it.
The Command Center offers the same profiles as "Profile › <name>",
applied through the picker's applyProfile. Profiles are never shown as
selected: applying one writes its values and nothing stays bound to it.
* fix(app): keep profile search results scrollable and profile ids unique
A provider search that matched only profiles rendered them outside the
model list, which owns scrolling in the popover, so matches below the fold
could not be reached. They now go through the list with no model rows.
The daemon stores the profile list as given, so a hand-edited config can
repeat an id. The Command Center registry rejects duplicate ids and threw
while the composer mounted. The picker now keeps the first profile per id,
which is the one applyProfile already resolved.
* fix(server): keep watcher retries on schedule after reconnect
A watcher that timed out lost its pending delay when its last observer disconnected. Keep the retry with the watched path so registering the same workspace again uses polling until the scheduled scan.
* fix(server): preserve the scheduled watcher retry deadline
The ordinary recovery delay can exceed the setup-timeout delay when a watcher reports an error before timing out. Retain the scheduled deadline so reopening waits the full interval.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Agents often write drafts as quotes meant to be pasted elsewhere. A plain
quote now has a copy control on web, desktop, Android and iOS. It copies
the quote's body without the `>` markers and with its nested Markdown. A
nested quote, a code block or a Mermaid diagram inside it keeps its own
control. Admonitions get no control.
Web reads the rendered quote at press time, so a streaming quote copies
what it shows, and writes the same two clipboard flavors as selection
copy. A rendered Mermaid diagram copies as the fence it shows, and an
admonition inside a copied quote copies as its `> [!TYPE]` source. Code
blocks and quotes share one copy button with a Copied state and an error
toast when the clipboard refuses the write. On compact layouts the
control is always visible in a band above the quote body. On wide
layouts it shows on hover or focus and the quote keeps a right gutter.
Native code blocks and quotes share one header copy control with the
Lucide Copy glyph. A quote reserves the code block's header band above
its body, so the control never covers text at any font size. Native copy
emits the quote body as written, and a copied fence grows longer than
any fence inside its code.
Supersedes #9429 and #9319. Refs discussion #9303.
Co-authored-by: Pedro Vieira <pedro.vieira@dremio.com>
Co-authored-by: Phieu Dinh <phieu@fiu.one>
* fix(cli): print the one-click Hub login URL
`paseo hub login` opened verificationUriComplete in a browser but printed
the bare verificationUri. Over SSH or on a remote host the browser launch
does nothing, so users had to open the bare page and type the code by hand.
Print the URL that carries ?code= and keep the code next to it so the user
can check it matches the Hub approval page.
* fix(providers): report uninstalled plugin providers as unavailable
A fresh host with only Claude Code installed listed Muse Code as an
error ("muse not found on PATH"). The snapshot manager resolves a
provider's catalogue key before it checks availability, and treats any
failure there as an error. For a plugin provider with a command, the key
lookup required a resolved executable and threw when it was missing.
A command that does not resolve has no catalogue identity. Fall back to
the target key so the availability check runs and reports unavailable.
* fix(providers): keep a removed plugin executable off its cached catalogue
The previous fix returned no catalogue key for a missing executable. A
plugin that returns no key asks for a per-workspace catalogue, so after
its executable was removed the next read bound to the catalogue cached
while it was installed and kept reporting ready.
Give a missing executable its own key. Removal now moves the provider to
a fresh catalogue, and its refresh reports unavailable.
* refactor(server): share the MCP client connection that providers host
OMP connected MCP servers itself; OpenCode v2 now needs the same client to
host per-session servers. The shared connection also ends Streamable HTTP
sessions explicitly on close, because a stateful server keeps them otherwise.
* fix(opencode): run agent MCP servers and env on shared v2 servers
Agents with MCP servers or a launch environment failed on any OpenCode v2
server Paseo did not start, with "require an isolated server". OpenCode's MCP
configuration is shared by every session in a location, so Paseo answered by
starting a dedicated server, which a reused server cannot do.
Paseo now hosts each session's MCP servers itself and the v2 plugin exposes
their tools only to that session and its descendants, under OpenCode's
`<server>_<tool>` names. The plugin runs OpenCode's permission check before
each call, so preapproved grants still apply; that API exists from OpenCode
2.0.29, and older servers or stale plugins fail at session creation. Launch
env reaches shells through session.environment, which children do not
inherit, so the plugin asks Paseo to adopt each child before its first model
request. No agent gets a dedicated server any more, including on Paseo's own
helper.
A registered service is skipped when the provider env configures the OpenCode
process, so a service.json no longer breaks catalogs and launches for those
setups. An explicit server URL still reports those variables.
Fixes#9669
* fix(opencode): keep user tools, child instructions, and MCP call cleanup on shared servers
- A Paseo MCP tool replaced a same-named tool from the user's own OpenCode
configuration, and the context hook then removed it from unrelated sessions.
The plugin now captures that tool when it registers, keeps it for sessions
without their own Paseo tool, and runs it for them.
- MCP instructions were an instruction entry written when a child was adopted.
OpenCode loads entries before the context hook runs, so the child's first
request missed them. The context hook now adds them to every request.
- Structured-only MCP results reached OpenCode with empty content. The bridge
now adds them as text, as it already does for Paseo tools.
- The bridge listened for the request's `aborted` event, which never fires
once the body is read, so Stop left the MCP call running. It now aborts when
the response closes before it finishes.
- Closing an HTTP MCP connection waited on a session DELETE with no deadline.
It now waits at most two seconds before closing the transport, which aborts
the DELETE.
* test(server): run daemon OpenCode tests with the bridge the daemon always starts
These tests built the OpenCode v2 client without a bridge, so the client
reported no native Paseo tools and the daemon injected its internal MCP
server instead. OpenCode v2 now hosts agent MCP servers through the bridge
and rejects them without one. The daemon always starts the bridge, so the
tests now do too.
* fix(server): reconnect expired MCP sessions and bound the MCP handshake
- The OpenCode plugin copied a same-named user tool's input schema into the
shared registration. OpenCode validates arguments against the registration,
so the agent's own calls failed the user's schema. The registration keeps a
permissive schema, and the context hook gives each session its own.
- A stateful HTTP MCP server answers 404 after it restarts or expires a
session, and the SDK kept sending the old session ID. A call that gets 404
now opens a new session once and retries.
- The SDK times out only the `initialize` request, so a server that never
answered the `initialized` notification stalled agent creation. The whole
handshake now has a 10-second deadline.
* fix(app): reveal chat with tall pending cards
The initial scroll can settle inside the footer, where no rows need to be measured. Run the layout readiness check before allowing cached ranges to skip it.
* test(app): cover cached range during initial list placement
Exercise an observed end offset with measured rows in the buffer. Canceling the initial scroll must complete readiness even when the render range is already cached.
* fix(app): virtualize chat turns that exceed the mounted window
- Desktop web aligns the mounted tail to the current turn, so one long tool run stayed fully mounted and stalled the chat open.
- Cap that rewind at 60 rows for the web virtualizer. A larger minimum still wins, and history paging plus the replica cache still keep a whole turn.
* test(app): read expanded turns across the virtual window
Verify every command remains accessible while scrolling and after older history loads. Requiring all expanded rows in the DOM at once contradicts bounded desktop mounting.
Co-authored-by: luke <luopeihuan@gmail.com>
* Verify older history appears before rechecking turn expansion
---------
Co-authored-by: luke <luopeihuan@gmail.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
A direct client sees activity only after a complete WebSocket message arrives. Send large responses in existing transport chunks so the client sees progress while it waits for the full response.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Ouyang Xingyuan <galaxyroaming@qq.com>
* docs(website): surface E2EE relay and privacy posture on homepage and security docs
Add a quiet trust strip below the homepage desktop hero mockup (EN and zh-CN) so Paseo's no-telemetry, E2EE relay, open-source, and independent posture is visible before the feature chapters.
Update the public security docs, privacy policy, and SECURITY.md to match the current Noise NK relay handshake, replay protection, daemon.relay.requireProtectedSecurity setting, and pairing-link / daemon-password trust model. Sync README.md, README.zh-CN.md, connectivity docs, and the homepage FAQ connectivity link.
* docs(security): clarify two-sided Noise fallback and Unix key permissions
* docs(security): note daemon restart after enabling requireProtectedSecurity
* fix(claude): restore stopped background subagents as canceled
Resolve task-only replay notifications through the parent launch identity so stopped children keep their recorded outcome after reopening. Preserve transcript order across task and tool notifications.
* test(claude): name replay notification fixture options
* fix(claude): restore all children in grouped task notifications
A session-end notification can contain several task IDs. Apply its outcome to each linked child during transcript replay so every stopped child restores as canceled.
* fix(claude): keep quoted notices from changing replayed child status
Claude marks delivered task notifications with an origin. Require that origin for user records and require a standalone notice for queue records so prompts that quote a notice do not override a recorded outcome.
* fix(claude): keep replay task links tied to subagent results
Ignore unrelated tool results when collecting task identities so echoed launch logs cannot overwrite the link used to restore a stopped child.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
* Keep MCP server headers off the Claude Code command line
The Claude Agent SDK defaults to sending MCP servers in one --mcp-config
flag, so the Paseo MCP server's bearer token (and any user MCP server
headers or env) was readable by every local account through ps or
/proc/<pid>/cmdline. Anyone who read it could call the daemon's agent MCP
endpoint.
Set mcpServersDelivery: "initialize" so the SDK sends the servers over
stdin in the initialize request. The SDK only supports that with the
Claude Code bundled with it (2.1.326) or newer, so an older Claude Code,
or a wrapper command that reports no version, keeps the command-line
delivery and the daemon logs a warning once.
A spawn test feeds Paseo's options to the real SDK and checks that the
token reaches stdin and not the launch arguments.
* fix(server): warn about MCP argv delivery only with configured servers
An empty session used the client's one-time warning before any MCP server headers would be passed to the provider. Warn on the first session that configures a server.
* fix(server): detect MCP delivery support on each provider launch
A running daemon kept selecting command-line delivery after the installed provider gained stdin support. Resolve the installed version when building SDK options for a launch with MCP servers.
* fix(server): probe MCP delivery support in the launch environment
Version-selecting wrappers can run a different binary in the workspace. Use the session working directory and environment when probing the configured command.
---------
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
Install and reload, reviewed updates, and staging cleanup each run against a fresh service. Their npm subprocesses no longer draw from one test's deadline.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(server): stop liveness pings on plugin sessions
Every DaemonClient pings its daemon every 10 s to notice a silently dead socket. A plugin's
session runs over its IPC channel (or an in-process queue for built-in plugins), whose loss is
reported directly, and the daemon already exempts plugin sockets from the application lease those
pings renew. The pings only woke both processes: about 2 wakeups a second in an idle daemon with
nine plugins and the built-ins.
DaemonClient gets a livenessHeartbeat option (default on); the plugin host turns it off.
Explicit verification (ensureConnected({ verify: true })) still pings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(server): exit a plugin process when its daemon's channel closes
A plugin host only noticed that its daemon worker had died through the liveness ping: about 11 s
later the ping failed and the process exited with code 1. With the pings off it would not notice
at all and kept running as an orphan.
The plugin process now exits as soon as the IPC channel closes without the plugin closing it
itself. A normal shutdown still closes the channel from the plugin side and lets work in flight
(a provider connection that resolves late) finish.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Brandon Elliott <923787+Brandon168@users.noreply.github.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>
Supersedes #5787.
- Add best-effort daemon hardware detection (macOS ioreg/sysctl, Linux containers, WSL, device-tree boards, cloud/VM DMI, SMBIOS chassis) exposed as optional `machineKind` on `server_info` and `/api/status`.
- Add configurable per-host icons in Host Settings -> Appearance (`Auto` plus 9 icons across all 9 locales), keeping `icon` omitted while untouched for rollback compatibility and preserving unknown future icons on disk.
- Redesign `HostPicker` and `HostChooserModal` with resolved host icons, connection type (`Local`, `Tailscale`, `Relay`, `SSH`, `Direct`, `Via`) + endpoint, on-demand round-trip latency, aligned leading and content rails, and full keyboard navigation.
- Update the website host mockup to match.
Co-authored-by: Taras Kornichuk <dread9ko@gmail.com>
Windows timed out while the fixture printed 12,050 rows before signaling readiness. Batch the initial writes and keep the live burst and replay assertions.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(server): skip teardown commands when archiving unapproved checkouts
`archiveByScope` previously treated `assertWorkspaceAutomationAllowed` as optional and did not skip `runWorktreeTeardownCommands` when `untrustedBacking` was already true or when archiving an unrecorded worktree directory. Four callers (`CreateAgentLifecycleDispatch`, `archiveIfSafe`, `paseo-tools` `archive_workspace`, and `handlePaseoWorktreeArchiveRequest`) also omitted `assertWorkspaceAutomationAllowed`, letting `paseo.json` teardown commands run during failed agent creation cleanup, first-turn auto-archive, auto-archive on merge, MCP workspace archive, and worktree archive RPCs.
Make `assertWorkspaceAutomationAllowed` and `isCheckoutUntrusted` required on `ArchiveDependencies`, skip teardown whenever the backing checkout is untrusted, any workspace on the checkout is blocked, or no active workspace record exists, and wire the guard through all archive callers.
* fix(server): scope archive teardown check to active checkout workspaces
`isCheckoutUntrusted` scans all workspace records by path, including previously archived records, so gating teardown on it suppressed `paseo.json` teardown for a fresh approved worktree that reused a previously archived unapproved slug path.
Keep teardown approval scoped to the active workspaces sharing the backing checkout at archive start (the records being archived plus active siblings), drop the null-workspace fallback target for unrecorded worktree-scope archives so they never run teardown or flip `untrustedBacking`, and verify caller wiring reaches `assertWorkspaceAutomationAllowed` directly.
* fix(server): inherit untrustedSource when unarchiving onto an active unapproved checkout
Unarchiving a previously approved workspace onto an existing directory that currently holds an active unapproved checkout left the restored workspace without `untrustedSource`. If the unapproved sibling was archived first, the directory remained on disk and archiving the restored workspace could run teardown commands.
Inherit `untrustedSource` from active workspaces sharing the checkout root in `ensureWorkspaceRecordUnarchived`, while ignoring already-archived historical records so restoring an approved checkout onto a reused path stays approved.
* fix(server): bind automation approval state to checkout worktree metadata
Keeping `untrustedSource` only on workspace records meant a retained unapproved worktree directory could lose its teardown block if its last unapproved workspace was archived and an older approved workspace was unarchived onto that path, while scanning archived records by path blocked fresh worktrees that reused a deleted slug.
Persist `untrustedSource` on the checkout itself in `paseo/worktree.json` when creating or restoring an unapproved worktree, clear it in `clearWorkspaceAutomationBlock` when setup is approved, and read it in both `workspace-archive-service` and `workspace-provisioning-service`. Deleting the worktree removes its metadata automatically, so fresh worktrees reusing the path start clean while retained checkouts keep their block across workspace archives and restores.
* fix(server): backfill worktree metadata when archiving retained unapproved checkouts
Unapproved checkouts created before `paseo/worktree.json` stored `untrustedSource` carry their block only in the workspace record. If archive keeps the directory on disk (such as a retained sibling or nested worktree), backfilling `untrustedSource` into `paseo/worktree.json` before removal ensures the retained checkout keeps its block even after its unapproved workspace record is archived.
* fix(server): never propagate archived untrustedSource onto fresh checkouts
Both archive metadata backfill and directory workspace creation previously consulted already-archived records matching a path, allowing an old archived unapproved record to copy `untrustedSource` onto a fresh approved worktree that reused the same slug path.
Ignore `untrustedSource` on already-archived records during archive target resolution and metadata backfill (only backfill when active workspaces are being archived), and share one `resolveCheckoutUntrustedSource` rule across `createWorkspaceForDirectory` and `ensureWorkspaceRecordUnarchived` that checks `paseo/worktree.json` first and falls back only to active workspaces.
* fix(server): align unarchived workspace approval state with the live checkout
Unarchiving an old unapproved workspace onto a path already owned by an active approved checkout kept the old record's stale `untrustedSource`, causing a later re-archive of that workspace to backfill the block onto the fresh checkout's metadata.
Align `ensureWorkspaceRecordUnarchived` symmetrically with the live checkout: adopt `untrustedSource` from `paseo/worktree.json` or active workspaces on the checkout when present, and drop stale `untrustedSource` when live active workspaces own an approved checkout at that path.
* fix(server): preserve block when opening a pre-upgrade retained checkout
Opening a pre-upgrade retained checkout directory whose last unapproved workspace was already archived before this change has no active workspace on the path and no `untrustedSource` in `paseo/worktree.json`.
In `resolveCheckoutUntrustedSource`, prefer `paseo/worktree.json`, then active workspaces on the checkout when any exist (so a fresh approved worktree at a reused path stays approved), and only when zero active workspaces exist on the directory fall back to the most recently archived record for that path.
* fix(server): share one checkout approval lookup across open and unarchive
* fix(server): resolve checkout approval state only from metadata and active workspaces
* fix(server): keep archive read-only on worktree approval metadata
* fix(server): serialize setup approval with archive checkout lock and backfill retained metadata
* fix(server): fail setup approval before clearing records when worktree metadata write fails
* fix(server): run resolved forge CLI executables directly
The GitHub, GitLab, and Gitea adapters resolved gh, glab, and tea with findExecutable, then discarded the resolved path and spawned the bare command name. On Windows, spawning an extensionless bare name routes through cmd.exe, which resolves commands against cwd first, expands %VAR% references, and truncates multiline arguments such as gh api graphql queries.
Forward the resolved executablePath from each forge adapter and auth probe into the shared runner, resolve bare binary names inside createForgeCliRunner when omitted, and restrict bare-name PATH discovery in findExecutable to absolute PATH directories.
* fix(server): re-resolve cached forge CLI paths if the binary disappears
Cached CLI path resolvers now support targeted invalidation, and forge adapters plus createForgeCliRunner invalidate and retry once when a previously resolved executable disappears at launch time (ENOENT, or a missing Windows batch launcher). This preserves cached lookups on normal runs while recovering automatically when a user uninstalls or relocates an installation while another copy remains on PATH.
* fix(server): refresh cached forge CLI path on any unlaunchable spawn error
Match executable-resolution's unlaunchable spawn error set (ENOENT, EACCES, ENOEXEC, UNKNOWN) when deciding whether to invalidate and re-resolve a cached forge CLI path, so losing execute permission falls back to another working copy on PATH.
* fix(git): offer Push and Pull for a branch whose remote is not origin
A checkout whose only remote has another name, with main tracking that
remote's main, got no Push, Pull or Pull and push. The app gated all three
on hasRemote, which is true only when origin is configured, and the
daemon's pull refused to run without origin.
Neither action needs origin. The daemon now reports where each one goes for
the current branch (pullRemote, pushRemote) and the app offers the actions
from those. One resolver picks the push destination for both the status and
the push, so the offer and the push cannot disagree.
Without origin, Push follows the upstream only when the upstream branch has
the branch's own name and git pushes the branch to that remote. A branch
such as feature tracking upstream/main can be pulled and is not pushed.
With origin, every push goes where it went before.
firstPushRemote stays on the wire for apps that predate pushRemote.
* fix(git): follow Git's own push destination when origin is missing
Without origin, Push compared the upstream's remote with the remote Git
pushes the branch to. That missed a push refspec: with
remote.<upstream>.push set, plain `git push` updates another branch, and
Paseo still updated the upstream. A regular checkout with a push refspec on
branch.<name>.pushRemote was pushed there and stayed ahead of its upstream.
Push now asks Git where `git push` sends the branch (%(push)) and follows
the upstream only when that is the upstream. This also covers
push.default. A Paseo worktree keeps the push refspec Paseo configures for
a PR checkout.
Pull no longer requires a configured upstream before it runs. Git decides,
so a branch with no upstream in a single-branch clone pulls again.
* fix(git): compare the push remote by name when origin is missing
Push compared Git's push destination with the upstream as remote-tracking
refs. Two remotes whose fetch refspecs map onto the same tracking namespace
give the same ref for different repositories, so a branch Git pushes to one
remote was sent to the other. The remote Git pushes to is now compared by
name as well.
* fix(git): leave a matching-mode push to the user when origin is missing
Under push.default=matching, git push sends a branch only when the remote still has it. The checkout's remote-tracking ref can outlive a branch deleted on the remote, so the daemon cannot tell from local metadata that the push would go to the upstream, and its explicit push would recreate the branch. Without origin, Push is now refused in that mode.
* fix(usage): read OpenCode Go logins from the store the installed OpenCode uses
The source treated a `credential` table in opencode.db as proof of OpenCode 2
and then ignored auth.json. OpenCode 1.17.5 and newer creates that table too
and leaves it empty, and OpenCode 2 fills it once when it opens the same data
directory. In both cases the Go key in auth.json was dropped and the source
disappeared.
The source no longer reads OpenCode's database. It asks the installed OpenCode
for its version. OpenCode 2 lists its own logins with
`opencode auth export --standalone`, with its own choice of the active one per
integration. OpenCode 1 keeps logins in auth.json. A failed OpenCode 2 listing
throws, so it never reads as "no login". An auth.json key is not used when
OpenCode 2 is installed, because OpenCode 2 never reads that file after its
one-time import.
`--standalone` matters: without it the command starts OpenCode's background
service and leaves it running.
* chore(usage): request a review of the resolved threads
* fix(usage): keep the OpenCode Go card when the version check is cut off
A version check that reached its timeout was read as OpenCode 1. Discovery then
read auth.json, and a login that only OpenCode 2 has was reported as removed.
A check that is cut off does not show which store OpenCode uses, so discovery
now fails and the daemon keeps the account it already knew.
A missing OpenCode, or one that exits with an error, still reads auth.json:
that file is the only store when OpenCode is not installed.
* fix(usage): recognize OpenCode 2 when the daemon's environment forces colors
With FORCE_COLOR set, OpenCode 2 writes its version with ANSI codes even into
a pipe. The version did not parse, the source took OpenCode for version 1, and
a login that only OpenCode 2 has disappeared. The source now runs OpenCode with
NO_COLOR, which gives plain output for the version and the login listing.
* fix(usage): read the auth.json Go key when OpenCode 2 has no Go login
OpenCode 2 imports auth.json only once. A Go key that is saved in the file
after that import is in no other place, so the card was still missing for
the state in #10659 when the installed OpenCode is 2.x: the credential
listing holds only an unrelated login and the Go key is in auth.json.
The order is now: a login OpenCode 2 can serve Go with wins, so a stale key
in the file never replaces it. Without one, the auth.json key is used. A
failed listing still throws, because it does not show that OpenCode 2 has
no Go login.
* fix(usage): read the auth.json Go key behind an OpenCode 2 login without Go
The auth.json fallback applied only when OpenCode 2 listed neither an
`opencode` nor an `opencode-go` login. With an `opencode` login whose
Console workspace has no Go, the card reported "No active OpenCode Go
subscription" while a working Go key was in auth.json.
The file's key now stands in for a missing `opencode-go` login. The
existing order then decides: the `opencode` login is asked first, and the
Go key is asked only when the Console refuses that login. A temporary
failure still keeps the card on the `opencode` login.
Stage the generated additions so both diff paths can read their patches in bulk while still comparing against HEAD.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(git): offer Push for never-pushed branches and non-origin remotes
The Changes pane decided whether to offer Push from two daemon fields that
answered a different question. `aheadOfOrigin` is null both when a branch has
no upstream and when its upstream was deleted, so the app could only treat
null as a first push inside Paseo worktrees; a never-pushed branch in a
regular checkout got no Push. `hasRemote` is true only for a remote named
origin, so a branch tracking any other remote got "not connected to a remote"
while the daemon's push would have used the tracked remote.
The daemon now reports the two facts the decision needs: `upstreamState`
(tracked, none, gone, unknown) and `pushRemote`, resolved by the same
function `pushCurrentBranch` uses, so the button and the push cannot
disagree. A deleted upstream stays out of first-push in regular checkouts
so Paseo does not silently re-publish a branch whose remote copy was removed;
Paseo worktrees keep re-publishing, as before.
Both fields are optional on the wire. Against an older daemon the app keeps
the previous rule, tagged COMPAT(checkoutPushTarget).
* fix(git): keep a published branch out of first push in single-branch clones
A `--single-branch` or `--depth` clone keeps no remote-tracking ref for a
feature branch, so git reports a blank upstream even after `push -u` set
`branch.<name>.remote` and `.merge`. The daemon read that blank as "never
pushed", and a regular checkout then offered Push, which re-created the
branch after it was deleted on the remote.
A blank upstream is now "none" only when no upstream is configured. A
configured upstream git cannot resolve is "unknown". Paseo worktrees keep
publishing in that state, as they did before upstreamState existed.
* fix(git): do not push to the upstream when git pushes the branch elsewhere
With `branch.<name>.pushRemote` or `remote.pushDefault` naming a fork, git
pushes a branch that tracks `upstream/main` to the fork. The daemon ignored a
push remote that has no HEAD push refspec and pushed HEAD to the tracked
branch instead, which is the shared base. Offering Push for remotes not named
origin made that reachable in checkouts that have no origin.
The push target is now empty when git's push remote differs from the remote
the daemon would use, so status reports no push remote and the push refuses
with a message that names git's push remote. Push remotes Paseo configures
itself carry a HEAD push refspec and are unaffected.
* fix(git): withhold Pull and push when Push has no remote to send to
Pull and push checked only that origin exists, so it stayed available when the daemon reports no push remote. It then pulled, which can create a merge commit, and failed at the push. It now uses the same push remote check as Push.
* fix(git): do not extend pushes to a differently named upstream branch
The daemon pushes a tracked branch to its upstream branch whatever that
branch is called, so `feature` tracking `main` pushes to `main`. The app
offered Push only in checkouts that have origin. Reporting a push remote for
any tracked remote made the same push reachable without origin, for example
`feature` tracking `upstream/main`.
Without origin, the upstream is now a push target only when its branch has
the same name as the local branch, which is the push git itself makes by
default. Checkouts that have origin behave as before.
* fix(git): limit the Push fix to never-pushed branches
Push for branches that track a remote other than origin is removed from
this change. Supporting it means following Git's push settings
(branch.<name>.pushRemote, remote.pushDefault, push.default) for every
remote, and each review round found another setup where the push would
have gone to the wrong place.
The daemon's push is the same as before this branch again. What stays is
upstreamState on the checkout status, which lets the app tell a
never-pushed branch from one whose remote copy was deleted, and the app
rule that offers a first push in a regular checkout.
* fix(git): withhold first Push when git pushes the branch to another remote
The daemon publishes a branch with no upstream to origin. Git picks the
remote for a push from branch.<name>.pushRemote, then remote.pushDefault,
so in a fork setup `git push` sends a new branch to the fork while Push
sent it to origin. Offering a first push in regular checkouts made that
reachable there.
The checkout status now reports firstPushRemote: origin when git would
push the branch to origin too, null otherwise. A regular checkout offers
a first push only when it is set. Paseo worktrees and the daemon's push
are unchanged.
The never-pushed browser test read the branch's upstream as soon as the
remote had the branch. Git writes the upstream after that, so the test
now waits for it.
* fix(git): check the first push destination again before pushing
The app offers a first push from a checkout status that can be older
than the git configuration. If remote.pushDefault or
branch.<name>.pushRemote changed after the status loaded, Push still
published the branch to origin.
The daemon now makes the same check when it pushes: in a regular
checkout, a branch with no upstream is published to origin only when git
would push it there too. Otherwise the push is refused with a message
that names git's remote. Paseo worktrees, and branches whose upstream is
a local branch, push as before.
* fix(git): describe a missing upstream without blaming the remote
A branch can track a local branch. When that branch is deleted, git reports the upstream as gone, and the Push menu said the branch was deleted on the remote, which never happened. The message now says the tracked branch no longer exists, which is true for a local and a remote upstream.
* test(server): expect the Paseo home in the session push call
The checkout session now gives pushCurrentBranch the Paseo home, so the push can tell a Paseo worktree from a regular checkout. The session test still asserted the old single argument.
* fix(git): read a branch's Git settings under its real name when a tag shares it
With a tag of the same name, git spells the current branch heads/<name>. The daemon used that spelling to read branch.<name>.* settings and the branch ref, so it found none of them. A never-pushed branch set to push to a fork was reported as publishable to origin and was pushed there, a branch whose remote copy was deleted was reported as never pushed, and a branch tracking a fork was pushed to origin.
The status and push paths now read those settings and the ref under the name from the symbolic HEAD ref. getCurrentBranch, the branch name sent to clients, and the refspec of the first push keep git's short spelling, which is the right one for a revision.
* fix(hermes): show the full command of Hermes terminal calls
Hermes titles a terminal call with its own summary ("terminal: echo ... + 5
commands") and sends the full command only as "$ <command>" start content,
which the completion update replaces. It sends no rawInput, so the generic
ACP adapter fell back to the title and the full command was never stored.
Hermes now runs as a bundled runAcpProvider plugin. Its terminal transformer
lifts the start text into input.command and carries it across the
completion through context.previous; any other shape passes through, so an
upstream format change shows the title again instead of breaking.
The plugin ACP shim now builds the standard row for each ACP tool kind, so
read/search/fetch rows keep their shape after the move. Transformers still
see raw input, output and content, and a detail they set wins.
Moving Hermes surfaced two regressions, both fixed:
- The activity curator printed "[Shell] null" for typed rows whose name
looks namespaced (Hermes titles contain ":"); the raw-input fallback now
applies only to unknown rows.
- Agents saved by the generic adapter stored Hermes session-mode IDs, but
the shim uses Hermes's edit_approval_policy config option as ACP prefers,
so resume failed with invalid_params. legacyModes translates them.
Legacy extends:"acp" Hermes configs migrate on load, keeping a custom
command, gated on server_info.features.hermesProvider.
* fix(acp): keep Hermes approvals, Auto Accept, and session import after bundling
Moving Hermes from the generic ACP adapter to the plugin ACP shim dropped
behavior the adapter had:
- Approvals were built without a detail, so the approval card had no diff.
Approvals with no rawInput also failed with "Invalid params".
- The shim had no unattended mode, and agents that saved the adapter's
`auto_accept` toggle sent it back to Hermes as an unknown config option.
Hermes now offers a Full access mode, and a saved `auto_accept: true`
resumes in it.
- Session listing read only the first page of `session/list`, so the import
picker lost sessions past the first 50.
- Edit rows whose result is text lost that text instead of showing it as
the diff, unlike the generic adapter.
* fix(acp): keep a mode chosen after a saved Auto Accept toggle
The generic ACP adapter's `auto_accept` setting stays in the agent's saved
options after the move to a bundled ACP provider. It put the agent back in
the unattended mode on every reopen, even after the user chose another
mode, so approvals stopped asking again after a reload. The toggle now
counts only while the saved mode is one the generic adapter wrote, which
the agent no longer offers.
* fix(acp): keep whitespace-only text in Edit rows
The standard Edit row read old and new text with the same helper as
titles and paths, which skips blank strings. An edit that replaces text
with spaces lost its new text, so the app drew it as a deletion. File
text is now kept as written, as the previous formatter did.
* fix(usage): follow the OpenCode credential that serves Go
OpenCode 2 serves OpenCode Go with the active credential on the
opencode integration when that Console workspace has Go, and uses the
opencode-go key only otherwise. The usage card now reads the same
credential: a Console sign-in (with its organization) first, then a key
on opencode, then the opencode-go key. Keys read the Console Go status
before the usage API, which floors each percent.
Refs #6428
* fix(usage): keep OpenCode Go usage on the sign-in through outages
A Console outage no longer shows the fallback key's usage, and a slow
Console probe no longer uses up the refresh deadline for a working key.
* fix(usage): skip OpenCode keys saved for another Console
A key on the opencode integration can name its own Console server.
Usage now leaves it alone instead of sending it to opencode.ai.
* fix(server): deliver urgent messages to archived agents
An out-of-band probe rejected urgent messages before normal dispatch could restore the archived recipient. Decline the probe so the existing dispatch path restores the recipient and delivers the prompt.
Co-authored-by: Thomas Van <9481872+thomasvan@users.noreply.github.com>
* fix(server): deliver urgent messages during agent restore
When restore closes the history session, the stored agent still exists. Let normal dispatch reopen it instead of treating the missing session as a dispatch failure.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Thomas Van <9481872+thomasvan@users.noreply.github.com>
OpenCode 2 keeps logins in opencode.db and never updates auth.json, so the Go usage card was missing or sent a stale key (HTTP 401). The card now reads the selected opencode-go credential from the v2 database, read-only, and keeps auth.json for OpenCode 1. A login OpenCode 2 imports keeps its account identity.
Closes#6428
Co-authored-by: Ivan Pantic <panta@talentkit.io>
Observe a loop turn before the first filesystem request. Timer gaps also count CPU work that belongs to other callbacks.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(server): keep git from adopting bare-repository-shaped directories
Git discovery treats any directory holding `HEAD`, `config`, `objects/` and
`refs/` as a bare repository, at the working directory or in a parent. Daemon
git commands then ran with that directory's config. They now pass
`-c safe.bareRepository=explicit`. The flag is left off only when the working
directory is a bare repository that a linked worktree's `.git` file points back
to, so the bare + linked-worktree layout keeps working.
The diff reader ran `git status` inside every submodule path. An uninitialized
submodule has no `.git`, so git walked up to whatever repository sat above it.
The reader now skips submodules without `.git` and pins `GIT_DIR=.git` for
initialized ones.
The worktree-include plugin spawns git directly and gets the same flags.
* fix(server): stop bare-repository discovery on Git before 2.38
Git releases before 2.38 ignore `safe.bareRepository`, so the runner's flag
did nothing there. On those releases the runner now follows git's discovery
order from `cwd` itself. If it reaches a directory that looks like a bare
repository before any `.git`, it pins `GIT_DIR` to the missing `<cwd>/.git`
and git reports that no repository was found, which matches what newer
releases do with the flag. The git version is read once per process.
The worktree-include plugin needs no fallback: it runs git at a checkout
root, where discovery stops at that checkout's own `.git`.
* test(server): keep fixtures independent of git discovery timing
The fetch fixture ran `update-server-info` from inside a plain bare remote.
With `safe.bareRepository=explicit`, git now refuses that unless the
repository is named, so the fixture passes `--git-dir`.
The slow-cadence poll test let the service read `remote.origin.url` through
real git while timers were faked. The runner now checks the working directory
before it spawns, and fake timers do not wait for that file-system work. The
test now injects the repository host and slug like its neighbors do.
* fix(server): refresh live diffs when an uninitialized submodule's commit changes
Skipping `git status` for an uninitialized submodule left its worktree
identity empty, so staging a different commit kept the same identity. Open
diffs then reused the previous patch. The identity is now the commit that the
comparison's index records for that path.
* fix(server): read an uninitialized submodule's commit at stage 0 explicitly
A path such as `0:sub` made `:<path>` read as stage 0 of `sub`. Naming stage 0 keeps the rest of the argument as the full path.
* test(server): supply repository identity to fake-timer poll tests
The poll tests advance a fake clock, but their repository host and slug
lookups ran real git. Git launches now read the filesystem before
spawning, so that real work could finish after the clock had already
advanced, and the expected reads were missed intermittently.
* fix(server): name a recorded bare repository root explicitly for git
Git commands at a bare repository root used to run only while a linked
worktree pointed back to it. After the last checkout of a bare repository
was archived, that link was gone, so Restore failed with "cannot use bare
repository". A bare repository with no checkouts has the same files on disk
as a bare-repository-shaped directory, so the files cannot tell them apart.
Git now never discovers a bare repository by its directory. Worktree
creation, archive, and Restore receive their repository root from Paseo's
records, and they run inside runWithRepositoryRoot. That scope names a bare
root through GIT_DIR, for commands at that exact root only. It is read when
a command is submitted, because the git scheduler can start the process
from another async context.
* fix(server): list worktrees of a bare repository that only Paseo checkouts use
Archiving by slug or branch lists worktrees at the recorded repository root.
When that root is a bare repository with no `.git`, explicit bare-repository
handling made `git worktree list` fail there. Listing, branch-off preparation
and ref fetching now name the recorded root the same way creating and
removing worktrees already do.
* test(server): give the bare-repository restore fixture a commit identity
A bare clone does not copy the source checkout's local user.name and user.email, so the fixture commit failed on runners without a global identity.
* test(server): make bare-repository tests hold on Windows runners
The tests compared 8.3 short temp paths with the long paths that git and
async realpath report, compared git's forward-slash paths as raw strings, and
read files that the runner's core.autocrlf had converted to CRLF. Temp
directories now resolve through realpathSync.native, git paths go through
path.resolve, and the bare fixtures set their config on the bare repository,
because a bare clone does not copy the source checkout's local config.
Claude Code supports Auto mode on Bedrock and Vertex, but Paseo removed it from the catalog and rejected explicit selections before reaching Claude Code. Remove that obsolete eligibility gate while preserving the existing default modes and SDK error handling.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Passwords typed at a terminal prompt (sudo, SSH passphrases) were learned
by Gboard and offered as suggestions in other apps. The hidden terminal
input turned off suggestions and autofill, but nothing set
IME_FLAG_NO_PERSONALIZED_LEARNING, the flag keyboards read as "incognito".
React Native's TextInput has no prop for it, and its view is prebuilt, so
PaseoTerminal adds the flag when React Native applies the terminal input's
nativeID, before the input can take focus. Input type and layout are
unchanged, so typing, composition and the language switch keep working.
* fix(server): keep the daemon alive when a plugin session closes after its process dies
PluginSessionSocket.close() sent paseo_close to the plugin child without a
callback. Node does not throw when that send fails: it emits "error" on the
ChildProcess, and the runtime has no error listener, so the failure became an
uncaught exception. The try/catch around the send never ran.
When a plugin process dies, a frame write to its session fails with EPIPE, the
websocket server's outbound transport closes the socket, and the close's own
send then crashed the daemon with "write EPIPE" (or ERR_IPC_CHANNEL_CLOSED once
Node has seen the disconnect). Passing a callback makes the failed send a
handled result.
* test(server): skip the POSIX-only plugin EPIPE test on Windows
Trigger save validation used the host-wide provider catalog, so it rejected models offered by the workspace catalog. Pass the optional working directory through to provider discovery.
MCP startup failures previously reached only the unhandled trace log. Keep a diagnostic summary at warning level and omit raw error text from tracing because it can contain credentials and response bodies.
* Keep the host settings action out of the host row's pressable
The gear sat in the row's trailing slot, which ComboboxItem renders inside its
own pressable, so the row was a button containing a button. HTML forbids that:
React aborts the press handling, which is why the first click on the host
picker produced a hydration error and only the second one opened anything.
ComboboxItem gains a trailingAction slot that renders beside the row's
pressable instead of inside it. The split row carries the hover and active
background, the pressable keeps the row's padding, and the action column sits
outside the click target, so the gear reaches host settings on the first click.
(cherry picked from commit ccff20dae7)
* fix(sidebar): let Enter activate the focused host gear
Combobox Enter handling was taking precedence over the focused trailing button. Leave Enter to that control so keyboard and pointer input open the same host Overview. Cover both paths through the desktop sidebar in Playwright.
* fix(sidebar): give the host gear priority over Enter shortcuts
Let the browser activate a focused host gear while the combobox keeps Enter out of the app shortcut dispatcher. Make the gear button fill its column so the highlighted edge opens settings too.
---------
Co-authored-by: ShalokShalom <shalokshalom@protonmail.ch>
* fix(server): serve agent MCP over the 2026-07-28 protocol
Reasoning:
- The bundled `@modelcontextprotocol/sdk@1.29.0` only speaks up to protocol `2025-11-25`, while current MCP clients (Claude Code, Codex, Grok CLI, ACP harnesses) send `mcp-protocol-version: 2026-07-28` and get `400 Bad Request: Unsupported protocol version` on the first request after `initialize`. The agent then runs without any Paseo tool, so `list_agents`, `create_agent`, and the rest silently disappear from the tool surface (#3009).
- Widening the accepted version list (the approach in #4570 / #4375) hides the rejection but leaves the server implementing 2025 semantics while telling the client it speaks 2026-07-28.
Changes:
- Replace the v1 `StreamableHTTPServerTransport` wiring in `bootstrap.ts` with the v2 dual-era `createMcpHandler(..., { legacy: "stateless" })` plus `toNodeHandler` from `@modelcontextprotocol/node`. Modern 2026-07-28 requests and 2025-era clients are served by the same handler; per-request stateless serving is unchanged.
- Move `agent/mcp-server.ts` to `@modelcontextprotocol/server` (`McpServer`, `ServerContext`, `context.mcpReq.signal`).
- Keep `@modelcontextprotocol/sdk` for the existing client-side integrations (e.g. the OMP MCP bridge).
- Assert the JSON-RPC `-32602` rejection in `mcp-server.test.ts`: a call to an unregistered tool is a protocol error, which the v1 server folded into an `isError` result.
Verification:
- `npx tsc -p packages/server/tsconfig.server.json` clean; `npm run typecheck` clean; `oxfmt`/`oxlint` clean on the touched files.
- `npm ci --dry-run` accepts the lockfile.
- `packages/server`: `mcp-server.test.ts` 194/194, `agent-mcp.e2e.test.ts` 8/8, `mcp-parity.e2e.test.ts` 38/38.
- Manual check on macOS against a real daemon: a `dsh` agent (sends 2026-07-28) lists Paseo tools (`create_workspace`, `list_workspaces`, `create_agent`) and the daemon logs zero `MCP transport error` / `Unsupported protocol version` entries.
* test(server): cover the modern MCP envelope on the agent endpoint
Reasoning:
- Greptile flagged that the tool registration used a `registerTool` re-cast, which defeats the SDK's type check on a path every agent tool call goes through.
- The modern (2026-07-28) path had no regression coverage, so a looser "accept the version header" implementation would also pass the existing tests.
Changes:
- Narrow only the schema at the registration boundary (`inputSchema as StandardSchemaWithJSON`) and document why: Paseo declares schemas through the `zod` root entry, the SDK types them through `zod/v4` core; same runtime, distinct type identities.
- Add a modern-protocol test that drives `createMcpHandler` with a per-request envelope (`_meta` protocol version + `mcp-method` header) and asserts the catalog tools come back.
Verification:
- `npx vitest run src/server/agent/mcp-server.test.ts` 195/195.
- `npx tsc -p packages/server/tsconfig.server.json` clean; `oxfmt` / `oxlint` clean.
* test(server): expect the agent MCP handler's own rejection
The stateless MCP handler answers a body-less POST with 415 (unsupported
media type) instead of the old transport's 406. The smoke test only needs the
route to be live before the reload and gone after it, so assert that answer and
say why the code changed.
* fix(server): give native host tools the schema the agent MCP serves
The agent MCP endpoint now registers tools with @modelcontextprotocol/server,
which converts input schemas with zod at the draft 2020-12 target. The OpenCode
bridge and OMP host tools still serialized through the v1 SDK internals as
draft-07, so the plugin parity test (native schema equals advertised schema)
failed. Serialize with the same zod conversion so one schema reaches both paths,
and drop the dependency on unexported v1 SDK internals.
OpenCode reads both dialects and defaults to 2020-12. OMP rewrites draft-07 to
2020-12 before sending to a model.
* test(server): negotiate the agent MCP with pinned, auto and legacy clients
Drive a real daemon's /mcp/agents with @modelcontextprotocol/client 2.4.0:
- pinned to 2026-07-28: fails on the v1 transport ("server did not offer
pinned protocol version 2026-07-28").
- auto: falls back to 2025-11-25 on the v1 transport. The test also asserts
that the daemon logs no transport errors.
- legacy: the 2025-era compatibility guard.
Run the block in test:integration so CI keeps it, and translate the modern
envelope test comment to English.
* test(ci): route the agent MCP negotiation block through server integration
The block shares the existing name-filtered vitest invocation, so it adds no extra vitest start to the Windows integration job.
* test(website): play the orchestration scene on a held page clock
The scene player advances at most 64ms per animation frame, so on a CI
runner where headless WebKit paints a few frames a second the scene ran
in slow motion and missed the 20s wait for the subagents pill. The test
now pauses Playwright's page clock after hydration, checks the empty
chat, then runs the clock past the scene before asserting the roster.
---------
Co-authored-by: Ouyang Xingyuan <galaxyroaming@qq.com>
* chore(app): vendor react-native-enriched-markdown with the Paseo patch applied
Copy react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 (upstream
software-mansion/enriched-markdown 766fc0e67) into
packages/react-native-enriched-markdown, with
patches/react-native-enriched-markdown+1.2.0-nightly-20261014-766fc0e67.patch
applied. Nothing else changes in this commit; the package is not a workspace yet.
Reproduce:
npm pack react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67
tar xzf react-native-enriched-markdown-*.tgz
mkdir -p t/node_modules && mv package t/node_modules/react-native-enriched-markdown
(cd t && git init -q && git apply ../patches/react-native-enriched-markdown+*.patch)
diff -r t/node_modules/react-native-enriched-markdown packages/react-native-enriched-markdown
The diff is empty.
* chore(app): consume react-native-enriched-markdown from its workspace
Make packages/react-native-enriched-markdown a private workspace and point the
app at it, then remove the patch-package patch it replaces.
- package.json: private, version follows the root like every workspace, only the
postinstall script that downloads tree-sitter grammars. Upstream's
devDependencies would install a second react-native, so they are gone.
- The package keeps its name, so autolinking, the Gradle project
:react-native-enriched-markdown, the CocoaPods spec and imports are unchanged.
- Lockfile: drop the nested registry copy under packages/app/node_modules; npm
links node_modules/react-native-enriched-markdown to the workspace.
- Formatting, lint and knip skip the vendored code. CI routes changes to it
through the app and browser suites.
- The codegen test checks the vendored package's generated props.
- docs/markdown-renderer.md describes the fork and how to edit it.
* fix(app): keep numbered sub-list markers off their text on Android
From #9964, moved from the package patch into the vendored package.
On Android, a numbered list nested in a bulleted item drew "1." over
the first letters of each item. A nested item's text indent summed the
root list's narrow bullet column with a fixed marginLeft, while its
marker was right-aligned to its own wider "99." column, so the number
landed on the text. iOS already indents from the item's own column.
Backport the Android hunks of upstream enriched-markdown #1015 (size
the number column to the widest marker) and #1023 (nested items start
their text from their own marker column).
test:android now also runs the backported ListRenderingTest and
TaskListInteractionTest suites. docs/markdown-renderer.md lists the
fork's backports, this one and #924, which the removed postinstall
comment used to track.
The vendored tree equals the #9964 patch applied to the pristine
package.
* fix(app): keep Android assistant replies inside their turns
From #10380, moved from the package patch into the vendored package.
On Android, an assistant reply with blockquotes nested inside a list
could overlap its "Worked for ..." footer and the next user message:
the displayed text and the layout measurement applied spans in
different orders, and the list-wide line height inflated the blockquote
spacers when it ran after them.
Use the same span order for Android Markdown measurement and display.
Apply list line height before blockquote spacers so nested quotes keep
their configured padding and the reply fits above the turn footer.
test:android now also runs ListBlockquoteMeasurementTest.
Applied on top of #9964; the two changes share only ListRenderer.kt,
where #10380's import and line-height call sit beside #9964's marker
width code. Every other file equals the #10380 patch applied to the
pristine package.
* chore(app): match the vendored Markdown web block renderer source to its build
The package patch changed lib/module/web/renderers/BlockRenderers.js (the
renderers.codeBlock override and the zoom-in cursor on images) but not
src/web/renderers/BlockRenderers.tsx. The app runs lib, so behavior does
not change. Port both changes into src so src stays the source of lib.
* 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>
* 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>
* 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.
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
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>
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>
* 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.
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.
* 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.
* 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
* 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
* 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
* 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
* 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>
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.
* 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
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.
* 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>
* 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>
* 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.
* 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.
* 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
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.
* 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.
* 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
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>
* 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>
* 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.
* 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.
* 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
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>
* 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>
* 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.
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
2622 changed files with 297957 additions and 33504 deletions
- **Use existing worktrees:** Start a workspace in a worktree you already have, or create one from any branch or pull request. ([#10190](https://github.com/getpaseo/paseo/pull/10190))
- **Antigravity approvals and history:** Pick a permission mode, answer tool approvals, import CLI sessions and see your history when you reopen a chat. ([#10193](https://github.com/getpaseo/paseo/pull/10193))
- **Watch pull requests:** Agents can watch a GitHub PR and get notified when checks, reviews or comments change. ([#10148](https://github.com/getpaseo/paseo/pull/10148))
- **Host metadata instructions:** Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests. ([#11064](https://github.com/getpaseo/paseo/pull/11064))
- **Enterprise spending usage:** Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times. ([#8976](https://github.com/getpaseo/paseo/pull/8976) by [@mcowger](https://github.com/mcowger), [@JasprW](https://github.com/JasprW))
### Fixed
- Fixed Android agent push notifications arriving minutes late during Doze ([#8501](https://github.com/getpaseo/paseo/pull/8501) by [@truelecter](https://github.com/truelecter))
- Fixed Command Center results reordering mid-word while typing ([#11085](https://github.com/getpaseo/paseo/pull/11085))
- Fixed composer slash and `@` autocomplete stopping after closing a web overlay or opening while a prompt submits ([#11041](https://github.com/getpaseo/paseo/pull/11041))
- Fixed the Starting ref popover in New Workspace jumping in height and shifting rows on first open ([#11042](https://github.com/getpaseo/paseo/pull/11042))
- Fixed the iOS Home Screen web app status bar overlapping focus-mode tabs, the overlay sidebar, and the Mermaid fullscreen viewer on wide layouts ([#9970](https://github.com/getpaseo/paseo/pull/9970) by [@mywaffles](https://github.com/mywaffles))
- Fixed Mark as read on a workspace not clearing finished terminal attention ([#11040](https://github.com/getpaseo/paseo/pull/11040))
- Fixed GitLab merge request checks and pipeline details failing with 404 when the pipeline runs in a fork project ([#11074](https://github.com/getpaseo/paseo/pull/11074))
- Fixed messages sent while Pi runs a turn it started itself failing instead of queuing ([#11077](https://github.com/getpaseo/paseo/pull/11077))
- Fixed OpenCode v2 tool approvals staying stuck after OpenCode already dropped the request ([#11061](https://github.com/getpaseo/paseo/pull/11061) by [@rhettjay](https://github.com/rhettjay))
- Fixed idle cleanup keeping OpenCode v2 chats in memory while another session runs on the shared server ([#11039](https://github.com/getpaseo/paseo/pull/11039))
- Fixed idle ACP agents failing permanently after their process exits instead of reopening on the next message ([#11047](https://github.com/getpaseo/paseo/pull/11047))
- Fixed Kimi usage failing or showing an expired login for global `kimi.ai` accounts ([#8505](https://github.com/getpaseo/paseo/pull/8505) by [@benthecarman](https://github.com/benthecarman))
- Fixed the Z.ai Usage card missing when GLM Agent is signed in via `Z_AI_API_KEY` or its credentials file ([#8376](https://github.com/getpaseo/paseo/pull/8376) by [@Peanut-HZM](https://github.com/Peanut-HZM))
### Plugins
- Added OMP tool-call intent to `item.metadata.intent` for timeline plugins ([#10727](https://github.com/getpaseo/paseo/pull/10727) by [@mcowger](https://github.com/mcowger))
## 0.18.0 - 2026-11-27
- **Remote workspace browser proxy:** Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote `localhost` servers open directly in Paseo. ([#10944](https://github.com/getpaseo/paseo/pull/10944) by [@airon-assustadus](https://github.com/airon-assustadus))
- **Per-device notification preferences:** Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps. ([#10888](https://github.com/getpaseo/paseo/pull/10888))
- **Agent profile system prompts:** Save an optional system prompt on an agent profile to apply it to new agents started from that profile. ([#10996](https://github.com/getpaseo/paseo/pull/10996))
- **More syntax highlighting:** Syntax highlighting now covers diff and patch files along with Ruby, Kotlin, TOML, SQL, Lua, Protobuf, PowerShell, Groovy, Gradle, Scala, CMake, Properties, INI, R, Perl, and LaTeX. ([#11026](https://github.com/getpaseo/paseo/pull/11026) by [@hmalaspina](https://github.com/hmalaspina), [@kukicola](https://github.com/kukicola), [@MaximeConan](https://github.com/MaximeConan), [@singleton11](https://github.com/singleton11), [@chandlerok](https://github.com/chandlerok))
### Changed
- Changed ACP providers to cache model catalogs across daemon restarts instead of probing in the background, and cleaned up Antigravity ACP flags and metadata. Requires [Antigravity CLI 1.5.1 or later](https://paseo.sh/docs/supported-providers/antigravity) ([#10992](https://github.com/getpaseo/paseo/pull/10992))
### Fixed
- Fixed Paseo iOS crashing shortly after connecting when an enabled client plugin imports `react-native` ([#11011](https://github.com/getpaseo/paseo/pull/11011))
- Fixed OpenCode v2 agents staying stuck in running after Stop when stream events were missed or chat history was large ([#10955](https://github.com/getpaseo/paseo/pull/10955))
- Fixed steering a Pi agent during a run it started on its own aborting the run instead of steering it ([#10977](https://github.com/getpaseo/paseo/pull/10977) by [@viiqswim](https://github.com/viiqswim))
- Fixed creating a workspace from a pull request in a fork clone checking out the fork's pull request with the same number ([#10987](https://github.com/getpaseo/paseo/pull/10987))
- Fixed dropping images or files onto the composer leaving the input unfocused ([#11022](https://github.com/getpaseo/paseo/pull/11022))
## 0.17.6 - 2026-11-27
### Improved
- Reorganized Settings into Device and Host sections and consolidated sparse pages ([#10933](https://github.com/getpaseo/paseo/pull/10933))
- Added arrow-key navigation for models, providers, and profiles in the model picker ([#10929](https://github.com/getpaseo/paseo/pull/10929), [#10962](https://github.com/getpaseo/paseo/pull/10962))
- Added an in-place Refresh control for Tailscale availability in host settings and setup ([#10903](https://github.com/getpaseo/paseo/pull/10903))
### Changed
- Removed the Antigravity usage source that ran `agy -p /usage` in the background ([#10953](https://github.com/getpaseo/paseo/pull/10953) by [@luoph](https://github.com/luoph))
### Fixed
- Fixed Paseo Android crashing on Samsung devices when a chat shows a code block or quote ([#10964](https://github.com/getpaseo/paseo/pull/10964))
- Fixed mouse clicks not selecting model picker rows on Android ([#10972](https://github.com/getpaseo/paseo/pull/10972))
- Fixed macOS Desktop freezing during startup because of Dock progress bar updates ([#10939](https://github.com/getpaseo/paseo/pull/10939))
- Fixed Linux AppImage leaking its runtime environment into shells and child processes ([#10920](https://github.com/getpaseo/paseo/pull/10920))
- Fixed background Git fetches on Linux spawning orphan D-Bus daemons and retrying failing auth in a loop ([#10921](https://github.com/getpaseo/paseo/pull/10921))
- Fixed flashes when restoring archived workspaces and agents, and added an unarchiving state ([#10928](https://github.com/getpaseo/paseo/pull/10928))
- Fixed new web tabs losing projects after another tab evicts the directory cache ([#10942](https://github.com/getpaseo/paseo/pull/10942))
- Fixed timelines dropping rows when a rewind epoch changes ([#8794](https://github.com/getpaseo/paseo/pull/8794) by [@LiebeLee](https://github.com/LiebeLee))
## 0.17.5 - 2026-11-26
- **Archive workspaces together:** Cmd/Ctrl+click a workspace in the sidebar to select multiple workspaces and archive them in one step. ([#10798](https://github.com/getpaseo/paseo/pull/10798), [#10821](https://github.com/getpaseo/paseo/pull/10821))
- **Copy quoted drafts:** Copy a quote from a reply with one tap, without the `>` markers. ([#10608](https://github.com/getpaseo/paseo/pull/10608) by [@pedrovieira](https://github.com/pedrovieira), [@dinhphieu](https://github.com/dinhphieu))
- **Redesigned agent profiles page:** Agent profiles have their own dedicated settings page, and the model picker saves a new profile in one tap. ([#10789](https://github.com/getpaseo/paseo/pull/10789), [#10824](https://github.com/getpaseo/paseo/pull/10824))
- **Redesigned Add project:** Add project opens on folder search, with Clone and New folder one tab away. ([#10767](https://github.com/getpaseo/paseo/pull/10767))
- **Choose how Desktop updates:** Desktop can download updates automatically, only notify you, or never check. ([#10785](https://github.com/getpaseo/paseo/pull/10785))
- **First-class Tailscale support:** Turn on Tailscale for a host from its settings or from setup, without editing its configuration. ([#10801](https://github.com/getpaseo/paseo/pull/10801))
### Added
- Added host icons, connection types, and latency to the host picker ([#10702](https://github.com/getpaseo/paseo/pull/10702) by [@artile](https://github.com/artile))
- Added agent profiles to model picker search and the Command Center ([#10774](https://github.com/getpaseo/paseo/pull/10774))
- Added Archive on finish to `paseo schedule create`, `paseo schedule update`, and the schedule MCP tools ([#8479](https://github.com/getpaseo/paseo/pull/8479) by [@ArnoldHueteG](https://github.com/ArnoldHueteG))
- Added newer Factory Droid models by updating its catalog entry to Droid 1.20.0 ([#10779](https://github.com/getpaseo/paseo/pull/10779) by [@dsingal0](https://github.com/dsingal0))
### Changed
- Changed automatic stable Desktop updates to check at most every 6 hours and to wait 24 hours after each update ([#10882](https://github.com/getpaseo/paseo/pull/10882), [#10901](https://github.com/getpaseo/paseo/pull/10901))
### Fixed
- Fixed agents hiding the subagents they create from tabs and the subagent track ([#10887](https://github.com/getpaseo/paseo/pull/10887))
- Fixed parent agents getting a Claude subagent's interim reply instead of its final reply when the subagent waits on background work ([#10864](https://github.com/getpaseo/paseo/pull/10864))
- Fixed agents that watch a pull request staying in Running after their turn ends ([#10740](https://github.com/getpaseo/paseo/pull/10740) by [@drgould](https://github.com/drgould))
- Fixed the Changes pane offering no Push or Pull when the remote is not named `origin` ([#10679](https://github.com/getpaseo/paseo/pull/10679))
- Fixed a pane switching to the wrong tab after you split or move its active tab out ([#10716](https://github.com/getpaseo/paseo/pull/10716))
- Fixed New workspace leaving focus on the project button after you choose a project ([#10632](https://github.com/getpaseo/paseo/pull/10632))
- Fixed archived chats staying in memory until the window reloads ([#10866](https://github.com/getpaseo/paseo/pull/10866))
- Fixed hover cards and other overlays slowing down in long app sessions ([#10778](https://github.com/getpaseo/paseo/pull/10778) by [@maci0](https://github.com/maci0))
- Fixed Desktop freezing when you open a chat whose last turn has hundreds of tool calls ([#8661](https://github.com/getpaseo/paseo/pull/8661) by [@luoph](https://github.com/luoph))
- Fixed direct connections dropping on slow links while a large timeline loads ([#10651](https://github.com/getpaseo/paseo/pull/10651) by [@apple-ouyang](https://github.com/apple-ouyang))
- Fixed large Git workspaces stalling the daemon while their file watchers scan ([#10788](https://github.com/getpaseo/paseo/pull/10788), [#10602](https://github.com/getpaseo/paseo/pull/10602))
- Fixed a Git change in one repository rescanning every checkout ([#10863](https://github.com/getpaseo/paseo/pull/10863) by [@viiqswim](https://github.com/viiqswim))
- Fixed iOS chats staying blank when a pending question is taller than the screen ([#10759](https://github.com/getpaseo/paseo/pull/10759))
- Fixed Android long-press text selection in chat leaving the magnifier stuck on screen ([#10844](https://github.com/getpaseo/paseo/pull/10844))
- Fixed mobile sheet footers dropping behind the system bar when the keyboard closes ([#10827](https://github.com/getpaseo/paseo/pull/10827))
- Fixed the sidebar toggle covering plugin screen titles on macOS ([#10773](https://github.com/getpaseo/paseo/pull/10773))
- Fixed Windows file links with a slash before the drive letter failing to open ([#7711](https://github.com/getpaseo/paseo/pull/7711))
- Fixed Import Session giving up on slow providers and hiding provider errors ([#10516](https://github.com/getpaseo/paseo/pull/10516) by [@chirag127](https://github.com/chirag127), [@derek-geekdive](https://github.com/derek-geekdive))
- Fixed OMP 19.1 `ask` questions not showing a question card ([#10862](https://github.com/getpaseo/paseo/pull/10862) by [@gtoxlili](https://github.com/gtoxlili))
- Fixed OpenCode 2 agents with their own MCP servers failing when a shared OpenCode server is running. Requires OpenCode 2.0.29 or later ([#10752](https://github.com/getpaseo/paseo/pull/10752))
- Fixed deleted OpenCode subagents staying in the subagent track ([#8332](https://github.com/getpaseo/paseo/pull/8332))
- Fixed stopped Claude background subagents showing as running after you reopen the parent ([#9013](https://github.com/getpaseo/paseo/pull/9013))
- Fixed plugin and Paseo instructions replacing a Codex agent's own `developer_instructions` ([#10792](https://github.com/getpaseo/paseo/pull/10792))
- Fixed the OpenCode Go usage card missing when the Go key is in OpenCode's `auth.json` ([#10678](https://github.com/getpaseo/paseo/pull/10678))
- Fixed GitHub, GitLab, and Gitea commands on Windows breaking multiline arguments and expanding `%VAR%` text ([#10685](https://github.com/getpaseo/paseo/pull/10685))
- Fixed `paseo hub login` printing a link without the code ([#10751](https://github.com/getpaseo/paseo/pull/10751))
- Fixed Hub trigger runs failing on Antigravity and other plugin providers without tool policy support ([#10889](https://github.com/getpaseo/paseo/pull/10889))
- Fixed Hub sessions being refused when they read a daemon's provider controls ([#10794](https://github.com/getpaseo/paseo/pull/10794))
- Fixed Hermes and other plugin ACP providers leaving processes running after a model list refresh times out ([#10867](https://github.com/getpaseo/paseo/pull/10867))
- Fixed a plugin's agent tools returning `Tool not found` after the plugin reloads during a turn ([#10106](https://github.com/getpaseo/paseo/pull/10106) by [@tomgrin10](https://github.com/tomgrin10))
- Fixed replies changed by a timeline plugin losing Copy, Fork, and turn duration ([#10795](https://github.com/getpaseo/paseo/pull/10795) by [@Brandon168](https://github.com/Brandon168))
- Fixed idle plugin sessions waking the daemon every 10 seconds ([#9363](https://github.com/getpaseo/paseo/pull/9363) by [@Brandon168](https://github.com/Brandon168))
### Security
- Changed Claude Code 2.1.326 or later to receive MCP server tokens over stdin instead of in process arguments that other local users can read ([#10698](https://github.com/getpaseo/paseo/pull/10698) by [@mdbraber](https://github.com/mdbraber))
- Fixed repository teardown commands running on archive for pull request worktrees whose setup you have not approved ([#10694](https://github.com/getpaseo/paseo/pull/10694))
### Plugins
- Added launch wraps so plugins can run agents, terminals, and worktree commands inside a sandbox ([#10786](https://github.com/getpaseo/paseo/pull/10786) by [@clkao](https://github.com/clkao), [@bendavid](https://github.com/bendavid))
- Added the parent workspace to plugin workspace snapshots ([#10781](https://github.com/getpaseo/paseo/pull/10781) by [@spatenotte](https://github.com/spatenotte))
- Updated the bundled `paseo-plugin` skill to the current plugin API ([#10793](https://github.com/getpaseo/paseo/pull/10793))
## 0.17.4 - 2026-11-23
### Fixed
- Fixed numbered sublists overlapping their text and quotes inside lists overlapping later messages on Android ([#10499](https://github.com/getpaseo/paseo/pull/10499))
- Fixed Android terminal input so it asks the keyboard to exclude typed text from personalized learning ([#10586](https://github.com/getpaseo/paseo/pull/10586))
- Fixed conversations disappearing when directory capitalization differs on a case-insensitive file system ([#10555](https://github.com/getpaseo/paseo/pull/10555) by [@yzim](https://github.com/yzim))
- Fixed interrupt and steer messages to archived agents being queued without starting a turn ([#10611](https://github.com/getpaseo/paseo/pull/10611) by [@thomasvan](https://github.com/thomasvan))
- Fixed Hermes Shell rows omitting part of the command ([#10614](https://github.com/getpaseo/paseo/pull/10614))
- Fixed OpenCode Go usage for logins stored in the OpenCode 2 database, including Console sign-ins and API keys ([#8729](https://github.com/getpaseo/paseo/pull/8729), [#10612](https://github.com/getpaseo/paseo/pull/10612))
- Fixed existing OpenCode sessions failing to reopen after Paseo tool definitions change ([#10533](https://github.com/getpaseo/paseo/pull/10533) by [@Peanut-HZM](https://github.com/Peanut-HZM))
- Fixed Paseo tools missing from agents that use MCP protocol version `2026-07-28` ([#10558](https://github.com/getpaseo/paseo/pull/10558) by [@apple-ouyang](https://github.com/apple-ouyang))
- Fixed the daemon exiting when it closes a session after the plugin process has stopped ([#10585](https://github.com/getpaseo/paseo/pull/10585))
- Fixed Git commands selecting the wrong repository when a directory has the layout of a bare repository ([#10587](https://github.com/getpaseo/paseo/pull/10587))
- Fixed Claude Auto permission mode being unavailable on Bedrock and Vertex ([#6904](https://github.com/getpaseo/paseo/pull/6904))
- Fixed the sidebar host settings button requiring two clicks to open settings ([#10562](https://github.com/getpaseo/paseo/pull/10562) by [@ShalokShalom](https://github.com/ShalokShalom))
- Fixed the Changes pane not offering Push for a new branch that was never pushed in a regular checkout ([#10631](https://github.com/getpaseo/paseo/pull/10631))
- Fixed the daemon using the wrong model catalog when Hub sends a workspace directory for trigger validation ([#10582](https://github.com/getpaseo/paseo/pull/10582))
## 0.17.3 - 2026-11-22
### Fixed
- Fixed iPhone sheets such as Workspace tabs ignoring body swipes to expand, scroll, or collapse ([#10525](https://github.com/getpaseo/paseo/pull/10525))
- Fixed Antigravity applying the default model's thinking levels to every model, which blocked Orchestrator chats from opening ([#10524](https://github.com/getpaseo/paseo/pull/10524))
- Fixed `/` and `@` pickers disappearing until reload after returning to a workspace through window history ([#8954](https://github.com/getpaseo/paseo/pull/8954) by [@viking1201](https://github.com/viking1201))
## 0.17.2 - 2026-11-22
- **Turn and session stats:** View per-turn and session timing, token, cache, and cost metrics for Claude, OpenCode v2, Pi, Oh My Pi, and plugin providers. ([#10496](https://github.com/getpaseo/paseo/pull/10496), [#10510](https://github.com/getpaseo/paseo/pull/10510))
- **Automatic model list refresh:** Enabled providers refresh their model lists in the background every 30 minutes. ([#10481](https://github.com/getpaseo/paseo/pull/10481))
- **Sidebar usage by default:** The sidebar usage summary is enabled by default, sources for inactive providers start hidden, and source toggles move to a Sources list. ([#10491](https://github.com/getpaseo/paseo/pull/10491))
- **Agents can steer turns:** Agents can steer another agent's running turn alongside queueing or interrupting it, and receive delivery guidance in the response. ([#10483](https://github.com/getpaseo/paseo/pull/10483))
### Added
- Added Archive workspace to the mobile workspace actions menu ([#10507](https://github.com/getpaseo/paseo/pull/10507))
- Added provider docs links, fuller diagnostic reports, and a scrollable Models list with inline refresh to provider settings ([#10487](https://github.com/getpaseo/paseo/pull/10487))
### Changed
- Removed the "This chat uses OpenCode v2." info row from OpenCode v2 chats ([#10490](https://github.com/getpaseo/paseo/pull/10490))
### Fixed
- Fixed pressing Tab or Enter in the slash menu running a stale `/exit` choice and archiving the agent ([#10484](https://github.com/getpaseo/paseo/pull/10484) by [@3ae3ae](https://github.com/3ae3ae))
- Fixed busy host connections dropping to reconnect when multiple connections are saved ([#10395](https://github.com/getpaseo/paseo/pull/10395))
- Fixed retrying an edited New workspace form hitting a conflict error after a failed start, and unified composer error alerts ([#10482](https://github.com/getpaseo/paseo/pull/10482))
- Fixed Antigravity turns staying running after creating a recurring schedule ([#10469](https://github.com/getpaseo/paseo/pull/10469))
- Fixed daemon startup and plugin reloads leaving zombie child processes for local directory plugins ([#10470](https://github.com/getpaseo/paseo/pull/10470))
## 0.17.1 - 2026-11-21
- **Antigravity approvals and history:** Choose a permission mode, answer tool approvals, and import or reopen sessions. Requires [Antigravity CLI 1.5.0 or later](https://paseo.sh/docs/supported-providers/antigravity). ([#10193](https://github.com/getpaseo/paseo/pull/10193))
- **Use existing worktrees:** Start a workspace in a worktree you already have, or create one from a branch or pull request. ([#10190](https://github.com/getpaseo/paseo/pull/10190))
- **Update providers in Paseo:** See each provider's status and installed version, and update supported CLIs from the app. ([#9568](https://github.com/getpaseo/paseo/pull/9568), [#9661](https://github.com/getpaseo/paseo/pull/9661))
- **Provider quota forecasts:** Usage shows when your current pace will use up a quota before it resets. ([#10289](https://github.com/getpaseo/paseo/pull/10289), [#10385](https://github.com/getpaseo/paseo/pull/10385))
- **Watch PRs and MRs:** Ask an agent to watch a pull or merge request for new checks, reviews, and comments. ([#10148](https://github.com/getpaseo/paseo/pull/10148), [#10279](https://github.com/getpaseo/paseo/pull/10279), [#10280](https://github.com/getpaseo/paseo/pull/10280))
- **Heartbeats in Background work:** See and stop an agent's heartbeats next to its background tasks. ([#10097](https://github.com/getpaseo/paseo/pull/10097), [#10216](https://github.com/getpaseo/paseo/pull/10216))
- **Agent messages wait their turn:**Reports and notifications from other agents arrive when the current turn ends instead of interrupting it. ([#9757](https://github.com/getpaseo/paseo/pull/9757))
- **Agent messages wait their turn:**By default, messages from other agents wait for the current turn to end. ([#9757](https://github.com/getpaseo/paseo/pull/9757), [#10404](https://github.com/getpaseo/paseo/pull/10404))
- **More goose models:** Select models from every provider configured in goose. ([#9719](https://github.com/getpaseo/paseo/pull/9719) by [@i386](https://github.com/i386))
- **Plugin agent instructions:** Plugins can add their own instructions to agents. ([#9781](https://github.com/getpaseo/paseo/pull/9781))
### Added
- Added OpenRouter credit balances and API key spending to Usage and `paseo usage` ([#10269](https://github.com/getpaseo/paseo/pull/10269))
- Added Antigravity account quotas to Usage ([#10232](https://github.com/getpaseo/paseo/pull/10232) by [@luoph](https://github.com/luoph), [@RRD-dev](https://github.com/RRD-dev))
- Added Antigravity skills to `/` suggestions ([#10383](https://github.com/getpaseo/paseo/pull/10383))
- Added bundled orchestration skills to Antigravity ([#10273](https://github.com/getpaseo/paseo/pull/10273))
- Added shortcuts to open the model picker and cycle thinking levels with Cmd/Ctrl+/ and Cmd/Ctrl+Shift+/ ([#10147](https://github.com/getpaseo/paseo/pull/10147))
- Added agent settings to Command Center search before the first message ([#10182](https://github.com/getpaseo/paseo/pull/10182) by [@cleiter](https://github.com/cleiter))
- Added Rewind to Command Center for the latest turn ([#10144](https://github.com/getpaseo/paseo/pull/10144))
- Added a separate Ultracode toggle for eligible Claude models ([#10150](https://github.com/getpaseo/paseo/pull/10150) by [@fivetaku](https://github.com/fivetaku))
- Added a separate Ultracode toggle for Claude ([#10150](https://github.com/getpaseo/paseo/pull/10150) by [@fivetaku](https://github.com/fivetaku))
- Added Flex speed for Codex ([#9809](https://github.com/getpaseo/paseo/pull/9809) by [@qjqqyy](https://github.com/qjqqyy))
- Added syntax highlighting for shell scripts and Dockerfiles ([#10178](https://github.com/getpaseo/paseo/pull/10178))
- Added project listing on connected daemons for Hub sessions ([#10392](https://github.com/getpaseo/paseo/pull/10392))
- Added labels and workspace IDs to `paseo ls --json` ([#10076](https://github.com/getpaseo/paseo/pull/10076))
### Changed
- Changed content width to Default, Wide, and Full presets that also resize open chats and Markdown previews ([#10231](https://github.com/getpaseo/paseo/pull/10231))
- Changed Antigravity tool cards to show shell commands, output, and file diffs ([#10379](https://github.com/getpaseo/paseo/pull/10379))
- Changed Clone from GitHub to show matching private repositories first ([#10264](https://github.com/getpaseo/paseo/pull/10264))
- Changed healthy quota bars in Usage to green ([#10397](https://github.com/getpaseo/paseo/pull/10397))
- Changed worktree teardown to keep the worktree when the command times out ([#9852](https://github.com/getpaseo/paseo/pull/9852) by [@ragokan](https://github.com/ragokan))
- Changed workspace navigation on mobile to acknowledge taps sooner ([#9887](https://github.com/getpaseo/paseo/pull/9887))
- Changed workspace Git status to skip its reload after a short reconnect with no file changes ([#10142](https://github.com/getpaseo/paseo/pull/10142) by [@VladimirGVP](https://github.com/VladimirGVP))
- Changed `browser_new_tab` to ask agents to choose a Desktop when several are connected ([#10189](https://github.com/getpaseo/paseo/pull/10189))
- Changed workspace Git status to reuse its snapshot after a short reconnect when the checkout has not changed ([#10142](https://github.com/getpaseo/paseo/pull/10142) by [@VladimirGVP](https://github.com/VladimirGVP))
- Changed workspace navigation to acknowledge taps promptly and initially load fewer offscreen chat rows on mobile ([#9887](https://github.com/getpaseo/paseo/pull/9887))
- Changed worktree teardown to stop after one minute by default and keep the worktree; set `worktree.teardownTimeoutMs` in `paseo.json` for longer commands ([#9852](https://github.com/getpaseo/paseo/pull/9852) by [@ragokan](https://github.com/ragokan))
### Fixed
- Fixed an online host's workspaces going missing ([#10318](https://github.com/getpaseo/paseo/pull/10318))
- Fixed chat history timing out when many open chats refresh after reconnecting ([#10368](https://github.com/getpaseo/paseo/pull/10368))
- Fixed slow reopening of long Claude chats while the daemon is busy ([#10369](https://github.com/getpaseo/paseo/pull/10369))
- Fixed images from a live reply waiting for images in another chat's history to load ([#10371](https://github.com/getpaseo/paseo/pull/10371))
- Fixed agents failing to recover after stopping a foreground daemon with Ctrl+C ([#10381](https://github.com/getpaseo/paseo/pull/10381))
- Fixed long Antigravity chats losing the end of their history after a daemon restart ([#10428](https://github.com/getpaseo/paseo/pull/10428))
- Fixed Antigravity turns ending while a background command is still running ([#10310](https://github.com/getpaseo/paseo/pull/10310))
- Fixed the Add model sheet staying open after saving a custom model ([#10432](https://github.com/getpaseo/paseo/pull/10432))
- Fixed slash suggestions failing when a provider reports duplicate command names ([#10275](https://github.com/getpaseo/paseo/pull/10275))
- Fixed resumed Codex sessions using their previous working directory for configuration and MCP servers ([#10390](https://github.com/getpaseo/paseo/pull/10390) by [@tabulius-ux](https://github.com/tabulius-ux))
- Fixed stale Codex subagent statuses after reopening or rewinding the parent chat ([#10171](https://github.com/getpaseo/paseo/pull/10171) by [@AnalyticETH](https://github.com/AnalyticETH))
- Fixed Usage showing the previous Claude account's quota after switching accounts ([#10236](https://github.com/getpaseo/paseo/pull/10236))
- Fixed the sidebar usage row dropping period labels when several usage windows are pinned ([#10274](https://github.com/getpaseo/paseo/pull/10274))
- Fixed Changes failing to recognize a checkout immediately after restoring its worktree ([#10224](https://github.com/getpaseo/paseo/pull/10224), [#10304](https://github.com/getpaseo/paseo/pull/10304), [#10406](https://github.com/getpaseo/paseo/pull/10406))
- Fixed split-pane dividers stopping or lagging during drags ([#5996](https://github.com/getpaseo/paseo/pull/5996))
- Fixed double-click word selection and triple-click line selection in diffs ([#10252](https://github.com/getpaseo/paseo/pull/10252) by [@pedrovieira](https://github.com/pedrovieira))
- Fixed the composer and chat column losing alignment when Chat outline is enabled ([#10277](https://github.com/getpaseo/paseo/pull/10277))
- Fixed the web composer's focus shortcut hint overlapping the placeholder ([#6200](https://github.com/getpaseo/paseo/pull/6200))
- Fixed the archive shortcut failing when the active workspace's sidebar group is collapsed ([#10356](https://github.com/getpaseo/paseo/pull/10356) by [@hiennd-ctrl](https://github.com/hiennd-ctrl), [@neihyud](https://github.com/neihyud))
- Fixed other sessions and plugins seeing a workspace as active while another session is archiving it ([#10391](https://github.com/getpaseo/paseo/pull/10391) by [@tabulius-ux](https://github.com/tabulius-ux))
- Fixed Android composer buttons requiring a second tap after typing or zooming a chat image ([#10057](https://github.com/getpaseo/paseo/pull/10057), [#10308](https://github.com/getpaseo/paseo/pull/10308))
- Fixed swiping a terminal in an Android browser opening the keyboard ([#10225](https://github.com/getpaseo/paseo/pull/10225) by [@tonylt](https://github.com/tonylt))
- Fixed Collapse turns hiding a finished OMP or Pi reply when an idle provider notice appears ([#10135](https://github.com/getpaseo/paseo/pull/10135))
- Fixed repeated finish notifications while an agent responds to background tasks and its earlier finish is unread ([#10200](https://github.com/getpaseo/paseo/pull/10200))
- Fixed repeated finish notifications while an agent responds to background tasks ([#10200](https://github.com/getpaseo/paseo/pull/10200))
- Fixed an empty chat losing the prompt and start of a reply after reconnecting mid-reply ([#9723](https://github.com/getpaseo/paseo/pull/9723) by [@ragokan](https://github.com/ragokan))
- Fixed changes between Claude thinking levels stopping its background work ([#10008](https://github.com/getpaseo/paseo/pull/10008) by [@gilad-rubin](https://github.com/gilad-rubin))
- Fixed changing the Claude thinking level stopping its background work ([#10008](https://github.com/getpaseo/paseo/pull/10008) by [@gilad-rubin](https://github.com/gilad-rubin))
- Fixed OpenCode turns staying running after a shared OpenCode service stops ([#10187](https://github.com/getpaseo/paseo/pull/10187))
- Fixed OMP denying an approved tool call when session or grant choices were offered ([#10126](https://github.com/getpaseo/paseo/pull/10126) by [@dsingal0](https://github.com/dsingal0))
- Fixed a Codex message stopped before its turn starts showing an error instead of canceled ([#9931](https://github.com/getpaseo/paseo/pull/9931) by [@3ae3ae](https://github.com/3ae3ae))
- Fixed Changes failing to open when Git metadata watching reaches its limit ([#10188](https://github.com/getpaseo/paseo/pull/10188))
- Fixed copying selected reply text into plain-text targets with unwanted Markdown syntax ([#10079](https://github.com/getpaseo/paseo/pull/10079) by [@danberindei](https://github.com/danberindei))
- Fixed file views losing their scroll position when switching Preview and Source, except HTML previews on iOS ([#10195](https://github.com/getpaseo/paseo/pull/10195) by [@apple-ouyang](https://github.com/apple-ouyang))
- Fixed Markdown previews and source views losing their scroll position when switching between them ([#10195](https://github.com/getpaseo/paseo/pull/10195) by [@apple-ouyang](https://github.com/apple-ouyang))
- Fixed file tabs in split panes showing or focusing the wrong file ([#9888](https://github.com/getpaseo/paseo/pull/9888) by [@KosmoCHE](https://github.com/KosmoCHE))
- Fixed touch-screen submenus closing as soon as they open ([#10175](https://github.com/getpaseo/paseo/pull/10175) by [@christiantwu](https://github.com/christiantwu))
- Fixed dictation failing after another chat that used the microphone closes ([#10185](https://github.com/getpaseo/paseo/pull/10185) by [@Brandon168](https://github.com/Brandon168))
- Fixed composer taps being lost on Android after zooming a chat image ([#10057](https://github.com/getpaseo/paseo/pull/10057))
- Fixed clipped text on Samsung DeX ([#9995](https://github.com/getpaseo/paseo/pull/9995) by [@easyhunjune](https://github.com/easyhunjune))
- Fixed workspace images in chat failing to load after a slow host connection ([#10111](https://github.com/getpaseo/paseo/pull/10111) by [@ragokan](https://github.com/ragokan))
- Fixed Mermaid flowcharts with `@` in labels showing source instead of the diagram ([#10165](https://github.com/getpaseo/paseo/pull/10165) by [@monarchmaisuriya](https://github.com/monarchmaisuriya))
- Fixed hidden background workspaces triggering the dock badge and favicon ([#9983](https://github.com/getpaseo/paseo/pull/9983))
- Fixed desktop sidebar navigation crowding out workspaces ([#9903](https://github.com/getpaseo/paseo/pull/9903) by [@pentatonic-alex](https://github.com/pentatonic-alex))
- Fixed closed PR badges appearing on a repository's default branch ([#10053](https://github.com/getpaseo/paseo/pull/10053))
- Fixed plugin agents failing to reopen after their provider closes the session ([#10153](https://github.com/getpaseo/paseo/pull/10153))
- Fixed plugin screens and settings failing to use plugin state hooks ([#10049](https://github.com/getpaseo/paseo/pull/10049))
- Fixed a Codex message stopped before its turn starts showing an error instead of canceled ([#9931](https://github.com/getpaseo/paseo/pull/9931) by [@3ae3ae](https://github.com/3ae3ae))
- Fixed historical closed PR badges appearing on a repository's default branch ([#10053](https://github.com/getpaseo/paseo/pull/10053))
### Plugins
- Added plugin control of worktree creation, removal, and restoration ([#10278](https://github.com/getpaseo/paseo/pull/10278))
- Added a `focusHost` navigation option that selects the destination host in the sidebar ([#5574](https://github.com/getpaseo/paseo/pull/5574) by [@discwl](https://github.com/discwl))
- **回合和会话统计**:查看 Claude、OpenCode v2、Pi、Oh My Pi 和插件 Provider 的单轮及会话耗时、token、缓存和费用指标。([#10496](https://github.com/getpaseo/paseo/pull/10496), [#10510](https://github.com/getpaseo/paseo/pull/10510))
@@ -36,6 +36,7 @@ At the start of non-trivial work, list `docs/` and skim anything relevant to the
| [docs/floating-panels.md](docs/floating-panels.md) | Anchored popovers — Portal/Modal escape for Android, lifecycle gates, keyboard-shared-value, status-bar offset, the flash |
| [docs/keyboard-shortcuts.md](docs/keyboard-shortcuts.md) | The binding table, per-platform key sources, badges vs routing, iOS `UIKeyCommand` limits |
| [docs/menus.md](docs/menus.md) | The menu engine — popover vs sheet, submenu pages, hover intent, when a decision earns a submenu |
| [docs/drag-reorder.md](docs/drag-reorder.md) | Drag to reorder — `DraggableList` and its handle, the scroll view that must host the drag, grip placement, testing on a phone |
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="40"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="40"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
@@ -48,7 +48,7 @@ Paseo is an open source agentic development environment for desktop, mobile, web
- **Multi-provider:** Claude Code, Codex, Copilot, OpenCode, Pi, Antigravity, and Muse Code through the same interface. Pick the right model for each job.
- **Voice control:** Dictate tasks or talk through problems in voice mode. Hands-free when you need it.
- **Cross-device:** iOS, Android, desktop, web, and CLI. Start work at your desk, check in from your phone, script it from the terminal.
- **Privacy-first:** Paseo doesn't have any telemetry, tracking, or forced log-ins.
- **Privacy-first:** No telemetry, tracking, or forced login. Remote access uses an optional end-to-end encrypted relay.
[Run parallel tasks in Paseo](https://paseo.sh/docs/parallel-development): start agents in separate worktrees, review their diffs, run each app, and check it in the built-in browser.
@@ -56,9 +56,9 @@ Paseo is an open source agentic development environment for desktop, mobile, web
<!-- Sponsors: one cell per sponsor in the order of packages/website/src/data/sponsors.ts, then "become a sponsor" cells up to three. -->
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Become a sponsor</a></td>
<tr valign="top">
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="56"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="56"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
<td align="center" width="33%"><a href="https://paseo.sh/sponsor">Become a sponsor</a></td>
<td align="center" width="33%"><a href="https://hoplite.sh/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/hoplite-on-dark.svg"><img src="packages/website/public/sponsors/hoplite-on-light.svg" alt="Hoplite" height="40"></picture></a><br><sub>Hoplite runs swarms of coding agents in the cloud.</sub></td>
<td align="center" width="33%"><a href="https://encore.dev/?utm_source=paseo&utm_medium=readme&utm_campaign=sponsor"><picture><source media="(prefers-color-scheme: dark)" srcset="packages/website/public/sponsors/encore-on-dark.svg"><img src="packages/website/public/sponsors/encore-on-light.svg" alt="Encore" height="40"></picture></a><br><sub>Encore lets AI agents ship to production safely, at scale, in your own cloud.</sub></td>
@@ -33,7 +33,7 @@ The relay sees only: IP addresses, timing, message sizes, session IDs, and the p
The daemon requires a valid cryptographic handshake before processing any commands. A compromised relay cannot:
- **Impersonate the daemon to your phone** — Without the daemon's secret key, it cannot derive the shared key, so any traffic it injects fails authenticated decryption on the phone
- **Send commands as you** — The daemon only accepts traffic that decrypts and authenticates under a shared key derived with its own secret key. The phone's keypair is ephemeral per connection, so there is no persistent phone-side secret to steal; protection comes from the daemon's secret key never leaving the daemon.
- **Open a session without pairing** — The daemon's public key is carried only in the pairing offer and is never sent to therelay. With a daemon password configured, the daemon also rejects any relay client that does not send the right password inside the encrypted channel.
- **Read your traffic** — After the handshake every message is encrypted: ChaCha20-Poly1305 in protected mode, XSalsa20-Poly1305 (NaCl box) in legacy mode
- **Forge messages** — Both constructions are authenticated encryption; a tampered message is rejected in either mode
- **Replay old messages** — In protected mode the daemon contributes a fresh ephemeral key to every session and every record carries a strictly increasing counter, so a recorded session cannot be replayed into a new one and a duplicated, reordered, or reflected record closes the session. Legacy mode has neither property: it uses random nonces, and a daemon that still admits legacy clients accepts a recorded legacy transcript (hello, credentials, commands) as a new session. Set `daemon.relay.requireProtectedSecurity: true` to refuse legacy clients once every client you use has updated.
Canonical marks, lockups, and wordmark font for **Paseo** and **Paseo Hub**. These are the source assets that will replace the existing icons across the app, desktop client, website, docs, and Hub in follow-up work.
Canonical marks, lockups, and wordmark font for **Paseo** and **Paseo Hub**. These are the source assets for the icons across the app, desktop client, website, docs, and Hub.
## Brand architecture
@@ -37,6 +37,10 @@ All lockups (`lockups/*.svg`) share a `144`-unit height (`140`-unit flower ink h
```text
assets/brand/
build.mjs Regenerates all marks and lockups
build-app-icons.mjs Regenerates the desktop and mobile app icons
app-icons/
paseo-lit.png
paseo-dev-lit.png
fonts/
PlusJakartaSans-SemiBold.ttf
OFL.txt
@@ -61,3 +65,25 @@ assets/brand/
```sh
node assets/brand/build.mjs
```
## App icons
`build-app-icons.mjs` renders every desktop and mobile app icon from `marks/paseo-white.svg`: the white butterfly on a black tile, and a blueprint tile for desktop development builds. Regenerate them after changing the butterfly:
```sh
node assets/brand/build-app-icons.mjs
```
The icons that ship are flat. Each platform masks and lights its own icons, so lit artwork ends up lit twice. `app-icons/` keeps a lit version of the two desktop icons, a baked approximation of macOS Liquid Glass. Nothing uses them.
The packaged Mac app takes its icon from `packages/desktop/assets/icon.icon`, an Icon Composer document the script also writes. macOS draws Liquid Glass on it and derives the dark, tinted, and clear variants. electron-builder compiles the document with `actool`, so packaging the Mac app needs Xcode 26 or later. The Nix build has no Xcode and uses `icon.icns`.
To see what macOS draws from the document without packaging the app, export it with Icon Composer's command line tool on a Mac:
@@ -15,7 +15,7 @@ Each live agent in `AgentManager` carries a `lastStatus` of `initializing`, `idl
## Daemon restart recovery
Restart recovery is off by default. Enable `agents.resumeOnStartup` in host config or
Host settings → Agents to resume interrupted agents after graceful shutdown or a crash. The daemon
Settings → Host → Daemon to resume interrupted agents after graceful shutdown or a crash. The daemon
reopens the saved provider conversation and settings, then sends `Resume working.`. Customize
the prompt with `agents.resumePrompt` or the same settings page.
Disabling recovery consumes pending intent; enabling it later does not revive old work.
@@ -80,7 +80,9 @@ Provider checks follow the signals their runtimes expose:
- Codex queries background terminals for loaded threads, including native children, and protects
pending provider requests. App servers without the terminal-list RPC stay resident.
- OpenCode checks active executions and descendants. V1 checks PTYs; v2 also checks shell and
inbox inventories. The shared server remains leased while a session vetoes collection.
inbox inventories. The shared server remains leased while a session vetoes collection. V2 lets
another session's execution veto only when releasing the lease would stop the server; the shared
server stays up after its last lease goes.
- Pi checks streaming, compaction, pending replies, and adapter-owned operations. Known native
subagent signals also protect their parent through the daemon's subagent store.
- OMP additionally requires `get_state.isSettled: true` and `hasPendingAsyncWork: false`.
@@ -150,13 +152,29 @@ Users can also detach an existing subagent from the subagents track. Detach is d
`notifyOnFinish` defaults to `true` for agent-scoped creation and prompt follow-ups because most delegated work needs to report back to the creating agent. Set it to `false` for explicit reporting or no completion callback.
Agent-originated messages and automatic notifications share a recipient-daemon delivery module. A queued receipt acknowledges admission before provider dispatch. Idle recipients retain the two-second quiet window. While a recipient has a running or starting turn (including compaction), messages stay queued across quiet windows and are delivered together after that turn settles, including failure or cancellation. A ready batch is released when the daemon observes the recipient settle; the two-second timer also retries it. Agent callers using `steer`, including the default, wait for the turn to end; only explicit `interrupt` replaces a running turn. An explicit interrupt or a command the provider accepts out of band runs before earlier queued messages. Those messages stay queued and are delivered after the running or replacement turn ends. Human prompts dispatch directly with their existing behavior. Conflicting session-mode choices retain separate ordered dispatches.
Agent-originated messages and automatic notifications share a recipient-daemon delivery module. A queued receipt acknowledges admission before provider dispatch. The module keeps one ordered queue per recipient, and the recipient reads its prompts in the order the daemon admitted them. Nothing overtakes an older queued message. A prompt takes its place when the daemon admits it, even while the provider is still starting an earlier turn, and a message stays in the queue until the turn that carries it starts. The turn has started when the agent manager acknowledges the run start; a turn that fails after that point is not delivered again.
The pending message window is in memory. Clean shutdown flushes it before closing agents; an abrupt
crash can lose queued prompts. A durable send receipt remains pending until actual dispatch
Any sender picks `queue`, `steer`, or `interrupt` with `activeTurnBehavior`. Agent senders default to `queue`; non-agent senders (app, CLI, plugins, Hub, top-level MCP) default to `interrupt`. Each kind of prompt is released this way:
- **`queue`** waits for any running or starting turn (including compaction) to end on its own or fail, then delivers the queued prompts together. The daemon releases it when it observes the recipient settle; a two-second timer also retries. On an idle recipient, agent messages wait two quiet seconds (steady arrivals cannot hold that window open past ten seconds); a non-agent queued message skips that quiet window and starts a turn at once. A non-agent queued message is sent unwrapped when dispatched alone, and in a `kind="user-message"` envelope when it shares a prompt with other messages. Finish notifications and change-request updates always queue.
- **`steer`** waits for neither the quiet window nor the turn. It is dispatched at admission as one prompt that enters the running turn: the messages queued before it, then the steer. A provider that cannot steer, or that refuses this steer, gets the prompt as a replacing turn instead, the same as a person's steer.
- **`interrupt`** is dispatched at admission the same way, as one prompt that replaces the running turn. An older queued message cannot start a turn after the newer `interrupt` that countermands it.
- **A person's direct prompt** (`steer` or `interrupt` from app, CLI, plugins, Hub, or top-level MCP) is dispatched directly and takes the queue along the same way: the messages admitted before it first, then the person's text, in one provider prompt. Messages admitted after it follow it. The person's text keeps its own transcript row. When the turn does not start, the messages return to the queue in their place. That covers a start the provider rejects and a start that is not acknowledged within 60 seconds; a provider that starts the turn after those 60 seconds receives the messages twice.
- **Stop** (the stop button, Escape, `cancel_agent`, a Hub interrupt) starts nothing. Messages admitted before the Stop are held, not dropped, including an interrupt whose turn had not started yet. They go ahead of the recipient's next prompt, in that prompt's turn: a person's prompt, or an agent message or notification admitted after the Stop. A held steer or interrupt no longer enters the turn; it waits like a queued message. A queue step or dispatch decided before the Stop is void, and the queue is held again when the message that reopened it is withdrawn. A replacing prompt, a reload, and a rewind are not a Stop. Neither is `cancel_agent` on a recipient with no running or starting turn: it stops nothing, reports that it canceled no run, and a queued message keeps its quiet window.
The queued receipt carries the applied behavior and guidance text for the sender. The text comes from two facts known at admission: whether the recipient has a running turn, and whether its provider can steer (`AgentManager.canSteer`, which is true when the session offers `steerActiveTurn`). It does not wait for the outcome. Guidance for a message queued behind a running turn tells the sender to send a short `steer` or `interrupt` follow-up instead of resending, because the follow-up carries the queued message ahead of it and a resend would be read twice. The MCP tool, the WebSocket `send_agent_message_response`, the CLI, and the connected-host path all relay this one text.
Older CLIs and connected hosts send an explicit `steer` for every default agent send. The daemon reads an agent sender's `steer` as `queue` unless the client advertises the `agent_active_turn_behaviors` capability. A new client talking to a daemon without `server_info.features.agentActiveTurnBehaviors` sends no behavior for `queue` and refuses a `steer`. A new client talking to a daemon without `server_info.features.nonAgentMessageQueue` refuses a non-agent `queue` before sending.
A command the provider accepts out of band is the one exception to admission order: it runs alone without ending the turn. A queued command runs ahead of older messages, and a `steer` or `interrupt` that runs this way takes no queued message along. A person's command leaves the queue where it is. A prompt is a command when it starts with a slash and a name that has no second slash, so `/compact` is one and `/tmp/build.log is stale` is plain text.
One provider prompt has one session mode. A batch released by a steer, an interrupt, or a person's prompt uses the latest explicit choice in it, the person's own first. Queued messages with conflicting choices keep separate ordered dispatches.
The pending message window is in memory. Clean shutdown flushes it, held messages included, before
closing agents; an abrupt crash can lose queued prompts. A durable send receipt remains pending until actual dispatch
acknowledgment, so a lost window never becomes a completed receipt. Completion waits cover queued
admission within their original timeout and cancellation scope, and return permission checkpoints
while messages are waiting.
admission within their original timeout and cancellation scope, and return at permission
checkpoints and when a Stop holds the queue.
Finish notification intent has a separate daemon-owned lifetime. The finish-subscriptions module
persists caller, child, host, and ownership policy through an injectable store; its JSON adapter uses
@@ -167,7 +185,7 @@ caller, child, and host into one watch.
Bootstrap restores these watches after repairing stale running records to `closed` and before opening
ingress. Reading a closed child's result does not load its provider. A finish notification reports that
the child's run has settled; the parent decides whether its task is complete. A child chosen for restart
the child has settled (see below); the parent decides whether its task is complete. A child chosen for restart
recovery is observed only after its resume was sent, so the parent never hears that it was closed
in between. Archived or deleted parents suppress delivery;
parent-owned creation watches also stop
@@ -180,6 +198,25 @@ outstanding intent. A crash after successful dispatch but before removal commits
notification. Clean shutdown can also flush an already queued callback while retaining its intent,
so that callback can repeat after restart. This is an at-least-once wakeup, without turn attribution or exactly-once delivery.
A turn end is not always a settled child. A child can end its turn with work that will start its next
turn by itself: a running turn, queued messages, a pending provider wake-up
(`AgentSession.hasPendingWakeup`: Claude background tasks, task notifications, and one-shot
wake-ups), or the child's own outstanding finish subscriptions as a caller. Heartbeats, recurring
crons, change-request watches, and other daemon background items never count: they are external
triggers, not work the caller is waiting for.
Every turn end reports `finished` at once. When work is still pending, the notice names it and the
subscription follows the child: each later turn end reports `finished` again, and the child settling
with nothing pending sends a final `finished` and removes the subscription, even when the work
drains without another turn. Reporting at once keeps a long-lived task, such as a dev server, from
leaving the caller without the child's reply. Following is what lets the caller hear the reply a
background task wakes up later ([#6346](https://github.com/getpaseo/paseo/issues/6346)). A work change
that leaves work pending sends nothing. Errors, permission requests, and closes report as they
happen. `followingSince` is stored when following starts, so a restart keeps following instead of
waiting for another turn end. After 24 hours of following, the caller gets a final `finished` with
the child's last reply and the subscription ends. Remote children and providers without the probe
report their first turn end as a settled `finished`.
Permission requests are notification checkpoints, not the end of that subscription. The caller is notified again after a permission response when the child finishes, errors, or requests another permission.
The permission notification includes the normalized request plus the child and request IDs, so the caller can inspect it and respond without fetching agent status.
A watched child that closes before its finish event also notifies the caller so delegated work cannot disappear silently during archive or workspace teardown.
@@ -133,7 +133,9 @@ A configured URL takes precedence even when unreachable; Paseo reports the conne
An explicitly configured server needs the bridge installed separately. Connect once and start a session: the setup error gives the local package directory. Copy that directory to the server's OpenCode global `plugins` directory, then retry. For a server on another machine, set `PASEO_OPENCODE_BRIDGE_PORT` in the Paseo OpenCode provider environment before starting Paseo, and set `PASEO_OPENCODE_BRIDGE_URL` to the URL the OpenCode server can use to reach that port. For example, an SSH reverse tunnel can expose the Paseo loopback port on the OpenCode host. The bridge token is exchanged through the OpenCode connection and is not written into the plugin package.
OpenCode's custom MCP registrations are shared by all sessions in a location. Paseo rejects custom MCP servers and per-agent process environment overrides on a reused server rather than applying them to other sessions or ignoring them. Session identity is applied to each session's shell environment. A Paseo-owned helper supports custom process and MCP settings; it is selected when there is no explicit URL or healthy registered service.
Agent MCP servers and per-agent environment work on a reused server with OpenCode 2.0.29 or newer. Paseo connects each agent's MCP servers itself and shows their tools only to that agent and its subagents. Other agents in the same directory and your own OpenCode sessions do not see them. The agent's environment applies to its shell commands, its subagents, and its stdio MCP servers.
The provider `env` configures the OpenCode process. When it sets variables other than the connection variables above and `XDG_CONFIG_HOME`, `XDG_STATE_HOME`, or `OPENCODE_CONFIG_DIR`, Paseo ignores a registered service and starts its own helper. With an explicit URL, Paseo reports those variables as an error.
---
@@ -514,7 +516,7 @@ The [Agent Client Protocol (ACP)](https://agentclientprotocol.com) is an open st
ACP agents communicate over JSON-RPC 2.0 on stdio. Paseo spawns the agent process and talks to it through stdin/stdout.
Paseo also ships an in-app ACP provider catalog for common agents, including CodeWhale, Cursor, DeepAgents, DimCode, Gemini CLI, Hermes, Qwen Code, and Kimi Code. Most catalog entries create the same `extends: "acp"` provider config shown below. Hoplite activates its [bundled provider](plugins.md#built-in-plugins) instead.
Paseo also ships an in-app ACP provider catalog for common agents, including CodeWhale, Cursor, DeepAgents, DimCode, Gemini CLI, Hermes, Qwen Code, and Kimi Code. Most catalog entries create the same `extends: "acp"` provider config shown below. Goose, Hermes, and Hoplite activate their [bundled providers](plugins.md#built-in-plugins) instead. An existing `extends: "acp"` entry for goose or Hermes migrates to the bundled provider on load and keeps a custom command. Hermes agents saved with the old adapter resume with their mode translated (`plugins/hermes-provider/server/legacy-modes.ts`).
### Adding a generic ACP provider
@@ -627,32 +629,6 @@ ACP probes use short timeouts and browser-suppression environment variables so a
[Hermes](https://github.com/NousResearch/hermes-agent) is an open-source coding agent by Nous Research with persistent memory and multi-provider LLM support. It supports ACP via the `acp` subcommand.
IDs to omit. The policy covers the core and browser catalog, not the voice-only `speak` tool.
Browser tools also require `daemon.browserTools.enabled` and a connected browser host.
Browser tools also require `daemon.tools.groups.browser` and a connected browser host.
This policy controls the catalog presented to an agent. It is not an authorization boundary for
agents that can access the host through a shell.
`daemon.mcp.injectIntoAgents` is the global override. When it is `false`, no provider receives
Paseo tools; otherwise the provider policy applies. Provider and global policy are resolved when a
`daemon.tools` is the global override. When `enabled` is `false`, no provider receives Paseo or
plugin tools; otherwise each group in `daemon.tools.groups` and then the provider policy applies.
When `daemon.tools` is absent, the daemon reads the legacy `daemon.mcp.injectIntoAgents` and
`daemon.browserTools.enabled` fields. Provider and global policy are resolved when a
session is created, resumed, imported, or reloaded, so configuration changes affect the next
session rather than an already-running one.
`agents.metadataGeneration.providers` selects the models for daemon-side metadata tasks: commit messages, PR text, branch names, and generated titles. An empty list is Automatic; a non-empty list is Manual and only those models are tried. See [public-docs/metadata-generation.md](../public-docs/metadata-generation.md#how-a-model-is-chosen).
`agents.metadataGeneration.providers` selects the models for daemon-side metadata tasks: commit messages, PR text, branch names, and generated titles. An empty list is Automatic; a non-empty list is Manual and only those models are tried.`agents.metadataGeneration.instructions` adds host-wide guidance to every metadata generation prompt alongside the built-in or per-project style. See [public-docs/metadata-generation.md](../public-docs/metadata-generation.md#how-a-model-is-chosen).
### Git process limits
@@ -590,6 +595,11 @@ then retry only when a requested row changes during the read. Unrelated agent st
invalidate the read. Directory baseline replacements and host removal or renaming still invalidate
the affected reads.
On web and Electron, tabs share IndexedDB but hold independent directory snapshots in memory. A
tab can commit directory deltas only while the persisted checkpoint revision matches the one it
read or wrote. If a different tab evicts or rewrites that baseline, the next full directory refresh
can replace it. Timeline writes do not depend on the directory checkpoint.
The cache is capped at 32 MiB and evicts whole hosts in least-recently-written order. After an
eviction, only a baseline replacement stores that host's directory again. Mutations queued around
the eviction are dropped when they are written, so a checkpoint never outlives its rows. Budget
@@ -78,7 +78,7 @@ In the composer, the first glyph's ink starts on the text column's edge, and the
One gate, `resolveControlSizing`, picks touch or pointer sizing: touch when the layout is compact or touch is the primary input. An iPad with the sidebar docked is wide and touch-sized; a desktop is pointer-sized; a phone is both compact and touch. The primary input comes from `(pointer: coarse)` (`hasTouchPrimaryPointer` in `hooks/pointer-capabilities.ts`), not from whether a touch screen exists: WebKit keeps touch primary on an iPad with a trackpad attached, and Chromium reports a fine primary pointer for a laptop with a touch screen that its trackpad drives. The fact is read once at startup: attaching a pointer to a tablet does not shrink its controls, and a 2-in-1 launched with a pointer keeps pointer sizes after it switches to tablet mode until the app reloads. Stylesheets take sizes from `bySizing({ touch, pointer })`, which resolves to a breakpoint value, so a caller never sees which sizing it got. Rows, icon buttons and icon slots take theirs from `styles/density.ts`, which uses the same gate. An `{ xs, md }` literal for a hit target or glyph is wrong: on an iPad it yields the pointer size.
Buttons are pills (`borderRadius.full`) with medium-weight labels; an icon-only button is a circle. `<Switch>` follows the same two sizes: a 34×20 track by default and in `sm`, 44×26 where controls are touch-sized, and it reserves its size's control height so a row holding one lines up with a row holding a button. Buttons, text fields, dropdown triggers, and `<SegmentedControl>` (`packages/app/src/components/ui/segmented-control.tsx`) share the size contract — the same size name means the same height and label size on every control kind, so controls in one row line up. Segments run tighter than a button, because the gap between segments already reads as padding. The selected segment is a `surface3` fill with `foreground` text, not an inverted one — inverting it inside thin chrome puts a white slab in the toolbar. A settings row sizes the controls in its trailing slot itself, default in a card and `sm` when nested (`packages/app/src/components/ui/control-size.tsx`), so don't pass a size to a button, dropdown or field placed in a row. Code that computes with a control's height outside a stylesheet uses `controlHeightForLayout`. Never shrink a control's font or padding locally to fit a context — if the context needs a smaller control, the size tier is missing or the wrong one is in use.
Buttons are pills (`borderRadius.full`) with medium-weight labels; an icon-only button is a circle. `<Switch>` follows the same two sizes: a 34×20 track by default and in `sm`, 44×26 where controls are touch-sized, and it takes presses over its size's control height without adding that height to its row. Buttons, text fields, dropdown triggers, and `<SegmentedControl>` (`packages/app/src/components/ui/segmented-control.tsx`) share the size contract — the same size name means the same height and label size on every control kind, so controls in one row line up. Segments run tighter than a button, because the gap between segments already reads as padding. The selected segment is a `surface3` fill with `foreground` text, not an inverted one — inverting it inside thin chrome puts a white slab in the toolbar. A settings row sizes the controls in its trailing slot itself, default in a card and `sm` when nested (`packages/app/src/components/ui/control-size.tsx`), so don't pass a size to a button, dropdown or field placed in a row. Code that computes with a control's height outside a stylesheet uses `controlHeightForLayout`. Never shrink a control's font or padding locally to fit a context — if the context needs a smaller control, the size tier is missing or the wrong one is in use.
A `<Pressable>` wrapping a `<Text>` is a sixth variant. It is wrong. `<Button>` accepts `style`, `textStyle`, `leftIcon`, `disabled`, `size`, and `variant`.
@@ -134,7 +134,7 @@ A section or group explains itself through the `info` prop on `<SettingsSection>
Cards inside a section sit closer than sections. Rows inside a card touch — only the divider separates them. The rhythm is page → spacious; section → spacious; card → tight.
Rows have generous vertical padding: roughly 16px of content plus 16px of vertical padding for settings rows, 8–12px for sidebar list items where many rows must fit. A row that opens something (`<SettingsDetailRow>`, a collapsible row's header) is at least as tall as one holding a default control, so a list where only some of those rows carry a switch keeps one row height. Other rows take their content's height. Compressing rows below the established density to fit more on the screen is wrong. Too many rows means more cards or more sections, not smaller rows.
Rows have generous vertical padding: roughly 16px of content plus 16px of vertical padding for settings rows, 8–12px for sidebar list items where many rows must fit. Every row is at least as tall as one holding a switch, so text rows, switch rows and rows that open something (`<SettingsDetailRow>`, a collapsible row's header) line up. A row holding a button or a select is taller. Compressing rows below the established density to fit more on the screen is wrong. Too many rows means more cards or more sections, not smaller rows.
Rows revealed under a `<SettingsCollapsibleRow>` are nested rows, one step smaller than card rows: 8px of vertical padding, `fontSize.sm` text, `sm` controls, and one fixed height so rows with and without a trailing button line up. The collapsible row sets this for everything under it (`packages/app/src/components/settings/row-density.tsx`). Never pass a density to a row, and never pad or resize a nested row by hand. Settings rows that share a menu surface with menu rows, such as Usage's options, go inside `<MenuSettingsRows>`, which puts their labels on the menu rows' label rail (`menuRowContentInset`).
@@ -177,7 +177,7 @@ Electron window controls are top-corner obstructions, not a compact-layout condi
Windows and Linux controls are fixed window chrome, outside scrolling header content. A tab rail that reaches them ends at their obstruction and shows the shared overflow fade. On macOS, the Explorer toggle occupies a fixed top-right window slot so opening and closing Explorer does not move the pointer target.
Each window edge has one safe-area owner. `WindowLayoutProvider` publishes the bottom inset that every surface reads through `useSafeAreaInsets()`: on iOS 27.1 and later it is UIKit's bottom-bar clearance, which refines the rectangular home-indicator inset to the screen's corners, and elsewhere the system inset. Surfaces apply that value once and never stack their own spacing under it; `WindowLayoutSurface` owns the horizontal insets the same way.
Each window edge has one safe-area owner. `WindowLayoutProvider` publishes the bottom inset that every surface reads through `useSafeAreaInsets()`: on iOS 27.1 and later it is UIKit's bottom-bar clearance, which refines the rectangular home-indicator inset to the screen's corners, and elsewhere the system inset. Surfaces apply that value once and never stack their own spacing under it; `WindowLayoutSurface` owns the horizontal insets the same way, and on wide web layouts it also owns the top inset: it pads the status bar of an iOS Home Screen web app once and gives its content a top inset of 0. Content inside the surface that draws against the window instead of the padded content reads the window's insets; see Gotcha 8 in `docs/floating-panels.md`.
A new list+detail feature copies the settings shell. A new workspace-shaped feature copies the workspace shell. Inventing a third shape happens in design review, not in a PR.
A list the user can reorder renders through `DraggableList` from `@/components/draggable-list`. Each row puts a `DraggableListHandle` where its grip is drawn. The Usage cards (`packages/app/src/usage/list.tsx`, `packages/app/src/usage/card.tsx`) and the agent profile roster (`packages/app/src/agent-profiles/settings/`) are the reference.
| Web | dnd-kit pointer drag. With `useDragHandle`, only the handle starts it, and the handle reorders by keyboard. Without it, the whole row starts it. |
| Native | Hold the handle for 180 ms without moving more than 4 px. The list then owns the touch until the finger lifts. |
## The scroll view must host the drag
On native, the hold calls `drag()`, which calls `useContentDrag().setActive(true)` from `@/components/ui/content-drag` on the nearest scroll view. That scroll view stops scrolling until the drag ends. If no scroll view up the tree hosts content drags, `setActive` does nothing. The page scroll then takes the touch as soon as the finger moves past the touch slop, before the list's own pan activates. The row never moves, and the page scrolls instead.
These scroll views host content drags:
-`ScrollView` from `@/components/ui/scroll-view`, inside and outside a sheet.
-`PageLayout`, for a settings page or any other full page.
If you put a reorderable list in another scroll view, such as a third-party keyboard-aware one, wrap it with `withContentDrag` from `@/components/ui/content-drag`. `packages/app/src/components/page-layout/index.tsx` shows the pattern. A plain `ScrollView` from `react-native` breaks the drag.
Inside a sheet, the `ScrollView` also registers the drag gesture with the sheet, so the sheet's pan-to-close waits for it.
## Where the grip goes
The grip hangs in the row's leading padding, absolutely positioned over the full row height. The row's content keeps the same left rail as rows that cannot be reordered, and the grip does not take a column. On a pointer device the grip shows on hover, focus, or while dragging. On touch and compact layouts it always shows, because there is no hover.
## Test with a page that scrolls
A list that fits on the screen does not show the bug, because the page has nothing to scroll. Test on a phone with enough rows that the page scrolls. Then check both directions:
1. Hold the grip and drag a row past two others. The new order is saved.
2. Swipe quickly on a row body. The page scrolls and the order stays the same.
On an Android emulator, `adb shell input swipe` does not hold still long enough to arm the drag. Send `input motionevent DOWN`, wait 500 ms, then send `MOVE` events and `UP`.
@@ -10,6 +10,7 @@ Authoritative terminology. UI label wins. Don't invent synonyms; use what's here
- **Agent** — See **Agent session**. UI still says "Agent" / "New Agent" in places, but moving toward **Agent session** as the canonical term. Code: `AgentSnapshotPayload` (`packages/protocol/src/messages.ts:608`). Forbidden: "Task", "Job", "Run".
- **Daemon** — Local Paseo server process; identified by `serverId`. UI: "Daemon" (system contexts only). Code: `serverId` in `ServerInfoStatusPayloadSchema` (`packages/protocol/src/messages.ts:1936`), `DaemonClient` (`packages/client/src/daemon-client.ts`).
- **Host** — Client-side connection profile pointing at a daemon; bundles one or more `HostConnection`s. UI: "Host" / "Add host" / "Switch host". Code: `HostProfile` (`packages/app/src/types/host-connection.ts:37`). Forbidden: "Connection" (means `HostConnection`, not host).
- **Device** — A computer or phone running a Paseo client. Open **Devices** in a host’s settings to connect another device.
- **Host badge** — The item on a sidebar workspace row's meta row naming which host that workspace lives on. Three things gate it, and they compose as a lattice rather than competing: the sidebar must span more than one host (automatic), **Show → Host** in the sidebar's display preferences must be on (global, all hosts at once), and then that host's own display mode decides _how_ it draws — **Name** / **Icon only** / **Hidden**. Name, color, and display mode are per-host, per-device, and live client-side on `HostProfile.appearance`; nothing about it reaches the daemon. Never add a fourth way to hide it. UI: the "Appearance" group on a host's settings page, and the "Show" submenu in the sidebar's display preferences. Code: `selectHostBadges` (`packages/app/src/hosts/appearance.ts`) takes the first two as its `enabled` input; `WorkspaceMetaRow` (`packages/app/src/components/sidebar/workspace-meta-row/index.tsx`) draws it. Don't confuse with **Status pill**, which reports state rather than identity.
- **Project host entry** — One row in a project for a single (project, daemon) pair, aggregating that daemon's workspaces in the project. Internal. Code: `ProjectHostEntry` (`packages/app/src/utils/projects.ts:11`). Don't introduce "Checkout" as a synonym.
- **Placement** — One workspace's stable foreign-key relationship to its project plus its git checkout snapshot. Internal. An explicit creation `projectId` is authoritative when active.
@@ -33,7 +34,7 @@ Authoritative terminology. UI label wins. Don't invent synonyms; use what's here
- **Agent session** — One running instance of an agent inside a workspace (one provider, one model, one cwd, one timeline). The conceptual unit; in the UI this opens as a tab. Moving toward this as the canonical term over "Agent". Code: `AgentSnapshotPayload` (`packages/protocol/src/messages.ts:608`).
- **Session** — Two senses: (a) per-client connection to a daemon, internal; (b) user-facing agent session, see **Agent session**. Code: `Session` (`packages/server/src/server/session.ts`) for (a). Don't confuse with: provider-side agent session log.
- **Profile** — Internal name for the persisted shape of a host. Code: `HostProfile` (`packages/app/src/types/host-connection.ts:37`). Never user-facing. Three other things are called "profile" in this codebase, so always qualify: **Agent profile**, **Terminal profile**, and the provider aliases in [custom-providers.md](custom-providers.md). Bare "profile" is forbidden in UI copy.
- **Agent profile** — A named launch bundle: provider, model, mode, thinking option, feature values, and free-text notes. Applying one writes those values into the **Agent controls** and is then forgotten — there is no selected profile, no default profile, and no drift tracking. The notes are written for orchestrating agents and are what the `list_profiles` MCP tool surfaces. Stored host-wide in daemon config as `agentProfiles`. UI: "Agent profiles". Code: `AgentProfile` (`packages/protocol/src/messages.ts:161`). Carries no system prompt, because a per-agent system prompt can only be set at creation. Forbidden: "Favourite", which this replaced.
- **Agent profile** — A named launch bundle: provider, model, mode, thinking option, feature values, optional system prompt, and free-text notes. Applying one writes those values into the **Agent controls** and is then forgotten — there is no selected profile, no default profile, and no drift tracking. The system prompt applies only when creating a new agent and is ignored when applying the profile to a running one. The notes are written for orchestrating agents and are what the `list_profiles` MCP tool surfaces. Stored host-wide in daemon config as `agentProfiles`. UI: "Agent profiles". Code: `AgentProfile` (`packages/protocol/src/agent-profile.ts`). Forbidden: "Favourite", which this replaced.
- **Terminal profile** — A named shell command a terminal can launch. Stored host-wide in daemon config as `terminalProfiles`. UI: "Terminal profiles". Code: `TerminalProfile` (`packages/protocol/src/messages.ts:135`), `resolveTerminalProfiles` (`packages/protocol/src/terminal-profiles.ts`). Also selectable as a New Workspace launch target, where the alternative is the chat agent.
- **Hook** — A plugin lifecycle handler registered with `server.addHook`, named `subject.operation.position` with `before` or `after`; each hook declares whether Paseo waits. See [hooks](../public-docs/plugins/hooks.md).
@@ -57,7 +58,7 @@ Authoritative terminology. UI label wins. Don't invent synonyms; use what's here
- **Agent controls** — Provider, model, mode, thinking, and provider-feature controls for an agent or draft agent. Code: `AgentControls` / `DraftAgentControls` (`packages/app/src/composer/agent-controls/index.tsx`). Forbidden: "Agent status bar".
- **Composer footer** — Optional area rendered below the composer input but still inside the keyboard-shifted composer layout. Code: `Composer.footer` (`packages/app/src/composer/index.tsx`).
- **Composer track** — A contextual lane at the foot of a pane, by the composer input. Specific tracks use the `<thing> track` form: **Queue track**, **Subagents track**, **Tasks track**. The subagents and tasks tracks are pills floating over the transcript, each opening a panel with its rows; the queue track is a lane inside the composer itself. Code: queue track inside `Composer` (`packages/app/src/composer/index.tsx`), pill and panel frame in `packages/app/src/composer/tracks.tsx`, `SubagentsTrack` (`packages/app/src/subagents/track.tsx`), `AgentTaskList` (`packages/app/src/composer/task-list/index.tsx`).
- **Steer** — A follow-up admitted into an agent's already-running turn instead of interrupting it. Interrupting the turn discards steers the provider has not read yet; there is no take-back short of that, and no provider offers one. The stop button and Escape both interrupt. A steer the provider never read keeps its transcript row, matching Codex. Sending while the agent waits on a permission denies that request first, so the message reaches the same turn instead of stalling behind it. UI: "Send and steer". Code: `steerActiveTurn` (`packages/server/src/server/agent/agent-sdk-types.ts`). Don't confuse with **Queue track**, which holds messages client-side until the turn ends and never enters the running turn. Forbidden: "Delivery", "Queued prompt".
- **Steer** — A follow-up admitted into an agent's already-running turn instead of interrupting it. Interrupting the turn discards steers the provider has not read yet; there is no take-back short of that, and no provider offers one. The stop button and Escape both interrupt. A steer the provider never read keeps its transcript row, matching Codex. Sending while the agent waits on a permission denies that request first, so the message reaches the same turn instead of stalling behind it. UI: "Send and steer". Code: `steerActiveTurn` (`packages/server/src/server/agent/agent-sdk-types.ts`). Don't confuse with **Queue track**, which holds messages client-side until the turn ends and never enters the running turn. An agent sender's `activeTurnBehavior: "steer"` (CLI `--behavior steer`) means the same as a person's steer. Agent senders default to `queue` instead: the daemon holds the message until the running turn ends, as the queue track does for a person. Forbidden: "Delivery", "Queued prompt".
- **Subagent** — User-facing term for an agent session related to a parent agent session. Use **subagents** in UI copy and docs. Internal daemon/provider plumbing may say "child agent" or `child_session`, especially for provider-managed imports; do not surface "child agent" as a product term.
- **Attachment tray** — The selected-attachments row inside the composer input, above the text input. Code: `renderAttachmentTray` (`packages/app/src/composer/index.tsx`). Forbidden: "Attachment bar".
- **Fork** — Starting a NEW agent session seeded with a copy of another session's curated chat history. The history rides along as a `chat_history` composer attachment on a draft; the fork does **not** resume or branch the provider-side session, and the source session keeps running untouched. Two targets, one surface, one RPC (`agent.fork_context`, gated on the `agentForkContext` host feature). UI: the fork menu lives in the assistant turn footer and offers "Fork in a new tab" / "Fork in a new workspace". On a **completed** turn it sits beside the copy button and pins a boundary to that turn, so the fork stops where the turn ended. On the **in-flight** turn it sits beside the progress loader and elapsed timer, and omits the boundary entirely — `selectForkContextRows` projects the whole timeline when no boundary is given, so the fork captures everything **up to now**, including the response still streaming. That omission is what makes mid-run forking work; pinning a boundary there would silently drop the live response. Forbidden on provider-subagent (read-only) panes. Code: `useForkAgent` (`packages/app/src/hooks/use-fork-agent.ts`), `selectForkContextRows` (`packages/server/src/server/agent/activity-curator.ts`). Don't confuse with: git fork (unrelated; Paseo has no such concept), **Worktree** (filesystem isolation, not history copying).
@@ -72,8 +72,7 @@ hashes, never prompts, environment values, or credentials.
Before messaging an archived workspace, call `workspace.recovery.inspect.request`, then
`workspace.recovery.restore.request` and await success. The native message handler unarchives the
agent and loads its persisted provider session. `activeTurnBehavior: "steer"` uses the provider's
native steering behavior, including Paseo's existing behavior when that provider cannot steer.
agent and loads its persisted provider session. A Hub message is a direct send (no `sourceAgentId`), so `activeTurnBehavior: "steer"` uses the provider's native steering and interrupts the running turn when that provider cannot steer, and `activeTurnBehavior: "queue"` waits for the running turn to end when the host advertises `server_info.features.nonAgentMessageQueue`.
Execution completion and arrival-specific output authority remain Hub responsibilities.
The older `hub.execution.*` RPCs remain accepted for existing clients. Their execution ownership
@@ -12,21 +12,47 @@ Every block is separated by one gap, `density.blockGap`: 12 on compact layouts,
Workspace file links use the shared file-link resolver. The workspace supplies its client, root and open-file action once; chat can supply the agent's more specific context. URLs use the same link press path. Recognized inline-code paths stay tappable. The library callback carries the tapped occurrence’s syntax context. Preserve it when opening files: explicit Markdown links decode URL escapes, while recognized inline-code paths preserve literal percent characters and use suffix lookup. Identical URL strings in different occurrences must stay distinct. Explicit absolute workspace links receive a relative hover title; existing authored titles remain intact. Inside a workspace, forge references such as `#12` and `owner/repo#12` are recognized in prose (not code) and open the workspace forge; the reference pattern comes before path recognition so `group/project#12` is not read as a path. See [forge providers](forge-providers.md#gotchas).
Right-click on web and long press on native open one link menu per rendered part (`components/markdown/link-menu`), not one per link: a menu root cannot sit inside a paragraph without producing invalid markup on web. The native long-press event carries only the URL, with no position and no syntax context. The menu takes the position from the touch that started the press, and treats a URL that is no `](destination)` in the source as recognized text.
Pass `external` for author-controlled Markdown from outside the host, such as a plugin README. It follows the registry's overview contract in `packages/protocol/src/plugin-overview.ts`, which the website also uses: only absolute https links and images work, and any other destination renders as its label or alt text. The parser still autolinks bare `http://`, `www.` and email text, so a link press checks the URL again and opens only https. None of the workspace recognition above applies, so `Node.js` is prose, not a file. The lines of a paragraph join, as they do on the README's forge.
Resolve workspace image paths over the existing session RPC, then give the library a cached native file URL or web blob URL. HTTP(S) images pass through unchanged. This preserves relay, SSH and local socket connections, which do not expose a daemon HTTP endpoint. Each mounted renderer owns its image acquisition identity, so a later reply reads a rewritten path again while the earlier mounted reply retains its snapshot. Image taps open the attachment lightbox. File previews resolve relative images against the Markdown file's directory. An image alone on its line becomes its own paragraph before the library sees it, so it renders as a block on every platform; the library only treats sole-child paragraph images as blocks, and with hard soft breaks every newline is a break node, which left own-line images inline on iOS and web. Images that share a line with text stay inline at line height and keep their aspect ratio. A linked image counts as an image, so review-bot badges such as `[](url) Confidence` stay inline on web; the library's web renderer only checked direct paragraph children, so it rendered them as full-width block images (local patch in `patches/react-native-enriched-markdown+*.patch`).
Resolve workspace image paths over the existing session RPC, then give the library a cached native file URL or web blob URL. HTTP(S) images pass through unchanged. This preserves relay, SSH and local socket connections, which do not expose a daemon HTTP endpoint. Each mounted renderer owns its image acquisition identity, so a later reply reads a rewritten path again while the earlier mounted reply retains its snapshot. Image taps open the attachment lightbox. File previews resolve relative images against the Markdown file's directory. An image alone on its line becomes its own paragraph before the library sees it, so it renders as a block on every platform; the library only treats sole-child paragraph images as blocks, and with hard soft breaks every newline is a break node, which left own-line images inline on iOS and web. Images that share a line with text stay inline at line height and keep their aspect ratio. A linked image counts as an image, so review-bot badges such as `[](url) Confidence` stay inline on web; the library's web renderer only checked direct paragraph children, so it rendered them as full-width block images (fixed in the fork).
## The fork
The library is a private workspace, `packages/react-native-enriched-markdown`. It is upstream [enriched-markdown](https://github.com/software-mansion/enriched-markdown) at npm `1.2.0-nightly-20261014-766fc0e67` (upstream commit `766fc0e67`) plus Paseo's changes, which lived in a `patch-package` patch until the package moved into the repository. It is never published. Keep the name `react-native-enriched-markdown`: autolinking, the Gradle project `:react-native-enriched-markdown`, the CocoaPods spec and app imports all use it.
The package keeps the npm tarball's layout, including its build output:
- Metro, Vitest and TypeScript load `lib/`, not `src/`. A JavaScript change edits `src/` and the matching `lib/module` and `lib/typescript` files.
- `android/generated` and `ios/generated` are checked-in codegen output (`includesGeneratedCode`). A change to a native component spec regenerates both; `scripts/postinstall-patches.test.mjs` compares them against the specs.
- `src/web/wasm/md4c.js` and `lib/module/web/wasm/md4c.js` are an Emscripten build of `cpp/md4c`. A parser change rebuilds them with upstream's `packages/core/cpp/wasm/build.sh`.
- Upstream's Gradle, CMake and CocoaPods scripts detect upstream's own monorepo by the paths `packages/core` and a root `vendor/`. Do not add either path to this repository.
- `postinstall.mjs` downloads the tree-sitter grammars into the ignored `cpp/highlight/vendor/grammars` and `vendor/tree-sitter`. The `enriched-markdown` block in `packages/app/package.json` chooses the languages.
CI does not build native code or run the fork's Robolectric suites. Run `npm run test:android --workspace=@getpaseo/app` for Android changes. Native changes require a client rebuild; JavaScript refresh cannot enable compiled grammars.
Some fork changes are backports. A sync past the upstream version drops them in favour of upstream's code:
| Android nested list items start their text after their own marker | [#1015](https://github.com/software-mansion/enriched-markdown/pull/1015), [#1023](https://github.com/software-mansion/enriched-markdown/pull/1023) (Android) | `1.2.0` |
## Engine constraints
The pinned nightly has the same React Native package and core source trees as upstream commit `73ac5085eb1fdc743973b3473d4dba65abad5261`. Compatibility was checked with React Native 0.81.5. Native dependencies must be rebuilt when changing the highlighting configuration; JavaScript refresh cannot enable compiled grammars.
Math and video are disabled. Task lists and admonitions are enabled; task checkboxes are read-only. Source adaptation spaces adjacent empty GFM table delimiters before escaping prose spoiler delimiters and decodes entity text before the engine can discard it. Code spans and fences keep their literal source. Comment HTML is normalized to Markdown before parsing; details show their summary and body expanded.
Mermaid fences use the existing isolated diagram runtime and fullscreen viewer. Web dispatches them through the library’s code-block override. Native has no block-renderer hook, so the renderer extracts only Mermaid fences and places the existing WebView host between library-rendered segments. This is the only block exception; see [native selection limitations](native-text-selection.md) for diagram grouping and leading inline images. Streaming keeps the last valid diagram visible while the next revision renders.
Native code blocks use the library's copy control and compiled grammars. Web code blocks use `HighlightedCodeBlock` through the library's `renderers.codeBlock` override. Selection copy has to tell links Paseo recognized in the text (paths, forge references, code spans) from links in the Markdown, so the web link renderer marks the recognized ones. Plain-text paste carries them as the text the reply showed, and rich paste keeps them as links only when they point to an `http` or `https` URL. Authored links and parser autolinks such as a bare `www.example.com` copy as links. The patch also keeps the library's block spacing around the web code block override, preserves web list numbering and link titles, marks pending parses with `aria-busy` so Find waits for rendered text, and carries link syntax through native and web tap events. Web inline code inside a link inherits only the link colour; its code font, size and background stay intact. Keep link variants colour-only: native pills replace text runs and prevent paths from wrapping; Android pills also use the surrounding block’s font size. The package patch is tracked by [upstream PR #997](https://github.com/software-mansion/enriched-markdown/pull/997); remove the patch when the pinned release includes it.
Code blocks and plain quotes have a copy control in their top trailing corner. Native code blocks use the library's compiled grammars. On native, the code block and quote container views share one control (`HeaderCopyButton` on Android, `ENRMHeaderCopyButton` on iOS). A quote reserves the code block's header band above its body, so the control never covers quote text at any font size. On web, code blocks use `HighlightedCodeBlock` through the library's `renderers.codeBlock` override, and quotes use `WebBlockquote` through `renderers.blockquote`. Both use `BlockCopyButton`. On compact layouts the control is always visible, so the web quote reserves a band above its body, as native does. On wide layouts the control appears on hover or focus, so the quote keeps a right gutter instead; a band there would leave an empty strip above every quote.
The package patch also keeps overflowing native horizontal blocks in control of their drags: Android claims parent interception at touch-down andreleases it for vertical drags so the chat list can scroll; iOS keeps its scroll recognizer active for outward drags at the leading edge. This prevents compact sidebar pans from taking block scrolling without changing sidebar swipes on prose or non-overflowing blocks. Native changes require a client rebuild.
A quote copies its body without the `>` markers, with its nested Markdown, and reads the content at the time of the press, so a streaming quote copies what it shows. A nested quote or code block keeps its own control. Web quote copy uses the same two clipboard flavors as selection copy: `text/plain` is unescaped Markdown and `text/html` is rendered from escaped Markdown. A rendered Mermaid diagram copies as its fence because its wrapper carries the fence source. Native quote copy serializes the quote's parsed Markdown, so a workspace image copies as its cached file URL, as native selection copy does; native has no map back to the workspace path. A native Mermaid diagram in a quote renders outside it (see [native selection limitations](native-text-selection.md)), so each quote fragment copies only its own text. Admonitions get no control: web renders them with a separate library renderer. On web an admonition inside a copied quote copies as its `> [!TYPE]` source; the fork marks the box and its generated title for this. Selection copy keeps the text it shows, because the cloned range cannot tell a whole callout from part of one. On native, quotes inside list items get no control, because they render as text spans in the item. Web renders them as blocks, so they get one.
Selection copy has to tell links Paseo recognized in the text (paths, forge references, code spans) from links in the Markdown, so the web link renderer marks the recognized ones. Plain-text paste carries them as the text the reply showed, and rich paste keeps them as links only when they point to an `http` or `https` URL. Authored links and parser autolinks such as a bare `www.example.com` copy as links. The fork also keeps the library's block spacing around the web code block override, preserves web list numbering and link titles, marks pending parses with `aria-busy` so Find waits for rendered text, and carries link syntax through native and web tap events. Web inline code inside a link inherits only the link colour; its code font, size and background stay intact. Keep link variants colour-only: native pills replace text runs and prevent paths from wrapping; Android pills also use the surrounding block’s font size. [Upstream PR #997](https://github.com/software-mansion/enriched-markdown/pull/997) tracks these changes.
The fork also keeps overflowing native horizontal blocks in control of their drags: Android claims parent interception at touch-down and releases it for vertical drags so the chat list can scroll; iOS keeps its scroll recognizer active for outward drags at the leading edge. This prevents compact sidebar pans from taking block scrolling without changing sidebar swipes on prose or non-overflowing blocks. Native changes require a client rebuild.
On iOS a newly mounted Markdown view paints empty for a frame or more after it is laid out at its measured height: the library parses even a view's first content on a background queue and applies it in a later main-queue turn. Expanding a turn in chat therefore shows its rows in place with the text arriving a frame later (165 ms when the mount keeps the main thread busy). Android paints the text in the first frame. Rendering a view's first content synchronously fixes the frame but costs frame time when a fling mounts history rows, so the app keeps the library's behavior until [enriched-markdown #1131](https://github.com/software-mansion/enriched-markdown/issues/1131) is resolved.
@@ -36,4 +62,4 @@ The library determines how incomplete Markdown appears during streaming. Complet
## Verification
Follow [QA](qa.md) and [mobile testing](mobile-testing.md). Exercise chat, file preview, plan and PR content on all three platforms. Include cross-paragraph selection, progressive streaming, a file-link tap, code copy/highlighting, a table and a workspace image. On iPad, repeat preview selection after opening and closing Explorer and after rotation. Check web find, selection-copy and source-message navigation after DOM changes.
Follow [QA](qa.md) and [mobile testing](mobile-testing.md). Exercise chat, file preview, plan and PR content on all three platforms. Include cross-paragraph selection, progressive streaming, a file-link tap, code copy/highlighting, quote copy (nested quote, code block in a quote, admonition, large font on native), a table and a workspace image. On iPad, repeat preview selection after opening and closing Explorer and after rotation. Check web find, selection-copy and source-message navigation after DOM changes.
and optional `open` and `data`; `openPluginNotification` in
`packages/app/src/plugins/notification-open.ts` waits up to 8 seconds for the
target host's plugin catalog to settle on cold launch, runs registered
`client.onNotificationOpen` handlers with caught error isolation, and falls back
to declarative `open` (`agent`, `workspace`, `screen`) or the host root route.
See [agent targets and deferred opens](expo-router.md#agent-targets) for route
ownership and workspace recovery. Notification generation, presence, and push
eligibility remain daemon concerns.
ownership and workspace recovery. Per-device two-knob notification preferences
(`@getpaseo/protocol/notification-preferences`) sync with mobile push tokens via
`register_push_token` (gated on `server_info.features.pushNotificationPreferences`)
so the daemon filters Expo pushes per token, while desktop and web clients filter
in-app OS notifications locally before calling `sendOsNotification`. Notification
generation and presence remain daemon concerns.
## Native delivery
@@ -53,6 +63,8 @@ An arbitrary Activity launch with data extras does not exercise Expo's FCM path.
Foreground pushes remain in Notification Center without a banner or sound.
This preserves notifications sent with stale presence information.
Native clients have no DOM events, so presence comes from `@/hooks/native-user-activity`: touches on the root `GestureHandlerRootView` and edits in the native `EditingTextInput` refresh `lastActivityAt`. Touches inside a native `Modal` open a separate window and do not reach the root.
## Startup and verification
Wait for the root navigator, host registry, remembered selection, and startup
Paseo executes `index.server.ts` in a subprocess and `index.client.tsx` in every connected app.
> **Trust every plugin you add.**`paseo plugin add` and `paseo plugin install` mean “I trust this codebase.” Plugins are unsandboxed: server code and preparation commands run with the daemon user's access on the daemon host, and client contributions run inside Paseo. The repository's dependencies and future updates are part of that trust decision. With `--host`, preparation runs on that remote daemon host.
@@ -103,6 +103,13 @@ The `worktree-include` built-in copies gitignored files selected by
before setup and agents, through `worktree.create.after`.
The `cloudflared-tunnel` and `tailscale-funnel` built-ins register tunnel providers through
`server.registerTunnelProvider()`. Both start without installed binaries or credentials and report
availability through `status()`. `cloudflared-tunnel` runs quick tunnels only, with `--url` set to
the exposure target. Named Cloudflare tunnels are not supported: the Cloudflare dashboard sets
their routing, so their URL does not serve the exposure target. `tailscale-funnel` runs `tailscale funnel` in the foreground: with
`--bg`, tailscaled keeps the Funnel public after a crash with no owner.
Desktop packaging ships the entire built-in plugin directory as an external resource,
including declarations. The external esbuild compiler cannot read Electron's `app.asar`
filesystem, and packaging dependencies excludes `.d.ts` files needed for import validation.
@@ -118,7 +125,7 @@ appear in the plugin catalog. Editing one in development requires a daemon resta
Directory, Git, and npm installs cannot use a built-in ID.
A provider registration with `requiresConfiguration: true` participates only while its ID exists
under `agents.providers`. Hoplite and fx use this for catalog opt-in. Add writes `{ "enabled": true }`
under `agents.providers`. Hoplite, fx, goose, and Hermes use this for catalog opt-in. Add writes `{ "enabled": true }`
without `extends`, so it selects the bundled adapter. Remove deletes the config entry; setting
`enabled: false` keeps the entry. The bundled JavaScript still loads at startup, but an absent
provider does not enter executable resolution or catalog discovery.
@@ -462,8 +469,55 @@ Server entries register async handlers with `server.addHook(name, handler)`, ret
function. Names follow `subject.operation.position`, ending in `before` or `after`. Waiting is a per-hook
registry property, independent of position. The [hooks reference](../public-docs/plugins/hooks.md)
owns payloads, ordering, failure behavior, and examples. `agent.create.before` edits saved
configuration; `agent.open.before` contributes launch-only `env`, `tools`, and`mcpServers` on
every open. Executable tool definitions stay in the plugin process; only metadata crosses the boundary.
configuration; `agent.open.before` contributes launch-only `env`, `tools`, `mcpServers`, and a
[launch wrap](#launch-wrap) on every open. Executable tool definitions stay in the plugin process; only metadata crosses the boundary.
`packages/server/src/server/plugins/session-attachments.ts` records what each plugin contributed to
each live session. A plugin start, stop, or reload reruns only that plugin's callback per session,
swaps its tools in place, and reopens a session only when its launch would differ. A reopen closes
the provider process, so a reload must not reopen agents the plugin does not change.
### Launch wrap
An `agent.open.before` result can carry `wrap: [executable, ...args]`. The provider then starts that
session's harness as `[...wrap, command, ...args]` with the final hook env. It starts with no shell,
except Windows script launchers, which go through cmd.exe like any provider launcher
(`spawnProcess` quotes each argument). An argument with spaces stays one element. `executable` must
be an absolute path.
The wrap is never saved on the agent; every open asks the hooks again, and a plugin session reopen
reuses the wrap it opened with.
- **Support is a provider property.** The provider snapshot entry carries `launchWrap: true` when the
provider can apply a wrap. Read it in `agent.create.before` with `paseo.providers.snapshot()`; an
absent field means unsupported, which is also what a host without this feature reports. Core
providers declare it in the provider contract table in `provider-registry.ts`; every core provider
that starts a local harness declares it, and custom ACP providers and providers that extend a core
one inherit it. A plugin provider declares `ProviderRegistration.launchWrap`;
`runAcpProvider({ command })` sets it, a connector declares it itself (Muse Code does). The declaration travels with the
registration metadata, so it is in the snapshot before the provider first connects.
- **One wrap per open.** A later hook, in the same plugin or a later one, may omit the wrap or return
the same value. A different value fails the open.
- **Fail closed.**`buildLaunchContext` admits a wrapped open before any session harness starts. It
throws `LaunchWrapUnsupportedError` (`code: "launch_wrap_unsupported"`) when the provider does not
declare support, or when a plugin provider's live connection lacks `session.launch_wrap`. A host
that predates `wrap` rejects the key: the hook result schema is strict. A missing launcher fails the
spawn; nothing retries the bare command.
Once an open selects a wrap, a supported provider runs that session's harness through it or fails
before starting the harness. Every provider starts through `spawnProcess({ wrap })`, which owns the
argv and Windows launcher handling; `applyLaunchWrap` covers the launches that do not go through it
(pty terminals, MCP stdio transports, worktree commands). The wrap also covers what Paseo starts for
the session: stdio MCP servers Paseo hosts for the agent (OMP, OpenCode v2), Pi's MCP probe, and ACP
client terminals. OpenCode shares one server between sessions, so a wrapped session gets a dedicated
server instead; an explicitly configured external OpenCode server cannot be wrapped and the open
fails. The guarantee does not cover:
1. Paseo's host terminal tools (`create_terminal`, `send_terminal_keys`) run outside the wrap.
2. Work before the open hook runs unwrapped: draft command and control discovery, and the catalog
lookup during create when no model is set.
3. Host-side operations run unwrapped: availability and capability probes (the ACP connection's
initialize probe included), catalog and session listing, version and update commands, usage
queries, and Codex native archive and unarchive.
4. Losing the plugin that chose the wrap is not covered: a later open without it runs unwrapped.
Worktree placement is resolved before Git source planning, so a hook can change the branch and base
without undoing fetched refs. Restores use the recorded destination and bypass creation hooks.
@@ -483,6 +537,17 @@ change requests; `remove` and `restore` fall back to built-in Git when the plugi
[worktree managers reference](../public-docs/plugins/reference.md#worktree-managers) and
`plugin-examples/worktrunk`.
`terminal.create.before` runs in `withTerminalCreateHook`, which wraps the daemon's one terminal manager, so every creation path is covered and adopted terminals are not; callers pass an `origin` to name the source. `command.run.before` runs inside the setup and teardown runners through `commandRunHook`. Setup and archive dependencies take `lifecycle` as a required field so a new caller cannot skip the hook by omission; pass `null` only where no plugins run.
Both hooks change only `env` and a [launch wrap](#launch-wrap); `keepSelectedWrap` in the lifecycle
module applies the one-wrap rule to all three wrap hooks. The terminal wrap becomes the terminal's
`command` and `args` in `withTerminalCreateHook`, so the terminal worker protocol does not change and
no previous-version adapter is needed. A default-shell terminal resolves the shell there through
`default-terminal-shell.ts`, which stays apart from `terminal.ts` so the daemon does not load node-pty.
The wrapped shell starts without Paseo's shell integration, which is why a wrapped script does not
report command completion. A setup or teardown wrap goes in front of the
`buildStringCommandShellInvocation` argv.
Emit from the operation owner, not a client subscription. Provider history replay must not trigger
live hooks. Notifications must not be awaited inside agent mutations: a handler can send a prompt
or answer a permission through its own daemon session. Awaiting it there deadlocks that command.
@@ -491,6 +556,26 @@ The same holds for a hook that runs inside an agent's lifecycle lane: an `agent.
an option, model, thinking or mode change) waits on the open, which waits on the hook. The hooks
reference tells plugin authors to start such a write without awaiting it.
## Send notifications
Server plugins call `server.notifications.send(input)` over the `notification.send` /
`notification.result` / `notification.error` IPC messages. `PluginNotificationDispatcher` in
`packages/server/src/server/plugins/notifications.ts` trims and truncates `title` (<= 160 chars)
@@ -21,7 +21,7 @@ The protocol package owns generation.
- `packages/protocol/src/validation/ws-outbound-envelope.ts` defines the tag-only envelope schema and exposes the session message schemas that get their own validators.
- `packages/protocol/scripts/generate-validation-aot.mjs` writes the zod-aot discovery entry and the runtime schema metadata, runs the exact-pinned compiler, and applies the small local compiler patches before generation. It also emits the `type` → validator map the boundary dispatches through.
- `packages/protocol/scripts/watch-validation-aot.mjs` reruns generation while editing protocol sources.
- `packages/protocol/codegen/generated/ws-outbound.compile.ts`, `packages/protocol/src/generated/validation/ws-outbound.aot.ts`, and`packages/protocol/src/generated/validation/ws-outbound-schema-metadata.ts` are generated and gitignored. The metadata module lets generated code reach schema fallback/default values.
- `packages/protocol/codegen/generated/ws-outbound.compile.ts`, `packages/protocol/src/generated/validation/ws-outbound.aot.ts`, `packages/protocol/src/generated/validation/ws-outbound-schema-metadata.ts`, and `packages/protocol/src/generated/validation/message-defaults.ts` are generated and gitignored. The metadata module lets generated code reach schema fallback/default values, and `message-defaults.ts` lets zero-Zod clients (`packages/protocol/src/validation/message-defaults.ts`) apply every schema `.default()` without loading Zod or `ws-outbound.aot.ts`.
Generation runs from protocol-owned lifecycle hooks: `prebuild`, `pretypecheck`, `pretest`, and `watch`. Installs do not run generation: published packages consume protocol from prebuilt `dist`, and local build/typecheck/test flows generate the source file at the point it is actually needed.
@@ -171,7 +171,7 @@ V2.0.4 also removed the activation endpoint that gated a cold location, and a co
Paseo installs its OpenCode tool bridge through `OPENCODE_CONFIG_CONTENT`. V1 accepts a plugin file; v2 silently skips configured files and requires a package directory with a server entry point. Both versions use the daemon's private loopback bridge for caller-scoped tools. The global manifest must use agent-scoped schemas before a session is bound, because every bridge call executes in an agent session. V2 discovers definitions from each bound session's catalog: plugin-contributed tools can be absent from the global manifest, and an allowlist cannot register a missing definition. Registration is location-wide, so session filtering and caller-scoped execution must remain in place. Bridge context lives only in daemon memory and is removed when the Paseo session closes. The content-addressed plugin artifacts contain no session data or secrets. V2 also needs this plugin when native Paseo tools are disabled: its prompt API has no structured-output format, so the plugin supplies a schema-validated final-answer tool.
An agent with custom environment variables or user-configured MCP servers gets a dedicated OpenCode server. V2 supports session environment, but its MCP configuration remains location-scoped, so separate servers still prevent one agent from changing another agent's MCP setup. Configure custom MCP with `mcp.add`; do not follow it with `mcp.connect`, which only toggles config-backed servers.
No v2 agent gets a dedicated OpenCode server, because a reused server cannot provide one. OpenCode's MCP configuration is location-scoped, so Paseo never calls `mcp.add` for an agent. The daemon connects the agent's MCP servers itself (`v2/session-mcp.ts`), and the v2 plugin exposes their tools under OpenCode's native `<server>_<tool>` names. Each name registers once per location. The plugin's `context` hook gives each session its own definition and removes the tool from other sessions. If the user's own OpenCode configuration registered a tool with the same name first, other sessions keep that tool and its execution. Execution routes to the calling session's root binding. The hook also adds the servers' instructions to each request. OpenCode loads instruction entries before the hook runs, so an entry written when a child is adopted would miss the child's first request. The plugin calls OpenCode's `permission.assert` before each call, so `toolPolicy.preapproved` grants still apply. That API exists from OpenCode 2.0.29. Bind reports `features.mcpTools`, so an older server or a stale plugin fails the session at creation instead of hiding its tools. Per-agent `launch.env` reaches shells through `session.environment`, which child sessions do not inherit. The plugin asks the daemon to adopt each descendant in its first `context` hook, before its first model request.
OpenCode owns user message IDs. Do not pass Paseo-generated IDs to OpenCode prompt APIs; let OpenCode create `msg*` IDs and record the user timeline item from the `message.updated` event.
@@ -221,11 +221,35 @@ Plugin callbacks follow the same contract; see [plugin providers](plugins.md#con
`ProviderSnapshotManager` owns one refresh deadline per provider. The deadline starts before the
availability check and covers that check plus the complete catalog probe. Providers that make
multiple catalog requests must not apply this deadline separately to each request. The manager
aborts the shared refresh signal at the deadline. Providers name active catalog operations and
aborts the shared refresh signal at the deadline, and when it stops. Shutdown waits for running
probes to settle before it shuts down provider clients, so a probe cannot start provider work,
such as an OpenCode server, after its client has cleaned up. Providers name active catalog operations and
finish subprocess, server, or session cleanup before rejecting. Timeout errors list the operations
that were still active when the deadline expired.
that were still active when the deadline expired. A plugin provider's connection is shared with its
running sessions, so the bridge cannot close it at the deadline; it sends `request.cancel` for the
abandoned request instead, and the provider stops that request's work
@@ -4,23 +4,41 @@ All workspaces share one version and release together.
## Two steps
A release has exactly two steps. The agent does the first, the user authorizes the second.
A release has two steps. The agent runs Preparation before approval, and the user authorizes Ship.
**Preparation** (reversible — agent does this):
### Preparation
- format, lint, typecheck all green
- resolve the [release base](#release-base-and-source), get the [release inventory](#release-inventory) approved when one applies, and confirm CI for the resulting release source is green
- classify the diff from the previous stable to the release source as patch or minor, then show the
target version and rationale to the user
- draft the changelog, show it to the user, wait for review
- run the pre-release sanity check, surface findings to the user
Preparation is reversible and runs on the release branch before the user authorizes shipping.
**Go-ahead** (user says "go ahead"):
1. Resolve the [release base](#release-base-and-source) and get the [release inventory](#release-inventory) approved when one applies.
2. Classify the diff from the previous stable release to the release source as patch or minor, then show the target version and rationale to the user.
3. Draft `CHANGELOG.md` and `CHANGELOG.zh-CN.md`, show the draft to the user, and wait for approval.
4. Run the [pre-release sanity check](#pre-release-sanity-check) for stable releases, and report any findings to the user.
5. Commit the approved changelog and any requested ACP update, then run `npm run format`, `npm run lint`, and `npm run typecheck`.
6. Run `npm run release:prep:<mode>` to create the `chore(release): cut <version>` commit without a tag.
7. Push `release/vX.Y.Z` or `release/vX.Y.Z-beta.N` and wait for `CI` and `Desktop Packages` on that branch to pass (never wait on `main` CI).
8. Run the [pre-release dependency checks](#pre-release-dependency-checks) on the release commit.
- commit the approved release inputs locally on the release branch
- run the release, which publishes npm and pushes the release branch and tag
- create the release heartbeat immediately and babysit it to completion
- [reconcile `main`](#reconcile-main) with what shipped
### Ship
Ship starts after the user says "go ahead". All tag-triggered GitHub Actions workflows and EAS workflows build from the checked-out tag commit with local workspace packages, so none of them install `@getpaseo/*` from the public npm registry.
1. Run `npm run release:push` first to verify the clean release branch and push `vX.Y.Z` or `vX.Y.Z-beta.N`. Pushing the tag takes a few seconds and starts `Desktop Release`, `Android APK Release`, `Docker`, `Release Notes Sync`, and (for stable tags) `Deploy App` on GitHub Actions, plus `Release Mobile` (stable) or `Release iOS Beta` (beta) on EAS. (`Deploy Website` runs later on the `release: published` event when `Desktop Release` publishes the stable GitHub Release.)
2. Run `npm run release:publish` (stable) or `npm run release:publish:beta` (beta) in parallel with the remote builds. `scripts/publish-release-packages.mjs` publishes the seven `@getpaseo/*` packages in dependency waves and polls npm visibility between packages to avoid `E409` or `E404` propagation races.
3. Open the [reconcile `main`](#reconcile-main) PR from `reconcile/vX.Y.Z` or `reconcile/vX.Y.Z-beta.N` right after `npm run release:push` finishes, so its CI run overlaps with npm publication and the release builds.
4. Create the release heartbeat immediately with `create_heartbeat` to track every ship step to completion.
### Sync gates
Wait until every gate below passes before deleting the remote release branch or reporting the release as shipped:
- All seven `@getpaseo/*` npm packages are visible on `latest` (stable) or `beta` (beta), and on stable the `beta` dist-tag points to the shipped version unless an active newer beta exists.
- All tag-triggered GitHub Actions workflows are green (`Desktop Release`, `Android APK Release`, `Docker`, `Release Notes Sync`, and `Deploy App` for stable), and `Deploy Website` ran after stable publication.
- The GitHub Release is published and non-draft (marked prerelease for beta) with the synced changelog body, all macOS, Linux, and Windows assets, the Android APK asset, and all three channel manifests (`latest-mac.yml`, `latest-linux.yml`, `latest.yml` for stable; `beta-mac.yml`, `beta-linux.yml`, `beta.yml` for beta).
- The matching EAS workflow is green (`Release Mobile` with all six build, distribution, screenshot, and review-submission jobs for stable; `Release iOS Beta` for beta).
- The reconcile PR is merged into `main`.
Once all sync gates pass, delete the remote release branch (`git push origin --delete release/vX.Y.Z` or `release/vX.Y.Z-beta.N`), delete the heartbeat, and report the release as shipped.
Rules that apply to both steps:
@@ -42,7 +60,7 @@ the shipped source.
The user decides when the changes on `main` warrant a release and how much risk it takes:
1. **Direct stable release** for a low-risk batch of polish and bug fixes. Stable desktop updates
already ramp over 36 hours (see [Staged rollout](#staged-rollout-stable-channel)), and store
start with a 5% canary and ramp over 18 hours (see [Staged rollout](#staged-rollout-stable-channel)), and store
review often takes about a day, with no guaranteed timing.
2. **Beta flow**, the default for changes that need testing. Release candidates on the `beta`
channel. Each beta folds into the series' single changelog entry, publishes npm only on the
@@ -87,29 +105,48 @@ An explicit user instruction can select another base.
1. Fetch `origin` with tags and resolve the base to one commit.
2. Create the release workspace through Paseo MCP on a new branch from the base, named
`release/vX.Y.Z` or `release/vX.Y.Z-beta.N` for the version being cut. Run the release from
this workspace: `release:push` pushes `HEAD` to the current branch.
`release/vX.Y.Z` or `release/vX.Y.Z-beta.N` for the version being cut. `release:push` refuses
`main` and any branch outside `release/*`.
3. Cherry-pick the approved commits in their `main` order with `git cherry-pick -x`, so each
commit records the `main` commit it came from. Include the prerequisites the inventory listed.
Resolve conflicts within the approved changes and report how. A resolution that needs new
behavior is a scope addition: surface it for selection.
4. Confirm CI for the release source. When the source is a commit whose CI already passed (the
captured `origin/main`, or the beta tag being promoted), use that run and watch pending CI to
completion. Otherwise push the release branch and run `gh workflow run ci.yml --ref <branch>`,
because CI push runs target only `main`.
5. Keep the changelog, any explicitly requested ACP catalog update, lockfile preparation, and the
version commit local until the go-ahead. The release command pushes the release branch and tag
as one batch, and the tag push starts the release workflows. Then run
`gh workflow run ci.yml --ref <branch>` so CI covers the complete release commit.
6. [Reconcile `main`](#reconcile-main).
4. Commit the approved `CHANGELOG.md`, `CHANGELOG.zh-CN.md`, and any explicitly requested ACP
catalog update on the release branch. Run `npm run format`, `npm run lint`, and
`npm run typecheck`, then run `npm run release:prep:<mode>`. This checks the packages, bumps all
workspace versions, generates stable F-Droid changelogs, updates `package-lock.json`, and creates
`chore(release): cut <version>` without a tag.
5. Push the release branch (`git push -u origin HEAD`). Pushing any `release/**` branch triggers
`CI` (all 21 jobs) and `Desktop Packages` (Linux user-namespace smoke) in their own concurrency
groups, isolated from `main` traffic. Never wait on `main` CI, because `main` runs queue behind
each other and a newer merge replaces the pending one.
Wait for both runs on the release branch commit to pass before shipping.
Complete the [pre-release dependency checks](#pre-release-dependency-checks) on that commit.
Pushing a `release/**` branch without a `v*` tag triggers no publish workflows.
6. After go-ahead, push the tag first with `npm run release:push` so remote builds start right away.
Because the release branch is already pushed at `HEAD`, no second branch CI run starts, and only
the tag release workflows run.
7. Immediately in parallel after `npm run release:push` finishes: publish npm packages with
`npm run release:publish` (stable) or `npm run release:publish:beta` (beta), start
[Reconcile `main`](#reconcile-main) so its PR checks overlap with desktop and EAS builds, and
create the release heartbeat. (`npm run release:ship` and `npm run release:ship:beta` also run
`release:push` before `release:publish`, so tag builds never wait behind npm.)
When promoting or branching from a tag created before `release:prep:*`, `release:ship`, and the
`release/**` workflow triggers existed (for example `v0.17.0-beta.1`), either cherry-pick the
release-tooling commit onto the release branch (leaving product code unchanged) or follow the
push the release branch for `CI` and `Desktop Packages`, and complete the
[pre-release dependency checks](#pre-release-dependency-checks) before shipping with
`npm run release:push` and `npm run release:publish:beta` (or `npm run release:ship:beta`).
Record the tested beta tag as its source so its soak still counts for the unchanged content.
## Release inventory
@@ -137,19 +174,30 @@ For a promotion, every item defaults to defer.
## Reconcile main
After the release push, open a PR into `main` that brings in what shipped and keeps newer
development on `main`:
Right after `npm run release:push` pushes the tag (in parallel with npm publication and all desktop, APK, Docker, and EAS builds), open a PR into `main` from a fresh branch off `origin/main` named `reconcile/vX.Y.Z` or `reconcile/vX.Y.Z-beta.N`. Reconcile reads only the tagged git commit, so it does not wait for npm or any release build:
- The shipped `CHANGELOG.md` and `CHANGELOG.zh-CN.md` entries, exactly as tagged. A beta or
promotion entry replaces the series entry on `main`. A stable hotfix on an older line goes
below any newer entries.
- The shipped version in every `package.json` and `package-lock.json`, unless `main` already
carries a newer version, plus the F-Droid changelog files a stable release generates.
- No claims about unshipped work: a shipped entry describes only the tagged content, and notes
`main` holds for changes that have not shipped stay out of it.
```bash
git fetch origin --tags
git checkout -b reconcile/vX.Y.Z origin/main
npm run release:reconcile -- --tag vX.Y.Z
```
Delete the release branch once the PR merges. The tag is the record of shipped source; Paseo
maintains no release track besides `main`.
`scripts/reconcile-release.mjs` updates the working tree without cherry-picking stale lockfile
hunks from the release base:
- Copies the tagged `CHANGELOG.md` and `CHANGELOG.zh-CN.md` entries verbatim. A beta or promotion
entry replaces the series beta entry on `main`. A stable hotfix on an older line is placed below
any newer entries.
- Copies the generated F-Droid changelog files from the tag for stable releases.
- Updates every `package.json` version and regenerates `package-lock.json` on top of current `main`
only when the shipped version is newer than `main`'s version.
- Leaves unshipped work on `main` untouched and makes no claims about unshipped work in the
changelog entry.
Commit, open the PR into `main`, and merge once its checks pass. Delete the remote release branch
(`git push origin --delete release/vX.Y.Z` or `release/vX.Y.Z-beta.N`) only after the reconcile PR
merges and every [sync gate](#sync-gates) passes. The tag is the record of shipped source, and
Paseo maintains no release track besides `main`.
## ACP catalog updates
@@ -189,35 +237,49 @@ as described in **Fixing a failed release build**.
## Standard release (stable)
Before running any stable release command:
Before preparing a stable release on `release/vX.Y.Z`:
- Make sure the release source passed CI, the approved release inputs are committed locally on the release branch, and the working tree is clean.
- **Run `npm run format`, `npm run lint`, and `npm run typecheck` and commit any resulting changes BEFORE you start any `release:*` command.**`release:check` runs `npm install --workspaces --include-workspace-root` as part of `release:prepare`, which can mutate `package-lock.json` (e.g. churning `"dev": true` markers on optional deps). The next step, `version:all:*`, runs `npm version` which aborts when the working tree is dirty. If this happens mid-flight you have to commit the lockfile churn before retrying — and the pre-commit format hook will reject a lockfile-only commit because oxfmt internally skips `package-lock.json` while lefthook's glob still matches it. Avoid the whole mess by running format/lint/typecheck first, then `release:prepare` once on its own to absorb any lockfile churn into a normal commit, then start the release.
- Do not use a release command as a substitute for checking whether the current commit is actually ready.
- Commit the approved `CHANGELOG.md`, `CHANGELOG.zh-CN.md`, and any requested ACP update.
- Run `npm run format`, `npm run lint`, and `npm run typecheck`, commit any resulting changes, and
confirm the working tree is clean.
- Do not use a release command as a substitute for checking whether the current commit is ready.
```bash
# Run exactly one, matching the approved decision:
npm run release:patch
npm run release:minor
# 1. Preparation (reversible): run checks and commit the version bump without tagging.
npm run release:prep:patch
# or:
npm run release:prep:minor
# 2. Push the release branch and wait for CI + Desktop Packages on this commit.
git push -u origin HEAD
# Complete the pre-release dependency checks on this commit.
# 3. After go-ahead and green release-branch checks: push the tag first to start builds.
npm run release:push
# 4. Run these in parallel immediately after step 3:
npm run release:publish
# Also open the reconcile/vX.Y.Z PR into main and create the release heartbeat.
# (`npm run release:ship` runs `release:push` before `release:publish` if used standalone.)
```
This bumps the version across all workspaces, runs checks, publishes to npm, and pushes the branch + tag. The tag push triggers `Desktop Release`, `Android APK Release`, `Docker`, and `Release Notes Sync` on GitHub Actions. The workflows create the GitHub Release as a draft while builds and release-note sync run. EAS picks up the same tag via the EAS GitHub app and starts the iOS + Android store builds in parallel (see "Mobile builds (EAS)" below) — there is no mobile-release workflow under `.github/workflows`.
`scripts/push-current-release-tag.mjs` refuses non-`release/*` branches, checks that `HEAD` matches `origin/release/*`, tags `HEAD` with `vX.Y.Z`, and pushes the tag. Because `HEAD` is already on the pushed release branch, no second branch CI run starts.
After the stable release succeeds, check `npm view @getpaseo/cli dist-tags`. When the new stable
is newer than `beta`, move `beta` to it for every published package. This changes dist-tags only;
do not republish the packages:
`scripts/publish-release-packages.mjs` publishes the seven `@getpaseo/*` packages in dependency-wave order:
1. Wave 1: `@getpaseo/highlight`, `@getpaseo/relay`, and `@getpaseo/protocol` (no `@getpaseo/*` dependencies).
2. Wave 2: `@getpaseo/client` (depends on `@getpaseo/protocol` and `@getpaseo/relay`).
3. Wave 3: `@getpaseo/plugin` (depends on `@getpaseo/client` and `@getpaseo/protocol`).
4. Wave 4: `@getpaseo/server` (depends on `@getpaseo/client`, `@getpaseo/highlight`, `@getpaseo/plugin`, `@getpaseo/protocol`, and `@getpaseo/relay`).
5. Wave 5: `@getpaseo/cli` (depends on `@getpaseo/client`, `@getpaseo/protocol`, and `@getpaseo/server`).
Verify `latest` resolves to `PASEO_VERSION`, and `beta` resolves to `PASEO_VERSION` or the
active newer beta, before considering the stable release complete.
After each `npm publish`, the script polls `npm view` (up to 12 checks, 5 seconds apart) until the published version is visible on npm before moving to the next package. Waiting for registry visibility prevents dependent publishes and manual retries from hitting `E409` conflicts or `E404` propagation lag. On stable releases, the script also checks `npm view @getpaseo/cli dist-tags` and moves npm's `beta` dist-tag to the new stable version across all seven packages whenever the stable version is newer than `beta` (leaving `beta` untouched during a stable hotfix on an older line).
The Docker workflow builds images from the checked-out source tree on pull requests and on `main` as non-publishing checks. Stable `vX.Y.Z` tag pushes publish `ghcr.io/getpaseo/paseo:X.Y.Z` and `ghcr.io/getpaseo/paseo:latest`; beta `vX.Y.Z-beta.N` tag pushes publish only `ghcr.io/getpaseo/paseo:X.Y.Z-beta.N` and never move `latest`.
The tag push triggers `Desktop Release`, `Android APK Release`, `Docker`, `Release Notes Sync`, and `Deploy App` (`app.paseo.sh`, stable tags only) on GitHub Actions. `Desktop Release` and `Release Notes Sync` create the GitHub Release as a draft while builds and release-note sync run. `Deploy Website` triggers later on `release: published` when `Desktop Release` publishes the non-draft stable GitHub Release. EAS picks up the same tag through the EAS GitHub app and starts `Release Mobile` (iOS and Android store builds) in parallel, with no mobile-release workflow under `.github/workflows`. None of these workflows install `@getpaseo/*` from the public npm registry because all of them build from the checked-out tag commit and workspace packages.
Confirm that `npm view @getpaseo/cli dist-tags` shows `latest` at the shipped version, and `beta` at the shipped version or an active newer beta, before considering the stable release complete.
The Docker workflow builds images from the checked-out source tree on `main` as non-publishing checks (a running check finishes, and a newer merge replaces the pending one). Stable `vX.Y.Z` tag pushes publish `ghcr.io/getpaseo/paseo:X.Y.Z` and `ghcr.io/getpaseo/paseo:latest`; beta `vX.Y.Z-beta.N` tag pushes publish only `ghcr.io/getpaseo/paseo:X.Y.Z-beta.N` and never move `latest`.
The production relay is the Elixir service in [getpaseo/paseo-relay](https://github.com/getpaseo/paseo-relay), with its own deployment process. Paseo releases and pushes to this repository do not deploy it. The Cloudflare relay code and workflow in this repository are legacy and are not used in production.
@@ -228,29 +290,52 @@ The production relay is the Elixir service in [getpaseo/paseo-relay](https://git
```bash
npm run typecheck # Verify the exact commit you intend to release
npm run release:check # Typecheck, build, dry-run pack
# Run exactly one approved version command:
# Run exactly one approved version command (commits without tagging):
npm run version:all:patch
npm run version:all:minor
npm run release:publish # Publish to npm
npm run release:push # Push HEAD + tag (triggers CI workflows)
# Then move npm's beta dist-tag to this stable version when it is newer than beta (see above).
git push -u origin HEAD # Trigger CI + Desktop Packages on release/vX.Y.Z
# Wait for CI and Desktop Packages and complete the pre-release dependency checks.
# After go-ahead:
npm run release:push # Create tag vX.Y.Z on HEAD and push (starts release builds)
# In parallel right after release:push:
npm run release:publish # Publish to npm (idempotent, with propagation + beta dist-tag sync)
# Open reconcile/vX.Y.Z PR into main and create the release heartbeat.
```
## Beta flow
```bash
npm run release:beta:patch # Start the next patch beta line
npm run release:beta:minor # Start the next minor beta line
# ... test desktop and APK prerelease assets from GitHub Releases ...
npm run release:beta:next # Optional: cut X.Y.Z-beta.2, beta.3, ...
npm run release:promote # Promote X.Y.Z-beta.N to stable X.Y.Z
# 1. Preparation (reversible) on release/vX.Y.Z-beta.N:
npm run release:prep:beta:patch # Start the next patch beta line
# or:
npm run release:prep:beta:minor # Start the next minor beta line
# or for follow-up betas:
npm run release:prep:beta:next # Cut X.Y.Z-beta.2, beta.3, ...
# 2. Push the release branch and wait for CI + Desktop Packages to pass:
git push -u origin HEAD
# Complete the pre-release dependency checks on this commit.
# 3. After go-ahead: push the tag first, then run npm publish, reconcile, and heartbeat in parallel:
npm run release:push
npm run release:publish:beta
# (Or run `npm run release:ship:beta` in one shell while opening reconcile/vX.Y.Z-beta.N.)
# Later, after soak, promote on release/vX.Y.Z:
npm run release:prep:promote
git push -u origin HEAD
# Wait for CI + Desktop Packages and complete the pre-release dependency checks.
# After go-ahead:
npm run release:push
npm run release:publish
# Open reconcile/vX.Y.Z PR into main and create the release heartbeat in parallel.
```
- Beta tags are published GitHub prereleases like `v0.1.41-beta.1`
- Betas publish npm packages with `--tag beta`, so `npm install @getpaseo/cli@beta` opts in while plain `npm install @getpaseo/cli` stays on `latest`
- The user-facing beta instructions, including the public TestFlight join link for the `Paseo Beta` group, live in `public-docs/updates.md` and its `zh-CN` pair. Update them when a beta path is added or removed.
- Betas publish desktop assets and APKs for testing. They also build iOS, upload it to TestFlight, add it to the `Paseo Beta` external group, and submit it for Beta App Review. They do not submit mobile builds to the production stores.
- `release:promote` creates a fresh stable tag like `v0.1.41`; the final release never reuses the beta tag
- `release:prep:promote` + `release:ship` creates a fresh stable tag like `v0.1.41`; the final release never reuses the beta tag
- Desktop assets now come from the Electron package at `packages/desktop`
- Require the Linux artifact CI checks with both restricted and usable user namespaces to pass before publication; see [packaged desktop smoke](testing.md#packaged-desktop-smoke). Keep the installed-package and AppImage checks together.
- Beta releases use Electron's `beta` update channel. Users on the stable channel only receive stable releases; users on the beta channel receive beta releases and the final stable release when it is published.
@@ -265,11 +350,33 @@ Use the beta path when you need to:
## Staged rollout (stable channel)
Stable desktop releases go out via a linear time-based rollout for automatic update checks: 0% admitted when the updater manifests appear, 100% admitted 36 hours later, linear ramp in between. Manual checks bypass the rollout so a user can install immediately when they click **Check**. Beta releases bypass the rollout entirely — beta users always receive updates immediately.
A stable desktop release reaches automatic updates in stages, so a bad release reaches few installs before you stop it. Each install decides locally from two fields in the release manifests, `releaseDate` and `rolloutHours`. No server tracks installs.
The rollout is driven by a `rolloutHours` field stamped into the GitHub Release manifests (`latest-mac.yml`, `latest-linux.yml`, `latest.yml`) by the `finalize-rollout` job in `desktop-release.yml`.
| Canary | For the first 8 hours, 5% of installs are admitted. |
| Ramp | From 8 hours to `rolloutHours` (18 by default), admission rises in a straight line from 5% to 100%. |
| Check interval | An install asks GitHub for the latest release at most once every 6 hours. |
| Cooldown | After an install updates, it skips paced releases for 24 hours. |
| Staged update | An install that holds a downloaded update keeps it and does not download the paced release that follows. |
Desktop release builds now publish in two phases:
A paced release is a stable release with `rolloutHours` above 0. When `rolloutHours` is under 16, the canary hold is half of `rolloutHours`.
Every release places each install at a new position in the rollout, so the canary group changes with each release. With one or two releases per day, an install updates at most once every 24 hours and skips the releases in between.
These paths skip the stages:
- A manual check (**Check**) always asks GitHub and always offers the latest release.
- A release with `rolloutHours: 0` is an emergency release. Every install takes it at its next check, during a cooldown too, and it replaces a staged update.
- The beta channel has no stages. A beta install takes each release at its next check.
The **Notify** update mode follows the same stages and prompts instead of downloading. **Off** makes no automatic requests.
`packages/desktop/src/features/app-update-rollout.ts` owns the curve. `app-update-pacing.ts` owns the check interval and the cooldown, and `app-update-service.ts` owns the staged update.
### How a release is published
The `finalize-rollout` job in `desktop-release.yml` stamps `releaseDate` and `rolloutHours` into the GitHub Release manifests (`latest-mac.yml`, `latest-linux.yml`, `latest.yml`). Desktop release builds publish in two phases:
- The GitHub Release stays a draft while platform build jobs upload the installers/packages (`.dmg`, `.zip`, `.exe`, `.AppImage`, etc.).
- The final job merges and stamps every channel manifest, uploads them with the final `releaseDate` and `rolloutHours`, then publishes the GitHub Release.
@@ -278,22 +385,21 @@ Drafts do not appear in GitHub's releases feed. Updater clients continue to see
### Default behavior
`npm run release:patch` or `npm run release:minor` → tag push → 36h ramp. No extra action needed.
Follow the [standard stable release procedure](#standard-release-stable). The tag push starts
the desktop release workflow, which sets an 18-hour rollout when it publishes the release.
The `rollout_hours` input on `desktop-release.yml` is **only read on `workflow_dispatch`** — tag-push runs always default to 36. To get any other rollout duration on a fresh release, use the post-publish flip below.
The `rollout_hours` input on `desktop-release.yml` is read only on `workflow_dispatch`. Tag-push runs always use 18. To get any other rollout duration on a fresh release, use the post-publish flip below.
### Instant-admit release (rollout_hours=0)
### Emergency release (rollout_hours=0)
`npm run release:patch` and `npm run release:minor` tag-push, and tag-push runs always stamp 36 hours. To admit everyone immediately (hotfix, doc-only change, a release you want out fast), cut the release normally, wait for it to publish, then flip the manifests:
Follow the [standard stable release procedure](#standard-release-stable). Wait for Desktop
Release to publish, then update the manifests to admit everyone at once.
```bash
# 1. Cut and publish (36h ramp from tag push).
npm run release:patch
# 2. Wait for Desktop Release to publish the GitHub Release.
# 1. Wait for Desktop Release to publish the GitHub Release.
gh run watch <desktop-release-run-id> --exit-status
# 3. Flip the published manifests to instant admit.
# 2. Flip the published manifests to an emergency release.
gh workflow run desktop-rollout.yml \
-f tag=v0.1.64 \
-f rollout_hours=0
@@ -301,23 +407,13 @@ gh workflow run desktop-rollout.yml \
Dispatch only after `finalize-rollout` has published the release. Until then the release is a draft, and a draft has no tag: `desktop-rollout.yml` looks the release up by tag and fails with `release not found`. The concurrency group `desktop-rollout-<tag>` that the two workflows share orders them only once both are queued; it does not hold an early dispatch until the draft is published.
The first public manifests carry `rolloutHours=36` for the minutes between publish and the flip. The renderer polls every 30 minutes, so active stable users pick up the new manifest on their next check.
The first public manifests carry `rolloutHours=18` for the minutes between publish and the flip. An install sees the flip at its next check, which is up to 6 hours after its previous one. In automatic mode it then downloads the release and installs it when the app quits.
### Adjusting an already-published release
To change the rollout duration on a release that's already shipped — e.g. flip a hotfix to instant admit, or slow a release down — use the dedicated`desktop-rollout.yml` workflow. It edits the manifests in place on the GitHub release without rebuilding anything. It only rewrites `rolloutHours`;`releaseDate` is preserved, so the rollout clock keeps ticking from the original publish time.
To change the rollout duration on a release that already shipped, use the`desktop-rollout.yml` workflow. It edits the manifests in place on the GitHub release without rebuilding anything. It rewrites only `rolloutHours`.`releaseDate` is preserved, so the rollout clock keeps running from the original publish time.
**Hotfix (instant admit) on an already-shipped release:**
```bash
gh workflow run desktop-rollout.yml \
-f tag=v0.1.42 \
-f rollout_hours=0
```
`rollout_hours=0` admits 100% of stable users on their next update check (within ~30 min for active clients).
**Slow a rollout down** (e.g. extend total duration to 72h since the original release):
To slow a rollout down, for example to 72 hours since the original release:
```bash
gh workflow run desktop-rollout.yml \
@@ -325,13 +421,59 @@ gh workflow run desktop-rollout.yml \
-f rollout_hours=72
```
`rollout_hours` is **total duration since the original release date**, not "extend by N more hours from now." If `v0.1.42` was published 2h ago and you set `rollout_hours=72`, the ramp finishes 70h from now.
`rollout_hours` is the total duration since the original release date. If `v0.1.42` was published 2 hours ago and you set `rollout_hours=72`, the ramp finishes 70 hours from now.
A longer rollout does not stop a release. The canary group still updates. To stop a release, [halt it](#halt-a-release).
The dispatch is idempotent and shares the `desktop-rollout-<tag>` concurrency group with `desktop-release.yml`'s `finalize-rollout` job, so it serializes safely against an in-flight tag-push pipeline targeting the same release.
### Halt a release
Stable installs and the download page follow the release that GitHub marks as latest. To stop a release, mark the last good release as latest:
```bash
# v0.1.41 is the last good release.
gh release edit v0.1.41 --latest
# Prints v0.1.41 when the halt is in effect.
gh api repos/getpaseo/paseo/releases/latest --jq .tag_name
```
The halt applies to every stable install from its next check, including installs older than the staged rollout:
- An install that has not downloaded the halted release no longer sees it.
- An install that downloaded it asks GitHub again before it installs at quit, and drops the download.
- An install that already runs the halted release stays on it, because the app never downgrades. [Ship a fix](#fix-a-bad-release).
A halt does not reach the beta channel. Beta installs read the release list by date and still take the halted release.
To resume a halted release, run `gh release edit v0.1.42 --latest` with its tag.
### Fix a bad release
1. [Halt](#halt-a-release) the bad release.
2. Ship the fix as the next patch with the [standard stable release procedure](#standard-release-stable).
3. After Desktop Release publishes the fix, make sure that GitHub marks it as latest:
```bash
gh api repos/getpaseo/paseo/releases/latest --jq .tag_name
```
If the command prints another tag, run `gh release edit <fix-tag> --latest`.
4. Flip the fix to an [emergency release](#emergency-release-rollout_hours0):
```bash
gh workflow run desktop-rollout.yml \
-f tag=<fix-tag> \
-f rollout_hours=0
```
Do not leave the fix as a paced release. The installs that took the bad release are in their 24-hour cooldown and skip a paced release. An install that holds the bad release as a staged update, and did not check during the halt, keeps it when a paced release follows. An emergency release reaches both.
### Custom ramp on a manually-dispatched build
`desktop-release.yml` accepts `rollout_hours` only on `workflow_dispatch`, which is the path used to **rebuild an existing tag** (retry a failed release, force a rebuild on a different ref). When you go that route, you can stamp a non-default ramp directly:
`desktop-release.yml` accepts `rollout_hours` only on `workflow_dispatch`, which is the path used to rebuild an existing tag (retry a failed release, force a rebuild on a different ref). On that path, you can stamp a different ramp directly:
```bash
gh workflow run desktop-release.yml \
@@ -339,13 +481,18 @@ gh workflow run desktop-release.yml \
-f rollout_hours=6
```
This does **not** apply to fresh releases cut via `npm run release:patch` or `npm run release:minor` — those paths always tag-push and stamp 36. For a fresh release with a custom ramp, cut normally and then dispatch `desktop-rollout.yml` (same pattern as the instant-admit flow above, with your chosen `rollout_hours`).
For a fresh release with a custom ramp, follow the [emergency release procedure](#emergency-release-rollout_hours0)
and set `rollout_hours` to your chosen duration.
### Releasing during an active rollout
If you ship N+1 while N is still ramping, N+1 starts a fresh rollout from its own publish timestamp. N's rollout effectively ends — the newer manifest supersedes it. Rollout-aware clients revalidate the manifest for up to five seconds before installing a downloaded update on quit. If N+1 has replaced N but the client is not admitted to N+1 yet, it skips the downloaded N and waits rather than installing two updates in succession. If revalidation times out, the app exits without installing the cached update.
If you ship N+1 while N is still ramping, N+1 starts a new rollout from its own publish time, and the rollout of N ends because installs no longer see its manifests.
If N+1 is a hotfix for a bug in N, dispatch `desktop-rollout.yml -f tag=v0.1.<N+1> -f rollout_hours=0` after N+1 publishes so the users who already got N reach the fix fast.
An install that holds N as a staged update keeps N when N+1 is a paced release, and installs N when the app quits. It then waits out its cooldown before it takes a later paced release. The hold covers only paced patch releases that the install saw one after the other. If the install missed a release, it evaluates the newest release instead: it replaces N when it is admitted, and drops N when it is not.
A minor or major release always ends the hold. The version numbers do not show whether a fix shipped between `0.17.4` and `0.18.0`, so the install treats `0.18.0` as if it missed a release.
Before an install at quit, the app asks GitHub for the latest release for up to five seconds. If that check does not finish in time, the app exits without installing the staged update.
### macOS system floor
@@ -358,17 +505,17 @@ macOS 13 maps to Darwin 22. The two values use different version domains; do not
### Limitations
- **No pause / kill switch.** To stop new admissions, ship a superseding release. Clients revalidate on quit and will not install the superseded download, but a client that already completed installation cannot be recalled; ship a hotfix `+1` patch.
- **No rollback.**`allowDowngrade = false`. Bad release = ship a hotfix.
- **Bootstrap caveat.** Clients running a build older than the rollout feature ignore `rolloutHours` and admit immediately. Rollout protection only applies to clients running the rollout-aware version or later.
- **Up to ~30 min automatic admission latency.** Renderer polls every 30 minutes, so a stable user may take up to that long to be evaluated against the rollout window. Clicking **Check** is manual and bypasses rollout admission.
- A release cannot be recalled from an install that runs it. `allowDowngrade` is `false`. [Halt](#halt-a-release) the release to protect the other installs, then [ship a fix](#fix-a-bad-release).
- An emergency release reaches a running install at its next check, up to 6 hours after its previous one. A manual check sees it at once.
- Installs older than the canary and cooldown build have neither. They ramp in a straight line over `rolloutHours` and check every 30 minutes. Installs older than the staged rollout ignore `rolloutHours` and update at once.
- The app window starts every automatic check. A release whose window does not load cannot update itself, and its users must download a new build from the website. Smoke the packaged app before you publish.
## Mobile builds (EAS)
iOS and Android store builds are not in `.github/workflows`. They are triggered by the EAS GitHub app the moment the `v*` tag is pushed:
- **Android (Play Store)** — EAS builds with profile `production` and auto-submits to the Play Store via `eas submit` (EAS-managed credentials). A Fastlane lane then replaces the store screenshots.
- **iOS (TestFlight + App Store)** — EAS builds with profile `production`, uploads once through a `testflight` job, distributes the build to the `Paseo Beta` external group with Beta App Review submission, and a Fastlane lane uploads the store screenshots and submits that same build for App Store review.
- **iOS (TestFlight + App Store)** — EAS builds with profile `production`, uploads once through a `testflight` job, distributes the build to the `Paseo Beta` external group with Beta App Review submission, and a Fastlane lane uploads the store screenshots and submits that same build for App Store review. When an earlier iOS version is already in Apple's review or release queue (`WAITING_FOR_REVIEW`, `IN_REVIEW`, `PENDING_APPLE_RELEASE`, `PENDING_DEVELOPER_RELEASE`, `PROCESSING_FOR_DISTRIBUTION`, `WAITING_FOR_EXPORT_COMPLIANCE`, or `ACCEPTED`), `submit_review` leaves it untouched, logs `IOS_REVIEW_SKIPPED` with the in-review version and the waiting TestFlight build, and exits `0` so `Release Mobile` stays green.
- **Android APK (GitHub Release asset)** — separate, via `.github/workflows/android-apk-release.yml`. This is the only Android-related workflow that lives in this repo.
EAS uses the local app version source. `packages/app/app.config.js` derives the native version from the package version. Android `versionCode` is `major * 1_000_000 + minor * 1_000 + patch`. iOS reserves 1,000 build slots per app version: beta `N` uses slot `N`, and stable uses slot `999`. For example, `0.2.6-beta.2` appears in App Store Connect as version `0.2.6` build `2006002`; stable uses build `2006999`. Rebuilding the same tag produces the same native build number; if a store has already accepted a binary and you need a different binary, cut the next beta or patch instead of relying on EAS remote auto-increment.
@@ -414,11 +561,22 @@ npx eas build:view <build-id>
# and submit_ios_for_review.
npx eas workflow:view <workflow-run-id> --json
# Read failed submit/review job logs.
# Read submit/review job logs (also check for IOS_REVIEW_SKIPPED on green runs).
npx eas workflow:logs <workflow-job-id> --all-steps --non-interactive
# Stream logs for a build.
npx eas build:view <build-id> --json | jq '.logFiles[]'
# Check live App Store Connect review state + top 5 recent iOS TestFlight builds.
npx eas workflow:run ios-review-status.yml
# Submit a waiting TestFlight build once the review slot is free (default replace_in_review=false skips if still active).
npx eas workflow:run resubmit-ios-review.yml
# Or force-replace an in-flight review for an urgent iOS hotfix:
npx eas workflow:run resubmit-ios-review.yml -F app_version=0.18.1 -F app_build_version=18001999 -F replace_in_review=true
# Cancel an active in-flight iOS App Store review (pass expected_version to guard against version drift).
npx eas workflow:run cancel-ios-review.yml -F expected_version=0.18.0
```
A build's `gitCommitHash` must match the release tag commit. `status` walks through `NEW` → `IN_QUEUE` → `IN_PROGRESS` → `FINISHED` (or `ERRORED`/`CANCELED`). The EAS workflow run's `gitCommitHash` and `trigger` must also match the release tag.
@@ -434,25 +592,26 @@ For the `Release Mobile` EAS workflow, these jobs must pass:
- `submit_android` — Android binary submitted to the Play Store
- `upload_android_screenshots` — Google Play screenshots replaced from the repo
Do not treat `build_ios: SUCCESS` or `distribute_ios: SUCCESS` as a completed iOS release. `submit_ios_for_review: FAILURE` means the iOS release is blocked even if the build is visible in TestFlight.
Do not treat `build_ios: SUCCESS` or `distribute_ios: SUCCESS` as a completed iOS release. `submit_ios_for_review: FAILURE` means the iOS release is blocked even if the build is visible in TestFlight. Even when `submit_ios_for_review` passes, inspect its log with `npx eas workflow:logs <workflow-job-id> --all-steps --non-interactive` for `IOS_REVIEW_SKIPPED`. If App Store submission was skipped because an earlier version is already in flight, explicitly notify the maintainer with both the in-review version/state and the waiting TestFlight version/build so they can either let the current review finish and run `npx eas workflow:run resubmit-ios-review.yml` later, or replace it with `replace_in_review=true`.
To confirm the submission landed, inspect the EAS workflow with `npx eas workflow:view <workflow-run-id> --json`. App Store Connect (review state for the matching version/build) and the Play Console track are the final ground truth.
## Release completion and heartbeat
A release is **in progress** after npm publication and tag push. Report it as
**shipped** only after every applicable build, publication, asset, manifest, and
store submission passes the completion checklist.
A release is in progress once the tag is pushed. Report it as shipped only after every applicable
[sync gate](#sync-gates) and completion checklist item passes.
Immediately after every beta, stable, or promotion tag push, create a heartbeat
that resumes the release in the current conversation. Create it automatically
with `create_heartbeat`. The heartbeat owns the release until it either reaches
the completion checklist or finds a failure that needs new user authority.
Each heartbeat checks the release tag commit, all GitHub Actions runs for the
release branch and tag, npm dist-tags, the GitHub Release body and assets,
desktop updater manifests, the published Docker image, and the applicable EAS
workflow. Inspect the GitHub Release itself and confirm that the macOS, Linux,
Each heartbeat checks the release tag commit, `CI` and `Desktop Packages` for the release branch,
every tag-triggered GitHub Actions run (`Desktop Release`, `Android APK Release`, `Docker`,
`Release Notes Sync`, and `Deploy App` for stable), `Deploy Website` after stable release
publication, npm dist-tags, the GitHub Release body and assets, desktop updater manifests, the
published Docker image, the applicable EAS workflow, the reconcile PR, and remote release branch
cleanup. Inspect the GitHub Release itself and confirm that the macOS, Linux,
Windows, and Android APK assets are present along with the channel manifests
(`latest-mac.yml`, `latest-linux.yml`, and `latest.yml` for stable;
`beta-mac.yml`, `beta-linux.yml`, and `beta.yml` for beta).
@@ -461,8 +620,9 @@ For stable releases, also confirm every required mobile build, external
TestFlight distribution, Beta App Review submission, and store submission job
for the release commit. For betas, confirm
the beta EAS workflow completed its TestFlight distribution and Beta App Review
path. Delete the heartbeat only after every applicable checklist item passes,
then report the release as shipped.
path. Once the reconcile PR merges and every applicable checklist item passes,
delete the remote release branch (`git push origin --delete release/vX.Y.Z` or
`release/vX.Y.Z-beta.N`), delete the heartbeat, and report the release as shipped.
Pattern:
@@ -474,7 +634,7 @@ Pattern:
"timezone": "UTC",
"maxRuns": 120,
"expiresIn": "24h",
"prompt": "Resume the vX.Y.Z release babysit for commit <sha>. Check npm tags; every GitHub Actions run for the release branch and tag; the published GitHub Release body, expected desktop/APK assets, and channel manifests; the Docker image; and the matching EAS workflow. Completion requires every applicable checklist item. For stable, require build_ios, distribute_ios (Paseo Beta external distribution and Beta App Review submission), submit_ios_for_review, build_android, and submit_android to succeed. For beta, require the beta TestFlight distribution and Beta App Review path. If work is pending, wait for the next heartbeat. If a failure can be retried safely for the same version, follow the failed-release procedure; otherwise report the blocker. When every applicable completion-checklist item passes, delete THIS heartbeat, report shipped, and stop.",
"prompt": "Resume the vX.Y.Z release babysit for commit <sha>. Check npm tags; CI and Desktop Packages on release/vX.Y.Z; every tag-triggered GitHub Actions run (Desktop Release, Android APK Release, Docker, Release Notes Sync, and Deploy App on stable) plus Deploy Website after release publish; the published GitHub Release body, expected desktop/APK assets, and channel manifests; the Docker image; the matching EAS workflow; and the reconcile PR into main. Completion requires every applicable checklist item. For stable, require build_ios, distribute_ios (Paseo Beta external distribution and Beta App Review submission), submit_ios_for_review, build_android, submit_android, and upload_android_screenshots to succeed, and inspect the submit_ios_for_review log for IOS_REVIEW_SKIPPED (if skipped, explicitly report both the in-review version and the waiting TestFlight build to the maintainer). For beta, require the beta TestFlight distribution and Beta App Review path. If work is pending, wait for the next heartbeat. If a failure can be retried safely for the same version, follow the failed-release procedure; otherwise report the blocker. When every applicable completion-checklist item passes and the reconcile PR is merged, delete origin/release/vX.Y.Z, delete THIS heartbeat, report shipped, and stop.",
}
```
@@ -499,6 +659,8 @@ The GitHub Release body is populated automatically by the `Release Notes Sync` w
**NEVER bump the version to fix a build problem.** New versions are reserved for meaningful product changes (features, fixes, improvements). Build/CI failures are fixed on the current version.
If `npm run release:publish` or `npm run release:publish:beta` fails after `npm run release:push` pushed the tag, fix the npm authentication, OTP, or local build issue and rerun the publish command on the same commit. Do not move or force-push the `v*` tag, because `scripts/publish-release-packages.mjs` skips packages already visible on npm and resumes from the remaining packages.
**Do not rely on `workflow_dispatch` for tagged code fixes.** The `workflow_dispatch` trigger runs the workflow file from the default branch but checks out the code at the tag ref (`ref: ${{ inputs.tag }}`). That means fixes committed to `main` won't change the tagged source tree being built. `workflow_dispatch` only helps when the fix lives in the workflow file itself.
For Docker-only retries, **do not push or force-push a `v*` release tag**.
@@ -576,12 +738,14 @@ intentionally unavailable to desktop updater clients.
- The npm `version` lifecycle regenerates F-Droid changelog files from `CHANGELOG.md` for stable releases only (`npm run fdroid:changelogs`) and stages them, so the release tag carries them. Betas are a no-op. A stable run **aborts the release** if `CHANGELOG.md` has no entry for the version being cut — commit the changelog entry first. See [docs/android.md](android.md) for why these files are generated per ABI.
- `release:prepare` refreshes workspace `node_modules` links to prevent stale types
- `npm run dev:desktop` and `npm run build:desktop` target the Electron desktop package in `packages/desktop`
- If `release:publish` partially fails, re-run it — npm skips already-published versions
- If`release:publish:beta` partially fails, re-run it — npm skips already-published versions and keeps prereleases off `latest`because every publish uses `--tag beta`
- `version:all:*` bumps root, syncs workspace versions and `@getpaseo/*` dependency versions, and
commits `chore(release): cut <version>` without creating a tag. `release:push` creates and pushes
the tag atomically after release-branch CI passes.
- `release:push` refuses `main` and any branch outside `release/*`.
- The npm `version` lifecycle regenerates F-Droid changelog files from `CHANGELOG.md` for stable releases only (`npm run fdroid:changelogs`) and stages them, so the release commit and tag carry them. Betas are a no-op. A stable run **aborts the release** if `CHANGELOG.md` has no entry for the version being cut — commit the changelog entry first. See [docs/android.md](android.md) for why these files are generated per ABI.
- `release:prepare` refreshes workspace `node_modules`links to prevent stale types.
- `npm run dev:desktop` and `npm run build:desktop` target the Electron desktop package in `packages/desktop`.
- `release:publish` and `release:publish:beta` run `scripts/publish-release-packages.mjs`. They publish the seven `@getpaseo/*` packages in dependency waves, skip versions already visible on npm, retry transient registry errors, and poll `npm view` between packages so dependents do not hit `E409` or `E404` propagation lag. `release:ship` and `release:ship:beta` run `release:push` before `release:publish` or `release:publish:beta`.
- The website uses GitHub's latest published release API for download links, so published beta prereleases do not replace the stable download target.
## Changelog format
@@ -602,6 +766,7 @@ No prefix (`v`), no extra text. `Release Notes Sync` matches the `## X.Y.Z` (or
- `CHANGELOG.md` holds stable releases and at most one entry for the current beta series.
- The first beta of a version inserts a top entry like `## 0.1.60-beta.1 - YYYY-MM-DD`.
- Each subsequent beta rewrites that entry in place: the heading becomes the new beta number and date, and the body describes the full change from the previous stable release to this beta. Never add a second beta entry.
- The entry announces changes and leaves setup steps, click paths, migration notes, configuration keys, hedges and edge cases to product docs. The headline change is the first highlight. [Changelog conciseness](#changelog-conciseness) and [Changelog ordering](#changelog-ordering) hold the rules.
- The entry is a list of changes, not of PRs. When a later beta reverts, reworks, or follows up on something an earlier beta added, rewrite the bullet to the current behavior or delete it. A stable user never saw the earlier beta behavior, so fixes to it are not "Fixed" bullets.
- Anything that already shipped to stable through a patch release on an older line stays out of the beta entry.
- Stable promotion renames the entry to `## 0.1.60 - YYYY-MM-DD` after a final review.
@@ -657,14 +822,30 @@ claims a general improvement, rewrite it with the concrete change.
## Changelog conciseness
Every section bullet must be scannable at a glance. The changelog is not release documentation — it's a list. [Highlights](#changelog-highlights) get more room; every other bullet follows these limits.
An entry announces what changed. Product docs own setup, navigation, migration and edge cases, and the PR link leads to the rest. These rules apply to highlights and section bullets.
- **One sentence per bullet, max.** If a bullet contains two sentences, the second one is doing work that belongs in product docs, not the changelog. Cut it.
- **No instructions.** Cut setup steps, click paths, configuration keys, flags and migration notes. "Open a provider's settings from Settings, setup, or the model picker" is a click path. "Existing goose settings and sessions carry over to the bundled plugin" is a migration note.
- **One warning for a breaking requirement.** When the update stops something working until the user acts, state the requirement in one short sentence after the announcement, and link the product doc that has the steps: "Requires [Antigravity CLI 1.5.0 or later](https://paseo.sh/docs/supported-providers/antigravity)." Nothing else earns a second sentence.
- **No hedges or exception clauses.** Cut "when needed", "for eligible models", "on hosts where…", "except…", "with a hint shown when…" and "across common install shapes". Keep the condition that triggers a fixed failure, as in `Fixed <failure> when <condition>`.
- **The shorter bullet is still true.** When a change reaches only some providers, platforms or file types, name what it covers in the sentence's own words: "update supported CLIs" where one provider has no update command, "Markdown previews and source views" where HTML previews on iOS are left out, "by default" where an explicit interrupt still replaces the turn. Do not widen the claim to remove a clause.
- **State the outcome and stop.** Say what the user gets. Leave out queues, snapshots, caches, timeouts, LAN/WAN topology, TLS handshakes and IPC.
| Open a provider's settings from Settings, setup, or the model picker to update supported CLIs and watch their output | Update supported CLIs from the app |
| Use Antigravity CLI 1.5.0 or later on the daemon host, and include `acp` if you override its command | Requires Antigravity CLI 1.5.0 or later |
| Reports and notifications from other agents arrive in order when the current turn ends instead of interrupting it. An interrupt or your own prompt carries earlier queued messages in the same turn, and Stop holds queued messages until the next prompt | By default, messages from other agents wait for the current turn to end |
| Changed worktree teardown to keep the worktree when the command exceeds one minute or the `worktree.teardownTimeoutMs` limit in `paseo.json` | Changed worktree teardown to keep the worktree when the command times out |
| Fixed file views losing their scroll position when switching Preview and Source, except HTML previews on iOS | Fixed Markdown previews and source views losing their scroll position when switching between them |
Section bullets also follow these limits:
- **One sentence per bullet, max.** A second sentence is documentation. Cut it.
- **No trailing periods.** Bullets are list items, not prose. Drop the period at the end of every bullet, including the period inside any bolded lead-in. `**Configurable terminal scrollback**` not `**Configurable terminal scrollback.**`.
- **One line per bullet.** If a bullet wraps to three lines in a narrow column, it's too long.
- **Split bullets that pack multiple distinct changes.** If a bullet uses "and", "plus", a comma list, or an em-dash to chain several independent improvements, break them into separate bullets — even when they share a theme or author. One bullet = one user-facing change.
- **Trim qualifying clauses.** Drop "with a hint shown when…", "matching the CLI's behaviour", "across common install shapes". If the detail doesn't change whether a user cares, cut it.
- **Stop after identifying the change.** Do not explain LAN/WAN topology, TLS handshakes, IPC, or other architecture in a changelog bullet. Put necessary background in product docs.
- **Attribution follows the split.** When you split a dense bullet, move each PR/author to the bullet it belongs to. Never duplicate the same PR across multiple bullets.
## Changelog highlights
@@ -677,7 +858,7 @@ reader who stops after the highlights should have missed nothing they would ask
```markdown
## 0.16.0 - 2026-11-20
- **Undo workspace archive:**Archiving a workspace in the app now shows a "Workspace archived" toast for six seconds. Undo, or Cmd/Ctrl+Z, restores the workspace with its tabs and agents. ([#8904](https://github.com/getpaseo/paseo/pull/8904))
- **Undo workspace archive:**Restore an archived workspace with Undo or Cmd/Ctrl+Z. ([#8904](https://github.com/getpaseo/paseo/pull/8904))
### Added
```
@@ -688,17 +869,19 @@ reader who stops after the highlights should have missed nothing they would ask
- **The lead-in is not a place or something Paseo already had.** A device, screen or area names
where the change landed. A feature name that was true of the last release hides the news: Paseo
already had keyboard shortcuts, so the lead-in says they now work on mobile.
- **The first sentence says the plain thing.** Write what a user would tell a friend: Paseo now
- **One short sentence says the plain thing.** Write what a user would tell a friend: Paseo now
shows the background tasks an agent is running. Leave out the conditions and mechanics that make
it true.
it true. A second sentence is only for a
[breaking requirement](#changelog-conciseness).
- **Describe the new behavior, not the old one.** Say what is faster or better now, and do not
dwell on how slow or broken it was before. A number is welcome as a short aside after the new
behavior is stated: seconds, a percentage, a multiple.
- **Do not list what a sentence already covers.** After "the same shortcuts as desktop", naming
five of them adds nothing. Keep a list only when it sets the scope, such as the providers a
feature works with.
- **The description runs one to three sentences.**Sentences end with periods, and the attribution
follows the last one. [Changelog wording](#changelog-wording) applies in full.
- **Sentences end with periods, and the attribution follows the last one.**
[Changelog wording](#changelog-wording) and [Changelog conciseness](#changelog-conciseness)
apply.
- **A highlight replaces the section bullets it covers.** A PR appears once in an entry, so its
attribution moves to the highlight.
- **A highlight is something a user would name.** Everything else stays a section bullet. A patch
@@ -707,13 +890,13 @@ reader who stops after the highlights should have missed nothing they would ask
of related fixes, becomes a highlight only when it passes the same test as a feature, and then
it is written as what works now: `**Fewer reconnects on return:**`.
| `**iPad and touch screens:**` | `**Touch-sized tablet controls:**`|
| `**Hardware keyboard shortcuts:**` | `**Keyboard shortcuts on mobile:**`|
| When an agent ends its turn while shells it started are still running, a pill lists them | Paseo now shows the background tasks an agent is running |
| A diff no longer waits 4 to 40 seconds behind worktree scans | Opening Changes shows the file tree right away, and diffs load about 6 times sooner on hosts with many worktrees |
| The same shortcuts as desktop: command center, file picker, new workspace, workspace jumps | The same shortcuts as desktop, including your custom bindings |
| `**iPad and touch screens:**` | `**Touch-sized tablet controls:**` |
| `**Hardware keyboard shortcuts:**` | `**Keyboard shortcuts on mobile:**` |
| When an agent ends its turn while shells it started are still running, a pill lists them | Paseo now shows the background tasks an agent is running |
| A diff no longer waits 4 to 40 seconds behind worktree scans | Opening Changes shows the file tree right away, and diffs load about 6 times sooner |
| The same shortcuts as desktop: command center, file picker, new workspace, workspace jumps | The same shortcuts as desktop, including your custom bindings |
Before showing a draft, read only the bold lead-ins top to bottom. Each one must answer "what is
new?" without its description, and each must outrank the one below it.
@@ -763,6 +946,9 @@ question.
for them: `Undo workspace archive`, `Fewer reconnects on return`. Fixes are routine, so one
that earned a highlight still follows everything new or improved.
- **The headline change goes first, whatever its group.** It is the change the release is announced
with. 0.17.1 leads with `Antigravity approvals and history`, which needs one provider. The groups
rank everything after it.
- **Reach decides before kind.** A new capability that needs a hardware keyboard is in group 3.
- **Rank the whole list in one pass.** The order you collected the pull requests in, the alphabet
and the order of the sections below are not rankings.
@@ -780,6 +966,18 @@ Bullets within each section (Added, Changed, Fixed) follow this order:
3. **Internal/infra changes last** — only include if they have a tangible user benefit (e.g. "faster startup" is user-facing even if the fix was internal).
## Pre-release dependency checks
Run these checks from the repository root on the release commit before shipping a beta or stable release.
Use Linux x64 so the audit includes the platform-specific dependencies that the CI job checked.
1. Review changes to dependency versions, download URLs, and integrity hashes in `git diff <previous-release-tag> HEAD -- package-lock.json`.
2. Install the exact dependencies from the release lockfile with `npm ci`.
3. Run `npm audit signatures`. Investigate failures before shipping. See [Dependency signature audit](development.md#dependency-signature-audit) for help.
Checking signatures and reviewing the lockfile diff reduce the risk of shipping compromised dependencies.
These checks help prevent supply-chain attacks from reaching users through Paseo.
## Pre-release sanity check
Before cutting a **stable** release, the release agent reviews the diff as a last line of defence against shipping bugs. Skip this for betas — the beta itself is the smoke test, and gating each beta on a code review defeats the point of using betas as fast release candidates.
@@ -802,14 +1000,14 @@ Every entry covers `previous stable release → release source`: first beta, lat
### Beta release
- [ ] The release base and changes match the [release base table](#release-base-and-source) and any approved [inventory](#release-inventory), and CI for the release source is green
- [ ] The release base and changes match the [release base table](#release-base-and-source) and any approved [inventory](#release-inventory)
- [ ] Every PR in the release range has been opened, and its full description and every linked issue have been read before drafting the changelog
- [ ] Fold this beta into the series' single `CHANGELOG.md` entry (heading `## X.Y.Z-beta.N - YYYY-MM-DD`, previous stable → release source), review it against the changelog policy, get approval, and commit it with its [`CHANGELOG.zh-CN.md` translation](#changelog-translations) before cutting the release
- [ ] Fold this beta into the series' single `CHANGELOG.md` entry (heading `## X.Y.Z-beta.N - YYYY-MM-DD`, previous stable → release source), review it against the changelog policy, get approval, and commit it with its [`CHANGELOG.zh-CN.md` translation](#changelog-translations) before running `release:prep:*`
- [ ] The diff from the previous stable to the resolved release source is classified as patch or minor, with the target version and rationale approved
- [ ] The changelog, ACP, lockfile, and version commits stayed local until the approved release command pushed the release branch and tag
- [ ] `npm run release:beta:patch`, `npm run release:beta:minor`, or `npm run release:beta:next` completes successfully
- [ ] Every GitHub Actions run for the complete release commit and tag is green
- [ ] npm shows the version under the `beta` dist-tag, not `latest`
- [ ] `npm run release:prep:beta:patch`, `release:prep:beta:minor`, or `release:prep:beta:next` created the version commit on `release/vX.Y.Z-beta.N` without a tag, and the pushed branch passed `CI` and `Desktop Packages` before shipping (never relying on `main` CI)
- [ ] Complete the [pre-release dependency checks](#pre-release-dependency-checks) on the release commit
- [ ] After go-ahead, `npm run release:push` pushed the `vX.Y.Z-beta.N` tag without triggering a second CI run, while `npm run release:publish:beta`, the `reconcile/vX.Y.Z-beta.N` PR, and the release heartbeat started in parallel
- [ ] All seven `@getpaseo/*` npm packages show the version under the `beta` dist-tag, not `latest`
- [ ] The GitHub prerelease was published only after the three beta manifests were uploaded, and it has the changelog body and every expected macOS, Linux, Windows, and Android APK asset
- [ ] GitHub `Desktop Release` workflow for the `v*-beta.N` tag is green
- [ ] The GitHub prerelease contains `beta-mac.yml`, `beta-linux.yml`, and `beta.yml`
@@ -817,24 +1015,23 @@ Every entry covers `previous stable release → release source`: first beta, lat
- [ ] GitHub `Docker` workflow is green and the versioned beta image is published without moving `latest`
- [ ] GitHub `Release Notes Sync` mirrored the beta entry into the prerelease body
- [ ] EAS `Release iOS Beta` completed its build, TestFlight distribution, external beta group, and Beta App Review path
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries and version into `main`
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries and version into `main` and merged before cleanup, and `origin/release/vX.Y.Z-beta.N` was deleted after all sync gates passed
- [ ] The release heartbeat was created after the tag push and deleted only after every item above passed
### Stable release (or promotion)
- [ ] Run the pre-release sanity check (see above) and address any findings
- [ ] The diff from the previous stable to the resolved release source is classified as patch or minor, with the target version and rationale approved
- [ ] The release base and changes match the [release base table](#release-base-and-source) and any approved [inventory](#release-inventory), and CI for the release source is green
- [ ] The release base and changes match the [release base table](#release-base-and-source) and any approved [inventory](#release-inventory)
- [ ] A promotion ships the tested beta's product content after its soak, unless the user explicitly overrode either default
- [ ] Every PR in the release range has been opened, and its full description and every linked issue have been read before drafting the changelog
- [ ] Ensure the approved release inputs are committed locally and the git worktree is clean before running any release command
- [ ] Ensure local `npm run typecheck` passes on that exact commit before running any release command
- [ ] Update `CHANGELOG.md` with user-facing release notes (features, fixes — not refactors). Promotion renames the series' `## X.Y.Z-beta.N` entry to `## X.Y.Z - YYYY-MM-DD` and re-checks it covers the full release. Commit the matching [`CHANGELOG.zh-CN.md` entry](#changelog-translations) with it
- [ ] Update `CHANGELOG.md` with user-facing release notes (features, fixes, not refactors). Promotion renames the series' `## X.Y.Z-beta.N` entry to `## X.Y.Z - YYYY-MM-DD` and re-checks it covers the full release. Commit the matching [`CHANGELOG.zh-CN.md` entry](#changelog-translations) with it
- [ ] Verify the changelog heading follows strict `## X.Y.Z - YYYY-MM-DD` format
- [ ] The changelog, ACP, lockfile, and version commits stayed local until the approved release command pushed the release branch and tag
- [ ] `npm run release:patch`, `npm run release:minor`, or `npm run release:promote` completes successfully
- [ ] Every GitHub Actions run for the complete release commit and tag is green
- [ ] `latest` resolves to the new stable, and `beta` resolves to it too unless an active newer beta holds `beta`
- [ ] Ensure local format, lint, and typecheck pass and the working tree is clean before running `release:prep:*`
- [ ] `npm run release:prep:patch`, `release:prep:minor`, or `release:prep:promote` created the version commit on `release/vX.Y.Z` without a tag, and the pushed branch passed `CI` and `Desktop Packages` before shipping (never relying on `main` CI)
- [ ] Complete the [pre-release dependency checks](#pre-release-dependency-checks) on the release commit
- [ ] After go-ahead, `npm run release:push` pushed the `vX.Y.Z` tag without triggering a second CI run, while `npm run release:publish`, the `reconcile/vX.Y.Z` PR, and the release heartbeat started in parallel
- [ ] All seven `@getpaseo/*` npm packages show `latest` at the new stable, and `beta` at the new stable too unless an active newer beta holds `beta`
- [ ] The GitHub Release was published only after the three stable manifests were uploaded, and it has the changelog body and every expected macOS, Linux, Windows, and Android APK asset
- [ ] GitHub `Desktop Release` workflow for the `v*` tag is green
- [ ] The GitHub Release contains `latest-mac.yml`, `latest-linux.yml`, and `latest.yml`
@@ -842,11 +1039,13 @@ Every entry covers `previous stable release → release source`: first beta, lat
- [ ] GitHub `Android APK Release` workflow for the same tag is green
- [ ] GitHub `Docker` workflow is green and both the versioned and `latest` images are published
- [ ] GitHub `Release Notes Sync` is green and the release body matches the stable changelog entry
- [ ] GitHub `Deploy App` workflow for the same tag is green, and `Deploy Website` succeeded after the release published
- [ ] EAS `Release Mobile` workflow for the same tag is green
- [ ] EAS iOS `build_ios` completes for the same tag
- [ ] EAS iOS `distribute_ios` succeeds, uploading the binary once, distributing it to `Paseo Beta`, and submitting it for Beta App Review
- [ ] EAS iOS `submit_ios_for_review` succeeds, putting the build into App Store review
- [ ] EAS iOS `submit_ios_for_review` succeeds, putting the build into App Store review (or its log was checked for `IOS_REVIEW_SKIPPED` and the maintainer was notified with both the in-review version and the waiting TestFlight build)
- [ ] EAS Android `build_android` completes for the same tag
- [ ] EAS Android `submit_android` succeeds, putting the build on its Play Store track
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries and version into `main`
- [ ] EAS Android `upload_android_screenshots` succeeds for the same tag
- [ ] The [reconcile PR](#reconcile-main) brought the shipped changelog entries, F-Droid changelogs, and version into `main` and merged before cleanup, and `origin/release/vX.Y.Z` was deleted after all sync gates passed
- [ ] The release heartbeat was created after the tag push and deleted only after every item above passed
@@ -30,7 +30,7 @@ Terminal directory snapshots (`terminalsChanged`) and workspace contribution cha
Each `onChange` delivers both the new snapshot and the `previous` one (`{ state, changedAt }`). The transition flows unchanged up through `TerminalSession.onActivityChange` (as `{ activity, previous }`), the worker protocol's `terminalActivityChange` event, and the manager-level `subscribeTerminalActivity(listener)` stream (`{ terminalId, name, cwd, activity, previous }`).
The daemon consumes these transitions, not snapshots. When a transition moves from `working` to `idle`, the tracker records finished attention, so the terminal shows the same green finished dot as an idle agent that needs review. The websocket layer also fires a "Terminal finished" attention notification. A terminal that exits while still working emits no turn-end notification.
The daemon consumes these transitions, not snapshots. When a transition moves from `working` to `idle`, the tracker records finished attention, so the terminal shows the same green finished dot as an idle agent that needs review. Focusing the terminal tab or using Mark as read on its owning workspace clears finished attention. Mark as read leaves needs-input attention alone, the same way it leaves an agent's pending permission. The websocket layer also fires a "Terminal finished" attention notification. A terminal that exits while still working emits no turn-end notification.
Terminal list visibility is `workspaceId`-scoped: a terminal belongs to the workspace that created it, and same-`cwd` sibling workspaces do not see it in their terminal lists. Terminal status routing starts from that owning workspace, uses the owning workspace's `cwd`, then fans the status bucket out to every active workspace with the same `cwd`.
@@ -200,7 +200,7 @@ Test suites in this repo are heavy. Running them in bulk freezes the machine, es
## Pull-request test routing
PR checks are routed by the behavior each suite proves, using `.github/ci-paths.yml`. A package does not inherit every test suite of its runtime consumers: app changes do not run CLI or Electron-wrapper tests, and protocol changes do not run every package that imports the protocol. Cross-package static compatibility belongs to `typecheck`; full integration coverage runs after merge on main and in manual CI runs.
PR checks are routed by the behavior each suite proves, using `.github/ci-paths.yml`. A package does not inherit every test suite of its runtime consumers: app changes do not run CLI or Electron-wrapper tests, and protocol changes do not run every package that imports the protocol. The CLI E2E tests are the exception: they drive a real daemon, so changes to the server or built-in plugins run them too. Cross-package static compatibility belongs to `typecheck`; full integration coverage runs after merge on main and in manual CI runs.
Required matrix legs are declared as statically named jobs. Their shared steps use YAML anchors, while job-level `if` conditions let GitHub report an unaffected leg as genuinely skipped without allocating a runner or losing the exact required-check name.
@@ -61,6 +61,11 @@ the chat and its replica cache would keep only the end of the reply. A recovery
running catch-up starts after whatever that catch-up applied, because the app applies a forward page
row by row and an older cursor repeats rows.
A live row whose epoch differs from the local cursor is a rewind or replacement this client never
saw as an invalidation, not a stale row. The app recovers like a gap: it asks `after` its own
cursor, and the daemon answers that stale epoch with a reset tail. Dropping the rows instead would
leave the chat on pre-rewind history while the new epoch streams.
Initialization timeouts guard lack of catch-up progress, not the full multi-page sync. A successful page that queues the next `after` page refreshes the watchdog.
Opening or resuming an agent fetches the latest available turns with a soft target of 40
@@ -86,7 +86,7 @@ mounts—never at module evaluation time.
## Dynamic Pixel Styles On Web
Avoid feeding changing pixel values such as `{ top, left }`, `{ maxHeight }`, or `{ minWidth }` into the `style` prop of Unistyles-managed React Native components on web. The web runtime hashes each distinct style object by value and appends a CSS rule to `#unistyles-web`; those rules are not reclaimed during the page lifetime, so pointer-driven positioning can turn into steady stylesheet growth.
Avoid feeding changing pixel values such as `{ top, left }`, `{ maxHeight }`, or `{ minWidth }` into the `style` prop of Unistyles-managed React Native components on web. The web runtime hashes each distinct style object by value and inserts a CSS rule into `#unistyles-web` for it, then deletes the rule when the last element using it unmounts. Pointer-driven positioning turns into a rule insert and delete per move.
Use the inline style escape hatch below for high-churn values. Do not split a component into plain/web/native variants just to keep one measured value out of the CSS registry. Raw DOM wrappers are reserved for real DOM infrastructure, such as terminal hosts, virtualized web rows, or third-party drag wrappers.
@@ -224,6 +224,7 @@ Quick confirmation in DevTools console:
- Antigravity approvals and history: Choose a permission mode, answer tool approvals, and import or reopen sessions. Requires Antigravity CLI 1.5.0 or later.
- Use existing worktrees: Start a workspace in a worktree you already have, or create one from a branch or pull request.
- Update providers in Paseo: See each provider's status and installed version, and update supported CLIs from the app.
- Antigravity approvals and history: Choose a permission mode, answer tool approvals, and import or reopen sessions. Requires Antigravity CLI 1.5.0 or later.
- Use existing worktrees: Start a workspace in a worktree you already have, or create one from a branch or pull request.
- Update providers in Paseo: See each provider's status and installed version, and update supported CLIs from the app.
- Antigravity approvals and history: Choose a permission mode, answer tool approvals, and import or reopen sessions. Requires Antigravity CLI 1.5.0 or later.
- Use existing worktrees: Start a workspace in a worktree you already have, or create one from a branch or pull request.
- Update providers in Paseo: See each provider's status and installed version, and update supported CLIs from the app.
- Antigravity approvals and history: Choose a permission mode, answer tool approvals, and import or reopen sessions. Requires Antigravity CLI 1.5.0 or later.
- Use existing worktrees: Start a workspace in a worktree you already have, or create one from a branch or pull request.
- Update providers in Paseo: See each provider's status and installed version, and update supported CLIs from the app.
- Turn and session stats: View per-turn and session timing, token, cache, and cost metrics for Claude, OpenCode v2, Pi, Oh My Pi, and plugin providers.
- Automatic model list refresh: Enabled providers refresh their model lists in the background every 30 minutes.
- Sidebar usage by default: The sidebar usage summary is enabled by default, sources for inactive providers start hidden, and source toggles move to a Sources list.
- Turn and session stats: View per-turn and session timing, token, cache, and cost metrics for Claude, OpenCode v2, Pi, Oh My Pi, and plugin providers.
- Automatic model list refresh: Enabled providers refresh their model lists in the background every 30 minutes.
- Sidebar usage by default: The sidebar usage summary is enabled by default, sources for inactive providers start hidden, and source toggles move to a Sources list.
- Turn and session stats: View per-turn and session timing, token, cache, and cost metrics for Claude, OpenCode v2, Pi, Oh My Pi, and plugin providers.
- Automatic model list refresh: Enabled providers refresh their model lists in the background every 30 minutes.
- Sidebar usage by default: The sidebar usage summary is enabled by default, sources for inactive providers start hidden, and source toggles move to a Sources list.
- Turn and session stats: View per-turn and session timing, token, cache, and cost metrics for Claude, OpenCode v2, Pi, Oh My Pi, and plugin providers.
- Automatic model list refresh: Enabled providers refresh their model lists in the background every 30 minutes.
- Sidebar usage by default: The sidebar usage summary is enabled by default, sources for inactive providers start hidden, and source toggles move to a Sources list.
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
- Remote workspace browser proxy: Desktop browser tabs in remote workspaces now route through the workspace daemon, so remote localhost servers open directly in Paseo.
- Per-device notification preferences: Each device can choose which agent, terminal, and plugin events send notifications, and plugins can send notifications and handle taps.
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
Fixed
- Fixed Android agent push notifications arriving minutes late during Doze
- Fixed Command Center results reordering mid-word while typing
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
Fixed
- Fixed Android agent push notifications arriving minutes late during Doze
- Fixed Command Center results reordering mid-word while typing
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
Fixed
- Fixed Android agent push notifications arriving minutes late during Doze
- Fixed Command Center results reordering mid-word while typing
- Host metadata instructions: Set host-wide instructions once to guide language, tone, and formatting for generated workspace titles, branch names, commit messages, and pull requests.
- Enterprise spending usage: Usage now shows Claude extra-usage spending and Codex individual spending limits with reset times.
Fixed
- Fixed Android agent push notifications arriving minutes late during Doze
- Fixed Command Center results reordering mid-word while typing
# Cancel an active in-flight iOS App Store review submission on App Store
# Connect. Pass expected_version to abort safely if Apple has already moved on
# to a different version.
on:
workflow_dispatch:
inputs:
expected_version:
type:string
required:false
description:"Expected marketing version currently in review, e.g. 0.18.0. Fails without cancelling if the active submission is for a different version."
"Need to find the scroll container, the layout effect that watches for new messages, and any gesture handler that might fight with programmatic scrolling. Probably a ref on the FlatList plus a near-bottom threshold.";
Some files were not shown because too many files have changed in this diff
Show More
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.