mirror of
https://github.com/getpaseo/paseo.git
synced 2026-12-01 04:36:26 +00:00
dd3ce76b842dee06fac630fe3cd5529f21cd7ffe
848
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
dd3ce76b84 |
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. |
||
|
|
f73c3a594f |
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. |
||
|
|
bfa46ab6c8 |
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). |
||
|
|
9933a302bf |
feat(server,client): support activeTurnBehavior "queue" without sourceAgentId (#11169)
* 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
|
||
|
|
2c2393f0ad | fix(app): count native touches and typing as presence (#8070) | ||
|
|
9808fd4198 |
perf(cli): cut CLI startup overhead with lean client, lazy dispatch, and esbuild bundling (#11155)
* 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 |
||
|
|
5d4793ddc1 |
Let plugins expose local HTTP services at public URLs through tunnel providers (#11036)
* 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. |
||
|
|
cb5bcb5a60 |
feat(app): act on files from chat links, file tabs, and a filterable Files tree (#11073)
Shared workspace file actions across file tabs, compact file sheets, chat/Markdown links, Files tree, and Changes pane, plus desktop open-in-default-app, explicit Reveal in Files, workspace-wide Files sidebar filter, shared 16px tree indent guides, and Android link long-press selection fix. Refs #10699 Co-authored-by: YASICJUNWOO <99794552+YASICJUNWOO@users.noreply.github.com> Co-authored-by: apple-ouyang <45086632+apple-ouyang@users.noreply.github.com> Co-authored-by: iqshen <24309546+iqshen@users.noreply.github.com> Co-authored-by: Ctrl-Creeper <190502953+Ctrl-Creeper@users.noreply.github.com> Co-authored-by: softyoda <13988751+softyoda@users.noreply.github.com> |
||
|
|
5e568571ba |
fix(app): fix Android terminal typing, Backspace, CJK/Latin IMEs, and hardware Enter (#11146)
* 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> |
||
|
|
5715467245 |
fix(omp): preserve tool call intent in metadata (#10727)
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> |
||
|
|
8e8b383f4c |
Let idle cleanup unload an OpenCode chat while another session runs (#11039)
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> |
||
|
|
1fd744795d |
Add host-wide instructions for metadata generation (#11064)
* 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 |
||
|
|
29179ba27f |
fix(server): clear finished terminals when marking a workspace read (#11040)
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. |
||
|
|
91613f516d |
Preserve in-flight iOS App Store reviews and add EAS review queue controls (#11044)
* 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. |
||
|
|
31aa498a5b |
fix(app): clear the iOS status bar on wide browser layouts, including the Mermaid viewer (#9970)
* 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> |
||
|
|
8c002cc750 |
Parallelize post-approval release shipping (#11033)
* 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 |
||
|
|
237cfe91f1 |
Show enterprise spending usage for Claude and Codex (#8976)
* fix(usage): report enterprise spending limits * fix(usage): complete enterprise spending percentages Derive missing remaining percentages so CLI spending output matches the Usage card. Preserve explicitly reported percentages and cover missing currency and absent rolling windows. Co-authored-by: Matt Cowger <matt@cowger.us> Co-authored-by: JasprW <wang@jaspr.me> --------- Co-authored-by: Matt Cowger <matt@cowger.us> Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: JasprW <wang@jaspr.me> |
||
|
|
539f4af006 |
Allow agent profiles to set a system prompt (#10996)
* 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). |
||
|
|
74c33b03d3 |
fix(app): keep a tab from saving a directory another tab evicted (#10942)
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> |
||
|
|
e4dc119df8 |
Reorganize Settings by device vs. host scope and consolidate sparse sections (#10933)
* 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 |
||
|
|
3c0553d9db |
Add per-device notification preferences and plugin notification API (#10888)
* 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 |
||
|
|
fcac35d3b9 |
fix(timeline): recover from rewind epoch changes instead of dropping rows (#8794)
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. |
||
|
|
d46038ee4b |
feat(desktop): shorten the stable update cooldown to 24 hours (#10901)
The target cadence is at most one regular automatic update per day. The 72-hour cooldown from #10882 held installs back for three days. |
||
|
|
be6b5eb169 |
Pace stable desktop updates: canary first, at most one check every 6 hours, 3 days between updates (#10882)
* 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. |
||
|
|
90c8446fb8 |
Keep notifying the parent when a delegated agent ends its turn while background work will wake it (#10864)
Closes #6346 |
||
|
|
717e75d032 |
Stop leftover provider processes when a catalogue refresh times out (#10867)
Closes #10734 Closes #10810 |
||
|
|
62cdc2f2cf |
Free an archived chat's memory once it is no longer shown (#10866)
Refs #6477 |
||
|
|
6c237aabf1 |
Enable Tailscale from host settings and setup (#10801)
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 |
||
|
|
e51bb7b8cd |
Keep Android chat long-press selection from leaving the magnifier stuck (#10844)
* 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. |
||
|
|
e114e13de2 |
Let plugins run agents, terminals, and worktree commands behind a sandbox launcher (#10786)
Refs https://github.com/getpaseo/paseo/discussions/8484 Refs https://github.com/getpaseo/paseo/discussions/8017 Co-authored-by: CL Kao <clkao@datarecce.io> Co-authored-by: Josh Bendavid <Josh.Bendavid@cern.ch> |
||
|
|
3777cc754b |
Keep mobile sheet footers above the system bar during keyboard transitions (#10827)
* 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 |
||
|
|
7708e1f084 |
Drag agent profiles to reorder on phones, with cleaner rows and a one-line options row (#10824)
* 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. |
||
|
|
5c82a2e999 |
Keep a reloaded plugin's agent tools working for a busy agent (#10106)
* 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>
|
||
|
|
e108fdc792 |
fix(app): keep the turn footer on plugin-transformed assistant replies (#10795)
* 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> |
||
|
|
5c97cd5903 |
chore(ci): move dependency signature audit to release preparation (#10800)
Keep lockfile lint in CI. Review the lockfile diff and audit dependency signatures on the release commit before shipping beta or stable releases. |
||
|
|
b4af7599d5 |
perf(app): keep overlays and long-running sessions fast (#10778)
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> |
||
|
|
1ff119dc2a |
feat(app): copy a quote's body with one tap (#10608)
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> |
||
|
|
395a5a5f80 |
Run OpenCode v2 agents with their own MCP servers and env on a shared OpenCode server (#10752)
* 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. |
||
|
|
ecb2501458 |
Show the full command of Hermes terminal calls (#10614)
* 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.
|
||
|
|
6e4f2ef8da |
fix(app): keep Android terminal input out of keyboard learning (#10586)
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. |
||
|
|
80c44321cc |
Move the Markdown engine into the repository and fix two Android list layouts (#10499)
* 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. |
||
|
|
2d09c47672 |
Show provider session and turn metrics (#10496)
* feat(providers): let providers report session and turn metrics Providers know things about a session and a turn that Paseo cannot derive: timing, token flow, cache use, cost, the model that answered. They can now report them as label/value rows that Paseo carries to clients unchanged, so each provider decides which metrics make sense and how they read. Session metrics live on the agent record and snapshot. Turn metrics are stamped on the turn's footer row (last assistant message, else last tool call) so they survive reload, pagination and a daemon restart, and so the live turn_completed event and a later timeline fetch agree. Provider history replay restores both. Metrics are sanitized once where they enter the agent manager. The wire schemas validate whole messages, so one malformed row from a provider would otherwise make clients drop an entire snapshot, turn event or timeline page. A live completed turn with no Model metric gets the agent's model, so every provider shows model attribution before it is instrumented. Replayed turns do not: they may have run on a different model than the agent has now. Plugin providers publish session metrics behind a negotiated `session.metrics` capability because an older daemon closes a connection that sends an event type it does not know. Turn metrics ride an existing event that older daemons strip, so they need no gate. The wire additions are optional fields on existing schemas only. * feat(providers): report session and turn metrics from OpenCode, OMP, Pi and Claude Each provider now attaches metrics to turn_completed and emits session_metrics_updated, live and when history is replayed. - Live turns end on the adapter's clock. A provider's message timestamps can come from another clock. - Tool time merges overlapping runs, so parallel tools count once. - A total that is missing any part is hidden, so a partial total is never shown. - Replayed history reports metrics only for turns that finished, which matches live, where failed and interrupted turns report none. - Claude reports cost as a running total for each query(). A resumed query starts that total from a saved one, so a turn's cost is the change since the previous result of the same query. The first turn of a query shows no cost. - Claude transcripts do not record result messages, so replayed Claude history has no turn metrics. - Session metrics come from each provider's own cumulative counters. The cache hit is the last reply's or the last turn's, because a session-wide figure blends prompts from before and after compactions. * feat(app): show provider session and turn metrics Session metrics appear in the context window details, between the context summary and the account usage cards. A provider-reported Cost row replaces the app's own session cost line. Each completed turn with metrics gets a stats button in its footer: a hover card on web, a press-opened tooltip on native wide screens, and a sheet on compact screens. The context window sheet becomes a shared DetailsSheet so both use the same content-sized sheet. Metrics ride on the row that hosts the turn's footer (the turn's last assistant message, else its last tool call), the same row the daemon stamps. Live turn_completed events and timeline pages both stamp that row, so a refetch agrees with what the live event showed. The daemon updates session metrics without bumping updatedAt, like usage, so a stale buffered upsert may still carry the newest metrics and is accepted for that field. * fix(app): keep a turn's stats after the cached timeline reloads The local timeline cache dropped turnMetrics when it saved a turn's footer row. After a page reload the cached rows painted without the stats icon, and the catch-up fetch had no new entries to stamp them from. * fix(providers): keep imported session stats and never count a steered turn short Importing a Pi, Oh My Pi or OpenCode v2 session dropped the stats the provider returned with its history, so imported chats showed none until a forced replay. Import now carries them the way replay does. Replaying a Pi or Oh My Pi transcript read a prompt that steered a running turn as the start of a new turn, so the steered turn's stats counted only the steps after the steer. A turn that follows one ending on tools now reports no total, because the transcript reads the same as a stop and a new prompt. * fix(providers): keep stats through merged messages and plugin imports, start Pi first-token timing at the request A message the timeline merges from several chunks keeps the stats stamped on its last chunk. Plugin session imports carry the stats the plugin replayed, through the same history reader the other providers use. Steers queued together after an unclear turn stay unclear instead of attributing the final reply to the wrong turn. Pi measures time to first token from the request, not the first reply header. * fix(providers): carry a turn's stats onto the message the timeline merges from text chunks The previous change put the carry-over in the reasoning merge. The assistant message merge dropped the stats of its last chunk, so an imported reply of two text blocks lost its Turn stats button. * fix(providers): carry a turn's stats onto the tool card the timeline merges from updates An imported turn that ends on a tool call stamps the stats on the tool's last update. The tool merge kept the first update's fields, so the stats were lost. * fix(opencode): replay no session stats for a session that has none An empty OpenCode session replayed a session stats event with no metrics, which broke the empty-history check in the versioned runtime test. |
||
|
|
3914893aa1 |
Troubleshoot providers from their settings page, and tidy provider settings (#10487)
* feat(providers): add docs links, sign-in facts and a tidier provider page A user whose Antigravity models looked stale had no way to find out why without asking in chat. agy 1.5.14 picks its sign-in from the environment: with SSH_CONNECTION, SSH_CLIENT or SSH_TTY set it reads a token file, otherwise the OS keyring (google-antigravity/antigravity-cli#1336). The daemon is often started outside SSH while the user tests agy over SSH, so the two can be signed in to different accounts and list different models. - The Antigravity status reports whether agy runs in an SSH session, and the diagnostic report for plugin providers now includes the resolved command, path and version like built-in providers do. - Providers carry an optional docsUrl (protocol field, plugin SDK registration, built-in definitions). The provider page links it from Troubleshooting, and the Antigravity page documents the sign-in mismatch. - Provider and project settings get a breadcrumb title. Refresh moves to the Models header, the model list scrolls inside a fixed height with a full-width search, and section headers keep one spacing whether or not they hold an action. - A switch no longer makes its row taller than the track, and every settings row is at least as tall as one with a switch, so a switch row and a text row line up. * fix(providers): report Antigravity's sign-in when ACP does not start A sign-in problem can be what stops agy's ACP server from starting, so the diagnostic report now shows the SSH session rows in that case too. The plugin provider diagnostic test no longer compares the daemon PATH and shell rows, which differ per host (Windows reports ComSpec). * fix(server): show the same provider version in the report and Installation The plugin diagnostic read the version by calling the provider's inspect itself with a 10s deadline, while the Installation row reads it through the installation service with a 20s deadline and a cache. A version check between 10 and 20 seconds showed in Installation and as an error in the report. The snapshot manager now hands getDiagnostic an inspectInstallation that reads through the installation service, so both show one answer and agy --version runs once for both. * feat(app): give rows that open something the same height as other rows Detail rows and collapsible row headers reserved a button's height so a list where only some rows held a switch kept one height. Now that every settings row is at least as tall as a switch row, that reserve only made rows like Diagnostic report and Docs taller than their neighbours. * test(app): compare rows that open something with text and switch rows * feat(app): size the provider icon to the page title * fix(app): scale the provider title icon with the interface size |
||
|
|
ede181d39a |
Refresh enabled provider catalogues in the background every 30 minutes (#10481)
* Refresh enabled provider catalogues in the background every 30 minutes A long-running daemon cached discovered models until a manual Refresh or a restart, so a server-side model rollout stayed invisible. The daemon now refreshes each enabled provider about every 30 minutes, one provider per staggered slot. A recent refresh pushes the next one back. Background refreshes join discovery already in flight, publish only changed catalogues, and keep a ready catalogue when a probe fails. Co-Authored-By: Claude <noreply@anthropic.com> * Keep background refresh slots independent and its probes soft Ticks no longer wait for a refresh to settle, so one slow provider cannot delay the others. A provider with a background refresh still running is skipped. The due check uses a fixed one-second timer slack instead of half a slot, so a manual refresh always pushes the next probe a full interval. Background probes pass force: false so OpenCode keeps its shared server. A result that is not ready keeps a ready catalogue, which covers plugin status probes that report a failed startup as unavailable. Co-Authored-By: Claude <noreply@anthropic.com> * Keep a ready catalogue when a background refresh returns a partial one Claude falls back to its curated list without discovery-gated models when model discovery fails or times out. That result is ready, so a background refresh published it and Mythos left the picker. Providers now mark such a catalogue incomplete, and a background refresh keeps the ready catalogue it would have replaced. A manual refresh still publishes it. Co-Authored-By: Claude <noreply@anthropic.com> * Kill OpenCode servers whose startup is pending at shutdown A probe still allocating its port when the daemon stopped spawned its OpenCode server after shutdown returned, and the process outlived the daemon. Background refresh makes that overlap likelier. Shutdown now waits for pending startups and kills the generations they produce. Co-Authored-By: Claude <noreply@anthropic.com> * Stop running probes before provider shutdown A probe checking availability when the daemon stopped could still go on to discovery and start an OpenCode server after provider cleanup returned. The manager now aborts every running probe through its refresh signal when it stops, and shutdown waits up to ten seconds for them to settle before it shuts down provider clients. Co-Authored-By: Claude <noreply@anthropic.com> * Refuse OpenCode spawns from operations begun before shutdown A rotation accepted before shutdown waited for the old server to stop and then started a replacement after cleanup returned. The server manager now counts shutdowns; every operation that can start a server records the epoch it began in, and the spawn step refuses once a shutdown has passed. Operations begun after shutdown still start, since the manager is a process-wide singleton. Co-Authored-By: Claude <noreply@anthropic.com> * Keep manual refresh precedence over concurrent background refreshes * Avoid eager provider snapshot downloads for unobserved directories --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
08ad7c7271 |
Let agents steer or interrupt another agent's running turn, and tell them how their message was delivered (#10483)
* feat(server): let agents queue, steer, or interrupt messages to other agents An agent sender's `steer` used to mean "wait for the turn to end", unlike a person's steer. Agents now get the same three choices a person has, plus a named default: `queue` waits for the turn end, `steer` joins the running turn (interrupting when the provider cannot steer), and `interrupt` replaces it. A steer or interrupt carries the messages queued ahead of it, so delivery order still equals admission order. The receipt returns the applied behavior and guidance built from whether the recipient is running and whether its provider can steer. A queued message's guidance tells the sender to follow up with a short steer or interrupt instead of resending, because a resent message is read twice. Older clients send `steer` for every default agent send, so the daemon maps their agent `steer` to `queue` when the client lacks the `agent_active_turn_behaviors` capability. New clients talking to an older daemon refuse `steer` rather than silently queueing it. * fix(server): keep a steer's carried messages when the turn ends first A steer that reached the provider after the turn ended made the manager throw a plain error, and delivery failed the whole batch, including the queued messages the steer carried. The manager now throws AgentTurnChangedError, and delivery sends the batch again, into the next turn or as a new one. Also report the applied activeTurnBehavior in `paseo send --no-wait` output, and expect the new hello capability in the client test. * docs(skills): warn that an unread steer loses the messages it carried * docs(skills): shorten the send_agent_prompt guidance Keep what a sender acts on: leave activeTurnBehavior out, the three values, read the guidance, follow up instead of resending, and the steer loss case. Drop delivery facts the sender cannot act on. * fix(server): stop the send_agent_prompt description promising an unread steer survives |
||
|
|
984e2ea5e7 |
Lead the 0.17.1 changelog with Antigravity and keep instructions out of release notes (#10466)
* docs(changelog): lead 0.17.1 with Antigravity and cut instructions from the entry The 0.17.1 entry ranked Antigravity seventh and carried setup steps, click paths, migration notes, and edge-case qualifiers. Each highlight is now one sentence that announces the change, and Antigravity leads. Two details that left their highlight keep their own bullet: plugin worktree management moves to Plugins and green quota bars move to Changed. docs/release.md allowed highlights up to three sentences and exempted them from the conciseness rules, which is how the instructions got in. The rules now cover highlights too, permit a second sentence only for a breaking requirement, and put the headline change first whatever its ordering group. * docs(changelog): keep shortened 0.17.1 bullets within what shipped Three bullets lost a clause that limited their claim: provider updates exist only for CLIs with an update command, the scroll fix leaves out HTML previews on iOS, and Git status reloads when files changed during the disconnect. Each bullet now names what it covers instead of carrying an exception clause, and the release guide says to shorten that way. The Antigravity requirement links the setup page, which has the `acp` argument a custom command needs. * docs(changelog): scope the agent message and quota forecast highlights An explicit interrupt from another agent still replaces the running turn, and Usage shows a run-out time only for a quota on pace to run out before it resets. Both highlights now say so in one sentence, and the release guide uses the agent message highlight as its example of keeping that distinction. Rewind in Command Center applies to the latest turn, so the bullet names it again. * docs(antigravity): explain the Hub model error after the CLI upgrade The 0.17.1 highlight used to carry this recovery step. The highlight now links the setup page, so the step lives there in both languages. |
||
|
|
c1c29fcb56 |
Deliver queued agent messages in order, so an interrupt never leaves a stale steer behind (#10404)
* fix(server): deliver an agent's messages in the order they were queued An agent's interrupt was dispatched alone, ahead of the steers queued before it. Those steers stayed queued and started a turn of their own after the interrupt's turn ended, so a stale instruction ran after the newer message that countermanded it. The queue now keeps one ordered list per recipient and only ever dispatches its front. An interrupt releases at admission and takes the older messages along in the same replacing prompt. A person's prompt takes the queue along the same way. Stop holds the queue for the recipient's next prompt instead of releasing it into a new turn, and does not drop it: the queue also carries finish notifications. A quiet window now closes after ten seconds at most, so steady arrivals cannot delay a waiting message without bound. * fix(server): keep a prompt's place in line until the provider admits it The queue removed a message when it handed the prompt to the agent manager, before the provider had admitted it. In that gap the order was no longer the queue's to decide: - a person's prompt or a later interrupt sent while the provider was still starting a turn could pass a prompt that was admitted first; - Stop during that start no longer saw the interrupt waiting to replace the turn, so the interrupt started a turn after the Stop; - queued messages that rode a person's prompt were settled when the prompt was handed over, so a turn the provider rejected dropped them. A message now stays in its recipient's list until the provider admits the prompt that carries it, fails it, or the message is withdrawn. Every prompt takes its place at admission, one operation acts on a recipient at a time, and each operation covers only what was admitted before it got in line. Stop holds every message still in the list and clears the interrupt's urgency, so a held interrupt waits like a steer. A prompt is a command only when it starts with a slash and a name with no second slash, matching how providers read it. A prompt that begins with a path now carries the queue like any other text. An interrupt the provider runs as a command beside the turn takes no queued message along, because it replaces nothing. Test wiring that builds the MCP catalog or stubs the agent manager now supplies the delivery module and the stop signal the server requires. * fix(server): keep queue decisions made before a Stop or shutdown from going stale Three races in the window where the provider is still starting or stopping a turn: - An interrupt admitted while a polling queue step was already in line got no step of its own. A person's steer sent next took the interrupt along and steered the turn the interrupt should have replaced. An interrupt now always reserves its place at admission. - A dispatch in flight when Stop arrived checked the queue's phase to learn it was void. A message admitted before the provider answered moved the queue out of `held`, so the old dispatch became valid again: an interrupt from before the Stop started a turn alone, and a batch whose starting turn Stop canceled was rejected instead of kept. Each dispatch now records the Stops its recipient had seen when it was decided and is void once that count changes. - Shutdown drained only what was queued when it began, so messages a rejected person's turn returned afterwards were left to the retry timer. The drain now runs after the operation in flight and reads the queue then. * fix(server): void queue steps that were reserved before a Stop A queue step that was already in line when Stop arrived checked for a Stop only from the moment it ran. When an interrupt arrived while the provider was still stopping, the queue left `held`, and the old step started a turn with the held messages. The new interrupt then replaced that turn in a second one. A step now watches for a Stop from the moment it reserves its place and does nothing once one has arrived. The held messages go with the next prompt admitted after the Stop, in one turn. The interleaving test gains a variant with a provider that is slow to answer. It checks, for every five-step sequence, that no queue dispatch after a Stop carries only messages from before it. * fix(server): hold the queue again when the message that reopened it is withdrawn After a Stop, a message admitted later reopens the queue and takes the held messages along. When that message was withdrawn before its quiet window closed, for example a change-request update whose watch was cancelled, the window still fired and the held messages started a turn on their own. A Stop now marks the messages it finds. When a withdrawal leaves only marked messages, the queue is held again and waits for the next prompt. * docs(server): state that cancel_agent with no turn to stop holds nothing Stop holds the queue only when it stops a running or starting turn. On an idle recipient cancel_agent reports that it canceled no run, and a queued steer keeps its quiet window. The lifecycle doc says so and a daemon-level test pins it. * docs(server): state when a queued message counts as delivered A message leaves the queue when the agent manager acknowledges the start of the turn that carries it. A turn that fails after that point is not delivered again, and a start that is not acknowledged within 60 seconds returns the messages a person's prompt carried. |
||
|
|
01aa8b3406 |
Verify releases on isolated release branches and harden shipping (#10396)
* chore(release): verify releases on isolated release branches and harden shipping High-traffic merges on main cancel more than half of main CI runs, so waiting on main CI repeatedly stalls releases. Releases also ran duplicate post-tag CI, lacked a release-branch Desktop Packages trigger, hit unretried Apple notarytool polling errors and a finalize-rollout directory bug on macOS retries, and relied on a non-idempotent npm publish chain and conflict-prone reconcile cherry-picks. This splits release execution into release:prep:* (reversible version commit without tagging, pushed once to release/** for isolated CI + Desktop Packages) and release:ship[:beta] (idempotent npm publishing with retry, propagation checks, automatic beta dist-tag sync on stable, and release/*-only tag push), adds conflict-free main reconciliation, and extends macOS xcrun retries to notarytool submit and wait. * fix(release): address review findings on Docker retries, tag push, and reconciliation Isolate manual Docker publish dispatches in their own non-cancelling concurrency group, verify HEAD matches origin/<release-branch> before release:ship publishes or tags (and remove one-shot combined scripts that bypassed release-branch checks), drop --refs from peeled annotated-tag lookups in push-current-release-tag.mjs, retry lockfile sync in reconcile-release.mjs when package-lock.json version lags package.json, and document cutting from pre-existing tags. * fix(release): preserve TTY OTP prompts in npm publish and keep newer beta changelogs Inherit TTY stdin/stdout for interactive npm publish and dist-tag add (plus --otp passthrough) while keeping stderr piped for retry classification, and keep newer beta or promoted stable changelog entries intact when an older beta tag is reconciled. |
||
|
|
d154df3165 |
Let plugins manage worktree creation, removal, and restoration (#10278)
* feat(plugins): let plugins manage worktree create, remove, and restore
Adds server.registerWorktreeManager({ create, remove?, restore? }) so external worktree tools such as Worktrunk can own Git worktree creation, removal, and restoration instead of overloading worktree.create.before.
Keeping worktree.create.before purely transformative preserves multi-plugin chaining, rollback, and the 30s hook budget, while giving manager operations a 120s budget matching git worktree commands. Paseo snapshots existing worktrees before create so managers cannot hijack pre-existing user worktrees, writes comparison-base and owning plugin metadata into paseo/worktree.json and the workspace record, saves refs/paseo/kept-commits before removal so restore stays safe, and falls back to built-in Git if a manager declines or is disabled.
* fix(plugins): harden worktree manager lifecycle, rollback, and schema
* fix(plugins): pass untrusted on create, clean up rejected worktrees, and sync docs
* refactor(plugins): unify worktree manager checkout flow and metadata rules
* fix(plugins): verify managed worktree ownership and restore targets
A failed callback does not establish ownership of worktrees created during its call. Require the manager to identify the checkout before Paseo attempts rollback, and verify the requested Git target before reopening a restored workspace.
* fix(plugins): preserve worktree setup on retry and refresh branch bases
A failed setup could leave a new branch behind and send the retry through the built-in checkout. Use the manager's reported branch creation status during rollback. Share base preparation so both checkout paths start from the updated remote-tracking ref.
* fix(plugins): preserve managed checkout targets and rollback
Keep branch creation ownership with the linked checkout so a failed after-hook can be retried with the same branch. Leave same-repository change requests with a local branch collision to the checkout path that fetches the change request head. Use the worktree timeout for compatibility commands.
* fix(worktrees): carry source trust and await managed creation
Preserve fork provenance for manager callbacks and the workspace record. Honor tracking branch creation in the manager example and let the CLI wait on the existing workspace creation lifecycle.
* fix(plugins): verify PR head commits, restore CLI worktree RPC, and fix Windows rollback paths
* fix(plugins): pre-resolve PR head, use NUL worktree snapshots, and wait on CLI worktree create
* fix(plugins): unify worktree list reader with Git 2.35 fallback and fetch PR head once
* fix(plugins): require exact worktree snapshot for managers and configure PR push remotes on adoption
* fix(server): coordinate workspace restores across daemon sessions
* fix(server): coordinate archive, undo, and restore across daemon checkout boundary
* fix: serialize open-project with checkout archive, sync sibling owners, lift client timeouts, bump plugin version
* fix: forbid nested secondary worktrees, preserve nested checkouts on archive, wait on openProject
* fix(server): refuse deleting a worktree containing a live nested Git worktree
* test(server): normalize Windows paths and teardown command in worktree-manager E2E
* fix(server): guard cross-repo nested checkouts on delete and share checkout trust across sibling workspaces
* fix(worktrees): scope nested checkout protection to managed worktrees
The removal scan treated dependency clones and recursive submodules as independent worktrees. Identify linked worktrees through Git metadata and use the scan only for manager-owned removals.
* test(worktrees): accept native line endings in archive fixtures
The nested submodule fixture checks that Git populated the checkout. The README line endings depend on the runner's Git configuration.
* docs(plugins): document the example manager Git requirement
* fix(worktrees): name the manager that returns an invalid path
The destination validator serves both creation hooks and managers. Keep its errors about the path so the caller can identify the plugin and operation.
|
||
|
|
fd2f885afd |
Restore a host's workspaces when its cached directory is evicted (#10318)
* fix(app): restore a host's workspaces after its cached directory is evicted A host could keep a current directory checkpoint in the replica cache with none of the rows it described. The daemon then answered "no changes" since that cursor, and the sidebar had no projects to place cached workspaces under, so every workspace for that host vanished and stayed missing across restarts. The cache already refused mutations for an evicted host, but it checked at the moment a mutation was queued. Eviction happens later, inside the serialized write, so anything queued before the eviction ran was still written, checkpoint included. The check moves into materializePendingChanges so it runs in the same serialized step that evicts, which also covers an eviction that lands while an earlier persist is still indexing the store. Checking at queue time was also losing good data: once a host was invalidated, every mutation was dropped, including updates accepted between a reconnect's baseline replacement and its write. Those are kept now, because the baseline is in the same pending batch. Version 1 checkpoints could have been written by that path, so they are no longer trusted. A reader discards them and keeps the cached rows, so the sidebar still paints from cache and each host re-syncs its directory once. Later launches resume incrementally. Both the race and the recovery live in the shared cache, so this covers iOS, Android, web, and Electron. It does not address two tabs or windows sharing one IndexedDB database, where another connection evicts the host. * fix(app): hold workspace updates that arrive while the directory cache loads A project update received while the cached directory was being read went straight into the replica. It advanced the project cursor before any refresh had established a baseline, and saved that cursor to the cache. On an install damaged before the eviction fix, that write replaced the version 1 checkpoint with a version 2 one before the reader could reject it. The refresh then asked for project changes after the live update, the daemon had none, and projects missing from the cache stayed missing across restarts. Agents already open a transaction before the cache load, so their updates are recorded and applied over the refreshed snapshot. Workspaces now do the same. An update during the load also stops the cached cursors being adopted, so the refresh fetches full snapshots, which is the recovery a damaged cache needs. * fix(app): advance directory cursors from live updates only after a refresh A live update moved the directory cursor whenever no refresh was in flight, including when no refresh had ever completed on the current subscriptions. If the first sync after discarding a version 1 checkpoint failed, the next project update saved a cursor at its own sequence with only that project stored. The retry asked for changes after it, the daemon had none, and the other projects stayed missing across restarts. The previous commit closed this window during the cache load only; a failed refresh reopened it. A live event's sequence covers everything before it only when a refresh completed on the subscriptions that delivered it, which is what satisfiedDemandSource already records. Live events now update rows either way but move the cursor only in that state, so a cursor never skips changes the client did not receive. Once a refresh completes, live updates advance the cursor as before. The sidebar recovery e2e fixture unwrapped the checkpoint only when it was version 1, so the version 2 writer made it abort before damaging the cache. It now reads either envelope and stores the damage as version 1, the format this branch stops trusting, so the test fails against the previous cache module and passes here. * fix(app): apply the eviction rule to malformed-row repairs Repairing a malformed directory row reads the checkpoint, drops the affected cursor, and writes the rest back. That write went straight to the row store through queueOperation, outside the eviction check in the regular persist path. If a write evicted the same host while the repair was reading, the repair stored a checkpoint for a host with no directory rows, the state this branch exists to prevent. All three repair writes now go through one helper that runs in the serialized writer and drops the checkpoint upsert when the host has been evicted since. The deletes still apply. * fix(app): record a host eviction only after its delete commits Eviction marked the host as evicted before deleteHost ran. If storage aborted that delete, the rows stayed stored but the mark remained. A malformed-row repair running behind it trusted the mark: it skipped the checkpoint update yet still deleted the row, leaving a workspace cursor with no workspace. The next refresh then resumed past that workspace. The mark is now set after the delete commits, so it always matches storage. A failed eviction leaves no mark, and the repair updates the row and its cursor together. |