Repository navigation
Add du --time completion option (#403) - #405
Conversation
|
This PR was generated with Warp. Comment |
|
Spec approved. This spec is approved for issue #403, and the spec stage is complete. Implementation is still gated: a maintainer can apply Responding as Warp for OSS: Open session · View run |
Adds the GNU --time option to du.json with an optional WORD argument, offering the documented atime/access/use (last access time) and ctime/status (last status-change time) value groups. Fixes #403
There was a problem hiding this comment.
Overview
Adds GNU du's --time option to command-signatures/json/du.json with an optional WORD argument and the documented value aliases, exactly as the approved GH403 spec prescribes. Net position: accepted.
Notes
- Correctness was checked against
du --help: bare--timeshows the last modification time, and the accepted values are exactlyatime,access,use,ctime,status. The description and the two alias groups match, and no undocumented value (such asmtime) is suggested. - The structure mirrors the
--colorpattern inls.json, and the alias arrays expand to one suggestion per spelling viacompletion-metadata/src/fig_types.rs, so all five values stay individually insertable. - Scope is clean: the only functional change is the 25-line addition to
du.json. Existing options and the variadic file/folder argument are untouched, and no unrelated files are included. - Security: nothing of substance. This adds static JSON strings, with no generator, command execution, dependency, or input-handling change.
Verdict
Verdict: accepted
Checks: build pass, tests pass, CI green (8 successful, 0 failing), visual proof n/a — static completion data, no rendered UI change
Found: 0 critical, 0 important, 0 suggestions, 0 nits
Responding as Warp for OSS: Open session · View run
|
@warp-factory delete the spec |
## Description Bump `warp-command-signatures` to the merged revision that adds `du --time` completions. ## Linked Issue No linked Warp issue; this integrates warpdotdev/command-signatures#405. - [ ] The linked issue is labeled `ready-to-spec` or `ready-to-implement`. - [ ] Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes). ## Testing Not run per request; CI will validate the dependency bump. - [ ] I have manually tested my changes locally with `./script/run` ## Agent Mode - [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode CHANGELOG-NONE <!-- warp:pr-description-artifacts start --> <!-- warp:pr-description-artifacts end --> Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com> Co-authored-by: Warp Agent <agent@warp.dev>
* Keep the run's URL when you open a subagent in the web session viewer (#15317)
## Description
Clicking a subagent's chip in the web session viewer swapped that agent
into view and quietly rewrote the address bar to the subagent's own URL.
It used `replaceState`, so the run's URL wasn't just hidden — it was
gone. Refreshing loaded the subagent on its own, browser Back couldn't
get you home, and copying the link shared one subagent instead of the
whole run.
That also explains a second symptom. A link captured after the rewrite
points at the subagent, so reopening it loads a session with no
orchestration context: the chips along the top are missing, and entries
that can't be resolved to an agent show up as "unknown agent"
(APP-4853).
**The fix:** while the viewer is showing a `/conversation/:id` or
`/session/:id` route, a focused pane can no longer replace that URL.
Both paths that could rewrite it — pane focus, and a subagent joining
its live session — run through one function, so the guard lives there.
Login and signup redirects pass `force_redirect` and still work as
before.
What this gives up for now: the address bar no longer follows your
subagent selection, so a refresh returns to the run with nothing
selected.
## What comes next
This PR also checks in the agreed design for proper subagent links,
under `specs/QUALITY-1764/`:
- **Phase 1** — opening a subagent's link takes you to the top-level run
with that agent selected, with `?view=standalone` to opt out and stay on
the subagent.
- **Phase 2** — the selection lives in the URL as `#child=<run-id>`, so
a refresh restores it and Back/Forward walk through the agents you
looked at.
**For whoever builds Phase 2:** the guard added here blocks exactly the
kind of URL write the anchor needs. Remove or invert it first — putting
the anchor writer behind it means the fragment silently never appears.
## Linked Issue
- Linear:
[QUALITY-1764](https://linear.app/warpdotdev/issue/QUALITY-1764/web-session-viewer-rewrites-the-browser-url-to-the-childs)
- Linear:
[APP-4853](https://linear.app/warpdotdev/issue/APP-4853/subagent-chips-missing-and-unknown-agent-shown-when-opening-session)
— same root cause, for sessions reopened from a rewritten link
## Testing
Unit tests cover `resolve_browser_url`, the single function both rewrite
paths go through:
- keeps the run's URL when a subagent's pane asks to replace it
- keeps it when the focused pane has no link of its own
- leaves the URL alone outside the viewer, so the guard doesn't
over-fire
- still redirects when `force_redirect` is set, so login and signup are
unaffected
`cargo nextest run -p warp -E 'test(/^uri::/)'` — 73 passed. `cargo
clippy -p warp --all-targets --tests -- -D warnings`, `cargo fmt
--check`, and a `wasm32-unknown-unknown` `cargo check` are all clean.
**Not verified in a browser.** Two attempts, both blocked at
authentication.
The second used the recipe suggested in review — `./script/wasm/run
--features with_local_server,with_local_session_sharing_server` against
a local `warp-server` and `session-sharing-server`, with a real
parent/child pair created through the LLM mock and the session set to
`public_access=VIEWER` plus `--share public:view`. Opening
`/session/<uuid>` still rendered only "Oops! Sign In failed. Please try
again later.", before and after refresh, with no guest option and no
viewer content. A team-scoped session behaved identically, so even an
explicit public-viewer ACL did not bypass local browser auth.
So the address-bar and refresh behaviour is covered by the
`resolve_browser_url` unit tests and call-graph tracing, not a live
capture. If there is a local auth shim or dev credential path we missed,
say so and we will capture the flow.
- [ ] I have manually tested my changes locally with `./script/run`
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-BUG-FIX: Opening a subagent in the web session viewer no
longer replaces the run's URL, so refreshing or sharing the link keeps
you on the whole run instead of a single subagent.
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Add docker-registry secret type to `oz secret create` CLI (#15913)
## Description
Adds a `docker-registry` provider subcommand to `oz secret create`, so
users can create a `DOCKER_REGISTRY`-type managed secret from the CLI:
```
oz secret create docker-registry <NAME> [--host HOST] [--username USER] [--password PASS]
```
Any omitted field is prompted for interactively; non-interactive
invocations require all three.
This gives customers with GitHub-synced (`file_managed`) Factories a way
to create registry credentials today, since the web UI's only creation
path for this secret type currently lives in a form that's inaccessible
for those Factories (tracked separately in warp-server#17092, which
fixes the web UI gap).
The underlying `ManagedSecretValue::docker_registry` constructor,
encryption, and `createManagedSecret` mutation support already existed;
this PR only adds the CLI arg-parsing and prompt-reading layers, plus
client-side host format validation (no scheme or path) mirroring the
server-side check.
## Linked Issue
No linked GitHub issue. This is a CLI-only follow-up to
warp-server#17092.
## Testing
- [x] Added unit tests for CLI arg parsing
(`crates/warp_cli/src/secret_tests.rs`) and host validation
(`app/src/ai/agent_sdk/secret_tests.rs`)
- [x] `cargo check`, `cargo fmt --check`, and `cargo clippy
--all-targets -- -D warnings` all pass for `warp_cli` and `warp`
- [ ] Manual testing with `./script/run` (not applicable — this is a
CLI-only change; verified via `cargo run --bin warp -- secret create
docker-registry --help`)
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-IMPROVEMENT: Added `oz secret create docker-registry` to
create container registry credential secrets from the CLI.
Co-Authored-By: Warp <agent@warp.dev>
---------
Co-authored-by: Warp <agent@warp.dev>
* Validate Factory benchmark resources (#15893)
## Description
The bundled Factory validator skipped benchmark configuration because it
did not traverse or classify `benchmarks/`. It now submits canonical
suite and task YAML files, plus noncanonical benchmark `.yaml` and
`.yml` paths, to warp-server for authoritative validation. README and
`.yaml.disabled` files remain unrelated and are not uploaded.
The Factory-files skill now lists benchmark resources and their
server-published schemas.
## Linked Issue
No issue was created for this small, confirmed validation gap.
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. — No linked issue.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes). — Not applicable to this non-rendered Python validator.
## Testing
- `./script/format --check`
- `python3 -m py_compile
resources/bundled/skills/factory-files/scripts/validate_factory_files.py
script/test_factory_files_skill.py`
- `./script/test_factory_files_skill.py`
- `cargo clippy --workspace --exclude warp_completer --all-targets
--tests -- -D warnings`
- `cargo clippy -p warp --all-targets --tests -- -D warnings`
- `cargo clippy -p warp_completer --all-targets --tests -- -D warnings`
- [ ] I have manually tested my changes locally with `./script/run` —
Not applicable to a non-rendered validator script.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
CHANGELOG-NONE
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Guard duplicate Code Review discard confirmations (#15884)
## Description
Prevents Linux stable fatal `index out of bounds: the len is 0 but the
index is 0` in `CodeReviewView::handle_action`. A stale second
`ConfirmDiscardFile` action now treats an empty single-file discard path
as a no-op, while valid first confirmations keep the existing behavior.
Addresses [Sentry
WARP-CLIENT-BETA-STABLE-8AM7](https://warpdotdev.sentry.io/issues/WARP-CLIENT-BETA-STABLE-8AM7)
([production
event](https://sentry.io/organizations/warpdotdev/issues/7721121113/events/214fd843cb614994a6c43920650bea36/)).
## Linked Issue
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. Not applicable: the linked work item is Sentry
fatal issue 7721121113.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below. Not applicable: this state guard has
no visual change, and computer-use verification was excluded.
## Testing
- `cargo nextest run -p warp
test_duplicate_single_file_discard_confirmation_is_ignored` — passed (1
passed, 6540 skipped). With the original indexing restored, this test
failed with the reported empty-vector panic at
`CodeReviewView::handle_action`.
- `./script/format` — passed.
- `cargo clippy --workspace --exclude warp_completer --all-targets
--tests -- -D warnings` — passed.
- `cargo clippy -p warp --all-targets --tests -- -D warnings` — passed.
- `cargo clippy -p warp_completer --all-targets --tests -- -D warnings`
— passed.
- [ ] I have manually tested my changes locally with `./script/run`. Not
run; the focused action-level regression test covers the stale
confirmation state without booting the GUI.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-BUG-FIX: Prevented a crash when confirming a file discard more
than once in Code Review.
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Fall back to a forge identity only when nothing else claimed a repo (#15869)
## Description
Cloud agent sandboxes silently overrode a customer's own `git config
--global user.name/email` setup command, so commits kept using Warp's
identity instead of the customer's.
**Root cause**: `configure_repository_git_identity` unconditionally
wrote a repo-*local* `user.name`/`user.email` right after cloning,
before setup commands ran. Local config always beats `--global`, so a
customer's later override never took effect. This per-repo stamp exists
for a reason: mixed-forge sandboxes (e.g. GitHub + GitLab) need a
different identity per repo, which a single `--global` value can't
express.
**Fix**: snapshot the process-wide identity once at bootstrap, before
any clone or setup command runs. After setup commands finish, only apply
Warp's forge-appropriate identity to a repo if its *effective* identity
still matches that snapshot. If it differs, something already claimed it
(a `--global` override, a per-repo local one, etc.), so it's left alone.
This also correctly handles a mixed-forge sandbox where the customer
wants one shared identity across every repo.
## Linked Issue
- [ ] N/A — found and fixed while investigating a customer report of
cloud agent commits authored with the wrong git identity.
## Testing
- Added unit tests for `repository_identity_changed_since` and
`configure_repository_git_identity_if_unset` using real temp git repos.
- `environment` (43 tests) and `git_credentials` (25 tests) module
suites pass; `cargo check`/`clippy -D warnings` clean for this diff.
- Not tested end-to-end in a live sandbox (no production credentials
available here) — the fix is scoped to small, independently-testable
pure functions.
- [ ] I have manually tested my changes locally with `./script/run`
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-BUG-FIX: Fixed cloud agent commits sometimes ignoring a
customer's `git config --global user.name/email` setup command.
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
---------
Co-authored-by: Warp <agent@warp.dev>
* Parent About page to Settings during tab transfer (#15948)
## Description
Dragging a Settings tab through a preview can orphan its hidden About
page because About was the only Settings page created without structural
parentage. This changes About to the same parented typed-action view
path as the other Settings pages, without adding a Settings child-ID
inventory or suppressing missing-view panics.
## Linked Issue
[APP-5314](https://linear.app/warpdotdev/issue/APP-5314/crash-dragging-settings-tab-between-windows-panics-in)
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. Linear label state was not available in this run.
- [x] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes).
## Testing
- `./script/format` — completed.
- `cargo check -p warp` — passed after the test removal.
- `cargo build -p warp` — passed.
- `cargo clippy -p warp --all-targets --tests -- --deny warnings` —
passed.
- No automated regression test is included; this uses the existing
typed-action ownership path.
- Full workspace all-features Clippy remains blocked by unrelated
existing cfg/test errors in `ai::execution_profiles` and dead-code
warnings under the combined feature set.
- Linux GUI: Warp remained responsive and About rendered after a drag
attempt. The Linux tab rail confined the drag preview and snapped it
back, so the Windows detach/return/preview-close path could not be
exercised visually.
- [ ] I have manually tested my changes locally with `./script/run`.
Tested the internal build with `cargo run --bin warp`; Linux could not
detach the Settings tab.
### Screenshots / Videos
<!-- warp:pr-description-artifacts start -->
<!-- oz:computer-use-videos start -->
### Computer-use video recordings
[](https://platform.staging.warp.dev/artifacts/01a09212-4e94-74c3-8ccc-75d11201119c)
**Settings tab detach/transfer test in Warp on Linux**: Opening Settings
as a tab on Account, attempting to drag/detach the Settings tab into a
preview or second window, trying to return it and close any
preview/second window, then navigating to About.
<!-- oz:computer-use-videos end -->
<!-- oz:computer-use-screenshots start -->
### Computer-use screenshots

Settings tab's About page rendered after the failed drag/detach attempt,
showing the Warp logo, version placeholder "v#.##.###", and "Copyright
2026 Warp" text, with the second Warp window still open in the taskbar.
<!-- oz:computer-use-screenshots end -->
<!-- warp:pr-description-artifacts end -->
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-BUG-FIX: Fixed a crash after dragging a Settings tab between
windows.
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
Co-authored-by: Andy <andy@warp.dev>
* Bump command signatures for du --time (#15950)
## Description
Bump `warp-command-signatures` to the merged revision that adds `du
--time` completions.
## Linked Issue
No linked Warp issue; this integrates warpdotdev/command-signatures#405.
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes).
## Testing
Not run per request; CI will validate the dependency bump.
- [ ] I have manually tested my changes locally with `./script/run`
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
Co-authored-by: Warp Agent <agent@warp.dev>
* Rip out completions v2 and associated code. (#15965)
## Description
Ages ago, we explored an extensibility architecture for Warp involving
JS-based plugins, including a JS plugin-based completions system. We
never fully built this out, and kept around a bunch of code for the day
that we might resuscitate it.
These days, agents see the various places where we run clippy and tests
multiple times, covering both the v1 and v2 completions implementations,
and follow this example, running extra sets of tests to ensure that
their changes work properly.
Given that we're not going to do any work near-term to get the plugin
system working, and that we don't want agents to be spending more time
validating changes than they need to, it's time for us to rip this all
out.
* Route AI history updates through TerminalView (#15943)
## Description
Routes `BlocklistAIHistoryModel` updates through each owning
`TerminalView` instead of subscribing every `AIBlock` for its lifetime.
This removes broad per-block fanout while preserving footer, todo,
streaming, restoration, transfer, and reassignment behavior.
`TerminalView` now targets the existing indexed block handles by event:
the previous pane/conversation latest blocks for appends, the exact
exchange for streaming, todo-bearing blocks in the affected
conversation, and latest root blocks for usage updates. Usage routing
walks ancestor conversations so descendant costs continue to refresh
orchestrator rollups. Streaming output processing remains limited to
blocks whose output was live at construction, so persistence-only
replays for completed restored or forked blocks do not rerun completion
side effects.
Approved architecture:
https://warpdev.slack.com/archives/C0BDQDW8V5E/p1789143109438909
## Linked Issue
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. No linked GitHub issue; the requester approved the
change in the Slack thread above.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes). The requester explicitly declined computer-use and visual
verification.
## Testing
- `./script/format` and `./script/format --check`
- `cargo clippy -p warp --all-targets --tests -- -D warnings`
- `cargo clippy --workspace --exclude warp_completer --all-targets
--tests -- -D warnings`
- `cargo clippy -p warp_completer --all-targets --tests -- -D warnings`
- Focused `cargo nextest run -p warp` coverage for append, streaming,
completed restored/fork replay, todo, descendant usage rollup,
reassignment, and restored-pane transfer behavior
- `./script/check_no_inline_test_modules`
- `git diff --check`
- [ ] I have manually tested my changes locally with `./script/run`. Not
run because visual verification was explicitly declined.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Save and restore tab groups in launch configurations (#14624)
Fixes #13898
## Why
Saving a launch config from a window with grouped tabs and reopening it
gives you flat tabs — the groups are gone. `impl From<WindowSnapshot>
for WindowTemplate` reads `snapshot.tabs` and
`snapshot.active_tab_index` and never looks at `snapshot.tab_groups`,
and `WindowTemplate` had nowhere to put them.
Worth noting because it narrows the fix: **this is a gap in one path,
not a missing capability.** Session restore already round-trips groups
end to end — `persistence/sqlite.rs` writes them (`:1012-1038`) and
reads them back (`:2538-2703`), covered by
`test_sqlite_round_trips_tab_groups`. So the data model was already
there; only the launch-config projection ignored it.
## What changed
**Schema** (`launch_config.rs`) — `WindowTemplate` gains `tab_groups:
Vec<TabGroupTemplate>` and `TabTemplate` gains `group: Option<usize>`,
an index into that list.
```yaml
windows:
- tabs:
- layout: {cwd: /srv/api}
group: 0
- layout: {cwd: /tmp} # ungrouped, no `group` key
tab_groups:
- name: backend
color: blue
```
Both fields are `skip_serializing_if` + `default`, so **existing configs
are unaffected** — a window with no groups serializes byte-for-byte as
before. There is a test asserting neither key appears in that case.
Runtime `TabGroupId`s are deliberately *not* serialized. They are UUIDs
minted per session, a config can be opened repeatedly, and it can be
opened into a workspace that already holds groups — reusing saved ids
would collide. The index indirection sidesteps that.
**Restore** (`workspace/view.rs`) — `open_launch_config_window` resolves
each tab's membership first, then creates a group for every index that
kept a member and assigns the tabs' `group_id`s through it. Groups no
tab joins are never inserted, so hand-authored YAML cannot leave an
empty, unreachable group in workspace state — the same posture as the
save path, which already drops groups whose members were all unsaveable.
This mirrors the session-restore path deliberately, including both
feature gates: groups are only created under `FeatureFlag::GroupedTabs`,
and `pinned` is only honored under `FeatureFlag::PinnedTabs`.
Two shapes only hand-edited YAML can produce are normalized on the way
in:
- A group named on both sides of an ungrouped tab. `tab_bar_slots`
collapses each *contiguous* run into one container, so interleaved
membership would draw two containers sharing one id.
`resolve_group_memberships` keeps the first run and returns later
stragglers ungrouped; reordering the tabs would also restore the
invariant, but silently moving tabs a config explicitly ordered seemed
the more surprising of the two.
- An out-of-range `group` index, which leaves that tab ungrouped rather
than failing the window — same posture as session restore, which drops a
tab's group reference when the group itself did not restore.
## The part that needed care
The save path filters out tabs that cannot be represented (notebook
panes) and **renumbers the survivors** via `num_valid_tabs`. So group
membership cannot be derived from tab position — the snapshot index and
the template index diverge exactly when a tab drops out. Membership is
instead carried on each tab's own `group_id` and resolved against the
surviving group list.
Two consequences, both locked by tests:
- A group whose only member failed to convert is **dropped**, rather
than restored as an empty group the user can neither see nor remove.
- When that happens, later groups shift down, and the remaining tabs'
`group` indices shift with them.
`test_config_from_snapshot_remaps_groups_around_unsaveable_tabs` is the
one that guards this, and I checked it actually bites rather than
trusting the green run: dropping the "keep only groups that still have a
member" filter turns it red with
```
assertion `left == right` failed: empty group must be dropped
left: 2
right: 1
```
and restoring the filter returns the suite to 14 passed.
## Tests
Three new tests in `launch_config_tests.rs`:
- `test_config_from_snapshot_preserves_tab_groups` — name/color carried,
membership correct, ungrouped tabs stay ungrouped
- `test_config_from_snapshot_remaps_groups_around_unsaveable_tabs` — the
re-indexing case above
- `test_config_from_snapshot_omits_tab_groups_when_there_are_none` —
backward compatibility of the serialized form
The four existing `WindowTemplate` / `TabTemplate` literals in
`crates/integration/src/test/launch_configs.rs` were updated for the new
fields; no behavior change there.
End-to-end coverage of the restore half lives in
`test_launch_config_restores_tab_groups`
(`crates/integration/src/test/launch_configs.rs`), which dispatches the
real `root_view:open_launch_config` and asserts the restored window
through a new `assert_tab_groups` helper. The helper numbers groups by
first appearance in the tab list, so it pins down membership *and*
identity — two tabs share an index only when they share a `TabGroupId` —
then checks each group's restored name and color, and that the workspace
holds exactly those groups and no memberless extras.
I checked it bites rather than trusting the green run; asserting the
pre-collapse membership fails on exactly the tab the guard covers:
```
Expected tab group memberships [Some(0), Some(0), None, Some(0), Some(1)],
but there were [Some(0), Some(0), None, None, Some(1)]
```
## Manual validation

Local `./script/run` OSS build, opened via
`warposs://launch/Tab%20Groups%20Demo` so the restore path runs exactly
as it would from the launch config palette. The tab bar comes back as
`[Backend | api worker] scratch stray [Frontend | web]`: both groups
restore with their names and blue/green colors, each tab lands back in
its saved group, and `stray` — which asked for `Backend` again after an
ungrouped tab — comes back ungrouped rather than opening a second
container sharing the same id.
(The GIF is hosted on a branch in my fork because I have no way to
attach media to a PR from the CLI; happy to re-upload it wherever you'd
prefer.)
`cargo fmt -- --check` is clean, `cargo check -p warp --all-targets` is
clean, `cargo test -p warp --lib launch_config` is 18 passed / 0 failed,
and the integration test above is 1 passed / 0 failed.
An earlier comment of mine on this PR claimed `GroupedTabs` could not be
enabled in a local build. That was wrong — `grouped_tabs` is in
`default` in `app/Cargo.toml` and `enabled_features()` turns it on at
startup — and the recording above is the correction.
CHANGELOG-BUG-FIX: Add tab group persistence to (legacy) launch configs.
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Add missing WINDOWS variant to RunnerOS client enum (#15957)
## Summary
Fixes bug from
[REMOTE-3178](https://linear.app/warpdotdev/issue/REMOTE-3178/factory-agent-dispatch-fails-on-non-default-runners-mcp-config):
`oz-dev runner list` (and any other client command that fetches runner
data) failed outright whenever a Windows runner existed in scope:
```
Error: Failed to deserialize GraphQL response: reqwest::Error { kind: Decode, source: Error("unknown variant `WINDOWS`, expected `LINUX` or `MACOS`", line: 1, column: 210) }
```
The vendored GraphQL schema
(`crates/warp_graphql_schema/api/schema.graphql`) and the cynic-derived
`RunnerOs` client enum only declared `LINUX`/`MACOS`. `warp-server`'s
schema already defines `WINDOWS` (added for REMOTE-2469), so any GraphQL
response naming a Windows runner failed to decode client-side.
## Changes
- Added `WINDOWS` to `RunnerOS` in the vendored schema and the
`RunnerOs` cynic enum.
- Extended every exhaustive match over `RunnerOs`/`RunnerOsArg`
accordingly, so the fix actually compiles and behaves sensibly end to
end:
- `runner_display.rs`: display label (`"Windows"`) and icon (reuses the
existing `Icon::Powershell`, matching how `ShellIndicatorType` already
represents Windows shells elsewhere in this codebase).
- `agent_sdk/runner.rs`: `runner create`/`runner update` input
construction (a Windows runner has no OS-specific `mac`/`linux` config
block, same shape as the server schema), `os_to_gql`, and
`resolve_arch`'s `auto` default (x86-64, matching Linux).
- `warp_cli/src/runner.rs`: added `RunnerOsArg::Windows` and extended
`validate_os_config` to reject `--docker-image`/`--macos-version` for
Windows, same as it already does for the mismatched existing OS.
## Verification
- `cargo check -p warp_graphql_schema -p warp_graphql -p warp_cli`:
clean.
- `cargo check -p warp --lib --tests`: clean (confirms the app crate and
its existing runner tests compile against the extended enum).
- `cargo fmt --check -p warp -p warp_cli -p warp_graphql`: clean.
- Could not run `cargo clippy` in this environment due to an unrelated,
pre-existing `command-signatures-v2` JS build-script/Node-version issue
unrelated to this change (fails identically on a clean checkout with no
changes applied).
- `cargo test` for this crate hits a SIGKILL (OOM) in this sandboxed
environment during test-binary compilation, unrelated to this change;
`cargo check --tests` (type-check only, no codegen) passed instead as a
substitute.
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
---------
Co-authored-by: Warp <agent@warp.dev>
* Update CLI help text to 'private image credential' (#15993)
## Description
Aligns the Oz CLI copy for `docker_registry` managed secrets with the
settled product terminology: **private image credential** instead of
"container registry credential".
Settled with @bnavetta in a standup thread. "Container registry
credential" is more technically precise, but it names the infrastructure
rather than the problem the user has. Kubernetes' `imagePullSecret` is
the closest widely-known analogue, so keeping "image" in the copy
borrows recognition users already have.
Three strings in `crates/warp_cli/src/secret.rs` (subcommand help and
two arg descriptions), plus two doc comments in `crates/managed_secrets`
and `crates/managed_secrets_wasm`.
The `oz secret create docker-registry` subcommand name itself is
**unchanged**. It's an existing CLI contract, and renaming it breaks
anyone's scripts for nothing a user would notice.
This matters a little more than usual for the CLI specifically: it's
currently the only creation route for customers on GitHub-synced
Factories, who can't reach the web UI's creation path for this secret
type.
## Linked Issue
No linked issue. Copy-only follow-up to a terminology decision made in a
standup thread.
## Testing
Help text only, no behavior change.
- `./script/format` clean
- `cargo clippy -p warp_cli -p warp_managed_secrets --all-targets
--tests -- -D warnings` clean
- `cargo nextest run -p warp_cli -p warp_managed_secrets` passes, 299
tests
Not manually run with `./script/run`: this only changes `--help` output
in the CLI, which the GUI app doesn't surface.
## Related
Paired with https://github.com/warpdotdev/warp-server/pull/17357, which
carries the UI and server-side copy.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
<!--
CHANGELOG-NONE
-->
Co-Authored-By: Warp <agent@warp.dev>
Co-authored-by: Warp <agent@warp.dev>
* Preserve full PlatformError fidelity in Rust clients (#15975)
## Description
Preserve the complete `PlatformErrorInfo` contract when Rust GraphQL and
REST clients receive server platform errors and send them back in agent
task status messages.
The canonical Rust model now carries the message, status, localized
format-to-message map, detail, user classification, metrics category,
and trace ID fields added by warpdotdev/warp-server#17225. GraphQL
output lists and input lists adapt to the same `BTreeMap`
representation. REST `problem+json` responses reconstruct the canonical
model from `type`, `title`, `status`, `detail`, `retryable`, flattened
string metadata, `debug`, and `trace_id`; fields absent from the REST
contract remain `None` rather than being invented. The public API path
parses each error body once when constructing `HttpStatusError`, then
reuses the stored structured error and context message. Error
classification continues to depend on `PlatformErrorCode`, not
`isUserError`.
The schema snapshot was refreshed through `crates/warp_graphql_schema`
generation after confirming staging exposed the merged contract, then
narrowed to this contract to avoid unrelated staging drift.
## Linked Issue
https://linear.app/warpdotdev/issue/REMOTE-3180/preserve-full-platformerrorinfo-fidelity-in-rust-graphqlrest-client
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. — The work is tracked in Linear rather than a
GitHub issue.
- [x] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes). — Not applicable to this Rust data-model and serialization
change.
## Testing
Added focused coverage for GraphQL response-to-input round trips, REST
`problem+json` decoding, git-credentials classification, and the final
`updateAgentTask.statusMessage.error` conversion.
- `CARGO_HOME=/home/agent/.cargo cargo check -p warp_graphql -p
warp_server_client -p warp --all-targets` — passed.
- `cargo nextest run -p warp_graphql platform_error` — 4 passed.
- `cargo nextest run -p warp_server_client public_api` — 8 passed.
- `cargo nextest run -p warp -- error_classification git_credentials` —
63 passed.
- `cargo nextest run -p warp
task_status_message_input_preserves_full_platform_error` — 1 passed.
- `cargo clippy --workspace --all-targets --tests -- -D warnings` —
passed.
- `cargo clippy -p warp --all-targets --tests -- -D warnings` — passed.
- `./script/format --check` — passed.
- `./script/check_no_inline_test_modules` — passed.
- [ ] I have manually tested my changes locally with `./script/run` —
Not applicable; no rendered UI or interactive flow changed.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Add ambient agent task ID to Sentry events (#15997)
## Description
Attach ambient agent run IDs to Sentry events as the `warp.task_id` tag
so crashes and errors can be correlated with a specific task. The tag is
limited to ambient CLI processes: an `OZ_RUN_ID` is stored before Sentry
initializes, and `AgentDriverRunner` refreshes it when a task ID is
supplied or created later. The shared
`ServerApi::set_ambient_agent_task_id` behavior remains unchanged,
avoiding stale last-viewed IDs in GUI and TUI processes.
ticket_source=adhoc; ticket_id=47d064f9-84f7-479c-ae26-f90e887dde08
## Linked Issue
[APP-5963](https://linear.app/warpdotdev/issue/APP-5963/attach-ambient-agent-run-id-to-sentry-events-as-a-label)
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. Not applicable because the linked work item is in
Linear.
- [x] Screenshots or video are not applicable because this change has no
rendered interface.
## Testing
- `cargo nextest run -p warp --features crash_reporting
task_id_tag_is_attached_to_sentry_events` — 1 passed.
- `cargo nextest run -p warp --features crash_reporting task_env_vars_`
— 6 passed.
- `./script/format --check` and `./script/check_no_inline_test_modules`
— passed.
- `cargo clippy --workspace --all-targets --tests -- -D warnings` —
passed.
- `cargo clippy -p warp --all-targets --tests -- -D warnings` — passed.
- `cargo clippy -p warp --all-targets --tests --features crash_reporting
-- -D warnings` — passed.
- [ ] I have manually tested my changes locally with `./script/run`. Not
applicable; code-level tests exercise the Sentry event/tag plumbing
without sending live events.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Fail agent run when team metadata refresh fails (#15932)
## Description
`oz-dev agent run` now exits when its initial team metadata refresh
exhausts retries, instead of resolving team and admin policy from stale
cached data. Out-of-band refreshes return their terminal result for
strict CLI startup, while GUI callers and periodic polling remain
best-effort. The existing typed team-scope boundary remains unchanged.
## Linked Issue
-
[REMOTE-3171](https://linear.app/warpdotdev/issue/REMOTE-3171/cloud-factory-run-agents-spawn-fails-the-windows-team-changed-before)
-
[REMOTE-3150](https://linear.app/warpdotdev/issue/REMOTE-3150/remote-orchestration-children-from-factory-service-accounts-request)
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`.
- [x] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes).
## Testing
- [x] `./script/format --check`
- [x] `cargo clippy --workspace --all-targets --tests -- -D warnings`
- [x] `cargo clippy -p warp --all-targets --tests -- -D warnings`
- [x] `cargo nextest run -E
'test(agent_run_setup_propagates_terminal_team_metadata_refresh_failure)'`
- [ ] I have manually tested my changes locally with `./script/run` —
the terminal server-error path is covered with a deterministic mocked
client.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-BUG-FIX: Stop Warp Agent CLI startup when team metadata cannot
be refreshed.
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
Co-authored-by: Oz <oz-agent@warp.dev>
* Classify terminal MAA stream failures by cause (#15925)
## Description
Classify terminal MAA response-stream failures by cause while preserving
existing recovery behavior. Transport and EOF failures remain internal
`TransientNetworkError` values and always emit
`agent_stream_network_error`, including after Init or ClientActions.
Explicit terminal failures delivered by the MAA server use the
extensible `AgentStreamFailure { error_message }` variant and emit
`agent_stream_failure` even if the finish event arrives before Init.
Stream-start context is not carried on terminal network errors; only
ClientActions state remains because it selects safe in-request retry
versus conversation resume. Terminal status data remains non-retryable.
Companion warp-server contract PR:
https://github.com/warpdotdev/warp-server/pull/17199
## Linked Issue
[REMOTE-3169](https://linear.app/warpdotdev/issue/REMOTE-3169/add-agent-stream-network-error-and-agent-stream-failure-codes-for-maa)
- [ ] Not applicable — this work is tracked in Linear rather than a
GitHub issue.
- [x] No screenshots are applicable because this changes an error
contract without a rendered surface.
## Testing
- `./script/format --check`
- `./script/check_no_inline_test_modules`
- Controller regressions drive a post-ClientActions EOF, exhausted
recovery, and a fresh retry attempt through `ResponseStream` into the
exact task mapping; both assert `agent_stream_network_error` and
`platform_error.retryable=false`
- Table-driven controller regression delivers explicit
`StreamFinished::Other`, `StreamFinished::LlmUnavailable`, and
`StreamFinished::InternalError` failures before Init; every case asserts
task `ERROR`, matching legacy and structured `agent_stream_failure`, and
`platform_error.retryable=false`
- Full local task-sync module (43 tests), driver classification module
(33 tests), response-stream recovery module (16 tests), and GraphQL
crate tests (13 tests)
- `cargo clippy -p warp --all-targets --tests -- -D warnings`
- `cargo clippy -p warp_graphql --all-targets --tests -- -D warnings`
- `cargo check --locked -p warp --lib --features agent_mode_evals`
- [ ] Not manually tested with `./script/run`; this backend
error-contract path is covered by focused unit tests and compile/lint
checks.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp Agent Mode
CHANGELOG-NONE
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Support benchmark repository preparation overrides (#15945)
This adds the Warp client half of benchmark repository substitution. A
sparse server-owned override can clone a target repository at the source
task SHA while keeping the source-named workspace path and the target
`origin`. Live environment and task repository membership otherwise
remain unchanged.
Companion server PR:
https://github.com/warpdotdev/warp-server/pull/17173
Approved design:
https://github.com/warpdotdev/warp-server/blob/factory/benchmark-repository-substitution/specs/benchmark-repository-substitution/TECH.md
## Review guide
Start with sparse override validation and clone-request construction in
`app/src/ai/agent_sdk/driver/environment.rs`, then review the CLI
payload in `crates/warp_cli/src/agent.rs`.
Focus on the boundary between the source and target identities.
Overrides match the merged live source list. The target identity
controls clone, authentication, snapshot, and cache identity, while the
source repository name remains the checkout path used by setup,
indexing, MCP, skills, and working-directory selection.
## What changed
- Extends the hidden repeated repository-head override payload with
optional `clone_from` and `preserve_origin` fields. Every override
requires a head; mapped targets require an exact commit SHA.
- Always merges live environment repositories and task-level
repositories with the existing deduplication behavior. Sparse overrides
may change only matching repository clone requests.
- Clones a mapped target into the source-named checkout and keeps its
`origin`; global origin removal still applies to every unmapped
repository.
- Preserves unsupported-forge, duplicate-source, unmatched-source,
checkout-directory collision, and legacy head-only validation.
## Validation
- `./script/format` — passed after merging `origin/master`.
- `cargo nextest run -p warp --locked 'agent_sdk::'` — 676 passed.
- `cargo nextest run -p warp_cli --locked 'repository_'` — 8 passed.
- `cargo clippy --workspace --locked --all-targets --tests -- -D
warnings` — passed.
- `cargo clippy -p warp --locked --all-targets --tests -- -D warnings` —
passed.
- `cargo build --workspace --locked` — passed.
- `git diff --check` — passed.
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
---------
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
Co-authored-by: Warp Agent <agent@warp.dev>
* Attach the ambient workload token to the built-in Factory MCP server (#15992)
## Description
The built-in Factory MCP server installation only ever set an
`Authorization` header, for both interactive and CLI/cloud agent runs.
Cloud agent runs authenticate to warp-server's `/mcp/factory` route with
a task-scoped API key, which the server resolves back into a live
ambient task -- but with no `X-Warp-Ambient-Workload-Token` attached,
`ValidateWorkloadTokenForRun` always saw an empty token and silently
soft-failed instead of verifying the caller is that task's own worker.
This resolves the ambient headers (workload token, cloud-agent ID) for
the run's active task, when it has one, and attaches them alongside the
bearer token. Interactive (GUI/TUI) sessions have no active ambient task
and are unaffected.
## Linked Issue
- [ ] No linked GitHub issue -- found via a code review discussion on a
related warp-server PR, not a filed issue.
## Testing
- Ran `cargo check`, `cargo nextest run` (scoped to the touched
modules), `cargo fmt --check`, and `cargo clippy -- -D warnings`
(without `--all-features`, which fails identically on a clean checkout
due to an unrelated, pre-existing `agent_mode_evals` compile break). All
clean.
- Added
`factory_installation_attaches_ambient_headers_for_an_active_task`,
covering that the workload token and cloud-agent ID land in the resolved
MCP config.
- [ ] Not manually tested end to end with `./script/run`: reproducing
this requires a real dispatched cloud agent task calling the Factory MCP
server, which needs a live warp-server deployment carrying the
corresponding server-side validation path. Requesting that as a
pre-merge check.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
<!--
CHANGELOG-NONE
-->
---------
Co-authored-by: Warp <agent@warp.dev>
* [APP-5720] Round-trip request metadata in the client (#15876)
## Description
Adds client-side plumbing for server-authored `Message.request_metadata`
records from [warp-proto-apis
#377](https://github.com/warpdotdev/warp-proto-apis/pull/377):
* Bumps the proto dep with the new `RequestMetadata` message
* Update the local model to add the new fields from this message
* Add tests to ensure the message survives the round-trip and gets
persisted correctly (also one to check the summing behaviour)
* I also took this opportunity to clean up some of the tests where we
could be using the `Default` trait to initialize our test data and save
a bunch of LOC
This ensures that the request metadata gets correctly persisted back to
the server in the task (convo) message list. This also sets us up to
display this metadata in https://github.com/warpdotdev/warp/pull/15931.
## Linked Issue
[APP-5720](https://linear.app/warpdotdev/issue/APP-5720/persist-per-request-usagecosttiming-data-in-ai-conversation-request)
- [x] Screenshots or video are not applicable because this PR has no
user-visible or UI changes.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
Co-Authored-By: Warp <agent@warp.dev>
---------
Co-authored-by: Warp <agent@warp.dev>
* Pre-dismiss HOA onboarding for new users (#16010)
## Description
New accounts can quit sign-up before the client marks them onboarded. On
the next launch, that state allowed the existing-user HOA onboarding to
appear. This change pre-dismisses HOA onboarding for new-user
`AuthComplete` events and whenever the legacy or Get Started onboarding
paths mark a user onboarded.
The regression tests verify that the new-user path writes the completion
marker and suppresses HOA onboarding, while the existing-user path
leaves the marker untouched.
## Linked Issue
No linked GitHub issue. This change was requested through an ad hoc
Factory intake.
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. Not applicable because there is no linked issue.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes). Not run because the intake requested automated-only
verification.
## Testing
- `./script/format` — passed.
- `cargo nextest run -p warp one_time_modal_model` — passed: 10 tests
passed, 6616 skipped.
- `cargo clippy -p warp --all-targets --tests -- -D warnings` — passed.
- `cargo clippy --workspace --all-targets --all-features --tests -- -D
warnings` — blocked by unrelated existing `agent_mode_evals` cfg
conflicts: 21 `warp` library errors and 5 `warp` test errors, including
cfg-disabled execution-profile migration helpers and dead-code errors in
untouched files.
- [ ] I have manually tested my changes locally with `./script/run`. Not
run because the intake requested automated-only verification.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-BUG-FIX: Fixed an issue where new users who quit sign-up
partway could be shown the existing-user 'Introducing universal agent
support' onboarding on their next launch.
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
Co-authored-by: Warp <agent@warp.dev>
* Report only the repos that actually failed in parallel clone errors (#16006)
## Description
When an environment has multiple repos to clone,
`clone_checkout_requests` clones them all in parallel via one shell
script and only checked the script's overall exit code. If **any
single** repo's clone job failed, the resulting
`PrepareEnvironmentError::CloneRepo` reported **every repo name in the
batch** as failed, not just the actual offender(s) — so a failing
environment setup could claim a large repo list all failed to clone when
in reality only one did.
This surfaced while investigating a real dogfood report where a 19-repo
environment's setup failed with `Failed to clone [all 19 repos]`, which
made it impossible to tell which repo(s) actually caused the failure.
This PR tracks each background clone job's pid individually and records
the specific repo name to a marker file only when that job's `wait`
fails. After a failed run, the client reads the marker file back and
reports only the repos that were actually recorded as failed, falling
back to reporting the whole batch if the marker can't be read (e.g. the
script errored before reaching the wait loop).
## Linked Issue
- [ ] No linked GitHub issue — found via log/code investigation of a
dogfood report, not a filed issue.
## Testing
- Updated the existing `build_parallel_clone_command` script-generation
tests for the new per-repo pid/wait shape and the added
`failed_repos_path` parameter.
- Added
`parallel_clone_command_records_only_the_failing_repo_name_on_partial_failure`,
which drives the real generated script end-to-end (via a stubbed
`clone_repo`) and asserts only the genuinely failing repo gets written
to the marker file.
- `cargo check -p warp --lib`, `cargo nextest run -p warp --lib`
(environment module, 44/44 passed), `./script/format`, and `cargo clippy
-p warp --lib --tests -- -D warnings` all clean.
- [ ] Not manually tested with `./script/run`: this only changes the
error message/diagnostics path for a multi-repo cloud environment clone
failure, which isn't practical to trigger locally.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
<!--
CHANGELOG-NONE
-->
Co-Authored-By: Warp <agent@warp.dev>
---------
Co-authored-by: Warp <agent@warp.dev>
* Queue follow-up injections for warp agent, using new steering mode (#15921)
## Description
Queued prompts for a conversation are delivered under one of two modes,
stored per conversation on `QueuedQueryModel`
(`QueuedPromptDeliveryMode`):
- **Steering**, set automatically for Oz ambient-agent-driven
conversations by `bind_native_prompt_conversation`: a queued prompt goes
out on the next request made for the conversation — a tool-result
follow-up, an orchestration-event injection, or the conversation going
idle — instead of waiting for the whole turn to finish. Each prompt is
still sent as its own request/exchange; queued prompts are never
combined into one exchange.
- **Queueing**, used everywhere else (local `/queue`, the auto-queue
toggle, LRC auto-queue): the next queued row is sent only once the
conversation finishes on its own.
For a Steering conversation, `route_native_startup_injection` always
appends an incoming prompt to the queue, then dispatches the head row
via `dispatch_queued_warp_agent_prompt` when
`can_dispatch_queued_warp_agent_prompt` confirms nothing is currently
streaming and native setup has finished.
`dispatch_queued_warp_agent_prompt` is a single controller-level entry
point that dispatches whichever queued row it can resolve and send on
its own — a local prompt via `send_queued_user_query_in_conversation`, a
shared-session-injected prompt via attachment staging/download —
regardless of which origin queued it; a shell command, a locked row, or
a row being edited is left for
`TerminalInput`/`TerminalView::drain_queued_prompts`, which need editor
and PTY access the controller doesn't have. It takes an optional
specific row id: `None` dispatches the head in FIFO order (every
automatic trigger), `Some(id)` targets an explicit row such as "Send
now", which may not be the head and is allowed to interrupt an active
stream on purpose.
When a turn is already active, `steer_head_prompt_for_request` folds the
head queued row into whichever request the conversation naturally sends
next (`send_follow_up_for_conversation`,
`inject_pending_events_for_request`) as an additional input, so the
model sees it as soon as possible without interrupting the turn in
flight or waiting for full completion.
Downloading a shared-session prompt's file attachments is best-effort:
`download_task_file_attachments` (shared by the live and queued
injection paths) logs and skips a failed URL lookup, directory creation,
or individual file download rather than aborting the send — the prompt
still reaches the conversation, with whatever attachments succeeded.
### Scope and tradeoffs
- A shared-session row carrying a file attachment that still needs
downloading can't be resolved synchronously, so it's excluded from the
piggyback path and only dispatched via the idle-triggered drain.
- Mode selection is not user-facing yet; Steering is set automatically
and cannot currently be toggled.
- Shared-session viewer queue display/synchronization remains out of
scope.
### Review guide
Start with `queued_query.rs` for `QueuedPromptDeliveryMode` storage and
the per-row eligibility rules (`peek_autofire`) both modes share. Then
`controller/startup_queue.rs` for `dispatch_queued_warp_agent_prompt`
and `route_native_startup_injection`, and `controller.rs` for
`can_dispatch_queued_warp_agent_prompt` and
`steer_head_prompt_for_request`'s two call sites. `terminal/view.rs`'s
`maybe_dispatch_steering_prompt_now`/`drain_queued_prompts` and
`terminal/input.rs`'s `send_queued_row_immediately` cover the
local-queueing and "Send now" side. `attachment_utils.rs` has the shared
download helper.
[Implementation
plan](https://staging.warp.dev/drive/notebook/Oz3uEHLh7CnSvDELpSvEzG) ·
[Development
conversation](https://staging.warp.dev/conversation/c5dcedb1-fc2f-4885-8976-30b779fa7699)
## Linked Issue
No linked issue was provided.
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. — No linked issue.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes). — No screenshots; the only UI-visible change is treating
`SharedSessionInjection` rows like `InitialCloudMode` in the
queued-prompts panel, with no new surface to capture.
## Testing
`cargo check -p warp`, `./script/format --check`, and all three
presubmit Clippy variants (`cargo clippy --workspace --exclude
warp_completer --all-targets --tests`, `cargo clippy -p warp
--all-targets --tests`, `cargo clippy -p warp_completer --all-targets
--tests`, all with `-D warnings`) passed. The `ai::blocklist`,
`ai::agent_sdk`, `terminal::view`, `terminal::input`, and
`ai::attachment_utils` nextest suites passed in full (2139 tests). The
full workspace test suite was not run.
Not verified: end-to-end delivery against a live Oz shared-session
worker.
- [ ] I have manually tested my changes locally with `./script/run` —
Not yet verified against a live worker; see above.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-OZ: Fixed native Oz follow-up prompts interrupting one another
instead of each reaching the agent.
Co-Authored-By: Warp <agent@warp.dev>
* Adopt speed-first agent validation guidance (#16025)
## Description
This updates Warp's agent-facing guidance to favor targeted feedback
during implementation and one terminal tests → lint/check → format
sequence. It removes routine defensive presubmit reruns and leaves broad
platform and workspace coverage to CI, accepting rare CI follow-up work
for substantially faster typical implementation.
The guidance keeps explicit user or task requirements authoritative and
does not change human contributor instructions or `script/presubmit`.
## Linked Issue
No linked issue; this is an internal agent-workflow change.
- [ ] The linked issue is labeled `ready-to-spec` or
`ready-to-implement`. — No linked issue applies.
- [ ] Where appropriate, screenshots or a short video of the
implementation are included below (especially for user-visible or UI
changes). — No user-visible or UI behavior changes.
## Testing
`git diff --check origin/master...HEAD` passed after merging the latest
`master`. No Rust tests, Clippy, presubmit, or runtime testing was run
because this PR changes Markdown agent guidance only.
- [ ] I have manually tested my changes locally with `./script/run` —
Not applicable to instruction-only changes.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
---------
Co-authored-by: Warp <agent@warp.dev>
* [REMOTE-3187] Forward harness shutdown exit codes (#16008)
## Description
Add an optional validated `--exit-code` to `warp harness-support
report-shutdown`, forward it through the app client, and serialize it
only when present. Clean shutdown remains `{}`, and legacy abnormal
payloads remain unchanged.
Rollout dependency:
[warp-server#17435](https://github.com/warpdotdev/warp-server/pull/17435)
must deploy first. After this client change, deploy
[warp-agent-docker#230](https://github.com/warpdotdev/warp-agent-docker/pull/230).
## Linked Issue
Implements
[REMOTE-3187](https://linear.app/warpdotdev/issue/REMOTE-3187/classify-self-hosted-startup-timeout-image-pull-and-exit-143-as-user).
- [x] The tracked work is approved for implementation.
- [x] No screenshots or video are applicable; this is non-rendered
CLI/API plumbing.
## Testing
- [x] `cargo test -p warp_cli report_shutdown -- --nocapture` (3 passed)
- [x] `cargo test -p warp
server::server_api::harness_support::tests::report_shutdown --lib --
--nocapture` (3 passed)
- [x] `./script/format --check`
- [x] `./script/check_no_inline_test_modules`
- [x] `cargo clippy --workspace --all-targets --tests -- -D warnings`
- [x] `cargo clippy -p warp --all-targets --tests -- -D warnings`
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
<!-- warp:pr-description-artifacts start -->
<!-- warp:pr-description-artifacts end -->
Co-authored-by: warp-agent-staging[bot] <240773466+warp-agent-staging[bot]@users.noreply.github.com>
* Turn panel UI for per-request usage metadata (APP-5720) (#15931)
## Description
Adds the per-turn "Turn" usage panel, driven by the `RequestMetadata`
records the client now persists (#15876).
Behind the `PricingTransparency` feature flag
**Trigger**
- Pie icon replaces the usage pill on the latest turn's response footer.
- Tooltip shows the turn's charge in the user's Credits/Dollars setting;
sub-cent amounts show as `<$0.01`.
- `PricingTransparency` flag off → the old usage pill renders exactly as
before.
https://www.loom.com/share/10a64478032e48b395ad55f03d092f3c
**Legacy conversations (no / incomplete records)**
- Panel still opens and shows only what the client can honestly derive.
- Timing from exchange timestamps; charges from the last-block snapshot
when it's the latest turn, otherwise hidden (unknown ≠ zero).
- Tool counts are omitted (only conversation-cumulative data exists).
## Linked Issue
APP-5720
## Testing
- [x] I have manually tested my changes locally with `./script/run` (see
video above)
- Seeded the local SQLite store with 21 mock conversations covering
every data shape (records, partial records, three legacy shapes, tool
round-trips, units toggle). Seeder + test plan kept out of the tree.
- `cargo clippy -p warp --all-targets --tests -- -D warnings` clean;
`cargo nextest run -p warp request_metadata turn_view turn_panel
convert_conversation` 53/53.
### Feature flag works
https://www.loom.com/share/98f46ef9851b4c2d9c8bc14738a9c079
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
Co-Authored-By: Warp <agent@warp.dev>
---------
Co-authored-by: Warp <agent@warp.dev>
* Skip the personal runs seed fetch for service-account principals (#16032)
## Description
**What:**
`AgentConversationsModel::fetch_ambient_agent_tasks_and_cloud_convo_metadata`
no longer issues the `GET
/api/v1/agent/runs?limit=100&creator=<user_id>` seed request when the
authenticated principal is a service account. The conversation-metadata
half of the initial load is unchanged, so the load-state machine still
reaches `Loaded`/`CloudFailed` as before.
**Why:** Grafana alert #3984 "Public API 500 error rate is high" (Sep
15). Every failing request was this exact call (`limit=100`,
`creator=serviceAccount%3A<uid>`) from Warp processes running inside
Namespace sandboxes as service accounts — dozens of distinct SAs at 4–56
req/hour each. `GetFirebaseProfile` returns the `serviceAccount:<uid>`
*telemetry ID* as the principal's `uid`, so `auth_state.user_id()`
carries that prefix for service accounts (`oz whoami` already strips
it), and this code sent it verbatim to a filter that only accepts bare
principal UIDs. Server-side that string hit a `uuid` column and 500'd;
warpdotdev/warp-server#17541 makes the server return an empty page
instead. This PR stops the client from making a request that can never
return anything useful.
**How:** Resolve `is_service_account()` up front and turn the creator
UID into an `Option`; the personal-runs future short-circuits to an
empty list when it is `None`.
**Not in this PR:** `AgentManagementView::trigger_filter_fetch` passes
the same `user_id()` as `current_user_uid`, so a human driving the
management view in a sandboxed GUI with "Personal only" selected still
sends the prefixed value. That is an interactive path rather than a
startup one, and once warpdotdev/warp-server#17541 lands it yields an
empty page instead of a 500, so I've left it alone here.
## Linked Issue
- [ ] No GitHub issue; tracked via the Grafana #3984 alert thread.
- [x] No UI change, so no screenshots.
## Testing
- `cargo clippy -p warp --lib -- -D warnings` passes; `cargo fmt` run.
- No new automated test: exercising this path needs a mock `AIClient`
wired through `ServerApiProvider`, AI-enabled settings, and a
service-account `AuthState`, which isn't currently scaffolded in the
model's tests. The production failure itself is regression-tested on the
server side (warpdotdev/warp-server#17541). Happy to add one here if
reviewers want it.
- [ ] Not manually run: the behaviour only differs when the app is
authenticated as a service account (sandbox `WARP_API_KEY`), which I
can't reproduce on a personal login.
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
CHANGELOG-NONE
Co-Authored-By: Warp <agent@warp.dev>
---------
Co-authored-by: Warp <agent@warp.dev>
* Fix child-agent pill crashes after reopening closed tabs (#15996)
* [APP-5720] Conversation usage popover in the agent input footer (#15946)
## Description
Adds a conversation-level popover that can be accessed from the agent
footer. It displays convo-level details and more granular breakdowns as
the data is available.
https://www.loom.com/share/ac65a821b1aa4b1ca5d653daccef2f2e
[Figma](https://www.figma.com/design/L0f0S2IgKVSMexaEYMQ8PH/Pricing-transparency?node-id=212-11616&m=dev)
### Historical Conversations
Since much of this data has been available historically in the
conversation metadata table in postgres, we are able to populate most of
the fields in the popover for historical conversations. If the data is
not available, we omit it (and show "No breakdown available" in the
token counts.
## Testing
- Unit tests
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
Co-Authored-By: Warp <agent@warp.dev>
---------
Co-authored-by: Warp <agent@warp.dev>
* Fix steering delivery for follow-ups with file attachments (#16046)
## Description
Fixes shared-session follow-ups with file attachments waiting until the
entire agent turn finishes instead of joining the next steering request.
Attachments now download eagerly when a prompt is queued, without
interrupting an active stream.
### What went wrong
The steering path introduced in #15921 builds the next request
synchronously. It explicitly skipped queued prompts containing a
`FileReference`, because those files needed asynchronous download.
Downloads only started when the prompt was dispatched through the
immediate or turn-completion path. A prompt received during an active
stream therefore remained queued across subsequent tool-result and
orchestration-event requests.
This also affected apparently text-only Slack replies: the Factory
mapped-thread path attaches the raw webhook body as
`event-payload.json`. In the staging reproduction, the second follow-up
reached the worker at **13:47:32.913 UTC**, but its download did not
start until **14:50:10.001 UTC**, despite many intervening tool calls
and request boundaries.
### How this fixes it
- Start attachment preparation on enqueue and keep the row in the queue
until it is ready. `QueuedQueryModel` owns per-row readiness and
resolved files, exposed through `ready_head` and `rea…



Summary
Fixes #403.
Adds GNU
du's--timeoption tocommand-signatures/json/du.json, following the approved spec inspecs/GH403/.--timeis a single option with an optionalWORDargument (isOptional: true), so baredu --timeremains valid.du --time=offers the five documented GNU values grouped into two alias suggestions:atime/access/use— last access timectime/status— last status-change timels.json's--coloroption (norequiresEquals).Out of scope (per spec, unchanged):
--time-style=STYLE,--max-depth(#372), pairing short options with long aliases (#374).Validation
npm run format -- command-signatures/json/du.json— unchanged (already Prettier-formatted).script/presubmit— passed:npm run format:check,cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings, and the fullcargo testsuite (176 tests inwarp-command-signatures, includingall_command_specs_succeed_deserialization, plus 10 inwarp-completion-metadata), all green.