Skip to content
offprompt

await_secret

Waits for a collect_secret request that came back awaiting. It long-polls for up to 60 seconds, or 50 in Cline, which stops a call at 60, and returns as soon as the request is written or expires.

{ "request_id": "9f3c1e7a" }

The agent needs it in two cases:

  • collect_secret returned a link, from a cloud sandbox or because no browser could be opened. The agent shows the link, then waits here.
  • collect_secret ran in Cline and answered before Cline's 60 second limit on a call, while the page was still open.
  • The human interrupted a collect_secret that was waiting, and the request is still open.

While the status is awaiting, the agent calls it again, with no other work in between.

Input

FieldTypeWhat it is
request_idstringThe request_id collect_secret returned

Output

The same fields as collect_secret's output, without expires_in: tell_user first once written, then request_id, status, names, and once written kept, emoji, file_keys and written_anyway, then sink and note.

While a request whose link the agent passed on is awaiting, url comes back too, and the note asks the agent to put the link in whatever it writes to you, its last message included. Once that request closes unwritten, the note says the link no longer opens and that a new collect_secret makes another.

A request offprompt does not know is an error result: No offprompt request with id 9f3c1e7a. It may have expired with the server restart. Requests live in the server's memory only, so one from before the agent restarted offprompt is unknown, and offprompt lets a request go an hour after its expiry time.