A close that ends at the index Gorhom's bookkeeping already holds is not reported through
`onChange(-1)`, and dismissing a sheet during its mount animation leaves that index at -1.
The workspace sheet then never closed its tab: the modal parked at -1 with its web backdrop
still covering the app, so every tap in the header was lost, including the tab counter and
the workspace menu.
`IsolatedBottomSheetModal` now reports a close animation that settles at the closed detent,
and workspace sheets feed both signals into one idempotent guarded close, so the
unsaved-changes prompt still runs at most once.
Covered by an e2e that dismisses a file sheet inside its mount animation: it failed 3/3
before the change and passes now.
The plugin page gated settings on the managed install list. Use the client catalog to resolve the contributed screen so that built-in plugins can open settings from their links.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
The ten-thousand-row pressure test's terminal program matched BURST and
echoed AFTER-CATCH-UP per stdin chunk. A PTY can split one input write
across reads, so the burst never ran and the pressured viewer never got
its recovery replay. Match against everything read so far.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(app): quiet the file tree indent guides in dark themes
The guides borrowed a text colour at half opacity, so they were bright on
dark backgrounds and their strength changed with each theme's text grey.
They now have their own colour, stepped from the sidebar background like
the hover and selected fills, so every theme draws the same weight.
* fix(app): keep tree guides visible off the sidebar
A solid color picked against the sidebar faded where trees sit on other
surfaces, such as the Jump to file sheet and workspace panes. The guide is
now translucent, calibrated to the same strength on the sidebar.
* fix(app): align compact search dock, fix single-provider scroll, and unify edit pencil
- Add card-row geometry (`variant="card"`) to SearchField and align the compact
sheet search footer inset with provider cards (`spacing[4]`) so the docked
search bar shares outer width, height, radius, icon slot, and text rail with
the cards above it.
- Render the lone provider's model list in `mobile-model-page.tsx` with
`SheetFlatList` inside a fixed-header `SheetListCard` so Gorhom's bottom-sheet
pan gesture no longer steals vertical drags on Android and users can scroll to
the final rows; remove the unused `SettingsCard` `shrink` prop.
- Extract a shared `EditProfilesButton` (pencil icon) alongside
`CustomizeProviderButton` so desktop and mobile Profiles and provider headers
all use the same pencil affordance instead of mixing "Edit" text and icons.
* fix(app): read sheet search footer style at render time
* feat(workflows): add @getpaseo/workflows package foundation (Slice 1)
* fix(workflows): preserve wakes during pause and prevent signal double-delivery
* feat(protocol): let older readers accept newer wire messages
A field or variant added by a newer daemon, app, or plugin made an older
reader reject the whole message: strict objects failed on any unknown key,
and one unknown tag in a list (a timeline item, a tool detail, a prompt
content block) failed the page, the RPC, or the provider event.
Wire objects now strip unknown keys, and readers parse through
safeParseSkippingUnknownVariants: when the only failures are unknown tags or
enum values inside lists, those elements are removed and the value is
validated once more. Schemas stay closed so consumer switches stay exhaustive
and the generated validators need no catch-all branch; the reader works on
issues, so the generated validator and Zod agree. An unknown variant outside
a list still fails that one message, flagged unknownVariant.
config.json stays strict through local strict copies so typos still fail, the
browser automation request stays strict so legacy tab targeting is rejected,
and plugin hook results stay strict so a host without wrap fails closed.
* docs(plugins): plugins read the provider protocol with the host SDK
The cold-start test fired the global read and three workspace reads
together. Each read resolves the plugin launch before it binds the
shared catalogue, so on Windows a workspace read sometimes bound first.
The probe then spawned in that workspace's cwd, which the test never
creates, and every target reported spawn ENOENT.
Start the global read, wait for its probe to spawn, then add the
workspace reads, as the snapshot refresh does.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(app): polish model picker stability, rails, and Agent settings profiles
Fixes post-redesign jank and surfaces profiles directly in Agent settings:
- Give model picker FlatList rows deterministic heights with getItemLayout, initialScrollIndex, iOS contentOffset, and synchronous pre-paint web scroll positioning so reopening a deep selected model or switching providers never flashes offset 0.
- Replace the swapped collapsed/expanded mobile accordion headers with one unified CollapsibleSectionHeader so toggling never shifts icons, labels, or chevrons.
- Tighten compact mobile model row horizontal padding from spacing[6] to spacing[4] so Model rows share the same rail as SettingsCard rows on Agent settings Home.
- Remove noisy model/profile counts from desktop rail rows, pane headers, and mobile section triggers while keeping counts on fold rows.
- Extract a collapsed, scrollable Profiles card onto Agent settings Home above Model (keeping unified search on the Model page) and match SettingsRowHeader trailing summary font size to its row title.
- Keep desktop single-provider pickers in the 360px single-pane layout with matching profiles above models instead of showing a two-row left rail.
* fix(app): share initial list scroll hook, apply Android contentOffset, and keep single-pane profiles on load/error
- Extract useInitialFlatListScroll in scroll-reveal.ts so desktop and mobile pickers share one implementation and apply contentOffset on both Android and iOS (ReactNestedScrollView applies pendingContentOffset during native layout before first paint, removing the 3-frame blank flash observed when re-expanding on Android API 35).
- Share orderProvidersForPicker between the desktop rail and mobile accordion sections.
- Keep single-pane profiles visible and actionable while the lone provider is loading or errored, with projection tests for both states.
#11137 attached daemon-internal uploadedImage metadata onto AgentPromptContentBlock
image entries so AgentManager could project user_message.images thumbnails.
Built-in providers copied only data and mimeType, but plugin-backed providers
forward content blocks verbatim into strict ProviderInputSchema validation,
causing every uploaded image sent to any plugin provider to fail with
unrecognized_keys: ["uploadedImage"].
- Remove uploadedImage from AgentPromptContentBlock and have resolveAgentPrompt
return { prompt, uploadedImages } separately.
- Thread uploadedImages alongside prompts through create, send, queue, and steer
paths in AgentManager, AgentMessageDelivery, and Session while stripping
daemon-only metadata before calling provider startTurn/steerActiveTurn.
- Advertise server_info.features.uploadedImageAttachments and gate app image
uploads on it so older daemons (through v0.18.1) keep receiving inline base64
vision blocks instead of degrading uploaded images to file-path text.
On iOS the composer dock rises with the keyboard through a native-driver
transform that never reaches the shadow tree. Pressability measures its
press region there, so a tap that drifted a few points left the stale
region and was dropped: Send, attach and the model selector often ignored
taps while the keyboard was open. The translate view now commits its
resting lift to the shadow tree once the keyboard settles.
On wide layouts the native model popover was placed against the whole
window and measured the trigger while the keyboard hid and reshowed for
the search field, so it opened over the keyboard. Combobox now adds the
settled keyboard height to its collision padding, which also re-measures
the trigger after the lift lands.
The daemon reported every exit between turns as lost work. Keep the
agent idle when the process exited cleanly and had no work to lose.
Preserve the order of failure and background cleanup when work was lost.
Co-authored-by: lucamzanon <luca.m.zanon@gmail.com>
The focused composer frame took the theme accent, a bright green outline
around the largest control on screen. It now steps from borderAccent to
surface4, a grey, and the hover step is gone: surface3 is fainter than
the resting border in the pure black theme, and surface4 on hover would
look the same as focus.
On Android and iOS, the image preview measured its file with React
Native's Image.getSize, which cannot decode SVG. The measurement
failed, the panel stayed empty, and the SVG never showed.
Measure with Expo Image's loadAsync and draw with Expo Image, which
decode SVG and raster images alike. The preview still paints nothing
until the size is known, and still appears together with its toolbar.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* perf(server): pre-filter workspace lookups before building descriptors
Single-workspace lookups through DaemonClient.findWorkspace (and workspaces.ref(id).refresh()) previously requested unfiltered pages of 200 workspaces, and WorkspaceDirectory.listFetchEntries hydrated descriptors and read paseo.json for every active workspace before filtering.
Pass the existing filter.query = workspaceId from DaemonClient.findWorkspace (requiring zero protocol changes and remaining compatible with older daemons) and pre-filter active persisted workspace records in WorkspaceDirectory.listFetchEntries before building descriptors or loading agent payloads. Live git branch names from workspaceRuntimeStore are resolved synchronously during pre-filtering so free-text queries preserve identical matching behavior.
* refactor(server): share workspace name resolver between descriptor builder and pre-filter
Have describeWorkspaceRecord, describeWorkspaceRecordWithGitData, and WorkspaceDirectory pre-filtering all call Session.resolveWorkspaceDescriptorName, and make resolveWorkspaceName required on WorkspaceDirectoryDeps so the pre-filter and descriptor name rules cannot drift.
The agent directory cache dropped metadata while keeping the cursor. Require metadata in cached snapshots so older rows trigger the existing agent directory refresh.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(terminal): let a Windows terminal start when ConPTY's worker is slow
node-pty starts a worker thread for ConPTY output and waits 5 s for it
to report ready. When the message comes later, it fails the spawn and
the program exits with code -1 before it runs. On a loaded Windows CI
runner this made "delivers MCP key tokens through in-process" find no
terminal at all. Patch the wait to 30 s; a worker that fails still
reports an error at once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(terminal): block the event loop from a check-phase callback
The old 5 s ConPTY timer now always runs before the worker's ready
message, so the test fails without the node-pty patch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
When an agent's thinking level was missing from its model's list, the
composer button, the picker's check mark and the facts line each fell
back to the list's first option. An agent on Extra High with a Claude
settings model (Low, Medium, High, Max) showed Low. The agent's level
now joins the list the controls read, so they show and check it.
Co-authored-by: Orcun Simsek <1612171+ortschun@users.noreply.github.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Open in Antigravity resolved `agy` first. agy is now the standalone
Antigravity CLI agent, so the editor never opened. Resolve the IDE's
`antigravity-ide` launcher (or the Antigravity IDE app) instead, and do
not treat Antigravity.app (com.google.antigravity), a separate app, as
the editor.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Show how to include agent targets in schedule listings
* fix(cli): show the schedule hint in every table format
Use the renderer's output settings so the table alias includes the same hint about agent-target schedules.
Co-authored-by: Shane Su <26364206+suniceman@users.noreply.github.com>
---------
Co-authored-by: Shane Su <26364206+suniceman@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
- Background catalogue refresh started full OMP sessions whose startup routing-hint calls were cancelled on close every tick (#11128).
- Pass --no-skills --no-session --no-title to fetchCatalog sessions only; agent sessions keep skills.
- Test that the flags apply to catalogue launches and not agent launches.
* fix(omp): keep the idle deadline on provider silence
- Honor agent_end.isTerminal: a queued continuation or async delivery no longer starts the 600 s failure clock; the final end owns the idle wait.
- Measure the deadline from the last provider event and suspend it while an extension-UI question or approval waits for the user.
- Abort the provider before failing a timed-out turn so the next prompt is not rejected with "Agent is already processing"; replace the runtime on the next prompt if the abort fails.
- Clear pending UI requests when the turn settles so idle runtime collection is not blocked.
Refs #8908.
* test(omp): prove the idle gate skips non-terminal agent_end
The first version observed getState counts, but the gate calls getState once before it blocks on the scheduler, so the assertion could pass on the old code. Count scheduler waits instead: the broken gate waits, the fixed one does not.
* fix(app): show focus on the composer frame
The composer frame kept its resting border whatever you did, so it was the
only text input that never showed hover or focus, and its 200ms
border-color transition on web never ran.
Focus now turns the frame's border the theme accent, as other inputs show
their focus ring. On web, hovering an unfocused frame raises the border to
surface4: the controlHover colour (borderAccent) is already the composer's
resting border, so reusing it would change nothing. Read-only and disabled
composers stay at rest. The phase comes from getControlInteractionPhase,
the helper the other inputs use, and hover follows docs/hover.md (pointer
events on the plain frame View).
* test(app): cover composer frame hover and focus
Reads the frame's settled border colour at rest, on hover, while focused and after blur.
The Claude listing heap test capped its child at 96 MB, but most of
that budget went to loading the modules. Since prompt attachments
import the file-upload module, agent.ts also loads the protocol message
schemas, about 50 MB more. The 14 MB listing then ran out of heap on
runs where GC ran late. The test now measures what the imports retain
in a first child, then caps the listing child at that plus 64 MiB. That
is still below the 128 MiB transcript, so loading a whole history still
runs out of heap.
The opening-scene tests advanced the paused page clock once, right
after the scroll. The scene starts a few page tasks later
(IntersectionObserver, then a React render and effect). When the clock
advance ran first, the scene started on a paused clock and the request
never appeared. The tests now advance the clock in 1 s steps until the
request shows.
CI also uploads the website Playwright results when that step fails,
so the next stall has a trace.
* fix(ci): let Docker and Desktop Packages runs on main finish
Each merge cancelled the packaging runs still going for the previous main commit, and the CANCELLED checks painted that commit red. #11192 fixed this for CI only.
* test(terminal): give slow Windows output time to reach the buffer
The test allowed 10s for 3000 console writes. Passing Windows CI runs take 0.7s to 9.5s, so a loaded runner crossed the limit. The suite allows 30s per test.
* feat(providers): choose which models pickers show first
Provider settings now let you check the models pickers should list first,
with Reset and Undo. Claude's previous releases are marked legacy so
pickers can fold them; the default model is never legacy.
shownModels is overlaid on the provider snapshot at publish time instead of
living in the provider definition's configuration. Anything in that
configuration rebuilds the client and rediscovers the catalog when it
changes, which a checkbox toggle must not do. The catalog is never trimmed,
so search still finds every model.
The settings list keeps its order while you check boxes and re-sorts only
on search, reload, reset or undo, so rows never move under the pointer.
Gated on server_info.features.providerShownModels.
* feat(app): browse models in a two-pane desktop picker
On wide layouts the model picker shows a rail of Profiles and providers
beside the open provider's models. Each provider lists its chosen models
first and folds the rest under "Older models" or "All models". Search
covers every provider and profile at once, ranks shown models ahead of
folded ones, and tags folded matches. Arrow keys move between the rail
and the list, and Escape clears a query before it closes the picker.
The rail is kept on any surface that offers profiles, even with none
yet, so a one-provider host can still reach profile creation. Surfaces
without profiles and with one provider get a single 360px pane. Compact
layouts keep the existing sheet.
* feat(app): set up agents from one drawer on phones
The compact composer opened a second sheet on top of the first for the model
and each control. Phones now get one "Agent settings" drawer whose pages swap
in place: Home inlines thinking and speed pills, switches, and Mode as a radio
list (bypass modes in the warning colour); Model stacks providers as cards with
the open one in a fixed 220px box, so the others stay reachable below it, and
search sits in the thumb zone; Profiles lists saved profiles. Escape clears the
search, then returns Home, then closes. The standalone selector reuses the
Model page. Wide and desktop layouts are unchanged.
The Model page shows an empty state when the host lists no providers, which is
also the state before the first provider snapshot; the shared picker otherwise
falls back to its profiles rail and the page threw.
Themed padding sits on wrapper Views, not contentContainerStyle: the sheet
scrollers drop a themed contentContainerStyle on web.
* fix(app): finish the model picker redesign on phones and in search
- Cycle modes with the keyboard on phones again. The shortcut lived in the
Mode control, which on phones only mounts while the settings drawer is
open; the composer's controls now own it on every layout.
- Scroll a folded selected model into view when the phone Model page
reopens. The fold opened, but the list stayed at the top.
- Rank search results by match strength before shown-vs-folded. Putting
every shown row first let loose letter-order matches on uncurated
providers bury exact matches on folded models, such as "Opus 4.6".
Shown models still win ties.
- Drop ModelBrowser options and sheet scrolling that no caller uses, and
let SettingsCard shrink instead of the phone list copying its style.
* feat(app): polish mobile model drawer, thinking slider, and desktop focus
- Use a pencil icon button for provider model customization instead of a text label.
- Restore composer focus after picking a model on desktop in workspace drafts and New Workspace, which previously omitted onDropdownClose on DraftAgentControls.
- Move Profiles out of the phone Home card into the Model accordion as the first collapsible category with unified profile + model search, and let every accordion section collapse.
- Render ordered thinking effort and token-budget ranges on phones as a switch-style stepped capsule slider with step dots, and restore the provider icon beside the selected model name plus control icons on inline sections.
* fix(app): fix Android bottom search dock height and update E2E picker helpers
- Give SheetSearchDock flexDirection: "row" and relax SearchField's input height from 20 to minHeight: 20. Inside a column container, SearchField's flex: 1 collapsed vertically on Android and clipped text at the bottom of the Model drawer.
- Update E2E helpers for the redesigned picker: selectPluginModel picks directly from the two-pane rail without clicking Back; applyProfileFromPicker opens the Profiles rail entry first; selectModel clears search on first Escape before closing on second; codex-speed interacts with compact Speed pills inline on Home and verifies the section header icon highlight.
* fix(nix): trace runtime edges with dynamic import and verify Nix on PRs
Bundling @getpaseo/cli in #11155 added an esbuild banner that aliases
createRequire as __paseoCliCreateRequire. @vercel/nft only follows
injected require() calls in ESM when createRequire is imported unaliased,
so scripts/trace-daemon.mjs silently dropped @getpaseo/server's exports.js
and exited 0 while the Nix daemon smoke failed at startup.
Inject runtime dependency edges with dynamic import() so nft follows them
in ESM regardless of createRequire aliasing and in CJS without changing
the parsed module type. Assert after tracing that every declared runtime
dependency target and its importer edge are present in nft's file list
before expanding additionalInputs, and run the Linux Nix build and daemon
smoke on pull requests touching Nix, CLI, server, or daemon packaging
inputs.
* fix(nix): include desktop and is-main-module in Nix PR path filter
scripts/trace-daemon.mjs imports scripts/is-main-module.mjs and the
Linux Nix build job also builds .#desktop with PASEO_TRACE_DESKTOP=1.
Include both paths in nix.yml pull_request.paths so changes to either
exercise the Nix build and trace checks before merge.
* fix(ci): finish main runs and run CLI tests on daemon changes
Cancelling a main run mid-flight left CANCELLED checks that painted the
commit red. Server PRs skipped cli-tests, which drive a real daemon, so two
server regressions first failed on main.
* test(plugin): let the ACP crash be reported before replay ends
The fake agent exits 20 ms after its last history chunk, and the provider
ended replay after 100 ms of silence. When Windows reported the exit later
than that, the open succeeded and the test never saw request.failed.
The fake agent streams a history chunk every 20 ms, but the provider ended
replay after 100 ms without one. A runner stall longer than that ended
replay before the daemon stopped, so the reopen finished and the timeline
request resolved instead of being rejected. A 1 s quiet period keeps the
test on the path it checks: shutdown while replay is still streaming.
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
The v2 thinking picker listed only a model's explicit variants, so a user who
picked one could not go back to the model's base behaviour. List Default first,
as the v1 adapter does, and send no `variant` when it is selected.
Closes#7225
Co-authored-by: 3ae3ae <ogyshjsm@naver.com>
While a reply streams, the last line of an open code block can hold one or
two backticks of the fence that will close it. Painted, they are a line of
code that disappears a moment later.
The reveal now withholds that line while the turn streams until it closes
the block or turns out to be code. Finished turns paint everything.
Co-authored-by: RoundRedDot <roundreddot@gmail.com>
* refactor(server): let the daemon decide whether an agent message is a tool call or a message
Lifecycle notices (finished, errored, needs permission, closed, still working) now reach
clients as ordinary plain-text tool calls such as "Agent finished · Child". Only peer
send_agent_prompt messages keep the agentMessage sender so they still render as a
"Sent by" bubble. No protocol fields were added.
Delivered prompts carry a trailing <paseo-message .../> marker instead of a leading
<paseo-system> envelope, so the body (including a slash command) stays at character 0
and is no longer XML-escaped. Plain human messages get no marker unless they share a
turn with agent messages or contain marker syntax. Legacy envelopes and legacy
agentMessage notification rows keep rendering (COMPAT tagged).
* fix(server): keep a delivered message's sender when a provider trims the replayed prompt
Claude history replay trims each user prompt, so a body that started with whitespace came
back shorter than the marker's length and replayed as raw text. Drop the body's leading
whitespace before writing the marker.
* fix(server): stop waking the parent when a delegated child ends its turn but is still working
#10864 told the caller "ended its turn but is still working" whenever a child's turn ended
with work pending, and "is still working" after 24 hours of following. The caller could not
act on either notice; it only woke up to wait again. The watch now follows such a child
silently and reports once: finished when it settles, or errored, permission, and closed as
they happen. After 24 hours it reports finished with the child's last reply, so a task that
never ends cannot hold the caller forever.
The still-working event and its agent_still_working tool are gone. Transcripts with #10864's
event="message" notices replay as messages from the child, as clients showed them then.
* fix(server): report every turn end and keep following until the child settles
A child that ends its turn while it still has pending work (a background task such as
`npm run dev`, queued messages, or its own delegated agents) now reports `finished` to its
caller at once. The notice names the pending work and says the caller will hear again. The
subscription keeps following the child: each later turn end reports again, and the child
settling with nothing pending, with or without another turn, sends the final `finished`.
The 24-hour follow limit sends a final `finished` with the child's last reply.
Every notice is a plain `agent_finished` tool call. There is no still-working event.
The observation's initial wait no longer repeats a turn end the stream already reported,
which would have sent the first turn end twice.
* fix(server): share concurrent agent refresh results
Keep a refresh in flight until provider history has been hydrated so concurrent
requests receive the same reload outcome across connections.
* fix(server): keep concurrent refreshes within their daemon
Hold reload and history hydration together across client connections, and scope
pending work to the agent manager that owns it. Exercise the real daemon with a
slow-history provider, separate managers, shared failures and subsequent retries.
Co-authored-by: tieo <65707274+tieo@users.noreply.github.com>
* fix(server): capture reload reply before publishing updates
* test(server): run concurrent refresh coverage in CI
* fix(server): preserve each refresh caller workspace recovery
---------
Co-authored-by: tieo <65707274+tieo@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* fix(server): reuse provider images across daemon restarts
Co-authored-by: Christoph Leiter <christoph@leiter.io>
* test(server): isolate provider image fixtures from the daemon home
---------
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Co-authored-by: Christoph Leiter <christoph@leiter.io>
* feat(server,client): support activeTurnBehavior queue without sourceAgentId
Plugins and human UI surfaces previously had to pass steer or interrupt when sending a prompt without sourceAgentId, which could interrupt in-flight tool calls. Non-agent senders can now pass activeTurnBehavior: "queue" to wait behind a running turn and deliver as a normal user prompt once the turn ends, or start immediately when the agent is idle.
- Allow optional source in AgentMessageDelivery; non-agent queued messages skip the 2-second agent coalescing window when idle, stay unwrapped when dispatched alone, and use kind="user-message" envelopes when sharing a provider prompt with other messages.
- Route non-agent queue requests through Session's message queue with prepareAgentMessage, MessageReceipts deduplication, and clearPendingPermissions: false.
- Advertise features.nonAgentMessageQueue and gate non-agent queue in DaemonClient.activeTurnBehaviorForHost with COMPAT(nonAgentMessageQueue).
* docs: document non-agent activeTurnBehavior queue support
* chore: tag nonAgentMessageQueue COMPAT comments with v0.18.2
* test(cli): update terminal-worker upgrade test for protocol version 7
Commit d9497fb1e (#11163) bumped TERMINAL_WORKER_PROTOCOL_VERSION from 6 to 7 with a v6 draining adapter, leaving protocols 0-5 obsolete. Update 46-daemon-terminal-worker-upgrade.test.ts to match protocol version 7 so cli-tests shard 1 passes.
* feat(usage): push live Claude and Codex usage telemetry and preserve poll schedule
Stream Claude rate_limit_event and Codex account/rateLimits/updated observations
into cached discovered account reports, push status.usage_report_changed updates
to subscribed clients, preserve the 5-minute poll schedule across sidebar
toggles, and retry failed usage fetches with exponential backoff from 30s.
Closes#11115
Co-authored-by: Zayooo <mrcold135@gmail.com>
* fix(usage): preserve poll schedule on push and schedule trailing post-turn refetch
---------
Co-authored-by: Zayooo <mrcold135@gmail.com>
When Claude or Codex runs through a wrapper command (such as TeamClaude or a per-profile proxy wrapper) or an explicit login environment token (CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CODEX_API_KEY, CODEX_ACCESS_TOKEN), Paseo previously fell back to reading local ~/.claude / macOS Keychain or ~/.codex/auth.json from disk and showed another account's quota card or a rejected-login error.
- Add buildProviderUsageLaunch and expose resolved launch metadata from ClaudeAgentClient/ClaudeAgentSession, CodexAppServerAgentClient/CodexAppServerAgentSession, and ProviderSnapshotManager.listProviderEnvironments.
- Allow built-in claude and codex usage sources to declare provider so PluginService attaches resolved launch metadata on global discovery.
- Suppress local ~/.claude / Keychain and ~/.codex/auth.json fallback across global discovery, configured-provider host discovery (selectProviderUsageEnv), and agent session discovery when launched via a wrapper command, login token override, or foreign endpoint/cloud backend.
- Preserve plain OPENAI_API_KEY without OPENAI_BASE_URL for Codex (matching Codex load_auth precedence), legitimate custom CLAUDE_CONFIG_DIR / CODEX_HOME profiles, custom paths to the default claude / codex binary, and independent OpenCode/Pi/OMP harness routes.
Closes#3228
Dependency declarations that `import "node"` (e.g. utif2) pulled @types/node
into the install-time type walk, which failed on node: specifiers newer than
the host Node (node:stream/iter on Node 24) or, with @types/node absent,
on the unresolved "node" import. Map bare "node" in declarations to
@types/node and treat any node: specifier as a builtin.
Co-authored-by: Gabriele Magno <gabrigmm@gmail.com>
Co-authored-by: Gabriele Magno <36011800+nkwib@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
* feat(mcp,plugin): expose workspace metadata updates via MCP and plugin snapshots
* fix(app,server): persist workspace metadata in replica cache and normalize null keys on create
* fix(pi): finish tintinweb subagents collected with get_subagent_result
@tintinweb/pi-subagents returns get_subagent_result as plain text with no
details, and reading a result cancels the completion notification. The
adapter only read details.status, so a background child collected this way
stayed running, and history replay after a restart rebuilt it as running.
Read the status from the result's "Agent: <id> / Type: ... | Status: <status>"
header, and look the child up by the header's id, because agent_id can be
the agent's name instead of its id.
* fix(pi): match tintinweb results to the spawn or resume that produced them
A resumed agent gets a new Agent call and its own row, but results were
matched by agent id to whichever call was latest. A completion notification
built before a resume, or a get_subagent_result that started before one,
could mark the resumed run finished while it was still running.
Notifications now go to the call named in their <tool-use-id>, and a
follow-up goes to the attempt that was latest when it started. A
notification without details is read from its <task-notification> blocks.
* fix(pi): finish tintinweb rows for scheduled spawns
An `Agent` call with `schedule` registers a job and returns only text, with
no `details` and no agent id. The adapter added a running row for the call
and never sent a final status, so every scheduled spawn stayed running.
When a completed `Agent` call with `schedule` has no `details`, the row now
ends `completed` if the text reports the registered job (`Scheduled "<name>"
(id: <id>, type: <type>)`), and `failed` for the extension's refusals, such
as scheduling being disabled.
* fix(pi): match name-based follow-ups to the attempt they started on
get_subagent_result accepts a handle such as `explore` as well as an
agent id. The adapter only saved a target for follow-ups that used an
id, so a follow-up by name fell back to the agent's latest call. If the
agent was resumed before the result arrived, the old result marked the
resumed run finished.
Record each agent's spawn and resume calls in order, and note how many
calls existed when a follow-up started. The result header supplies the
agent id, and the follow-up resolves to that agent's latest call from
before it started, whether it named the agent by id or by handle.
* fix(pi): keep collected subagent results on the right run
History replay visits every call in an assistant message before processing their results. Record attempt order as the calls start and attach the native ID when it arrives, so a collected result can finish the child it belongs to. Keep scheduled job registration outside the scope of this fix.
Co-authored-by: Andrew McFague <144809+amcfague@users.noreply.github.com>
---------
Co-authored-by: Andrew McFague <144809+amcfague@users.noreply.github.com>
Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
Reconcile streamed Claude content blocks per block index instead of
against the whole message, preventing duplicate final thinking/text
blocks in multi-block messages (#6463). Buffer thinking deltas until
each block's completed snapshot arrives so blocks marked in
`narration_block_indexes` render as assistant text (for example before
AskUserQuestion) rather than inside Thinking (#6199), while flushing
any unfinished thinking on message stop or terminal turn events with
their explicit turnId preserved.
Co-authored-by: ThePharmer <metastallion@gmail.com>