Files
buzz/crates
Duncan 1b07e41d8e test(acp): drive busy-switch Unknown regression through production run_prompt_task
The Finding A regression previously hand-built a worker with cleared
capabilities and called return_agent directly, so deleting the
production fix line left it green — it proved a state transition the
handler does not generate. Rewrite it to run run_prompt_task with a
scripted ACP that holds the prompt open until session/cancel, delivering
ControlSignal::SwitchModel over the biased select! so the real handler
clears model_capabilities. Seed channel_info from cache and point the
REST client at a fast local stub returning [] so the profile lookup does
not retry twice against a dead base_url (~13s -> ~0.5s). Also document
the multi-worker tri-state coarseness at the return_agent refresh block
(bounded by the ratified F1/F2 effort-rejection machinery; no switch
epoch added) and correct the rejection test's closing comment.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-10 20:12:34 -04:00
..