docs(tools): guide proportional wait_for_message timeouts#784
Merged
Conversation
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
The tool returns the instant a message arrives, so timeout_seconds is only a cap. Reword its doc so agents right-size it (short for quick acks/small subtasks, longer only for long-running work) instead of defaulting to 600s and stranding themselves idle on trivial waits.
devin-ai-integration
Bot
force-pushed
the
devin/1784209706-wait-for-message-timeout-doc
branch
from
July 16, 2026 13:51
78863a0 to
6a60855
Compare
Contributor
Greptile SummaryThis PR clarifies how agents should choose
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (3): Last reviewed commit: "docs(tools): note wait_for_message timeo..." | Re-trigger Greptile |
Member
Interactive/chat sessions park until a message arrives without enforcing timeout_seconds; clarify the cap governs autonomous multi-agent waits.
Contributor
Author
0xallam
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wait_for_messageresumes the instant a message arrives (it's event-driven, not polling), sotimeout_secondsis purely a cap for the case where the expected message never comes. Agents were treating the 600s default as "how long to wait" and parking on trivial handoffs, stranding themselves idle far longer than needed when a reply doesn't arrive.Docs-only change to the
wait_for_messagedocstring (what the model sees) so agents pick a timeout proportional to the work:Also adds one line to the opening ("…pick a
timeout_secondsproportional to the work you're awaiting"). No behavior change.Link to Devin session: https://app.devin.ai/sessions/dad023e379e942f287bcf6822463b7a4
Requested by: @0xallam