mirror of
https://github.com/block/buzz.git
synced 2026-10-31 22:41:12 +00:00
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>