Skip to content

ask_user: never expires, no tokens spent waiting - #22

Merged
Darknode-Official merged 1 commit into
mainfrom
feat/ask-never-expires
Nov 8, 2026
Merged

Darknode-Official merged 1 commit into
mainfrom
feat/ask-never-expires

Conversation

@Darknode-Official

Copy link
Copy Markdown
Owner

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.

  • 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

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
@Darknode-Official
Darknode-Official merged commit 9cad6f1 into main Nov 8, 2026
6 checks passed
@Darknode-Official
Darknode-Official deleted the feat/ask-never-expires branch November 8, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant