Repository navigation
ask_user: never expires, no tokens spent waiting - #22
Merged
Merged
Conversation
Before, an engine's ask_user call blocked until the user answered, and the engine's MCP tool timeout ended it after about 30 minutes. Now the call returns at once and tells the model to end its turn. The popup stays on screen with no time limit. When the user answers, the answer is sent as the next normal prompt in the same session (queued if a turn is still running). Dismissing it sends nothing, so it costs no tokens. - lib/nexus/ask-defer.js: the note returned to the model, answer text, and the follow-up prompt - ask-mcp.js: a deferred answer returns that note; the tool description says the answer comes as the next message - darknode.js: bridge asks are queued and shown one at a time; no longer held open while the user decides
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.
ask_user: never expires, no tokens spent waiting
Before, an engine's ask_user call blocked until the user answered, and the
engine's MCP tool timeout ended it after about 30 minutes.
Now the call returns at once and tells the model to end its turn. The popup
stays on screen with no time limit. When the user answers, the answer is sent
as the next normal prompt in the same session (queued if a turn is still
running). Dismissing it sends nothing, so it costs no tokens.
follow-up prompt
answer comes as the next message
open while the user decides