Skip to content

fix(gateway): send feedback when text messages are queued during active session#37114

Closed
alaamohanad169-ship-it wants to merge 2 commits into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/gateway-busy-feedback
Closed

fix(gateway): send feedback when text messages are queued during active session#37114
alaamohanad169-ship-it wants to merge 2 commits into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/gateway-busy-feedback

Conversation

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor

🔄 Auto-rebased onto latest origin/main (was 139 commits behind). Clean diff verified (7 files, 96 lines).

Replaces #31612, which was auto-closed when the head branch was recreated during the rebase. The fix content is identical to the original; only the parent commit has changed from fork/main to the latest origin/main.

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 139 commits behind). Clean diff verified (7 files, 96 lines, no contamination). Ready for review.

This replaces #31612 (auto-closed during rebase). Fix content is identical to the original; only the parent commit was changed from fork/main to current origin/main.

@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 2, 2026
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

👋 Friendly nudge — this PR is ✅ clean, small fix (1 file, +16/-0), been open since Jun 2. Adds feedback when text messages queue during active sessions. Could a maintainer take a look?

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from b5e9259 to 706ae4b Compare June 3, 2026 01:11
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 109 commits behind). Clean diff verified. Ready for review.

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

@OutThisLife — this one's been green since Jun 2. Small fix (1 file, +16/-0): adds feedback when text messages queue during an active session. Could use a merge when you get a chance.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from 706ae4b to bc59d3f Compare June 3, 2026 17:07
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 81 commits behind). Clean diff verified (7 files, 86 insertions, 10 deletions). Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from bc59d3f to 5dc7966 Compare June 4, 2026 01:10
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 43 commits behind). Clean diff verified (7 files, 86 lines). Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from 5dc7966 to cdac2fa Compare June 4, 2026 09:11
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 66 commits behind). Clean diff verified. Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from cdac2fa to 5d0024e Compare June 4, 2026 13:07
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 35 commits behind). Clean diff verified. Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from 5d0024e to d8f2e77 Compare June 4, 2026 17:22
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 0 commits behind). Clean diff verified. Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from d8f2e77 to 0fd3011 Compare June 5, 2026 01:21
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 40 commits behind). Clean diff verified (7 files, +86/-10). Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from 0fd3011 to 7d1a3a3 Compare June 5, 2026 05:50
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 43 commits behind). Clean diff verified (7 files, 96 lines). Ready for review.

…ve session

When the agent is actively running and a user sends a text message,
the message was silently queued with no indication to the user. The
only way to interrupt was knowing about /stop, which is not
discoverable in the moment.

This fix sends a brief acknowledgment when a text message is queued:
'⏳ Agent is busy — message queued for the next turn. Use /stop to interrupt.'

The feedback is sent via _send_with_retry with reply_to set to the
incoming message ID, so it appears as a reply on platforms that
support it. Failures are silently caught and logged at debug level
to avoid disrupting the main message flow.

Fixes NousResearch#31588
The busy feedback feature (PR NousResearch#31612) sends a '⏳ Agent is busy' notice
for ALL text messages queued during an active session. Update the three
TestNonBypassStillQueued tests to expect 1 sent response instead of 0,
while still verifying the message is queued as pending (not dispatched).
@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/gateway-busy-feedback branch from 7d1a3a3 to e6c2e54 Compare June 5, 2026 21:06
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Auto-rebased onto latest origin/main (was 48 commits behind). Clean diff verified (6 files, +83/-9). Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it deleted the fix/gateway-busy-feedback branch June 6, 2026 15:16
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.

2 participants