mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
5fd6783c19bf1bde9696135c0c5d9e489ae6c751
831
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
325a65acac |
fix(agents): let an agent keep saving its record after a failed delete
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. |
||
|
|
3c5654d2ab |
fix(timeline): keep history on reopen, fail deletes that leave it, read only prompts for the outline
- 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. |
||
|
|
a462c43de2 |
fix(timeline): keep stored history private, exact, and off the turn's path
- 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. |
||
|
|
6d21e28e06 |
feat(timeline): store agent timelines in paseo.db
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. |
||
|
|
4b42ae6c17 |
Merge remote-tracking branch 'origin/main' into plan-provider-switch-sqlite-timelines
# Conflicts: # packages/server/src/server/agent/agent-manager.ts # packages/server/src/server/agent/providers/opencode/v2/agent.test.ts |
||
|
|
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>
|
||
|
|
5033ad0249 |
Merge origin/main into plan-provider-switch-sqlite-timelines
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. |
||
|
|
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. |
||
|
|
2789421fbd |
Merge remote-tracking branch 'origin/main' into plan-provider-switch-sqlite-timelines
# Conflicts: # packages/app/e2e/browser/agent-message-rewind.spec.ts # packages/app/e2e/browser/rewind-menu.ui-contract.spec.ts # packages/app/src/runtime/host-runtime.ts # packages/app/src/timeline/session-stream-reducers.test.ts # packages/server/src/server/agent/agent-manager.test.ts # packages/server/src/server/agent/agent-manager.ts # packages/server/src/server/agent/agent-timeline-store-types.ts # packages/server/src/server/agent/agent-timeline-store.test.ts # packages/server/src/server/agent/agent-timeline-store.ts # packages/server/src/server/agent/plugin-provider.ts # packages/server/src/server/agent/providers/claude/agent.ts |
||
|
|
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. |
||
|
|
d78cc90e4d |
Install bundled orchestration skills for Antigravity (#10273)
* feat(skills): install bundled orchestration skills for Antigravity Antigravity CLI (`agy`), App, and IDE do not scan `~/.agents/skills` or `~/.claude/skills` globally; they discover global skills one level deep from `~/.gemini/config/skills/<skill>/SKILL.md`. Gemini CLI already discovers `~/.agents/skills`, so targeting `~/.gemini/config/skills` only (instead of `~/.gemini/skills`) avoids duplicate skill entries in both Gemini CLI and `agy`. Appends `antigravityDir` at root index 3 in skill transactions so any in-flight pre-upgrade transaction manifest retains its existing backup indices, and includes `antigravityDir` in legacy Codex alias checks so symlinked roots are not retired. * fix(skills): unify install roots and keep rollback/updates resilient to unwritable targets - Replace separate per-target fields on SkillTargets with an ordered `installDirs` list plus `codexDir`, deriving status, sync, removal, legacy Codex alias checks, and transaction root indexing from one source while preserving pre-upgrade backup indices 0–2 (`codexDir` at index 2, additional install roots at index 3+). - Skip unreadable `add` entries with no backup during transaction rollback so an ENOTDIR/EACCES parent under `~/.gemini` does not fail rollback and leave a stuck transaction blocking later skills calls. - Ignore `ENOTDIR` in `removeSkill` (a skill cannot exist below a regular file). - Continue syncing remaining skills and install roots in `syncSkills` before throwing the first error so an unwritable `~/.gemini` does not block startup auto-updates from reaching `~/.agents` and `~/.claude`. * fix(skills): finish removing reachable skills during uninstall when one root is unreadable Continue across every target root in `removeSkill` and every managed skill in `uninstallSkills` before throwing the first error (matching `syncSkills`), while still reporting `EACCES` rather than ignoring it. * test(agent): synchronize stale-session retry before checking cleared run Replace the racy `setTimeout(0)` in `agent-manager.test.ts` with a deferred gate on `resumeSession`. Under CI load, `setTimeout(0)` could fire after the immediate retry had already resumed and started its new in-flight run, causing `hasInFlightRun(agent.id)` to read `true`. |
||
|
|
d5d385afa7 |
Show each provider's state in the list and open one provider page everywhere (#9661)
* fix(app): leave providers that are not installed out of the model picker An agent's own provider stays in its selector, labelled Unavailable. * feat(app): open a provider's detail as a Settings page or a sheet Settings → Providers now pushes a provider page, like Projects and Plugins; the model picker gear and setup keep a sheet. Both frame one body, ordered error, Enabled, Installation, Models, Troubleshooting, Danger zone, so the old sheet's sticky footer and Retry button are gone. Refresh lives once, in the Troubleshooting status row. The page header (back link, icon, title) moves into the shared settings kit so projects, plugins and providers line up on the same rails. * feat(app): show each provider's version, updates and faults in the list Each row now says how its provider is: version and model count, Update available, a spinner while an update runs, a red dot with the error, or Not installed / Disabled. Only a broken provider gets a dot, and a provider that is not installed has no switch, since the model picker already leaves it out. The kebab is gone; Remove lives on the detail. Rows read the same installation and update queries as the detail, so opening a provider costs no new requests. Hosts without providerInstallation still get a correct list from the snapshot alone. Add provider is a "+ Provider" button in the header and a muted last row; both open one sheet with search and catalog rows, replacing the tile grid. After Add, the new provider's detail opens. The row is the settings kit's detail row, which gains a leading icon, a hint status (spinner, error dot, or a held line) and a control before the chevron. The Unistyles test stub now applies withUnistyles theme mappings, so browser tests render components that read colours through the theme. * feat(app): open setup's provider pages over the setup card The detail and Add provider sheets take the setup card's frame and a back arrow, so they read as pages of setup instead of a sheet over it. The step is renamed "Your providers" to match the list it shows. * docs: describe the provider list and pages as they are now * fix(app): keep settings rows one height and on one icon rail on phones On touch layouts a switch reserves a 44px control, so in the provider list rows with a switch stood 10px taller than "Not installed" rows without one. Card rows now reserve a default control's height, the rule nested rows already follow. A compact SettingsRow wrapped with a full `gap`, which added 12px on top of the leading slot's margin: catalog icons sat 24px from their labels instead of 12px. The wrap only needs space between lines, so it uses `rowGap`. * fix(app): keep a provider row's error to one line A long or multi-line error wrapped the hint to two lines with the dot centred between them. The row cuts it to one line; the provider's page shows it in full. * fix(app): title a provider's Settings page like a project's The page title and the detail header both named the provider. The screen now titles it "Providers" and the page names the provider once, the way a project's page does. * fix(app): keep a settings row's switch out of the row's button The provider row's switch rendered inside the row's <button>. That is invalid markup, and keys reached both: Enter on the switch toggled it and also opened the provider's page, and Space on it opened the page without toggling. SettingsRowHeader now lays its press target under the row's content as a sibling of the control. The content lets presses through to the button and stays out of the accessibility tree, where the button's label already names the row. Hover is tracked on the row, so it holds over the switch. * fix(app): reserve a control's height only on rows that open something The previous change gave every card row a control's minimum height and the design doc said so, but rows built directly on settingsStyles.row (66 uses) never got it: a single-line row was 48px or 64px depending on which code path built it. The minimum now belongs to SettingsRowHeader, the row with an optional control slot, so a list where only some rows carry a switch keeps one height. SettingsRow and hand-built rows take their content's height again, as on the base branch, and the doc states the narrower rule. * test(app): give the Unistyles stub the light theme's full colours Since the stub started applying withUnistyles theme mappings, a mapping reading a colour the stub's theme lacked crashed: the markdown styles read colors.terminal and failed the plan card disclosure tests. The stub's colours now start from the light theme, with its own values pinned on top. * test(app): find the provider page's buttons in the compact sheet On compact layouts AdaptiveModalSheet puts its testID on the header only, so buttons in the page body cannot be found inside it. The spec looks them up on the page, as it did before the page moved into the sheet. * fix(app): let screen readers read a settings row's state line The row's button carries the row's name as its label, so only the title is hidden from assistive tech now; the hint below it (a provider's version, error or Not installed) is read again. The Enter-on-switch test now dispatches its key events synchronously inside one act. An awaited keyboard call let the Switch's animation run a frame after the test, which Vitest reported as an unhandled error and failed the run. * fix(app): don't open a provider's page after its Add sheet was closed Adding a provider waits for the daemon to probe it. If the user closed the sheet during that wait, the completed add still navigated to the provider's page. The add now remembers which sheet session started it and only opens the page if that session is still current. * fix(app): say Not installed for a disabled provider that is not installed A disabled provider's snapshot status is unavailable, so the row said Disabled even when the binary was missing. The installation inspection is checked first, so Not installed wins over Disabled. * fix(app): keep a saved provider choice visible when it is not installed The provider picker drops unavailable providers. A schedule or metadata-generation setting saved against such a provider then showed Select model. The picker now keeps the saved provider, labelled Unavailable, so the user sees what is set and can change it. * test(app): wait for an added catalog provider's probe before continuing Adding a provider opens its page only after the daemon probes it, which can outlast the default expect timeout on CI. * refactor(app): name the provider picker's connection and saved-choice options Callers passed a bare true to reach the saved-choice argument. * fix(app): show a provider page's loading and not-found states A provider page opened from its URL (a reload, a cold start, a shared link) rendered its title over nothing until the host's providers arrived, and forever when the id named a provider the host doesn't have. The page body now says Loading..., that the host is offline, that the providers couldn't be read, or that the provider isn't on this host, in the same notice card the provider list uses when it is offline. The page and both sheet frames share the body. * fix(app): don't call a just-removed provider missing while its page closes The daemon can publish the provider list without the removed provider before it answers the config patch, so the page said "This provider isn't on this host" until the answer arrived and it navigated away; in a sheet, through the exit animation as well. A page that has shown its provider now shows nothing once it leaves the list. The not-found notice is for a page that never found its provider. The removal e2e holds the config answer so it always sees that order. * fix(app): show the not-found notice when a provider is removed elsewhere The page hid the notice for any provider it had shown before, to cover its own Remove. A removal from another client, the CLI or a plugin then left the page blank with no way to tell why. The page now owns its Remove: while that runs and once it succeeds the body shows nothing, and any other absence says the provider isn't on this host. The removal e2e routes only the e2e daemon's socket, so the fixture's port-6767 guard stays in force. * fix(app): show progress on the provider page's in-flight buttons Remove, Add model and the diagnostic re-run now show their work on the pressed control, like the page's Refresh and Update: a spinner, no further presses and, on a labelled button, "Removing..." or "Adding...". Remove kept its label and only disabled itself, and the page went blank mid-removal: the daemon publishes the provider list without the removed provider before it answers the config patch, so the body had nothing to show and each frame's title fell back to the raw id. The removal now keeps the entry the user confirmed, and one hook feeds the frame's title and the body, so both keep showing the provider until the page closes. The in-flight state also starts after confirmation, not while the dialog is open. The diagnostic sheet's header icon buttons had lost the base branch's spinner and dimming; SheetHeaderIconButton now takes loading and disabled, the way Button does. * fix(app): don't leave a re-added provider's sheet stuck on Removing... The setup step and the model picker's gear keep a provider's sheet mounted after it closes, keyed by provider. A finished removal stayed set in that sheet, so adding the same provider back reopened it with Remove spinning and disabled. A finished removal now ends when the host lists the provider again. * fix(app): keep the composer's remembered provider in its picker The picker leaves out providers that aren't installed, except the one holding the picker's current choice. The schedule form and metadata page passed that choice; the new-agent composer didn't, so a remembered provider not installed on this host vanished from the picker and the trigger read "Select model" with no reason given. The builder now requires every caller to say what its current choice is, or null. * fix(app): guide a missing catalog provider's install and keep custom models while one fails A provider added from the Add provider catalog runs through the generic ACP client, which reports no installation, so its page said nothing when the CLI was missing. The page now shows the Installation section's Not installed row with Install opening the catalog's guide. A link the host supplies still wins. Custom models live in config, so the page lists them and offers Add model whenever the provider is enabled and installed, including while it fails. The provider's own models, and the search over them, still show only while it runs. * fix(app): make settings rows pressable on iOS and Android React Native 0.86 no longer exports StyleSheet.absoluteFillObject, and Unistyles' native StyleSheet copies it from React Native, so the spread was empty there. The row's press target then had no size: on Android, tapping a provider row or a Voice row did nothing. Web was unaffected because Unistyles' web StyleSheet still defines the key. Use StyleSheet.absoluteFill, as the rest of the app does. * fix(app): let setup's provider sheets leave out the close button again The base's sheet header rewrite dropped SheetHeaderView's showCloseButton, which the provider page and Add provider sheets pass when setup's back arrow is the only way out. Restore it on the header. * test(app): prove a refresh clears a failed update from the provider's row The update-failure journey now also walks the provider list: after Refresh on the page the row reads its version and model count with no error dot, and a refresh from another client clears a row that is open in the list. Without the provider.installation.update.cleared handling both row checks fail. The helper's Refresh now uses the page's Troubleshooting button, since Settings opens the provider as a page, not a sheet. * fix(app): show a catalog provider's install guide on hosts that cannot report installations A host without providerInstallation returns an unsupported installation, which the page passed through, so a catalog provider whose CLI is missing showed no Installation section and no guide anywhere. The guide is the app's own catalog data, so the page builds the same Not installed row from it on those hosts. |
||
|
|
4d29ee415a |
Show provider versions and run provider updates from provider settings (#9568)
* feat(providers): show installed version and install link in provider settings Providers can now declare `installation`: install and update links plus an `inspect` callback that reports installed state and an opaque version string. Built-in clients and plugin providers share one contract; plugins receive the daemon-resolved launch with `resolved: false` when the executable is missing, so they can report not installed instead of failing. The daemon calls `inspect` only on the new `provider.installation.inspect.request` RPC, never from availability probing, discovery or session creation, so a slow version probe cannot delay agents. Results are cached per client for 30s, deadlined at 20s, and links survive a failed probe. The app gates the provider sheet's Installation row on `server_info.features.providerInstallation`, so older hosts show nothing new. * feat(providers): show available updates in provider settings Providers can now declare `installation.checkForUpdates`, returning `current`, `available` with opaque `versions` and `message`, or `unknown`. The provider decides what counts as newer; Paseo shows its answer as written and never parses or compares versions. The check is its own RPC, `provider.installation.check_updates`, so the installed version never waits on a network lookup. The daemon caches a conclusive answer for an hour and an inconclusive one for 30s, shares in-flight calls, and deadlines the call at 25s, below the plugin RPC timeout. A throw or timeout comes back as `error`, which the app shows as inconclusive, never as up to date. The sheet's Refresh bypasses the cache. Codex and Claude Code read the release source their own updaters use: the Homebrew cask for cask installs, otherwise the GitHub latest release for Codex and the configured `autoUpdatesChannel` for Claude Code. `codex doctor --json` reports the same answer but scans local state and took close to a minute, so it is not used. Muse compares its build with the launcher's channel manifest, the same rule the launcher updates by. The install link now shows whenever the provider declares `installUrl` and is not reported installed: the Install button for `not_installed`, a quieter "Install instructions" link when the check failed or the provider only links to a guide. * feat(providers): run provider updates from provider settings Providers can declare `update(context)`, and the Installation section shows an Update button when an update is available. The daemon owns the operation: one per provider, joined by later requests, kept in memory past client disconnects, streamed to subscribers through an owned subscription, and aborted only when the daemon stops. The provider's answer is the outcome; the daemon adds no verification. After success it drops the cached inspection and update check and refreshes discovery, without restarting agents. Codex and Claude run their own `update` subcommand and pass the output through. Muse has no update subcommand, so it does not declare one. Updater output is capped at 64 KiB per update so a chatty updater cannot grow daemon memory. Starting an update requires daemon.manage because it runs commands on the host. * feat(providers): report installation for the remaining providers Copilot, OpenCode, Pi, Oh My Pi, Antigravity and Hoplite now show an install link and the installed version in provider settings. Each one declares only what its CLI offers: - Update checks ask the source the CLI's own updater reads: Pi's latest-version endpoint, `omp update --check`, and Hoplite's latest.json. Copilot and OpenCode resolve their release inside the binary, so they declare no check. - Updates run the CLI's own command: `copilot update`, `opencode upgrade`, `pi update --self` (leaves Pi packages alone), `omp update`. Antigravity and Hoplite document no self-update. OpenCode's success message asks for a daemon restart, because all OpenCode agents share one server that keeps running the old version. * docs(providers): document the provider installation contract Plugin authors get the contract in the provider guide, with a worked example that reports a version, checks for an update and runs the CLI's own updater, and every field, deadline and cache in the reference. The internal provider and plugin docs record why the three callbacks are separate, that versions are opaque, that Paseo adds no verification to an update, and how the plugin bridge carries and cancels each request. * chore(protocol): mark provider installation as shipping in v0.17.0 main is on the 0.16 beta series, and a promotion ships the tested beta's content without pulling from main, so this lands in the next minor. * fix(app): bound update output and show refresh failures in provider settings The screen appended every progress chunk with no limit while open, so a noisy updater grew memory and never showed the truncation note that a reopened screen shows. Progress now folds with the daemon's 64 KiB limit. A manual refresh stored its result and failure outside the queries the screen reads, so a failed refresh brought back the old answer with no warning. Refresh now runs through those queries. It passes staleTime 0 because the app's default staleTime of Infinity would otherwise answer from the cache. The not-connected error uses the translated string the i18n check requires. * fix(providers): keep update checks in step with the installed version A conclusive check is cached for an hour and was not tied to the version it answered for. After a CLI updated outside Paseo, settings showed the new version and still offered Update to it. When an inspection reports a different version, the cached check is dropped. Versions are compared for equality, so they stay opaque. The release comparison dropped prerelease suffixes, so Codex 0.200.0-alpha.1 looked current against 0.200.0. A prerelease now comes before the release with the same numbers. Two different prereleases of the same release are reported as unknown. * docs(providers): say when Update instructions shows * fix(providers): reuse a cached update check only for the version it answered The previous fix dropped the cached check after an inspection settled with a new version. On reopen the app sends inspect and check together, so the check answered from the stale entry before the inspection settled. A cached check now records the installed version it was computed against and is reused only when the current inspection, shared if in flight, reports the same version. * fix(app): refresh provider version after an update settles while disconnected The installation and update queries were invalidated only by a live succeeded progress event. A connection dropped mid-update delivered the settled operation as a snapshot on reconnect, which left the old version and Update on screen. A success the view saw running now rereads them whether it arrives as progress or as a snapshot. * fix(providers): keep update checks within their own deadline Tying a cached check to its version made every check wait for a fresh inspection, which could add the 20 s inspect deadline to the 25 s check deadline. A check now never starts an inspection. It waits on one only when the inspection is cached or already running and the check would reuse a cached answer. When it asks the provider, it records the version afterwards. * test(app): assert provider installation states are visible * fix(providers): share one update check when two clients reopen after a version change * fix(muse): report the build the update check compares Paseo reuses a cached update check while inspect reports the same version string. Muse reported 1.4.18 but compared its build (1.4.18-R8600.1), so a new build of the same release kept the stale "Update available" for up to an hour. The contract docs now say to include everything the check compares in the reported version. * test(app): scroll custom model rows into view before checking them The provider sheet now shows an Installation section above the model lists. At 390x1000 the custom model row sits under the sheet footer until scrolled. The spec checks that a long model id leaves its Remove button reachable. It had assumed the row needed no vertical scroll. * test(app): keep the custom model check sensitive to a Remove button pushed off the sheet scrollIntoViewIfNeeded on the Remove button scrolled the overflow-hidden model card sideways too, so the check passed with the long-id layout fix undone. Scroll only the Custom models heading into view, which moves the sheet vertically and leaves the card at scrollLeft 0. With the layout fix undone the spec now fails at 1200px and 390px again. * feat(app): offer provider updates whether or not an update check answers Update and Update instructions lived inside the row that appeared only after checkForUpdates answered, so Copilot and OpenCode, which declare update but no check, never offered either. A check is a convenience: the Updates row now shows for an installed provider that offers an update, keeps Update or Update instructions in place in every check state (none, checking, up to date, available, couldn't check), and shows what the check knows as a hint beside it. A provider that offers no update still shows the check's answer once it has one. The daemon already ran update without a check; a test now says so. * fix(app): let update output scroll inside the provider sheet on Android The output box is a ScrollView nested in the sheet's scrolling body. Android hands the drag to the outer ScrollView unless the inner one sets nestedScrollEnabled, so only the last 240px of a long update's output was readable. The tool-call detail views set the same flag. * fix(app): show one progress indicator per provider update and refresh While an update ran, the Update button and the update's row each showed a spinner. The button's spinner also widened it, and the row's leading spinner shifted the title when the update settled. The update's row now owns progress from the tap until the update settles: it shows the update starting before the host answers, so the indicator never moves, and the Update button only disables. Refresh blanked the Installation rows while the provider was asked again, then moved "Checking…" from the Version row to the Updates row. The rows now keep their last answers until the new ones arrive, and the Refresh button shows the refresh until both the models and the installation are read again. * fix(app): show a provider update's progress on its Update button The pressed button carries an action's progress everywhere else in Settings: Button's own loading state with a present-participle label, as Browser data's Clear and Project settings' Save do. Update now does the same, reading "Updating..." from the tap until the update settles, and the update's row holds only the output while it runs, then the result. This replaces the row-owned spinner from the previous commit, which no other surface uses. The installation's in-flight labels use three dots like their siblings. * fix(app): keep a running update's progress visible whatever the inspection reads Update carries the update's progress, but its row rendered only while the inspection read "installed". An inspection that ran during the update (on reopen or Refresh) could read loading, not installed or failed while the binary was replaced, and the sheet then showed nothing about the running update. The Updates row now stays while an update runs. * fix(server): show and update the provider CLI its agents launch The installation contract found the CLI on the daemon's PATH, while agents spawn the bare command with the provider's environment. A provider whose env sets PATH could launch one copy and show and update another, so an update succeeded while new agents kept the old version. The CLI is now resolved with the provider's environment. The section test's check-state table now always names the text it expects, so no case can skip its assertion. * test(server): name the provider PATH test for what it shows The availability check that gates a Copilot spawn still looks on the daemon's PATH, so the copy on the provider's PATH is not always the one agents launch. * test(antigravity-provider): read the version from the CLI, not its acp subcommand Antigravity now launches `agy acp --disable-telemetry`, so the launch the installation receives ends with the ACP subcommand. The version read drops it, since `agy acp --version` starts the ACP server. * feat(plugin): pass the inspected version to checkForUpdates checkForUpdates now receives installedVersion, the version inspect reported, and the daemon keys the cached answer on it. Before, each provider read its version a second time and the daemon recorded which version a cached check answered for, so a check could compare a different version than the one shown, and a plugin had to put everything its check compared into the reported version. An update check now waits for the provider's inspection (shared with a concurrent inspect, refreshed with it), answers Not installed or the inspection's error without asking the provider, and is asked again once the inspection reports a different version. * fix(server): clear a failed provider update when the provider is refreshed The daemon kept a provider's last update for its whole lifetime, so a failed update stayed the current update until a later update succeeded or the daemon restarted, and the provider looked broken after the user fixed it. A refresh of the provider's installation or update check now drops a failed result. A running update is never dropped. * docs(server): say which agents look up the provider CLI on its PATH * fix(server): tell open provider views when a refresh drops a failed update A refresh deleted the failed update on the daemon but sent nothing, so a view already observing the provider's updates, in this client or another one, kept showing the failure until it observed again. The daemon now pushes provider.installation.update.cleared with the dropped operation's id to every subscriber, and the app clears the update it shows when the ids match. |
||
|
|
69c6bd7464 |
Keep the model tooltip closed when opening the picker
Pressing the model picker shortcut now focuses search without opening the button tooltip. Attach picker hints to the shared trigger button so focus inside the picker stays independent. |
||
|
|
120df507a9 |
Start a workspace in an existing worktree, and branch off or check out any branch or pull request (#10190)
* feat(server): branch off a pull request and list every git worktree A workspace.create worktree source with action "branch-off" and a checkoutSource used to check the pull request out, because core took any change request as a checkout. Branch-off now fetches the pull request's head into a remote-tracking ref (origin/<head> for a same-repo head, paseo-pr-<N>/<head> otherwise) and starts the new branch there, with no upstream and no remote added. A request with no action still checks the pull request out, as older clients expect. checkout.worktrees.list returns all git worktrees of the repository, not only the ones Paseo created, so the New workspace screen can offer any of them. Bare and prunable entries are left out. Hosts advertise both through server_info.features: worktreeRefActions and checkoutWorktreeList. Older hosts ignore the branch-off action on a pull request, so the app must gate on the flag. * feat(app): pick an existing worktree, and branch off or check out a ref Isolation now offers Project directory (was "Local"), New worktree, and Existing worktree. Existing worktree is a local workspace at the chosen worktree's path, not a third isolation value, so plugins, preferences, and the create request still see "local". The list comes from checkout.worktrees.list, so it includes worktrees Paseo did not create. The ref picker gains Branches / Pull requests pills and a Branch off / Check out toggle with a tooltip per action. Branches default to Branch off and pull requests to Check out. On a host without worktreeRefActions the toggle is hidden and the defaults apply. Git keeps a branch in one worktree at a time. Picking a held branch in Check out mode moves to the worktree that holds it, and creating from a held branch that was never picked fails with an explanation. Without this the server would silently check out a "<branch>-1" copy. * docs: describe Existing worktree and Branch off / Check out * fix(server): give a fork pull request branch-off a base the repository has A branch off a fork's pull request stored the fork's head as its base, under refs/remotes/paseo-pr-<N>. Create PR then asked for a pull request into a branch the base repository does not have, and the ref piled up in base branch pickers because no remote owns it. The new branch now starts at the fetched head, kept under refs/paseo/change-requests/<N>, and its base is the pull request's base branch. A same-repository branch-off still stacks on the pull request's branch. A routed create_workspace with a prNumber and no mode checks the pull request out again, as before branch-off could start from a pull request. The worktree list skips a locked worktree whose directory is gone, since it cannot be opened. * fix(app): start an existing worktree's agent in that worktree Existing worktree created the workspace at the worktree, but the composer and terminal still used the project directory, so the daemon rejected the first agent as outside the workspace. The screen now derives one working directory from the isolation and uses it for the workspace, the composer, and the terminal. A worktree that left the list is no longer a choice. The ref picker names change requests the way the project's forge does, so a GitLab project shows Merge requests. The schedule form uses the isolation labels Project directory and New worktree. * fix(server): compare a fork pull request branch-off against the remote base The base was stored as the bare branch name, which resolves to the local branch first. A local main behind origin/main put upstream commits in the workspace's changes for its whole life, and a base branch the clone never fetched failed creation. The base branch is now fetched from origin and stored as its remote-tracking ref. * fix(server): take a pull request's base and a checked-out branch from the remote that has them A fork branch-off fetched its base from origin. In a clone whose base repository is upstream, origin is the user's fork or missing, so the base was stale or the create failed. The base now comes from the remote that served the pull request, and a failed base fetch falls back to the bare branch name. Check out of a branch that only a remote other than origin has failed with an unknown branch. The local branch is now created from the one remote-tracking ref with that name, tracking it, as git does. The fork branch-off test passes a git identity to commit-tree, which CI runners do not have. * fix(server): branch off a pull request from the remote that serves it A same-repository pull request's head was fetched into refs/remotes/origin. In a fork clone, upstream serves the pull request and origin is the fork, so the base refresh replaced the head with the fork's branch of the same name and the new branch started from code that is not the pull request. The head now lands under refs/paseo/change-requests/<N>, the branch starts there, and the base is fetched from the remote that served the head. A routed create_workspace that branches off a pull request is refused, as it is on the local host. * fix(app): branch off a plugin's base ref whatever the branch action setBaseRef chose the base but kept the user's Check out switch, so a plugin's base became a checkout or a held-branch error. A base is what a new worktree starts from, so setBaseRef switches branches back to Branch off. |
||
|
|
68cfad2c8a |
Add interactive permissions and session history to Antigravity (#10193)
* feat(antigravity): run sessions through the shared ACP provider Use Antigravity’s ACP server for workspace sessions, mode changes, approvals, and conversation history. Keep existing conversations importable and migrate saved Full access sessions to Default. * fix(acp): finish delayed history replay before sessions become ready Keep delayed load updates on the history side of the readiness boundary. Reuse the ACP catalog and configuration mapping to translate legacy Antigravity selections and document the approval requirements for scheduled runs. * fix(antigravity): preserve Full access in ACP sessions Keep unattended Antigravity runs working through the shared ACP permission policy. Commit a Full access change only when the session is idle and retire unanswered approvals when a turn ends. * fix(acp): cancel pending approvals when stopping a turn Send the approval cancellation when the client asks the agent to stop. Agents that wait for the approval response can then finish the turn, and late replies to closed approvals leave the session usable. |
||
|
|
808766ed7f |
Acknowledge workspace taps promptly and reduce destination mount work (#9887)
* fix(app): acknowledge accepted workspace taps before navigation Short taps finish before the delayed hold feedback paints, then navigation occupies JS. Paint accepted feedback on the native UI thread while retaining the existing press cancellation and delay rules. * fix(app): avoid persistent tint on selected docked workspace rows * perf(app): reduce workspace mount work and narrow panel subscriptions |
||
|
|
51baa2beb8 |
feat(claude): give Ultracode its own toggle (#10150)
Keep Ultracode independent of effort in the Claude composer and retain support for saved Ultra Code choices. Co-authored-by: fivetaku <zipsanyang.ai@gmail.com> |
||
|
|
0c11263d4d | fix(timeline): sync provider history at whole turn boundaries | ||
|
|
25f637e57c |
Merge remote-tracking branch 'origin/main' into plan-provider-switch-sqlite-timelines
# Conflicts: # packages/server/src/server/agent/agent-manager.test.ts # packages/server/src/server/agent/agent-manager.ts # packages/server/src/server/agent/providers/codex-app-server-agent.ts # packages/server/src/server/agent/tools/paseo-tools.ts |
||
|
|
50b2c7f9d9 |
Give every natively supported provider a docs page (#10114)
Supported providers is now an index: one list of natively supported providers and one list of ACP agents from the in-app catalog. Each natively supported provider has a setup page under /docs/supported-providers/, and the docs sidebar shows those pages as one collapsible item. /docs/claude-code, /docs/codex, and /docs/muse-code redirect to the new location. Also adds landing pages for fx and Hoplite, lists fx in the 0.16.0 changelog highlights, lists every docs page in llms.txt, and gives the plugin sidebar views page its frontmatter. |
||
|
|
2a10550a02 |
Paste copied reply text as displayed in plain-text targets (#10079)
* fix(app): preserve literal text in selection copy * fix(app): keep literal angle brackets in copied selection HTML Unwrapping a recognized URL left displayed text such as `<http://localhost:3000>` in the Markdown that feeds text/html. Turndown does not escape `<`, so the clipboard renderer turned it into an autolink and dropped the brackets. Escape `<` in the Markdown flavor. Describe the renderer/copy link contract in docs/markdown-renderer.md instead of restating the code. Co-authored-by: Dan Berindei <dan.berindei@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(app): keep recognized web links and table pipes in rich and plain copy Unwrapping recognized links in the shared copy DOM removed them from both clipboard flavors, so a copied `#12` lost its forge URL in rich paste. The renderer now marks recognized links with their own attribute: text/plain carries them as the text the reply showed, and text/html keeps them as links when they point to a web page. Workspace paths stay plain text in both. text/plain still emits tables as GFM syntax, so keep the cell-pipe escape in both flavors. Co-authored-by: Dan Berindei <dan.berindei@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(app): copy recognized Windows drive paths as text in rich paste The rich-paste link check accepted any URI scheme, so `C:\repo\x.ts` kept a link with an unopenable `C:` href. Keep recognized links in text/html only for http and https URLs. Co-authored-by: Dan Berindei <dan.berindei@gmail.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(app): keep split line-start Markdown literal in copied selection HTML Selecting from the `#` in `**C#**` to the end of the paragraph left `#` and ` for ...` as separate text nodes after unwrapping, so Turndown did not escape the heading marker and rich paste showed a heading. Merge the text nodes before serializing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Dan Berindei <dan.berindei@gmail.com> Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
59ca1f5f77 |
Replace Desktop's own daemon on update after Desktop relaunches (#10067)
An in-app update and the startup version check again use the desktopManaged flag in paseo.pid, while Manage built-in daemon is on. A daemon that an earlier Desktop session launched is now replaced on update. A daemon that the user started through the CLI is still never stopped automatically. Closes #6385. |
||
|
|
f1f2509c12 |
Keep Android composer taps working after zooming a chat image (#10057)
* fix(android): keep composer taps working after pinching an image React Native counted two touches at the start of a pinch but received a native takeover cancellation for just one. Typing could then claim the responder and consume the first toolbar tap. Cancel the active contacts when the gesture handler takes over. * docs(android): describe the chat image fixture for the pinch regression |
||
|
|
f81bc2b5a3 |
Keep the prompt and whole reply when an empty chat reconnects mid-reply (#9723)
Recover missing timeline rows when a chat was empty before disconnect and live reply rows arrive before history catch-up. Keep the replica cache at schema version 1. Closes #9650. Supersedes #9626. Co-authored-by: Okan YILDIRIM <63511519+ragokan@users.noreply.github.com> Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> |
||
|
|
3815e72359 |
fix(desktop): refuse browser screenshots with no painted pixels (#9807)
Viewport and full-page browser screenshots wait for a frame with non-transparent pixels. When the page does not paint within the existing capture budget, the tool returns screenshot_no_frame. Fixes #9810. Co-authored-by: monarchmaisuriya <monarchmaisuriya7600@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
91e7293773 |
Hide historical PR badges on the default branch (#10053)
Hide closed and merged requests on the origin repository’s default branch. Keep branch-based status matching for feature workspaces. Closes #9908. |
||
|
|
576d0320c8 |
Keep Android text at the window's density on Samsung DeX (#9995)
React Native 0.86 converts between px and dp with the density of the phone's built-in display, while Fabric lays out at the window's density. In a DeX window (240 dpi on a 360 dpi phone) every text box came out at two thirds of the height its text needed, so the text was clipped. Backport the rule from react/react-native#59087: right after React Native reads the display (when it creates the root view and on each configuration change), restore the window's density and keep only the display's size. Remove once the app runs React Native 0.89 or later with useWindowDensityForDisplayMetricsAndroid on. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
e5352c9890 |
fix: size controls by the primary pointer, not any touch screen (#9909)
* feat(desktop): size controls by the primary pointer, not any touch screen The desktop app gave touch-sized controls to every machine with a touch screen, including Windows laptops driven by a trackpad. In Electron, ask whether a mouse-like primary pointer drives the UI instead: Chromium reports a fine primary pointer for those laptops and a coarse one for a tablet with no mouse or trackpad attached. Browsers and native keep the touch-screen check, so an iPad keeps touch sizes with a trackpad attached. Swipe gestures still follow the touch-screen capability. Refs #9892 * feat(app): size controls by the primary pointer on every platform Replace the Electron-only check with one rule everywhere: touch-sized when touch is the primary input, `(pointer: coarse)`, rather than when a touch screen exists at all. WebKit keeps touch primary on an iPad with a trackpad attached, so iPad Safari stays touch-sized; Chromium reports a fine primary pointer for a touch-screen laptop driven by its trackpad, in the browser and the desktop app. Native is always touch-sized. `hasTouchScreen()` and its `maxTouchPoints` fallback had no other caller and are removed. Swipe gestures still follow the touch-screen capability. Refs #9892 * test(app): exercise pointer sizing through the media source * test(app): cover touch laptops with a primary pointer --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com> |
||
|
|
a8cadae0ee |
fix(app): keep saved hosts when one entry can't be read (#9847)
The host registry was parsed with a strict array schema, so one host or connection this build couldn't read failed the whole array. The loader then removed @paseo:daemon-registry, and every saved host and password with it. That happens after a downgrade, or once a newer build saves a connection kind this build doesn't know. - Hosts and connections are read one at a time. One this build can't read is skipped, and the other hosts load. - Skipped entries are written back on every save, so the build that wrote them still finds them. Removing a host also drops what this build couldn't read for it. - A value that isn't a JSON array is copied to @paseo:daemon-registry:unreadable instead of being removed. - The stored-password migration still moves a connection password to its host when that host also has an unreadable connection. |
||
|
|
33259746db |
Stop timed-out watcher setups from rescanning large repos every 5 minutes (#9828)
* fix(server): abort timed-out watcher setups and back off their retries A watcher subscription that missed WORKSPACE_GIT_WATCHER_SUBSCRIBE_TIMEOUT_MS was abandoned but its startup scan kept walking the tree to completion, and recovery retried every five minutes forever, repeating the full scan each time. On a CPU-starved host that kept dozens of directories rescanning. - FileObserver.subscribe accepts an abort signal that stops the startup scan and rejects; WorkspaceGit aborts setups at the deadline and on dispose. - Consecutive setup timeouts extend the recovery delay past the 5-minute ladder cap, doubling up to one hour; an accepted subscription resets it. Degraded polling keeps its 5-60 s cadence meanwhile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(file-observer): keep an aborted observation's backend from starting Aborting a subscription closes its observation, which can happen while start() is still reading the root. The backend then started after its close had finished, and the native backend opened a root watcher that nothing would close. Co-authored-by: Spencer Shulem <1703265+Spshulem@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(file-observer): abort a subscription mid-scan in the abort test The test aborted before the backend started, so it passed with the abort listener removed. A tree past the Linux directory limit makes a scan that keeps walking fail on the limit instead of rejecting with the reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Spencer Shulem <spshulem@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> Co-authored-by: Spencer Shulem <1703265+Spshulem@users.noreply.github.com> |