Skip to content

fix(acp): restore notification routing and suppress large_futures (#3520, #3521)#3530

Merged
bug-ops merged 1 commit intomainfrom
3520-acp-empty-output-large-futures
Apr 27, 2026
Merged

fix(acp): restore notification routing and suppress large_futures (#3520, #3521)#3530
bug-ops merged 1 commit intomainfrom
3520-acp-empty-output-large-futures

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 27, 2026

Summary

  • Remove no-op on_receive_notification handler from spawn_subagent_inner in crates/zeph-acp/src/client/mod.rs. The handler was intercepting all session/update messages at the connection level and discarding them before ActiveSessionHandler could route them into update_rx. As a result, drain_until_stop never received text chunks and zeph acp run-agent always produced empty stdout.
  • Box agent.run() at two call sites (src/acp.rs:901, crates/zeph-bench/src/runner.rs:532) to move the 17 400-byte future onto the heap, eliminating the clippy::large_futures error triggered when building with --features full (includes classifiers).

Test plan

  • cargo build --features full — compiles without errors
  • cargo clippy --workspace --features full -- -D warnings — zero warnings/errors (large_futures gone)
  • cargo +nightly fmt --check — no formatting issues
  • cargo nextest run --config-file .github/nextest.toml --workspace --lib --bins — 8653 tests pass

Closes #3520
Closes #3521

Remove the no-op on_receive_notification handler from spawn_subagent_inner
(crates/zeph-acp/src/client/mod.rs). The handler was intercepting all
session/update messages at the connection level and discarding them, so
agent_message_chunk notifications never reached update_rx. drain_until_stop
now receives text chunks correctly, fixing the empty-output regression in
`zeph acp run-agent` (#3520).

Box agent.run() at the two affected call sites (src/acp.rs:901,
crates/zeph-bench/src/runner.rs:532) to move the 17 400-byte future onto
the heap and resolve the clippy::large_futures error that appeared when
building with --features full (classifiers) (#3521).

Closes #3520
Closes #3521
@bug-ops bug-ops enabled auto-merge (squash) April 27, 2026 19:47
@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes bug Something isn't working size/S Small PR (11-50 lines) labels Apr 27, 2026
@bug-ops bug-ops merged commit 0c544c6 into main Apr 27, 2026
32 checks passed
@bug-ops bug-ops deleted the 3520-acp-empty-output-large-futures branch April 27, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation rust Rust code changes size/S Small PR (11-50 lines)

Projects

None yet

1 participant