Skip to content

Add targeted wait-for-events CLI command - #16807

Merged
seemeroland merged 2 commits into
masterfrom
factory/quality-2393-wait-for-events
Nov 17, 2026
Merged

seemeroland merged 2 commits into
masterfrom
factory/quality-2393-wait-for-events

Conversation

@seemeroland

@seemeroland seemeroland commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add harness-support wait-for-events --run-ids <id>... so third-party harnesses can register targeted waits using workload credentials. The command returns the server's waiting_on_run_ids immediately; the agent must then end its turn, not complete its task.

CLI/API support only: no bundled skill, orchestration prompt, minimum plugin-version, desktop Waiting UI, or idle-timeout changes. Launch-gated skill #16874 is independent and remains draft until launch. This CLI PR does not depend on the skill changes or plugin releases.

The endpoint is supplied by the server API stack ending at https://github.com/warpdotdev/warp-server/pull/21020. This supersedes closed #15589. Other launch companions: Claude skill, Codex skill, server child prompts.

Linked Issue

QUALITY-2393

  • The linked issue is labeled ready-to-spec or ready-to-implement. Linear issue; aggregate status is managed by the foreman.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes). Non-rendered CLI/API path; no visual proof required.

Testing

  • cargo nextest run -p warp_cli -p warp --lib -E 'test(wait_for_events) | test(plugin_manager::claude::tests) | test(plugin_manager::codex::tests)': 70 passed on the CLI-only revision. Covers parser targets, authenticated request/response and rejected registration, plus unchanged plugin-manager compatibility.
  • cargo clippy -p warp_cli -p warp --all-targets --tests -- -D warnings: passed.
  • ./script/format: applied last; git diff --check passed.
  • Live registration/resumption was not exercised against the unmerged server API.
  • I have manually tested my changes locally with ./script/run. Not run; verified through parser and real HTTP-client mock tests.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-OZ: Third-party agents can wait for messages from other agents without marking their tasks complete.

@cla-bot cla-bot Bot added the cla-signed label Nov 11, 2026
@warp-agent-staging

Copy link
Copy Markdown
Contributor

This PR was generated with Warp, requested by @seemeroland.

Comment @warp-staging-factory on this PR to send it follow-up work.

View run View conversation View on Slack

@seemeroland seemeroland left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the skill prompt changes out of this PR into a separate one, so we can unblock merging the CLI support. We can't merge the skills until we're ready to launch the new waiting logic, which depends on server changes

Keep CLI support independent of bundled prompts and plugin minimum versions.

Co-authored-by: seemeroland <roland@warp.dev>
@warp-agent-staging warp-agent-staging Bot changed the title Add targeted wait-for-events CLI command and harness skill Add targeted wait-for-events CLI command Nov 17, 2026

@warp-agent-staging warp-agent-staging Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the CLI-only diff and split: no bundled prompt or plugin-minimum changes remain. Targeted tests: 70 passed; Clippy passed; formatting applied. Current CI is still running with no failed check observed. Live API/resumption was not exercised. Accepted; approval does not authorize merge.

View in factory

@seemeroland
seemeroland merged commit a45a951 into master Nov 17, 2026
35 checks passed
@seemeroland
seemeroland deleted the factory/quality-2393-wait-for-events branch November 17, 2026 19:25
seemeroland added a commit that referenced this pull request Nov 30, 2026
## Description
Add a dedicated `wait-for-events` skill and link it from child
orchestration. Children wait only for expected parent responses;
completed or stopped work uses `oz-finish-task`.

**Launch hold: keep this PR draft until the new waiting logic and server
changes are ready.** Split from [CLI-only
#16807](#16807), which can merge
independently. No minimum plugin-version changes are required or
included.

Companions: [Claude
#105](warpdotdev/claude-code-warp#105), [Codex
#10](warpdotdev/codex-warp#10), [server child
prompts #21704](warpdotdev/warp-server#21704).
Enable this guidance only after the API and CLI are available.

## Linked Issue

[QUALITY-2393](https://linear.app/warpdotdev/issue/QUALITY-2393/add-targeted-wait-for-events-cli-and-third-party-harness-skills)

## Testing
Reviewed the two-file copy-only diff; checked required skill frontmatter
fields, balanced fences, and `git diff --check`. No executable code
changed, so no behavioral tests or Rust formatter apply. Live harness
wait/resume and prompt evals were not exercised.

CI is not green: [Check CI
results](https://github.com/warpdotdev/warp/actions/runs/43986661474/job/133716453207)
reports `Job params had unexpected status skipped (expected: success)`
while draft jobs are skipped. No bot approval is claimed for this held
draft; check CI again when launch permits readying it.

## 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed factory:eng-factory-slim Label associated to the "eng-factory-slim" factory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants