Repository navigation
fleet spawn: --task brief arrives with its beginning cut off (422-char task, 13.1.5 broker) - #1943
agent-relay-code[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
Triage after #1930 / v13.3.0: probably superseded. Leaving this open for Khaliq to decide. The truncation this PR fixes, a fleet What this PR does differently, and why it collides with main:
What it would still add, if wanted as small separate changes:
Recommendation: close this as superseded by #1893/#1930. If argv startup for Claude/Codex is still wanted, start it fresh after #1959 lands. 🤖 Generated with Claude Code |
|
Closing as superseded: the #1893 fix (merged via #1930, shipped in v13.3.0) covers the truncated startup brief by waiting for terminal readiness, using a bracketed paste and requiring harness acceptance. Passing the task as a startup argument would bypass that confirmation. See #1943 (comment). The whitespace-preservation detail can come back as a small follow-up if needed. |
Fix fleet startup task truncation for Claude and Codex
Fleet-spawned agents could receive an initial brief with its beginning missing because the broker typed it into a composer that was still starting. Claude and Codex now receive the complete initial task as one native startup prompt argument, including resumed Codex sessions and explicit PTY harness configs. The broker retains its existing startup-task ordering and suppresses duplicate PTY injection.
--, preserving leading dashes and protecting against variadic CLI options.Validation:
cargo build -p agent-relay-broker --bin agent-relay-broker— passed.node_modules/.bin/tsc -p tests/integration/broker/tsconfig.json— passed.node --test tests/integration/broker/dist/fleet-spawn-readiness.test.js— 7 passed, none skipped.cargo test -p agent-relay-broker --lib native_startup -- --test-threads=1— 5 passed.cargo test -p agent-relay-broker --lib -- --test-threads=1— 1,412 passed, 5 ignored, no failures.cargo clippy -p agent-relay-broker --lib -- -D warnings— passed.cargo clippy -p agent-relay-broker --all-targets -- -D warnings -A clippy::large_enum_variant -A clippy::result_large_err -A clippy::sliced_string_as_bytes— passed. Unadjusted strict all-target Clippy reports seven existing test-code lints under Rust 1.99.0.cargo fmt --all --check, Prettier checks for the changed TypeScript/changelog, andgit diff --check— passed.Rust commands used
CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0. For the full suite, inheritedGIT_CONFIG_COUNT,GIT_CONFIG_KEY_0..3, andGIT_CONFIG_VALUE_0..3were unset for the test process: this session'score.hooksPath=/dev/nulloverride otherwise disables hooks in four existing hook-chain tests.The 400-byte regression fails against the installed unmodified broker because its first startup turn is absent. Integration tests use the real broker/PTY and deterministic harness fixtures; no authenticated provider calls or running fleet services were used. Existing brokers need an upgrade and restart to use this path. No workflow files changed.
Checks
The checks failed, and there was no time left in the run to check the base commit (base not checked), so it is not known whether this change caused them. This pull request is a draft until someone looks.
What ran (.relayflow/check.sh)
Output on this branch (last 80 lines)
Fixes #1938
Agent Relay sessions
claudesessionaf230368· contributor · rangh prcommands · last active 2026-10-10