A dev window open for a few hours took twice as long to open the sidebar
hover card as a fresh one. Three dependencies produced the cost:
- Unistyles 3.2.4 web rewrote the whole stylesheet on every class add or
remove. Backport upstream PR jpudysz/react-native-unistyles#1354 (3.8.0):
classes become CSSOM rule inserts and deletes.
- @gorhom/portal kept all portal state in one context value at the app
root, so each portal change made React search every mounted fiber. Portal
state now lives in a store each PortalHost subscribes to. Also backport
gorhom/react-native-portal#62 so closing one overlay no longer remounts
later overlays in the same host.
- React 19.2 development builds never cleared their render timings.
Backport the React 19.3.0 clearMeasures change.
The shared stylesheet e2e helper counts rules inserted, deleted and edited
for the whole interaction, so transient and in-place changes fail the
explorer resize spec.
Supersedes #10605.
Co-authored-by: Marcel W. Wysocki <maci.stgn@gmail.com>
Detaching a pane's active tab via splitPane or moveTabToPane previously dropped focusedTabId and fell back to the rightmost remaining tab in the strip, so dragging a file tab out after coming from tab A left the previous pane on tab B instead of putting A and the file side by side.
Track per-pane tab focus recency in memory and route both close and relocate focus transitions through one explicit policy table. Closing a tab keeps its existing parent-then-neighbor order, while splitting or moving a focused tab out of a pane returns the source pane to its most recently focused remaining tab (falling back to a same-pane parent tab and then an adjacent neighbor). Keeping the focus history in memory avoids adding a new key to the strict persisted layout schema.
* fix: bound import listing and clean up ACP probes
* fix(server): keep the full Import Session deadline
Start ACP probe cleanup when the agent manager stops waiting. Keep the 90-second window for listings that still have time to finish.
Co-authored-by: Chirag Singhal <76880977+chirag127@users.noreply.github.com>
* fix: show import provider errors and retry progress
* fix(server): return Import Session results before probe cleanup finishes
A timely ACP listing was discarded when process shutdown crossed the listing deadline. Return the completed rows and let the adapter finish reclaiming the probe.
* fix(server): preserve timely ACP listing errors during cleanup
A provider error returned within the listing window can still be displayed while its probe shuts down.
* fix(server): preserve timely ACP initialization errors during listing
* test(server): give Worktrunk integration fixtures time to finish
* fix(app): scope Import Session results to the selected host
Co-authored-by: derek <174018435+derek-geekdive@users.noreply.github.com>
* Keep pending session imports tied to their original host
* fix(server): reclaim ACP listing providers after launcher exit
---------
Co-authored-by: Chirag Singhal <76880977+chirag127@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: derek <174018435+derek-geekdive@users.noreply.github.com>
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
Workspace snapshots now carry parentWorkspace, the ref of the workspace whose agent created this one on the same host, null when the host records no parent. Based on #10330 by Sammy Patenotte.
Co-authored-by: Sammy Patenotte <sammy.patenotte@yahoo.com>
The catalog launched Factory Droid with `npx -y droid@0.249.0`, which
predates the models Factory added since, including Droid's current
default `gpt-6.2-sol`. Bump the pin to 1.20.0, the version the ACP
registry now publishes for Factory Droid. The registry still distributes
Droid as a pinned npx package with auto-update disabled, so the entry
keeps that shape and stays covered by `npm run acp:version-drift`.
Co-authored-by: Dhruv Singal <170742396+dsingal0@users.noreply.github.com>
* feat(app): add projects from one sheet with Existing, Clone, and New folder tabs
Add project used to start on a method list, so every use cost a step before
typing. The sheet now opens on Existing with the search focused, and Clone and
New folder sit one tab (or Mod+2/3) away, each keeping its own draft. A host
pill appears only when more than one host is online.
Rows are select-then-confirm: a tap or arrow key picks a row and the primary
button (or Enter) commits it, so a scroll-tap on touch never clones or opens
by accident.
The sheet owns its keys through AdaptiveModalSheet's new `keyboard` prop
rather than a child overlay registration, because a child at the same layer
loses to the sheet. Enter leaves a focused button alone (Close, a tab, Add
host) so keyboard users can still activate it.
Inputs focus on open only when a hardware keyboard is present; on a phone the
focus popped the keyboard and the bottom sheet jumped between snap heights on
every tab switch.
Searches keep the previous results while the next request is pending, so the
list no longer flashes to a loading state on each keystroke.
* fix(app): keep Add project results, selection, and submissions tied to their host
Searches now answer only for the host and query they were sent for. With
keepPreviousData, switching host showed the previous host's folders as
settled results, and Open project sent one host's path to the other. A
failed request no longer leaves a spinner, an old query's error no longer
shows while the next one loads, and directory search errors from the host
are shown instead of "No matching folders".
The picked row is stored by id instead of position, so a search refresh
cannot move the selection to a different folder or repository. Focusing a
row picks it, so Enter on a focused row adds that row.
A submission belongs to the open sheet and its host. Closing the sheet or
losing the host abandons it, so a late result neither navigates away from
where the user went nor blocks the next submission.
New folder and Clone default to a parent known to exist (last used, a
recent project's parent, or home) instead of ~/dev, and the Clone preview
drops a trailing .git like the host does. Tabs and rows are locked while a
submission runs, and tabs whose host lacks the capability are read-only.
* fix(app): don't open a stale Add project row, keep drive roots in Location
Enter while a new search is pending no longer opens a row from the
previous search; typed paths and URLs stay usable. Location derived from
a project at a drive or filesystem root keeps the root separator (C:\\, /).
* fix(app): keep Location on a pending search, reject drive-letter folder names
Enter in the Location picker no longer confirms a folder from the
previous search while the new one runs; a typed path still confirms.
Combobox gains remoteSearchPending for this. New folder flags names
like "C:repo" inline, matching the host's rule.
* fix(app): don't swap a dropped Add project pick for the first row
The first row is the default only while the user has not picked one.
When a new answer drops the picked row, nothing is active and the
primary action stays disabled until the user picks again.
* fix(app): keep Add project on the chosen host when it disconnects
The sheet no longer moves the draft to another online host when the
chosen one drops. It stays on that host, shows "<host> is offline", and
blocks submit until the host returns or the user picks another one.
* fix(app): block the native Go key while the Add project host is offline
Each tab's view is gated once, so the footer button, Enter and the
text field's submit key all read the same unavailable submit.
* fix(app): disable Browse while the Add project host is offline
* fix(app): don't default Add project Location to a share's server name
A project at a Windows share root (\\\\server\\share) has no parent folder,
so the default Location falls back to the next project or ~.
* feat(app): find agent profiles by searching models and the Command Center
Typing in the model picker used to hide profiles, so a profile could only
be reached by clearing the search. Search now lists matching profiles
above matching models, matched on the profile name and its summary, so
searching a model also finds the profiles built on it.
The Command Center offers the same profiles as "Profile › <name>",
applied through the picker's applyProfile. Profiles are never shown as
selected: applying one writes its values and nothing stays bound to it.
* fix(app): keep profile search results scrollable and profile ids unique
A provider search that matched only profiles rendered them outside the
model list, which owns scrolling in the popover, so matches below the fold
could not be reached. They now go through the list with no model rows.
The daemon stores the profile list as given, so a hand-edited config can
repeat an id. The Command Center registry rejects duplicate ids and threw
while the composer mounted. The picker now keeps the first profile per id,
which is the one applyProfile already resolved.
Agents often write drafts as quotes meant to be pasted elsewhere. A plain
quote now has a copy control on web, desktop, Android and iOS. It copies
the quote's body without the `>` markers and with its nested Markdown. A
nested quote, a code block or a Mermaid diagram inside it keeps its own
control. Admonitions get no control.
Web reads the rendered quote at press time, so a streaming quote copies
what it shows, and writes the same two clipboard flavors as selection
copy. A rendered Mermaid diagram copies as the fence it shows, and an
admonition inside a copied quote copies as its `> [!TYPE]` source. Code
blocks and quotes share one copy button with a Copied state and an error
toast when the clipboard refuses the write. On compact layouts the
control is always visible in a band above the quote body. On wide
layouts it shows on hover or focus and the quote keeps a right gutter.
Native code blocks and quotes share one header copy control with the
Lucide Copy glyph. A quote reserves the code block's header band above
its body, so the control never covers text at any font size. Native copy
emits the quote body as written, and a copied fence grows longer than
any fence inside its code.
Supersedes #9429 and #9319. Refs discussion #9303.
Co-authored-by: Pedro Vieira <pedro.vieira@dremio.com>
Co-authored-by: Phieu Dinh <phieu@fiu.one>
* fix(app): reveal chat with tall pending cards
The initial scroll can settle inside the footer, where no rows need to be measured. Run the layout readiness check before allowing cached ranges to skip it.
* test(app): cover cached range during initial list placement
Exercise an observed end offset with measured rows in the buffer. Canceling the initial scroll must complete readiness even when the render range is already cached.
* fix(app): virtualize chat turns that exceed the mounted window
- Desktop web aligns the mounted tail to the current turn, so one long tool run stayed fully mounted and stalled the chat open.
- Cap that rewind at 60 rows for the web virtualizer. A larger minimum still wins, and history paging plus the replica cache still keep a whole turn.
* test(app): read expanded turns across the virtual window
Verify every command remains accessible while scrolling and after older history loads. Requiring all expanded rows in the DOM at once contradicts bounded desktop mounting.
Co-authored-by: luke <luopeihuan@gmail.com>
* Verify older history appears before rechecking turn expansion
---------
Co-authored-by: luke <luopeihuan@gmail.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Supersedes #5787.
- Add best-effort daemon hardware detection (macOS ioreg/sysctl, Linux containers, WSL, device-tree boards, cloud/VM DMI, SMBIOS chassis) exposed as optional `machineKind` on `server_info` and `/api/status`.
- Add configurable per-host icons in Host Settings -> Appearance (`Auto` plus 9 icons across all 9 locales), keeping `icon` omitted while untouched for rollback compatibility and preserving unknown future icons on disk.
- Redesign `HostPicker` and `HostChooserModal` with resolved host icons, connection type (`Local`, `Tailscale`, `Relay`, `SSH`, `Direct`, `Via`) + endpoint, on-demand round-trip latency, aligned leading and content rails, and full keyboard navigation.
- Update the website host mockup to match.
Co-authored-by: Taras Kornichuk <dread9ko@gmail.com>
* fix(git): offer Push and Pull for a branch whose remote is not origin
A checkout whose only remote has another name, with main tracking that
remote's main, got no Push, Pull or Pull and push. The app gated all three
on hasRemote, which is true only when origin is configured, and the
daemon's pull refused to run without origin.
Neither action needs origin. The daemon now reports where each one goes for
the current branch (pullRemote, pushRemote) and the app offers the actions
from those. One resolver picks the push destination for both the status and
the push, so the offer and the push cannot disagree.
Without origin, Push follows the upstream only when the upstream branch has
the branch's own name and git pushes the branch to that remote. A branch
such as feature tracking upstream/main can be pulled and is not pushed.
With origin, every push goes where it went before.
firstPushRemote stays on the wire for apps that predate pushRemote.
* fix(git): follow Git's own push destination when origin is missing
Without origin, Push compared the upstream's remote with the remote Git
pushes the branch to. That missed a push refspec: with
remote.<upstream>.push set, plain `git push` updates another branch, and
Paseo still updated the upstream. A regular checkout with a push refspec on
branch.<name>.pushRemote was pushed there and stayed ahead of its upstream.
Push now asks Git where `git push` sends the branch (%(push)) and follows
the upstream only when that is the upstream. This also covers
push.default. A Paseo worktree keeps the push refspec Paseo configures for
a PR checkout.
Pull no longer requires a configured upstream before it runs. Git decides,
so a branch with no upstream in a single-branch clone pulls again.
* fix(git): compare the push remote by name when origin is missing
Push compared Git's push destination with the upstream as remote-tracking
refs. Two remotes whose fetch refspecs map onto the same tracking namespace
give the same ref for different repositories, so a branch Git pushes to one
remote was sent to the other. The remote Git pushes to is now compared by
name as well.
* fix(git): leave a matching-mode push to the user when origin is missing
Under push.default=matching, git push sends a branch only when the remote still has it. The checkout's remote-tracking ref can outlive a branch deleted on the remote, so the daemon cannot tell from local metadata that the push would go to the upstream, and its explicit push would recreate the branch. Without origin, Push is now refused in that mode.
* fix(git): offer Push for never-pushed branches and non-origin remotes
The Changes pane decided whether to offer Push from two daemon fields that
answered a different question. `aheadOfOrigin` is null both when a branch has
no upstream and when its upstream was deleted, so the app could only treat
null as a first push inside Paseo worktrees; a never-pushed branch in a
regular checkout got no Push. `hasRemote` is true only for a remote named
origin, so a branch tracking any other remote got "not connected to a remote"
while the daemon's push would have used the tracked remote.
The daemon now reports the two facts the decision needs: `upstreamState`
(tracked, none, gone, unknown) and `pushRemote`, resolved by the same
function `pushCurrentBranch` uses, so the button and the push cannot
disagree. A deleted upstream stays out of first-push in regular checkouts
so Paseo does not silently re-publish a branch whose remote copy was removed;
Paseo worktrees keep re-publishing, as before.
Both fields are optional on the wire. Against an older daemon the app keeps
the previous rule, tagged COMPAT(checkoutPushTarget).
* fix(git): keep a published branch out of first push in single-branch clones
A `--single-branch` or `--depth` clone keeps no remote-tracking ref for a
feature branch, so git reports a blank upstream even after `push -u` set
`branch.<name>.remote` and `.merge`. The daemon read that blank as "never
pushed", and a regular checkout then offered Push, which re-created the
branch after it was deleted on the remote.
A blank upstream is now "none" only when no upstream is configured. A
configured upstream git cannot resolve is "unknown". Paseo worktrees keep
publishing in that state, as they did before upstreamState existed.
* fix(git): do not push to the upstream when git pushes the branch elsewhere
With `branch.<name>.pushRemote` or `remote.pushDefault` naming a fork, git
pushes a branch that tracks `upstream/main` to the fork. The daemon ignored a
push remote that has no HEAD push refspec and pushed HEAD to the tracked
branch instead, which is the shared base. Offering Push for remotes not named
origin made that reachable in checkouts that have no origin.
The push target is now empty when git's push remote differs from the remote
the daemon would use, so status reports no push remote and the push refuses
with a message that names git's push remote. Push remotes Paseo configures
itself carry a HEAD push refspec and are unaffected.
* fix(git): withhold Pull and push when Push has no remote to send to
Pull and push checked only that origin exists, so it stayed available when the daemon reports no push remote. It then pulled, which can create a merge commit, and failed at the push. It now uses the same push remote check as Push.
* fix(git): do not extend pushes to a differently named upstream branch
The daemon pushes a tracked branch to its upstream branch whatever that
branch is called, so `feature` tracking `main` pushes to `main`. The app
offered Push only in checkouts that have origin. Reporting a push remote for
any tracked remote made the same push reachable without origin, for example
`feature` tracking `upstream/main`.
Without origin, the upstream is now a push target only when its branch has
the same name as the local branch, which is the push git itself makes by
default. Checkouts that have origin behave as before.
* fix(git): limit the Push fix to never-pushed branches
Push for branches that track a remote other than origin is removed from
this change. Supporting it means following Git's push settings
(branch.<name>.pushRemote, remote.pushDefault, push.default) for every
remote, and each review round found another setup where the push would
have gone to the wrong place.
The daemon's push is the same as before this branch again. What stays is
upstreamState on the checkout status, which lets the app tell a
never-pushed branch from one whose remote copy was deleted, and the app
rule that offers a first push in a regular checkout.
* fix(git): withhold first Push when git pushes the branch to another remote
The daemon publishes a branch with no upstream to origin. Git picks the
remote for a push from branch.<name>.pushRemote, then remote.pushDefault,
so in a fork setup `git push` sends a new branch to the fork while Push
sent it to origin. Offering a first push in regular checkouts made that
reachable there.
The checkout status now reports firstPushRemote: origin when git would
push the branch to origin too, null otherwise. A regular checkout offers
a first push only when it is set. Paseo worktrees and the daemon's push
are unchanged.
The never-pushed browser test read the branch's upstream as soon as the
remote had the branch. Git writes the upstream after that, so the test
now waits for it.
* fix(git): check the first push destination again before pushing
The app offers a first push from a checkout status that can be older
than the git configuration. If remote.pushDefault or
branch.<name>.pushRemote changed after the status loaded, Push still
published the branch to origin.
The daemon now makes the same check when it pushes: in a regular
checkout, a branch with no upstream is published to origin only when git
would push it there too. Otherwise the push is refused with a message
that names git's remote. Paseo worktrees, and branches whose upstream is
a local branch, push as before.
* fix(git): describe a missing upstream without blaming the remote
A branch can track a local branch. When that branch is deleted, git reports the upstream as gone, and the Push menu said the branch was deleted on the remote, which never happened. The message now says the tracked branch no longer exists, which is true for a local and a remote upstream.
* test(server): expect the Paseo home in the session push call
The checkout session now gives pushCurrentBranch the Paseo home, so the push can tell a Paseo worktree from a regular checkout. The session test still asserted the old single argument.
* fix(git): read a branch's Git settings under its real name when a tag shares it
With a tag of the same name, git spells the current branch heads/<name>. The daemon used that spelling to read branch.<name>.* settings and the branch ref, so it found none of them. A never-pushed branch set to push to a fork was reported as publishable to origin and was pushed there, a branch whose remote copy was deleted was reported as never pushed, and a branch tracking a fork was pushed to origin.
The status and push paths now read those settings and the ref under the name from the symbolic HEAD ref. getCurrentBranch, the branch name sent to clients, and the refspec of the first push keep git's short spelling, which is the right one for a revision.
* fix(hermes): show the full command of Hermes terminal calls
Hermes titles a terminal call with its own summary ("terminal: echo ... + 5
commands") and sends the full command only as "$ <command>" start content,
which the completion update replaces. It sends no rawInput, so the generic
ACP adapter fell back to the title and the full command was never stored.
Hermes now runs as a bundled runAcpProvider plugin. Its terminal transformer
lifts the start text into input.command and carries it across the
completion through context.previous; any other shape passes through, so an
upstream format change shows the title again instead of breaking.
The plugin ACP shim now builds the standard row for each ACP tool kind, so
read/search/fetch rows keep their shape after the move. Transformers still
see raw input, output and content, and a detail they set wins.
Moving Hermes surfaced two regressions, both fixed:
- The activity curator printed "[Shell] null" for typed rows whose name
looks namespaced (Hermes titles contain ":"); the raw-input fallback now
applies only to unknown rows.
- Agents saved by the generic adapter stored Hermes session-mode IDs, but
the shim uses Hermes's edit_approval_policy config option as ACP prefers,
so resume failed with invalid_params. legacyModes translates them.
Legacy extends:"acp" Hermes configs migrate on load, keeping a custom
command, gated on server_info.features.hermesProvider.
* fix(acp): keep Hermes approvals, Auto Accept, and session import after bundling
Moving Hermes from the generic ACP adapter to the plugin ACP shim dropped
behavior the adapter had:
- Approvals were built without a detail, so the approval card had no diff.
Approvals with no rawInput also failed with "Invalid params".
- The shim had no unattended mode, and agents that saved the adapter's
`auto_accept` toggle sent it back to Hermes as an unknown config option.
Hermes now offers a Full access mode, and a saved `auto_accept: true`
resumes in it.
- Session listing read only the first page of `session/list`, so the import
picker lost sessions past the first 50.
- Edit rows whose result is text lost that text instead of showing it as
the diff, unlike the generic adapter.
* fix(acp): keep a mode chosen after a saved Auto Accept toggle
The generic ACP adapter's `auto_accept` setting stays in the agent's saved
options after the move to a bundled ACP provider. It put the agent back in
the unattended mode on every reopen, even after the user chose another
mode, so approvals stopped asking again after a reload. The toggle now
counts only while the saved mode is one the generic adapter wrote, which
the agent no longer offers.
* fix(acp): keep whitespace-only text in Edit rows
The standard Edit row read old and new text with the same helper as
titles and paths, which skips blank strings. An edit that replaces text
with spaces lost its new text, so the app drew it as a deletion. File
text is now kept as written, as the previous formatter did.
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.
* Keep the host settings action out of the host row's pressable
The gear sat in the row's trailing slot, which ComboboxItem renders inside its
own pressable, so the row was a button containing a button. HTML forbids that:
React aborts the press handling, which is why the first click on the host
picker produced a hydration error and only the second one opened anything.
ComboboxItem gains a trailingAction slot that renders beside the row's
pressable instead of inside it. The split row carries the hover and active
background, the pressable keeps the row's padding, and the action column sits
outside the click target, so the gear reaches host settings on the first click.
(cherry picked from commit ccff20dae74e7cb6f10612e39bf3b192c0ad00b7)
* fix(sidebar): let Enter activate the focused host gear
Combobox Enter handling was taking precedence over the focused trailing button. Leave Enter to that control so keyboard and pointer input open the same host Overview. Cover both paths through the desktop sidebar in Playwright.
* fix(sidebar): give the host gear priority over Enter shortcuts
Let the browser activate a focused host gear while the combobox keeps Enter out of the app shortcut dispatcher. Make the gear button fill its column so the highlighted edge opens settings too.
---------
Co-authored-by: ShalokShalom <shalokshalom@protonmail.ch>
* 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.
* fix(app): let iOS sheet bodies expand and collapse their sheet
PaseoScrollViewComponentView defined a private helper named contentView,
which overrode RCTViewComponentView's contentView getter. Gesture-handler
reads that getter to choose the view a gesture binds to, so a bottom
sheet scroll view's native gesture bound to its content child. Its pairing
with the UIScrollView pan failed, and below the top detent the sheet
locked scrolling while body drags no longer moved the sheet: the
workspace tab picker, Usage and tool detail sheets stayed stuck at their
first height. Renaming the helper restores the inherited getter.
* test(app): cover dragging the iPhone tab switcher sheet by its list
The sheet exposes its rows to XCUITest as one element, so the flow taps
fixed points that hit a row only at the expected sheet height and asserts
which tab opens. It fails at the expansion step without the scroll view fix,
and at the final step when the collapse swipe is removed.
Keep every live floating-panel host registered under its name. When one host unmounts, the surviving workspace can still position the slash and file pickers.
Closes#8945.
Co-authored-by: likaixuan <likaixuan@mucang.cn>
* feat(app): add Archive workspace to the mobile workspace actions menu
The compact header's actions menu had no way to archive the open workspace; it
was only reachable from the sidebar row or the keyboard shortcut. The route-keyed
archive logic behind the shortcut now lives in useActiveWorkspaceArchive so the
menu and the shortcut share one path (confirmation, undo toast, redirect).
* fix(app): redirect after archive from where you are now, not where the header was
The archive starts after the host check and confirmation. The header that began
it can be gone by then, and its last-rendered route would still match the
archived workspace, replacing the workspace you had since opened. Read the
current selection from the navigation owner when the archive starts.
* fix(app): skip the post-archive redirect when you have left workspace routes
The last-remembered workspace selection survives opening Settings, so an archive
that finished while Settings was open still redirected away from it. Read the
focused route instead, which is null on any non-workspace screen.
The Turn stats button narrows the timing column. On web, preserved spaces at soft wraps extend the timing text range past the button. Collapse wrapping spaces for the timing labels and include Turn stats in the existing hover stability check.
* feat(providers): let providers report session and turn metrics
Providers know things about a session and a turn that Paseo cannot derive:
timing, token flow, cache use, cost, the model that answered. They can now
report them as label/value rows that Paseo carries to clients unchanged, so
each provider decides which metrics make sense and how they read.
Session metrics live on the agent record and snapshot. Turn metrics are
stamped on the turn's footer row (last assistant message, else last tool
call) so they survive reload, pagination and a daemon restart, and so the
live turn_completed event and a later timeline fetch agree. Provider history
replay restores both.
Metrics are sanitized once where they enter the agent manager. The wire
schemas validate whole messages, so one malformed row from a provider would
otherwise make clients drop an entire snapshot, turn event or timeline page.
A live completed turn with no Model metric gets the agent's model, so every
provider shows model attribution before it is instrumented. Replayed turns do
not: they may have run on a different model than the agent has now.
Plugin providers publish session metrics behind a negotiated
`session.metrics` capability because an older daemon closes a connection
that sends an event type it does not know. Turn metrics ride an existing
event that older daemons strip, so they need no gate.
The wire additions are optional fields on existing schemas only.
* feat(providers): report session and turn metrics from OpenCode, OMP, Pi and Claude
Each provider now attaches metrics to turn_completed and emits
session_metrics_updated, live and when history is replayed.
- Live turns end on the adapter's clock. A provider's message timestamps
can come from another clock.
- Tool time merges overlapping runs, so parallel tools count once.
- A total that is missing any part is hidden, so a partial total is
never shown.
- Replayed history reports metrics only for turns that finished, which
matches live, where failed and interrupted turns report none.
- Claude reports cost as a running total for each query(). A resumed
query starts that total from a saved one, so a turn's cost is the
change since the previous result of the same query. The first turn of
a query shows no cost.
- Claude transcripts do not record result messages, so replayed Claude
history has no turn metrics.
- Session metrics come from each provider's own cumulative counters. The
cache hit is the last reply's or the last turn's, because a session-wide
figure blends prompts from before and after compactions.
* feat(app): show provider session and turn metrics
Session metrics appear in the context window details, between the context summary and the
account usage cards. A provider-reported Cost row replaces the app's own session cost line.
Each completed turn with metrics gets a stats button in its footer: a hover card on web, a
press-opened tooltip on native wide screens, and a sheet on compact screens. The context window
sheet becomes a shared DetailsSheet so both use the same content-sized sheet.
Metrics ride on the row that hosts the turn's footer (the turn's last assistant message, else its
last tool call), the same row the daemon stamps. Live turn_completed events and timeline pages
both stamp that row, so a refetch agrees with what the live event showed.
The daemon updates session metrics without bumping updatedAt, like usage, so a stale buffered
upsert may still carry the newest metrics and is accepted for that field.
* fix(app): keep a turn's stats after the cached timeline reloads
The local timeline cache dropped turnMetrics when it saved a turn's footer row. After a page
reload the cached rows painted without the stats icon, and the catch-up fetch had no new
entries to stamp them from.
* fix(providers): keep imported session stats and never count a steered turn short
Importing a Pi, Oh My Pi or OpenCode v2 session dropped the stats the provider returned with its
history, so imported chats showed none until a forced replay. Import now carries them the way
replay does.
Replaying a Pi or Oh My Pi transcript read a prompt that steered a running turn as the start of a
new turn, so the steered turn's stats counted only the steps after the steer. A turn that follows
one ending on tools now reports no total, because the transcript reads the same as a stop and a
new prompt.
* fix(providers): keep stats through merged messages and plugin imports, start Pi first-token timing at the request
A message the timeline merges from several chunks keeps the stats stamped on its last chunk. Plugin session imports carry the stats the plugin replayed, through the same history reader the other providers use. Steers queued together after an unclear turn stay unclear instead of attributing the final reply to the wrong turn. Pi measures time to first token from the request, not the first reply header.
* fix(providers): carry a turn's stats onto the message the timeline merges from text chunks
The previous change put the carry-over in the reasoning merge. The assistant message merge dropped the stats of its last chunk, so an imported reply of two text blocks lost its Turn stats button.
* fix(providers): carry a turn's stats onto the tool card the timeline merges from updates
An imported turn that ends on a tool call stamps the stats on the tool's last update. The tool merge kept the first update's fields, so the stats were lost.
* fix(opencode): replay no session stats for a session that has none
An empty OpenCode session replayed a session stats event with no metrics, which broke the empty-history check in the versioned runtime test.
* feat(usage): enable sidebar usage summary by default and add dedicated Sources list
Show the sidebar Usage summary by default instead of requiring opt-in in
Appearance settings, while honoring explicit off preferences and continuing
to hide the row when no enabled source has pinned windows.
Let usage sources declare optional provider hints (`providers` on the
registration and `provider` on discovered accounts) so the daemon can mark
reports `defaultEnabled: false` when their hinted providers are neither
enabled nor installed, keeping usage sources decoupled from agent providers
while avoiding clutter from leftover credentials.
Move per-source show/hide controls out of individual card headers into a
dedicated `Sources` submenu inside Usage Settings (with tri-state
`cardVisibility` preferences migrating legacy `cardsOff`) so disabled
sources stay out of the main card list.
* fix(usage): resolve provider hints per report, refresh on forceRefresh, and clarify inactive copy
Resolve each usage report's provider activity hint in parallel with its
fetch and enforce a real timeout deadline in `isProviderActiveForUsage` so
a slow provider probe never holds back unrelated reports or hangs past the
deadline on non-abortable plugin RPCs.
Give the availability hint a 5-minute freshness TTL and re-probe when
`forceRefresh` is requested, retaining the fresher probe result across
subsequent normal reads until a newer snapshot or TTL expiry supersedes it.
Rename the default-off Sources sublabel from "Provider not installed" to
"Provider inactive" across all locales so it accurately covers both
disabled and unavailable providers.
* fix(usage): share provider availability reading across snapshot publishes and usage probes
Record both `ready` and `unavailable` global snapshot publications into
`usageActivityCache` so `isProviderActiveForUsage` reads one timestamped
availability cache instead of relying on `fetchedAt` (which unavailable
snapshot entries do not carry).
* fix(app): add MenuCheckboxItem so Usage Sources toggles expose checked state to screen readers
Introduce `MenuCheckboxItem` / `DropdownMenuCheckboxItem` backed by
`accessibilityRole="checkbox"` so toggleable menu rows expose their checked
state in Chromium's accessibility tree and native screen readers while
leaving existing `MenuItem` roles unchanged.
* fix(app): keep compact menu sheet rows in Tab order and activate on Space
Use `tabIndex={0}` for `MenuRow` in `sheet` presentation (leaving
popover roving arrow-key navigation at `tabIndex={-1}`) and handle Space
in web sheet rows since React Native Web only activates Space for
`role="button"`, not `menuitem` or `checkbox`.
* test(usage): include provider hint in claude-usage-source keychain and stores assertions
* perf(ci): cut PR CI wall-clock time across server tests, Playwright shards, and workflow setup
* fix(ci): guard empty apt cache copy, use 100% Vitest workers in CI, revert Playwright to 2 workers with built supervisor
* feat(providers): add docs links, sign-in facts and a tidier provider page
A user whose Antigravity models looked stale had no way to find out why
without asking in chat. agy 1.5.14 picks its sign-in from the
environment: with SSH_CONNECTION, SSH_CLIENT or SSH_TTY set it reads a
token file, otherwise the OS keyring
(google-antigravity/antigravity-cli#1336). The daemon is often started
outside SSH while the user tests agy over SSH, so the two can be signed
in to different accounts and list different models.
- The Antigravity status reports whether agy runs in an SSH session, and
the diagnostic report for plugin providers now includes the resolved
command, path and version like built-in providers do.
- Providers carry an optional docsUrl (protocol field, plugin SDK
registration, built-in definitions). The provider page links it from
Troubleshooting, and the Antigravity page documents the sign-in
mismatch.
- Provider and project settings get a breadcrumb title. Refresh moves to
the Models header, the model list scrolls inside a fixed height with a
full-width search, and section headers keep one spacing whether or not
they hold an action.
- A switch no longer makes its row taller than the track, and every
settings row is at least as tall as one with a switch, so a switch row
and a text row line up.
* fix(providers): report Antigravity's sign-in when ACP does not start
A sign-in problem can be what stops agy's ACP server from starting, so
the diagnostic report now shows the SSH session rows in that case too.
The plugin provider diagnostic test no longer compares the daemon PATH
and shell rows, which differ per host (Windows reports ComSpec).
* fix(server): show the same provider version in the report and Installation
The plugin diagnostic read the version by calling the provider's
inspect itself with a 10s deadline, while the Installation row reads it
through the installation service with a 20s deadline and a cache. A
version check between 10 and 20 seconds showed in Installation and as
an error in the report.
The snapshot manager now hands getDiagnostic an inspectInstallation
that reads through the installation service, so both show one answer
and agy --version runs once for both.
* feat(app): give rows that open something the same height as other rows
Detail rows and collapsible row headers reserved a button's height so a
list where only some rows held a switch kept one height. Now that every
settings row is at least as tall as a switch row, that reserve only made
rows like Diagnostic report and Docs taller than their neighbours.
* test(app): compare rows that open something with text and switch rows
* feat(app): size the provider icon to the page title
* fix(app): scale the provider title icon with the interface size
* Refresh enabled provider catalogues in the background every 30 minutes
A long-running daemon cached discovered models until a manual Refresh or a
restart, so a server-side model rollout stayed invisible. The daemon now
refreshes each enabled provider about every 30 minutes, one provider per
staggered slot. A recent refresh pushes the next one back. Background
refreshes join discovery already in flight, publish only changed
catalogues, and keep a ready catalogue when a probe fails.
Co-Authored-By: Claude <noreply@anthropic.com>
* Keep background refresh slots independent and its probes soft
Ticks no longer wait for a refresh to settle, so one slow provider cannot
delay the others. A provider with a background refresh still running is
skipped. The due check uses a fixed one-second timer slack instead of half
a slot, so a manual refresh always pushes the next probe a full interval.
Background probes pass force: false so OpenCode keeps its shared server.
A result that is not ready keeps a ready catalogue, which covers plugin
status probes that report a failed startup as unavailable.
Co-Authored-By: Claude <noreply@anthropic.com>
* Keep a ready catalogue when a background refresh returns a partial one
Claude falls back to its curated list without discovery-gated models when
model discovery fails or times out. That result is ready, so a background
refresh published it and Mythos left the picker. Providers now mark such a
catalogue incomplete, and a background refresh keeps the ready catalogue it
would have replaced. A manual refresh still publishes it.
Co-Authored-By: Claude <noreply@anthropic.com>
* Kill OpenCode servers whose startup is pending at shutdown
A probe still allocating its port when the daemon stopped spawned its
OpenCode server after shutdown returned, and the process outlived the
daemon. Background refresh makes that overlap likelier. Shutdown now waits
for pending startups and kills the generations they produce.
Co-Authored-By: Claude <noreply@anthropic.com>
* Stop running probes before provider shutdown
A probe checking availability when the daemon stopped could still go on to
discovery and start an OpenCode server after provider cleanup returned.
The manager now aborts every running probe through its refresh signal when
it stops, and shutdown waits up to ten seconds for them to settle before it
shuts down provider clients.
Co-Authored-By: Claude <noreply@anthropic.com>
* Refuse OpenCode spawns from operations begun before shutdown
A rotation accepted before shutdown waited for the old server to stop and
then started a replacement after cleanup returned. The server manager now
counts shutdowns; every operation that can start a server records the
epoch it began in, and the spawn step refuses once a shutdown has passed.
Operations begun after shutdown still start, since the manager is a
process-wide singleton.
Co-Authored-By: Claude <noreply@anthropic.com>
* Keep manual refresh precedence over concurrent background refreshes
* Avoid eager provider snapshot downloads for unobserved directories
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(app): ignore slash menu picks made before the menu filters
On web the cursor reaches the autocomplete after paint. A Tab or Enter
pressed right after typing could pick from the unfiltered list, where
/exit is the default highlight, and archive the agent. Skip the pick when
the typed command no longer matches the query the menu was built for.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): limit the stale slash menu guard to key presses
Clicks also pass the live input snapshot, so the guard could drop a
click on a visible option while the cursor update was still pending.
A click picks what the user sees. Check for a stale menu only when Tab
or Enter selects.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: 3ae3ae <ogyshjsm@naver.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Bae Seongmin <83870598+3ae3ae@users.noreply.github.com>
* fix(app): allow edited New workspace retries and unify composer errors
New workspace and the workspace setup dialog reused the mount's raw draft
or creation ID as the workspace.create idempotencyKey. When workspace
provisioning failed before readiness, the daemon kept that key's request
fingerprint on disk, so editing isolation, project, branch, prompt, or
model on the same screen failed with workspace_request_key_conflict.
Deriving the workspace idempotencyKey with draftCreationKey(id, request)
matches #9534 for agent drafts: unchanged retries (double-click,
reconnect, or resending as-is) keep one key, while edited retries start a
new workspace creation without requiring daemon or protocol changes.
Also move composer submission errors into one <Alert variant="error"
size="sm" /> slot owned by <Composer> (directly above the input, and in
ComposerFullscreenFooter when fullscreen) so New workspace, Workspace
draft tab, Workspace setup dialog, and active chat share the composer's
outer and inner rails without duplicate error toasts.
* fix(app): include launch target in creation key and toast background failures
Include launchTarget when deriving the New workspace creation key so
switching between blank Chat and a promptless terminal profile after a
pre-ready failure starts a fresh creation instead of replaying the failed
receipt.
Also show toast.error when workspace creation fails after the user has
left New workspace or closed WorkspaceSetupDialog, while keeping the
single composer alert with no duplicate toast when the form is still
visible.
* fix(app): avoid duplicate toast when handed-off agent startup fails
Once New workspace hands a ready workspace to its draft tab, the draft
tab awaits agentCreation.result and displays startup errors in its own
composer alert. Returning early after handoff prevents New workspace's
catch handler from firing a duplicate app-wide toast.
* fix(app): stop busy-heartbeat adaptive switches and back off online probes
Hosts with multiple saved connections still replaced healthy relay links
during active use: every 120 seconds the runtime compared an idle alternate
probe against the single latest heartbeat RTT on the busy active socket
using a fixed 40 ms threshold, then tore down the live socket before
connecting the replacement (leaving the host in connecting for ~2 s).
Use the 60-second rolling minimum of active heartbeats as the baseline,
require at least max(40 ms, 35% of baseline RTT) improvement to switch,
exponentially back off inactive online probes from 2m to 30m while the
active connection keeps winning (resetting on candidate win, reconnect,
connection list changes, or foreground verify), and connect the replacement
before disposing the live client on adaptive switches.
Closes#9149
* fix(app): preserve active listener, recheck candidate, and refresh caches on make-before-break upgrade
Keep installed active-client status listeners bound to `this.activeClient`
rather than `switchRequestVersion` so a pending or failed speculative
upgrade never mutes disconnect events on the active socket. Recheck that
the target connection still exists and matches before and after disposing
the old client so removing or editing an endpoint during handshake aborts
the upgrade. Track the last online `connectionEpoch` in `HostRuntimeStore`
so make-before-break upgrades that stay `online` still trigger reconnect
cache invalidation and history sync generation bumps.
The daemon already schedules catalog discovery when provider configuration changes. Waiting on a second discovery kept the Add sheet open after the model was saved.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(app): keep the composer focus hint off the placeholder
The web composer draws its focus shortcut hint over the input's top-right
corner. When the placeholder and the hint did not fit on one line, as in
French at a phone width or with the longer desktop placeholder, the hint
was drawn on top of the end of the placeholder. The input now reserves
the hint's width as right padding while the hint shows, so the
placeholder wraps before it.
Closes#6191
* test(app): wait for the focus hint padding before checking overlap
* Keep focus hint padding in sync with composer layout
Reveal the shortcut after the input reserves space for its label. Remeasure draft height when padding changes the available text width.
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(usage): clarify quota labels and show weekly forecasts sooner
* fix(usage): show the exhaustion time and keep exhausted bars red
* fix(usage): hide forecast text for quotas on track
* fix(usage): label quota times by local calendar date
* test(usage): keep the exhaustion clock test stable at midnight
* fix(app): let every split divider drag after panes are added to a resized row
Divider drags store sizes per group id, apart from the layout tree. A group
keeps its id when panes are added, so after resizing a row and splitting it
again the stored list had fewer entries than panes, and dividers past its end
could not move. Use the dragged sizes only while they have one entry per pane.
Closes#5893
* refactor(app): choose split group sizes at the call site
* test(app): take the page from the divider locator in the split resize spec
* test(app): name the split resize helper arguments
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
The forecast sat right-aligned and tone-coloured beside the reset line, so it
read as a second kind of information. It is now one more ' · '-separated
datapoint after the reset countdown and exact time; the meter keeps the tone.
* 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.
* fix(app): recover agent timelines after reconnect
Reconnecting resumed every hidden chat as soon as the visible chat settled, overwhelming the daemon when many tabs were open. Bound hidden catch-ups and give the visible chat priority. Refocusing a failed chat or foregrounding the app retries the timed-out fetch once per transition.
* fix(app): retain timeline retry paging policy
Carry the overflow policy with a failed request so retrying reconnect does not replay the entire backlog. Clear a failed attempt's parked follow-up so the scheduler can drain explicit retries without using the manual Retry indicator.
* fix(app): preserve history when a queued gap resumes
Choose the paging policy after a queued gap acquires its fetch slot. The tail that held the gap can establish coverage while it waits, so basing the policy on earlier coverage can unnecessarily replace history.
* Archive the active workspace from the shortcut while its sidebar row is collapsed
The workspace.archive handler was registered by each sidebar row and only
enabled on the selected row, so a collapsed project or status group left no
handler and the shortcut did nothing. Move it to one always-mounted handler
keyed on the active route selection, as #2299 did for the pin shortcut.
Fixes#10246
* fix(app): keep archive shortcuts available during another archive
A worktree teardown keeps the previous archive request pending after
the user opens another workspace. Read the active target from the
workspace list so the first archive only hides its own workspace.
Co-authored-by: hiennd <74246327+neihyud@users.noreply.github.com>
* fix(app): share pending archives by workspace
Hold an archive attempt from its checkout check through the daemon
reply. The row button and shortcut now share that attempt for the
same workspace, and another workspace can still archive while it runs.
* fix(app): preserve archive after undo and theme changes
The archive guard protects a workspace through confirmation and
dispatch. The optimistic workspace state takes over when dispatch
hides the workspace, so Undo can restore it for another archive.
Keep the shortcut host outside the appearance boundary so its
pending redirect keeps reading the active workspace after a theme
change.
* test(app): verify theme changes during workspace archive
Use the platform modifier for the theme shortcut and wait for the sidebar to remount before opening the next workspace.
---------
Co-authored-by: hiennd <hiennd@aidia.vn>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: hiennd <74246327+neihyud@users.noreply.github.com>
* fix(terminal): restore mobile scrolling and touch keyboard focus
* fix(app): keep a touch drag from refocusing the browser terminal
Builds on the contributor commit for the Android browser keyboard.
A touch drag now keeps the dismissed keyboard closed, and a tap
still opens it.
- Keep calling onFocus on every pointer-down, so a touch drag still
marks the terminal as focused and claims its size as before. Only
the input focus waits for a tap.
- Move the test tap into a helper.
- Leave the native fullscreen scrolling change, its tests, the
inertial gesture check, and the QA video out of this branch. They
belong to #7762.
Refs #9481
Co-authored-by: Tony <liutuo@outlook.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): keep an open keyboard open when you swipe the browser terminal
A touch drag blurred the terminal input to stop Android from reopening a
keyboard that Back had hidden. It also closed a keyboard that was open,
so scrolling while typing needed a new tap. Blur only when the visual
viewport shows no software keyboard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Preserve the Android terminal keyboard state on swipe
---------
Co-authored-by: Tony <liutuo@outlook.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>
* feat(usage): forecast quota remaining at reset
Show whether current usage will last until reset and how much quota is likely to remain. Anchor estimates to the last successful reading so the countdown does not move the projected runout between refreshes.
* fix(usage): keep quota forecasts tied to their readings
A cached provider observation must keep its own timestamp across refreshes. Hide forecasts after a failed request until a newer reading takes its place, and keep reset text within its column on narrow screens.
* fix(usage): hide stale forecasts after Refresh all fails
Store refresh failures with the cached readings they affect so card and list requests use the same forecast rule. Reports that arrive during a refresh retain their forecasts.
* test(usage): cover a timed-out Refresh all and retry
* test(usage): timestamp the expired-login refresh fixture
The expired-login result represents a new attempt. Give it a fresh timestamp so the UI can accept it without relaxing the guard against older reports.
* fix(usage): keep refresh errors visible alongside quota
Store request feedback with its refresh control. A newer report can restore the forecast while an overlapping failed request still needs to surface its error.
Keep one titlebar toggle mounted while Explorer opens and closes. Reserve its footprint in the active rail so native pointer clicks and the header tab sequence work, and verify clearance from the Windows window controls.
* feat(plugin): let plugin navigation focus the destination host in the sidebar
Plugins that link across hosts open agents and workspaces with
navigation.openAgent and navigation.openWorkspace, but the sidebar keeps its
host, project and label filters, so the destination can be hidden. Plugins
can't change those client-side filters.
Add an opt-in focusHost flag. With focusHost: true the client selects only the
destination host in the sidebar and clears project and label filters that
could hide it, keeping the grouping mode. Calls without the flag are
unchanged, and navigation.supportsFocusHost lets plugins detect support.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Normalize plugin navigation host IDs
* Preserve sidebar filters for removed hosts
* Focus the host returned by plugin navigation
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
* 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`.
* fix(commands): deduplicate provider slash commands by name
Antigravity ACP emits both its built-in slash commands and discovered skills in one available_commands_update without deduplicating colliding names (such as a local plan skill alongside built-in /plan). Both entries flowed through plugin ACP, plugin-provider, and mergeSlashCommandSources into Autocomplete's FlatList, triggering React's duplicate key error on .$plan.
Enforce unique command names (first-wins) at the plugin ACP, plugin provider, core ACP, and Codex boundaries so every daemon consumer gets a valid catalog, and claim provider command names in mergeSlashCommandSources and inline skill filtering so the app stays safe against older daemons.
* refactor(commands): enforce unique command names at daemon and app boundaries
Move slash-command deduplication from six per-provider and per-consumer copies to the two single boundaries: handleListCommandsRequest in packages/server/src/server/session.ts (covering live agents and drafts for every provider) and fetchAgentCommands in packages/app/src/agent-commands/use-query.ts (covering all app consumers, including against older daemons).
* chore(app): tag app-side command deduplication as a COMPAT shim
* fix(app): keep composer and chat column on the outline rail
Previously only WebStreamViewport reserved the 44px chat outline gutter and clamped right gutter on wide web panes (>= 918px), leaving the composer, floating track bar, and callouts at symmetric 16px padding. On Full width, on Wide (1200px) below 1320px pane width, and on Default (820px) between 918px and 939px, the composer extended off the timeline's vertical rail.
Move outline gutter ownership to a platform-split chat-rail module mounted at the chat pane surface. On web it measures the pane width once against the 918px threshold and publishes the shared left and clamped right gutters via CSS custom properties so composer, tracks, and callouts stay aligned with zero resize re-renders or dynamic Unistyles rules, while native stays a zero-hook pass-through. Removing direct outline measurement from AgentStreamView also stops ProviderSubagentPanel from reserving space for an outline it never renders.
* fix(app): keep outline prompt index across 918px crossings and exclude draft error from fullscreen rail