GeezerVison is showing github.com — feat(fleet-agent): fleet shell --target actions — dispatch through placement, wait for the result (#12236 item 6) by dezren39 · Pull Request #13020 · developing-today/code
Conversation
dezren39
commented
Nov 23, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Item 6 of #12236: fleet shell --target actions — send a command to a GitHub Actions surface through placement and wait for the result, so the shell targets share one verb.
What lands
Target::Actions(repo) beside Local/Laptop/Codespace. The repo comes from the new --repo OWNER/NAME flag, else the checkout's origin remote (ssh and https shapes). auto never picks actions; an explicit target is used as given, as with the other targets.
- The plan is the dispatch call itself (
fleet queue dispatch --repo … --command … --dispatch --json), so --print shows exactly what will be submitted. run() drives it with the patient world call (dispatch changes state on the far side), then polls fleet queue session result every 15s up to --timeout (default 3600, the build budget).
- The verdict prints as a record (target, repo, handle, state, run_url) and the exit code is 0 when the run succeeded, 1 when it failed or was cancelled — new
Done::PrintedCode. A wait that expires is a Down error naming the reconnect (fleet queue session result HANDLE). The session record carries no command output, so the record points at the run URL for logs — stated in the usage text.
--detach dispatches and prints the handle without waiting. Interactive use, --build, and --cwd are refused with reasons (no shell, host build lock, or caller cwd exists on a runner).
fleet shell targets lists actions; reachable = the surface registry holds a github-actions or blacksmith surface.
Verification
cargo test -p fleet-agent: 89 passed / 0 failed, including 6 new tests (plan shape + the three refusals, flag/origin resolution incl. malformed repo and no-origin, dispatch→wait→verdict for success and failure, detach never polls, expired wait names the reconnect, targets listing). cargo fmt clean.
- Live, with the worktree-built binary:
fleet shell targets reports actions reachable from the real registry; fleet shell --target actions --repo dezren39/fleet -- echo lane-ih-smoke dispatched through placement to the fleet-forks surface, waited, and printed state: succeeded — handle fp_bb0422c8ac34bd3993e97d0e4bffaefa, run https://github.com/developing-today-forks/fleet/actions/runs/45128891905, independently read back as completed/success.
- One environment note:
cargo clippy -p fleet-agent on the laptop died on a stale-artifact toolchain error (E0514, serde built by an incompatible rustc) before reaching this code — the same artifact class already recorded on C8-M: metadata profile and typed links for report/page ingestion #12919; the test build with the same toolchain is clean.
Refs #12236 (item 6; the issue stays open — items 1 and 2 and the "Done when" observations remain).

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…acement and wait for the result (#12236 item 6)
`fleet shell` gains a fourth target beside laptop/codespace/local:
`--target actions [--repo OWNER/NAME]` sends the command to a
GitHub Actions surface through placement (fleet queue dispatch) and
waits on the placement session until it is terminal.
- Target::Actions(repo): the repo comes from --repo, else the
checkout's origin remote; auto never picks actions.
- The plan is the dispatch call itself, so --print shows exactly
what will be submitted; run() drives it with the patient call
(dispatch changes state on the far side), then polls
`queue session result` every 15s up to --timeout (default 3600).
- The verdict prints as a record (handle, state, run_url) and the
exit code is 0 when the run succeeded, 1 when it failed or was
cancelled (new Done::PrintedCode). A wait that expires is a Down
error naming the reconnect command and the handle.
- --detach dispatches and prints the handle without waiting.
Interactive use, --build and --cwd are refused with reasons:
there is no shell, host build lock or caller cwd on a runner.
- `fleet shell targets` lists actions, reachable when the surface
registry holds a github-actions or blacksmith surface.
Tests: 6 new (plan shape + refusals, flag/origin resolution, the
dispatch-wait-verdict flow for success and failure, detach,
expired wait, targets listing); fleet-agent suite 89 passed.
Live acceptance (worktree-built binary): `fleet shell --target
actions --repo dezren39/fleet -- echo lane-ih-smoke` dispatched to
the fleet-forks surface and reported state=succeeded; the run
(developing-today-forks/fleet actions run 45128891905) completed
with conclusion success.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 41 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
3dff5c93-1b6b-4479-91eb-c17f0ca63b8f
Commits
-
Reviewing files that changed from the base of the PR and between dd79f4b and bb62941.
Files selected for processing: 3
-
pkgs/fleet/crates/fleet-agent/src/lib.rs
pkgs/fleet/crates/fleet-agent/src/shell.rs
pkgs/fleet/crates/fleet-agent/src/tests.rs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-23T07:14:25.833310Z |
bb62941 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|