Skip to content

feat(gateway): let queue-mode follow-ups steer active runs#40076

Open
anzksdk wants to merge 1 commit into
NousResearch:mainfrom
anzksdk:feat/queue-participates-loop
Open

feat(gateway): let queue-mode follow-ups steer active runs#40076
anzksdk wants to merge 1 commit into
NousResearch:mainfrom
anzksdk:feat/queue-participates-loop

Conversation

@anzksdk

@anzksdk anzksdk commented Jun 5, 2026

Copy link
Copy Markdown

Summary

  • add opt-in display.busy_queue_delivery: steer for queue-mode busy follow-ups
  • when enabled, text follow-ups in busy_input_mode: queue are delivered via AIAgent.steer() after the next tool result instead of waiting for turn completion
  • preserve existing next_turn behavior by default and fall back to normal queueing if steer is unavailable/rejected

Closes #17298

Test Plan

  • python -m py_compile gateway/run.py hermes_cli/config.py
  • python -m pytest tests/gateway/test_busy_session_ack.py tests/gateway/test_restart_drain.py tests/run_agent/test_steer.py tests/gateway/test_subagent_protection_30170.py tests/gateway/test_config_env_bridge_authority.py tests/gateway/test_runtime_config_env_expansion.py -q -o 'addopts='\n\n## Notes\nI also attempted python -m pytest tests/gateway -q -o 'addopts=', but this local macOS run exhausted file descriptors (OSError: [Errno 24] Too many open files) after several thousand tests, so I kept the verified targeted gateway/steer/config suites above.

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery labels Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Allow queued messages to participate in ongoing agent loop execution

2 participants