The delete RPC fences the record against writes before closing the agent.
Since a failed history delete now leaves the record in place, the fence
stayed up for the rest of the process, so a later rename reported success
and never reached disk. The fence now ends when the delete aborts.
- Opening a stored agent with no provider session ran the fresh-create
cleanup, which deleted its saved timeline. Now that history survives a
restart, that open erased it; the record-based open now clears only the
previous session's runtime state.
- The delete RPC removed the registry record first and swallowed a failed
history delete, replying agent_deleted while the transcript stayed on
disk with no record to retry from. History now goes first and a failure
reaches the client as rpc_error with the agent still listed.
- The chat outline built its prompt index from every active row, which on
SQLite decodes all replies and tool output. Backends now return the
active prompt rows, which the rewind and import paths already read.
- paseo.db and its WAL files are set to mode 0600 on every open. They
hold every prompt and reply.
- Internal agents keep their history in memory. Before this change it
went to paseo.db and outlived a crash, which broke the rule that
nothing about an internal agent is on disk.
- Text chunks are stored as JSON strings. node:sqlite reads a TEXT
value only up to its first NUL, and a chunk can end inside a
surrogate pair.
- A turn's handler now changes the agent's state before any timeline
write. Before, a failed metrics stamp skipped the turn_completed
handler, so a turn the provider started stayed running.
- Node 22.13, which has node:sqlite but not isTransaction, is refused
at open.
- If the checkpoint worker cannot start, the daemon logs it and falls
back to SQLite's auto-checkpoint. Before, the error reported an
already committed write as failed.
Agent history now survives a daemon restart, and closed or archived
agents hold no timeline in memory. A history fetch reads paseo.db and
starts no provider.
The daemon opens one SQLite database at $PASEO_HOME/paseo.db with
node:sqlite. Each schema module owns its tables and migrations, and
records a min_reader_version, so an older daemon refuses a database
it cannot read instead of corrupting it. Node 22.16 is the floor,
because DatabaseSync needs it.
A worker thread runs the WAL checkpoints. A checkpoint syncs the
file, and on the daemon thread it stalled the event loop for up to
119 ms on whichever write crossed the auto-checkpoint threshold. If
the worker exits, the daemon returns to SQLite's auto-checkpoint.
A turn's final event now ends the run even when the timeline fails
to write it. Before this change the error escaped handleStreamEvent
before settleTerminalRun, so the agent stayed running and its waiters
hung. The durable store makes that write fallible, and shutdown made
it fail: settled() rejected after close.
`openPlugins` waits only for the server-rendered heading. On WebKit, Enter
could land before hydration attached the search form's handler, so nothing
navigated and the page stayed on /plugins. The two tests that submit right
after opening the directory now wait for hydration first; `openPlugins` itself
stays as it is because a no-JavaScript test uses it.
After a rewind of the first prompt and a new turn, a `before` page whose
cursor fell in the retired prefix found no active row before the cursor. The
whole-turn loop then read the row at index -1 and threw, and ordinary paging
returned the first later row's seq as the start, past the page's end.
The child tests merged from main build a `ProviderSubagentStore` with no
timeline and read `list()` synchronously. On this branch the store keeps
children in the agent's timeline, so it takes one and its reads resolve
asynchronously. Each `apply` queues on the parent's timeline before its first
await, so an awaited `list` observes every event emitted before it.
Conflicts resolved by keeping both intents:
- turn-boundary: main reads the reply through getAssistantReply (plugin
cards); this branch narrows the fork cursor to epoch and seq.
- codex rewind: this branch's fork-and-verify flow, with main's
threadDeveloperInstructions() for the developer instructions.
- agent-manager: this branch's ProviderHistoryReconcile type next to
main's Omit<..., "signal"> query options.
Main's new plugin-card tests gain the anchorSeq this branch's cursors carry.
* fix(website): stabilize scene and keyboard language checks
Drive scene frames explicitly so sparse browser paints do not consume the test deadline. Let the landing page commit a locale change while its optional plugin count loads.
* test(website): advance the plugin panel crossfade before asserting removal
* test(website): settle native animations during the plugin panel swap
Playwright advances JavaScript frames, while the browser keeps a separate timeline for native animations. Finish the mockup’s finite native animations at the panel checkpoint so either animation path removes the outgoing panel.
* docs(skills): teach the current plugin API in the paseo-plugin skill
The skill still taught server.on and server.before, a deprecated panel
context, and an older publishing rule. It linked to hook anchors that
moved to the hooks page, and it had no entry for half of the shipped
contributions. Its RPC example imported a contract that the shared file
did not export.
The skill now indexes every public registration and links to the
reference section that owns its contract. It keeps a few complete
examples. Every ts and tsx block in the skill names its file, and the
blocks under each heading must typecheck as one plugin against the SDK,
so an example cannot drift from the API without a failing test.
* docs(skills): match the plugin skill RPC example to the scaffold and run its tests in CI
The RPC example used names that the generated client entry does not import, and it had no client entry. A PR that changed only the skill also skipped the SDK tests that typecheck its examples.
* docs(skills): keep the generated client entry in the plugin skill RPC example
Replacing index.client.tsx with a screen-only entry removed the scaffold's
Greeting sidebar item, which is the only control that opens the screen.
* docs(skills): say that npm plugins declare build for generated files
Paseo installs npm plugins with lifecycle scripts disabled, so a postinstall
step never runs.
With the left sidebar collapsed, every content header renders
SidebarMenuToggle in its leading slot. On macOS it is a blank space
under the toggle the window draws beside the traffic lights; on
Windows and Linux it is the toggle itself. The plugin screen header
built its own left side without it, so on macOS the floating toggle
sat on top of the title, and on Windows and Linux the screen had no
toggle to reopen the sidebar.
* fix(opencode): clear deleted subagents from the track
Handle provider deletion events before fetching the missing session, and reconcile removals after complete parent listings so reconnects also clear stale rows. Keep descendant cleanup scoped to the deleted child.
* fix(opencode): retain live subagents skipped during reconnect
* fix(opencode): reconcile skipped subagent descendants
* fix(opencode): restore live subagents after reconnect
A deleted child rejects environment restoration before reconnect can clean up its row. Let the child tracker remove confirmed deletions and continue restoring live descendants.
* fix(opencode): clear deleted subagents after reconnect
Let the OpenCode SDK decode missing-session responses in both runtimes. The child tracker can then remove the stale row and restore the live children when it reconnects.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* feat(app): redesign agent profiles settings, inspector drawer, and 1-tap composer creation
Promote Host -> Agent profiles to its own settings section with a searchable 3-column roster and slide-over inspector drawer, eliminate async layout jump when provider options load, and make composer model picker '+' save, select, and toast with Edit and Undo.
- Seed cached host provider catalogs synchronously and retain same-provider controls while refetching so the form no longer collapses and jumps when switching models or modes.
- Keep form session state above drawer/modal framing so resizing across breakpoints preserves unsaved edits, and render the drawer as a right-edge overlay below 1320px pane width so opening a profile never crushes or reflows table rows.
- Reuse Paseo's SearchField, CombinedModelSelector, SettingsCard, SettingsSwitch, SettingsCollapsibleRow, SegmentedControl, ToolbarButton, DismissBackdrop, WindowChromeRegion, and ToastHost across all surfaces.
* fix(app): preserve remounted drafts, guard duplicate, and serialize profile writes
Seed profile FormTextInput fields from the live session draft so drawer-to-modal resizes and collapsible toggles display the values Save will write. Share one confirmDiscardIfDirty guard between editor transitions and Duplicate. Serialize host profile mutations through a per-host queue in useAgentProfiles so overlapping composer quick-creates and Undo compose against the latest stored list.
* fix(app): keep profile editor across compact settings and Remove cancel
Unify compact and desktop Settings detail pane wrappers into SettingsDetailPane so resizing across the 600px compact breakpoint never unmounts HostAgentProfilesPage or drops an active edit session. Remove the premature onClose() call from AgentProfileEditModal's Remove handler so the caller closes the modal only after confirmation and deletion succeed.
* fix(app): allow roster search with docked drawer and guard Settings exits
Pass manageFocus: overlay to useOverlayRegistration in AgentProfileDrawer so slide-over overlays trap focus while docked drawers keep Escape handling and allow typing in roster search. Add a before-leave guard hook in SettingsScreen wired to AgentProfilesPage's confirmDiscardIfDirty so sidebar section switches, host switches, and back navigation prompt before discarding an unsaved profile draft.
* fix(app): guard browser Back and route removal on unsaved profile draft
Add navigation/route-leave-guard so web popstate events are intercepted before Expo Router's createMemoryHistory resets the root navigator, plus beforeRemove handling for native swipe-back and hardware Back. Canceling restores the history entry and keeps both route and draft; confirming replays the exit cleanly.
* fix(app): preserve intervening history on canceled multi-step Back jumps
Track ordered Expo Router history entry IDs in route-leave-guard instead of restoring via pushState. Canceling any Back/Forward traversal now reverts via history.go(delta) without truncating intervening or forward entries, and confirming replays popstate at the browser's exact selected destination.
* fix(app): restore Back-jump URL after reload and compute dirty from resolved defaults
Persist the tab's ordered history entry IDs in sessionStorage and verify the target entry ID when reverting a canceled popstate traversal, so canceling a multi-step Back jump after a page reload always restores the exact editor URL. Move isDirty into profile-form-model against the resolved initial baseline after catalog defaults hydrate so opening an untouched provider-and-model-only profile closes without a discard prompt.
* fix(app): dismiss profile-saved toast when its composer unmounts
Scope the composer's profile-saved toast to the lifetime of useAgentProfileEditor so closing an agent tab dismisses the toast instead of leaving a dead Edit action.
* fix(app): scope save completion close to the editor session that started it
Skip onSaved when useAgentProfileFormSession has unmounted mid-save, and guard handleSavedClose and composer handleSave by session key/request identity so switching to another profile during a slow save never closes the next profile's draft.
* fix(app): unify delayed editor transitions behind a session token
Track a monotonic editor session token in AgentProfilesPage and route delayed open/close transitions (Save completion, Duplicate completion, and async discard confirmation) through applyDelayedEditTarget so a slow Duplicate updates the roster without replacing a newer profile draft.
* fix(app): track draft revision so post-confirm edits veto delayed Duplicate
Add draftRevision to AgentProfileFormState and read isDirty/draftRevision directly from the live form model instead of mirroring a boolean ref. Approve discard for a specific (sessionToken, draftRevision) pair so any edit made after confirming Duplicate advances draftRevision and keeps the newer draft open when the host responds.
* Scope discard approval to each action so failed duplicates stay dirty
* Report agent profile write failures with toast across web and native
* Use usePreventRemove for Settings dirty-draft guard so native stacks block swipe dismiss
* Keep Settings sidebar scroll anchoring intact across font-size reflows
* fix(app): preserve turn footer on plugin-transformed assistant replies
Retain sourceMessageId and sourceText when timeline projection replaces an
assistant_message with plugin items, and recognize projected assistant replies
across turn timing, footer layout, fork boundary resolution, and turn copy
(deduplicating split cards by sourceId).
No plugin SDK changes.
Closes#10438
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(app): keep the replaced row on plugin timeline cards
Projected plugin rows copied fields from the row they replaced one at a
time (sourceId, sourceKind, sourceMessageId, sourceText), and each copy
missed a footer input: turn stats from #10496 were still dropped for a
transformed reply. Projection now keeps the replaced row as `source`,
and `getAssistantReply` reads the reply through it for turn folding,
timing, copy, fork, and turn stats.
Refs #10438
Co-authored-by: Brandon Elliott <brandon.elliott@vercel.com>
* docs(plugins): note that a replaced reply keeps its turn footer
Refs #10438
* test(app): check the turn duration under a plugin-transformed reply
Refs #10438
---------
Co-authored-by: Brandon Elliott <brandon.elliott@vercel.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
Codex uses a thread's developerInstructions in place of the
developer_instructions in its config. Paseo now reads the configured
value through config/read and sends it ahead of the agent, daemon, and
plugin instructions on thread/start, thread/resume, and rewind forks.
Closes#10644
* fix(server): avoid event-loop stalls and timeouts during Git watcher scans
Compile file-observer and Git ignore root lists into ancestor-Set matchers so directory scans check direct children in O(1) instead of scanning all ignored roots per entry. Add cooperative time-sliced yielding and mid-directory abort/ignore checks to NativeRecursiveBackend and LinuxBackend directory scans, and enforce the monotonic watcher subscription deadline after Promise.race so late microtask resolutions cannot bypass timeouts.
* fix(server): attach Linux directory watches before scanning entries
Attach the inotify watcher for each newly discovered directory before calling readdir() in LinuxBackend.scan(), so writes that land during readdir() or mid-directory scan yields are captured live rather than missed between the snapshot and post-scan watch attachment.
* fix(server): track Linux directory watch inode identity across replacements
Store each Linux directory watcher with its (dev, ino) identity so watch attachment and scan reconciliation detect when a directory at a watched path is moved aside and replaced. Close stale watchers, rebind to the replacement inode, and re-verify identity after attach, readdir, and scan yields.
A dev window open for a few hours took twice as long to open the sidebar
hover card as a fresh one. Three dependencies produced the cost:
- Unistyles 3.2.4 web rewrote the whole stylesheet on every class add or
remove. Backport upstream PR jpudysz/react-native-unistyles#1354 (3.8.0):
classes become CSSOM rule inserts and deletes.
- @gorhom/portal kept all portal state in one context value at the app
root, so each portal change made React search every mounted fiber. Portal
state now lives in a store each PortalHost subscribes to. Also backport
gorhom/react-native-portal#62 so closing one overlay no longer remounts
later overlays in the same host.
- React 19.2 development builds never cleared their render timings.
Backport the React 19.3.0 clearMeasures change.
The shared stylesheet e2e helper counts rules inserted, deleted and edited
for the whole interaction, so transient and in-place changes fail the
explorer resize spec.
Supersedes #10605.
Co-authored-by: Marcel W. Wysocki <maci.stgn@gmail.com>
Detaching a pane's active tab via splitPane or moveTabToPane previously dropped focusedTabId and fell back to the rightmost remaining tab in the strip, so dragging a file tab out after coming from tab A left the previous pane on tab B instead of putting A and the file side by side.
Track per-pane tab focus recency in memory and route both close and relocate focus transitions through one explicit policy table. Closing a tab keeps its existing parent-then-neighbor order, while splitting or moving a focused tab out of a pane returns the source pane to its most recently focused remaining tab (falling back to a same-pane parent tab and then an adjacent neighbor). Keeping the focus history in memory avoids adding a new key to the strict persisted layout schema.
Schedules created through the CLI or MCP archived every run's workspace and agent, and only the app's switch could change that. Add --archive-on-finish and --no-archive-on-finish to paseo schedule create and update, and archiveOnFinish to create_schedule and update_schedule. Omitting the option stores nothing, so the default stays on.
A repeated named create_schedule that changes only Archive on finish refreshes the existing schedule instead of creating a duplicate, and keeps the saved value when the request omits it.
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
* fix: bound import listing and clean up ACP probes
* fix(server): keep the full Import Session deadline
Start ACP probe cleanup when the agent manager stops waiting. Keep the 90-second window for listings that still have time to finish.
Co-authored-by: Chirag Singhal <76880977+chirag127@users.noreply.github.com>
* fix: show import provider errors and retry progress
* fix(server): return Import Session results before probe cleanup finishes
A timely ACP listing was discarded when process shutdown crossed the listing deadline. Return the completed rows and let the adapter finish reclaiming the probe.
* fix(server): preserve timely ACP listing errors during cleanup
A provider error returned within the listing window can still be displayed while its probe shuts down.
* fix(server): preserve timely ACP initialization errors during listing
* test(server): give Worktrunk integration fixtures time to finish
* fix(app): scope Import Session results to the selected host
Co-authored-by: derek <174018435+derek-geekdive@users.noreply.github.com>
* Keep pending session imports tied to their original host
* fix(server): reclaim ACP listing providers after launcher exit
---------
Co-authored-by: Chirag Singhal <76880977+chirag127@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: derek <174018435+derek-geekdive@users.noreply.github.com>
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
Workspace snapshots now carry parentWorkspace, the ref of the workspace whose agent created this one on the same host, null when the host records no parent. Based on #10330 by Sammy Patenotte.
Co-authored-by: Sammy Patenotte <sammy.patenotte@yahoo.com>
The catalog launched Factory Droid with `npx -y droid@0.249.0`, which
predates the models Factory added since, including Droid's current
default `gpt-6.2-sol`. Bump the pin to 1.20.0, the version the ACP
registry now publishes for Factory Droid. The registry still distributes
Droid as a pinned npx package with auto-update disabled, so the entry
keeps that shape and stays covered by `npm run acp:version-drift`.
Co-authored-by: Dhruv Singal <170742396+dsingal0@users.noreply.github.com>
* feat(app): add projects from one sheet with Existing, Clone, and New folder tabs
Add project used to start on a method list, so every use cost a step before
typing. The sheet now opens on Existing with the search focused, and Clone and
New folder sit one tab (or Mod+2/3) away, each keeping its own draft. A host
pill appears only when more than one host is online.
Rows are select-then-confirm: a tap or arrow key picks a row and the primary
button (or Enter) commits it, so a scroll-tap on touch never clones or opens
by accident.
The sheet owns its keys through AdaptiveModalSheet's new `keyboard` prop
rather than a child overlay registration, because a child at the same layer
loses to the sheet. Enter leaves a focused button alone (Close, a tab, Add
host) so keyboard users can still activate it.
Inputs focus on open only when a hardware keyboard is present; on a phone the
focus popped the keyboard and the bottom sheet jumped between snap heights on
every tab switch.
Searches keep the previous results while the next request is pending, so the
list no longer flashes to a loading state on each keystroke.
* fix(app): keep Add project results, selection, and submissions tied to their host
Searches now answer only for the host and query they were sent for. With
keepPreviousData, switching host showed the previous host's folders as
settled results, and Open project sent one host's path to the other. A
failed request no longer leaves a spinner, an old query's error no longer
shows while the next one loads, and directory search errors from the host
are shown instead of "No matching folders".
The picked row is stored by id instead of position, so a search refresh
cannot move the selection to a different folder or repository. Focusing a
row picks it, so Enter on a focused row adds that row.
A submission belongs to the open sheet and its host. Closing the sheet or
losing the host abandons it, so a late result neither navigates away from
where the user went nor blocks the next submission.
New folder and Clone default to a parent known to exist (last used, a
recent project's parent, or home) instead of ~/dev, and the Clone preview
drops a trailing .git like the host does. Tabs and rows are locked while a
submission runs, and tabs whose host lacks the capability are read-only.
* fix(app): don't open a stale Add project row, keep drive roots in Location
Enter while a new search is pending no longer opens a row from the
previous search; typed paths and URLs stay usable. Location derived from
a project at a drive or filesystem root keeps the root separator (C:\\, /).
* fix(app): keep Location on a pending search, reject drive-letter folder names
Enter in the Location picker no longer confirms a folder from the
previous search while the new one runs; a typed path still confirms.
Combobox gains remoteSearchPending for this. New folder flags names
like "C:repo" inline, matching the host's rule.
* fix(app): don't swap a dropped Add project pick for the first row
The first row is the default only while the user has not picked one.
When a new answer drops the picked row, nothing is active and the
primary action stays disabled until the user picks again.
* fix(app): keep Add project on the chosen host when it disconnects
The sheet no longer moves the draft to another online host when the
chosen one drops. It stays on that host, shows "<host> is offline", and
blocks submit until the host returns or the user picks another one.
* fix(app): block the native Go key while the Add project host is offline
Each tab's view is gated once, so the footer button, Enter and the
text field's submit key all read the same unavailable submit.
* fix(app): disable Browse while the Add project host is offline
* fix(app): don't default Add project Location to a share's server name
A project at a Windows share root (\\\\server\\share) has no parent folder,
so the default Location falls back to the next project or ~.
* feat(app): find agent profiles by searching models and the Command Center
Typing in the model picker used to hide profiles, so a profile could only
be reached by clearing the search. Search now lists matching profiles
above matching models, matched on the profile name and its summary, so
searching a model also finds the profiles built on it.
The Command Center offers the same profiles as "Profile › <name>",
applied through the picker's applyProfile. Profiles are never shown as
selected: applying one writes its values and nothing stays bound to it.
* fix(app): keep profile search results scrollable and profile ids unique
A provider search that matched only profiles rendered them outside the
model list, which owns scrolling in the popover, so matches below the fold
could not be reached. They now go through the list with no model rows.
The daemon stores the profile list as given, so a hand-edited config can
repeat an id. The Command Center registry rejects duplicate ids and threw
while the composer mounted. The picker now keeps the first profile per id,
which is the one applyProfile already resolved.
* fix(server): keep watcher retries on schedule after reconnect
A watcher that timed out lost its pending delay when its last observer disconnected. Keep the retry with the watched path so registering the same workspace again uses polling until the scheduled scan.
* fix(server): preserve the scheduled watcher retry deadline
The ordinary recovery delay can exceed the setup-timeout delay when a watcher reports an error before timing out. Retain the scheduled deadline so reopening waits the full interval.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Agents often write drafts as quotes meant to be pasted elsewhere. A plain
quote now has a copy control on web, desktop, Android and iOS. It copies
the quote's body without the `>` markers and with its nested Markdown. A
nested quote, a code block or a Mermaid diagram inside it keeps its own
control. Admonitions get no control.
Web reads the rendered quote at press time, so a streaming quote copies
what it shows, and writes the same two clipboard flavors as selection
copy. A rendered Mermaid diagram copies as the fence it shows, and an
admonition inside a copied quote copies as its `> [!TYPE]` source. Code
blocks and quotes share one copy button with a Copied state and an error
toast when the clipboard refuses the write. On compact layouts the
control is always visible in a band above the quote body. On wide
layouts it shows on hover or focus and the quote keeps a right gutter.
Native code blocks and quotes share one header copy control with the
Lucide Copy glyph. A quote reserves the code block's header band above
its body, so the control never covers text at any font size. Native copy
emits the quote body as written, and a copied fence grows longer than
any fence inside its code.
Supersedes #9429 and #9319. Refs discussion #9303.
Co-authored-by: Pedro Vieira <pedro.vieira@dremio.com>
Co-authored-by: Phieu Dinh <phieu@fiu.one>
* fix(cli): print the one-click Hub login URL
`paseo hub login` opened verificationUriComplete in a browser but printed
the bare verificationUri. Over SSH or on a remote host the browser launch
does nothing, so users had to open the bare page and type the code by hand.
Print the URL that carries ?code= and keep the code next to it so the user
can check it matches the Hub approval page.
* fix(providers): report uninstalled plugin providers as unavailable
A fresh host with only Claude Code installed listed Muse Code as an
error ("muse not found on PATH"). The snapshot manager resolves a
provider's catalogue key before it checks availability, and treats any
failure there as an error. For a plugin provider with a command, the key
lookup required a resolved executable and threw when it was missing.
A command that does not resolve has no catalogue identity. Fall back to
the target key so the availability check runs and reports unavailable.
* fix(providers): keep a removed plugin executable off its cached catalogue
The previous fix returned no catalogue key for a missing executable. A
plugin that returns no key asks for a per-workspace catalogue, so after
its executable was removed the next read bound to the catalogue cached
while it was installed and kept reporting ready.
Give a missing executable its own key. Removal now moves the provider to
a fresh catalogue, and its refresh reports unavailable.
* refactor(server): share the MCP client connection that providers host
OMP connected MCP servers itself; OpenCode v2 now needs the same client to
host per-session servers. The shared connection also ends Streamable HTTP
sessions explicitly on close, because a stateful server keeps them otherwise.
* fix(opencode): run agent MCP servers and env on shared v2 servers
Agents with MCP servers or a launch environment failed on any OpenCode v2
server Paseo did not start, with "require an isolated server". OpenCode's MCP
configuration is shared by every session in a location, so Paseo answered by
starting a dedicated server, which a reused server cannot do.
Paseo now hosts each session's MCP servers itself and the v2 plugin exposes
their tools only to that session and its descendants, under OpenCode's
`<server>_<tool>` names. The plugin runs OpenCode's permission check before
each call, so preapproved grants still apply; that API exists from OpenCode
2.0.29, and older servers or stale plugins fail at session creation. Launch
env reaches shells through session.environment, which children do not
inherit, so the plugin asks Paseo to adopt each child before its first model
request. No agent gets a dedicated server any more, including on Paseo's own
helper.
A registered service is skipped when the provider env configures the OpenCode
process, so a service.json no longer breaks catalogs and launches for those
setups. An explicit server URL still reports those variables.
Fixes#9669
* fix(opencode): keep user tools, child instructions, and MCP call cleanup on shared servers
- A Paseo MCP tool replaced a same-named tool from the user's own OpenCode
configuration, and the context hook then removed it from unrelated sessions.
The plugin now captures that tool when it registers, keeps it for sessions
without their own Paseo tool, and runs it for them.
- MCP instructions were an instruction entry written when a child was adopted.
OpenCode loads entries before the context hook runs, so the child's first
request missed them. The context hook now adds them to every request.
- Structured-only MCP results reached OpenCode with empty content. The bridge
now adds them as text, as it already does for Paseo tools.
- The bridge listened for the request's `aborted` event, which never fires
once the body is read, so Stop left the MCP call running. It now aborts when
the response closes before it finishes.
- Closing an HTTP MCP connection waited on a session DELETE with no deadline.
It now waits at most two seconds before closing the transport, which aborts
the DELETE.
* test(server): run daemon OpenCode tests with the bridge the daemon always starts
These tests built the OpenCode v2 client without a bridge, so the client
reported no native Paseo tools and the daemon injected its internal MCP
server instead. OpenCode v2 now hosts agent MCP servers through the bridge
and rejects them without one. The daemon always starts the bridge, so the
tests now do too.
* fix(server): reconnect expired MCP sessions and bound the MCP handshake
- The OpenCode plugin copied a same-named user tool's input schema into the
shared registration. OpenCode validates arguments against the registration,
so the agent's own calls failed the user's schema. The registration keeps a
permissive schema, and the context hook gives each session its own.
- A stateful HTTP MCP server answers 404 after it restarts or expires a
session, and the SDK kept sending the old session ID. A call that gets 404
now opens a new session once and retries.
- The SDK times out only the `initialize` request, so a server that never
answered the `initialized` notification stalled agent creation. The whole
handshake now has a 10-second deadline.
* fix(app): reveal chat with tall pending cards
The initial scroll can settle inside the footer, where no rows need to be measured. Run the layout readiness check before allowing cached ranges to skip it.
* test(app): cover cached range during initial list placement
Exercise an observed end offset with measured rows in the buffer. Canceling the initial scroll must complete readiness even when the render range is already cached.
* fix(app): virtualize chat turns that exceed the mounted window
- Desktop web aligns the mounted tail to the current turn, so one long tool run stayed fully mounted and stalled the chat open.
- Cap that rewind at 60 rows for the web virtualizer. A larger minimum still wins, and history paging plus the replica cache still keep a whole turn.
* test(app): read expanded turns across the virtual window
Verify every command remains accessible while scrolling and after older history loads. Requiring all expanded rows in the DOM at once contradicts bounded desktop mounting.
Co-authored-by: luke <luopeihuan@gmail.com>
* Verify older history appears before rechecking turn expansion
---------
Co-authored-by: luke <luopeihuan@gmail.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
A direct client sees activity only after a complete WebSocket message arrives. Send large responses in existing transport chunks so the client sees progress while it waits for the full response.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Ouyang Xingyuan <galaxyroaming@qq.com>
* docs(website): surface E2EE relay and privacy posture on homepage and security docs
Add a quiet trust strip below the homepage desktop hero mockup (EN and zh-CN) so Paseo's no-telemetry, E2EE relay, open-source, and independent posture is visible before the feature chapters.
Update the public security docs, privacy policy, and SECURITY.md to match the current Noise NK relay handshake, replay protection, daemon.relay.requireProtectedSecurity setting, and pairing-link / daemon-password trust model. Sync README.md, README.zh-CN.md, connectivity docs, and the homepage FAQ connectivity link.
* docs(security): clarify two-sided Noise fallback and Unix key permissions
* docs(security): note daemon restart after enabling requireProtectedSecurity
* fix(claude): restore stopped background subagents as canceled
Resolve task-only replay notifications through the parent launch identity so stopped children keep their recorded outcome after reopening. Preserve transcript order across task and tool notifications.
* test(claude): name replay notification fixture options
* fix(claude): restore all children in grouped task notifications
A session-end notification can contain several task IDs. Apply its outcome to each linked child during transcript replay so every stopped child restores as canceled.
* fix(claude): keep quoted notices from changing replayed child status
Claude marks delivered task notifications with an origin. Require that origin for user records and require a standalone notice for queue records so prompts that quote a notice do not override a recorded outcome.
* fix(claude): keep replay task links tied to subagent results
Ignore unrelated tool results when collecting task identities so echoed launch logs cannot overwrite the link used to restore a stopped child.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
* Keep MCP server headers off the Claude Code command line
The Claude Agent SDK defaults to sending MCP servers in one --mcp-config
flag, so the Paseo MCP server's bearer token (and any user MCP server
headers or env) was readable by every local account through ps or
/proc/<pid>/cmdline. Anyone who read it could call the daemon's agent MCP
endpoint.
Set mcpServersDelivery: "initialize" so the SDK sends the servers over
stdin in the initialize request. The SDK only supports that with the
Claude Code bundled with it (2.1.326) or newer, so an older Claude Code,
or a wrapper command that reports no version, keeps the command-line
delivery and the daemon logs a warning once.
A spawn test feeds Paseo's options to the real SDK and checks that the
token reaches stdin and not the launch arguments.
* fix(server): warn about MCP argv delivery only with configured servers
An empty session used the client's one-time warning before any MCP server headers would be passed to the provider. Warn on the first session that configures a server.
* fix(server): detect MCP delivery support on each provider launch
A running daemon kept selecting command-line delivery after the installed provider gained stdin support. Resolve the installed version when building SDK options for a launch with MCP servers.
* fix(server): probe MCP delivery support in the launch environment
Version-selecting wrappers can run a different binary in the workspace. Use the session working directory and environment when probing the configured command.
---------
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
Install and reload, reviewed updates, and staging cleanup each run against a fresh service. Their npm subprocesses no longer draw from one test's deadline.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(server): stop liveness pings on plugin sessions
Every DaemonClient pings its daemon every 10 s to notice a silently dead socket. A plugin's
session runs over its IPC channel (or an in-process queue for built-in plugins), whose loss is
reported directly, and the daemon already exempts plugin sockets from the application lease those
pings renew. The pings only woke both processes: about 2 wakeups a second in an idle daemon with
nine plugins and the built-ins.
DaemonClient gets a livenessHeartbeat option (default on); the plugin host turns it off.
Explicit verification (ensureConnected({ verify: true })) still pings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(server): exit a plugin process when its daemon's channel closes
A plugin host only noticed that its daemon worker had died through the liveness ping: about 11 s
later the ping failed and the process exited with code 1. With the pings off it would not notice
at all and kept running as an orphan.
The plugin process now exits as soon as the IPC channel closes without the plugin closing it
itself. A normal shutdown still closes the channel from the plugin side and lets work in flight
(a provider connection that resolves late) finish.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Brandon Elliott <923787+Brandon168@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Supersedes #5787.
- Add best-effort daemon hardware detection (macOS ioreg/sysctl, Linux containers, WSL, device-tree boards, cloud/VM DMI, SMBIOS chassis) exposed as optional `machineKind` on `server_info` and `/api/status`.
- Add configurable per-host icons in Host Settings -> Appearance (`Auto` plus 9 icons across all 9 locales), keeping `icon` omitted while untouched for rollback compatibility and preserving unknown future icons on disk.
- Redesign `HostPicker` and `HostChooserModal` with resolved host icons, connection type (`Local`, `Tailscale`, `Relay`, `SSH`, `Direct`, `Via`) + endpoint, on-demand round-trip latency, aligned leading and content rails, and full keyboard navigation.
- Update the website host mockup to match.
Co-authored-by: Taras Kornichuk <dread9ko@gmail.com>
Windows timed out while the fixture printed 12,050 rows before signaling readiness. Batch the initial writes and keep the live burst and replay assertions.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(server): skip teardown commands when archiving unapproved checkouts
`archiveByScope` previously treated `assertWorkspaceAutomationAllowed` as optional and did not skip `runWorktreeTeardownCommands` when `untrustedBacking` was already true or when archiving an unrecorded worktree directory. Four callers (`CreateAgentLifecycleDispatch`, `archiveIfSafe`, `paseo-tools` `archive_workspace`, and `handlePaseoWorktreeArchiveRequest`) also omitted `assertWorkspaceAutomationAllowed`, letting `paseo.json` teardown commands run during failed agent creation cleanup, first-turn auto-archive, auto-archive on merge, MCP workspace archive, and worktree archive RPCs.
Make `assertWorkspaceAutomationAllowed` and `isCheckoutUntrusted` required on `ArchiveDependencies`, skip teardown whenever the backing checkout is untrusted, any workspace on the checkout is blocked, or no active workspace record exists, and wire the guard through all archive callers.
* fix(server): scope archive teardown check to active checkout workspaces
`isCheckoutUntrusted` scans all workspace records by path, including previously archived records, so gating teardown on it suppressed `paseo.json` teardown for a fresh approved worktree that reused a previously archived unapproved slug path.
Keep teardown approval scoped to the active workspaces sharing the backing checkout at archive start (the records being archived plus active siblings), drop the null-workspace fallback target for unrecorded worktree-scope archives so they never run teardown or flip `untrustedBacking`, and verify caller wiring reaches `assertWorkspaceAutomationAllowed` directly.
* fix(server): inherit untrustedSource when unarchiving onto an active unapproved checkout
Unarchiving a previously approved workspace onto an existing directory that currently holds an active unapproved checkout left the restored workspace without `untrustedSource`. If the unapproved sibling was archived first, the directory remained on disk and archiving the restored workspace could run teardown commands.
Inherit `untrustedSource` from active workspaces sharing the checkout root in `ensureWorkspaceRecordUnarchived`, while ignoring already-archived historical records so restoring an approved checkout onto a reused path stays approved.
* fix(server): bind automation approval state to checkout worktree metadata
Keeping `untrustedSource` only on workspace records meant a retained unapproved worktree directory could lose its teardown block if its last unapproved workspace was archived and an older approved workspace was unarchived onto that path, while scanning archived records by path blocked fresh worktrees that reused a deleted slug.
Persist `untrustedSource` on the checkout itself in `paseo/worktree.json` when creating or restoring an unapproved worktree, clear it in `clearWorkspaceAutomationBlock` when setup is approved, and read it in both `workspace-archive-service` and `workspace-provisioning-service`. Deleting the worktree removes its metadata automatically, so fresh worktrees reusing the path start clean while retained checkouts keep their block across workspace archives and restores.
* fix(server): backfill worktree metadata when archiving retained unapproved checkouts
Unapproved checkouts created before `paseo/worktree.json` stored `untrustedSource` carry their block only in the workspace record. If archive keeps the directory on disk (such as a retained sibling or nested worktree), backfilling `untrustedSource` into `paseo/worktree.json` before removal ensures the retained checkout keeps its block even after its unapproved workspace record is archived.
* fix(server): never propagate archived untrustedSource onto fresh checkouts
Both archive metadata backfill and directory workspace creation previously consulted already-archived records matching a path, allowing an old archived unapproved record to copy `untrustedSource` onto a fresh approved worktree that reused the same slug path.
Ignore `untrustedSource` on already-archived records during archive target resolution and metadata backfill (only backfill when active workspaces are being archived), and share one `resolveCheckoutUntrustedSource` rule across `createWorkspaceForDirectory` and `ensureWorkspaceRecordUnarchived` that checks `paseo/worktree.json` first and falls back only to active workspaces.
* fix(server): align unarchived workspace approval state with the live checkout
Unarchiving an old unapproved workspace onto a path already owned by an active approved checkout kept the old record's stale `untrustedSource`, causing a later re-archive of that workspace to backfill the block onto the fresh checkout's metadata.
Align `ensureWorkspaceRecordUnarchived` symmetrically with the live checkout: adopt `untrustedSource` from `paseo/worktree.json` or active workspaces on the checkout when present, and drop stale `untrustedSource` when live active workspaces own an approved checkout at that path.
* fix(server): preserve block when opening a pre-upgrade retained checkout
Opening a pre-upgrade retained checkout directory whose last unapproved workspace was already archived before this change has no active workspace on the path and no `untrustedSource` in `paseo/worktree.json`.
In `resolveCheckoutUntrustedSource`, prefer `paseo/worktree.json`, then active workspaces on the checkout when any exist (so a fresh approved worktree at a reused path stays approved), and only when zero active workspaces exist on the directory fall back to the most recently archived record for that path.
* fix(server): share one checkout approval lookup across open and unarchive
* fix(server): resolve checkout approval state only from metadata and active workspaces
* fix(server): keep archive read-only on worktree approval metadata
* fix(server): serialize setup approval with archive checkout lock and backfill retained metadata
* fix(server): fail setup approval before clearing records when worktree metadata write fails
Preserve the confirmed at_target cut via RewindAppliedError when plugin session replay fails after session.revert succeeds, so reloading recovers even a first-message rewind. Carry turnMetrics on live timeline events appended by Reload agent so open chats match fresh timeline pages. Fix three async-timeline timing expectations in mcp-server and codex-async-questions tests.
Define plugin session.revert completion as an exact rewind to the supplied token (at_target), allow plugin timeline items to reuse stable ids after a rewind, append session.initialTimeline only when creating a new timeline, and centralize provider-history prompt acknowledgement inside AgentTimeline.