Skip to content

feat(core): add a requester-side timeout to sendManageRequest - #103

Merged
Mearman merged 1 commit into
mainfrom
feat/manage-request-timeout
Sep 13, 2026
Merged

feat(core): add a requester-side timeout to sendManageRequest#103
Mearman merged 1 commit into
mainfrom
feat/manage-request-timeout

Conversation

@Mearman

@Mearman Mearman commented Sep 13, 2026

Copy link
Copy Markdown
Member

A held-open manage-request (a human approval, a not-yet-online peer) previously had no way for the caller to give up on it -- a never-answered request left the returned promise pending forever. An optional timeoutMs races the pending response against a timer, resolving { result: "error", code: "timeout" } instead of hanging; the pendingManageRequests entry is deleted atomically with the timer firing, so a response arriving just after the deadline is correctly dropped rather than resolving an already-settled promise.

Applies to any held-open manage-request -- closes the gap for agent-comms' connect_request too, not only a future capability.request.

Closes #80.

A held-open manage-request (a human approval, a not-yet-online peer) previously had no way for the caller to give up on it -- a never-answered request left the returned promise pending forever. An optional timeoutMs races the pending response against a timer, resolving { result: "error", code: "timeout" } instead of hanging; the pendingManageRequests entry is deleted atomically with the timer firing, so a response arriving just after the deadline is correctly dropped rather than resolving an already-settled promise.
@Mearman
Mearman marked this pull request as ready for review September 13, 2026 04:52
@Mearman
Mearman merged commit 90b5510 into main Sep 13, 2026
8 checks passed
@Mearman
Mearman deleted the feat/manage-request-timeout branch September 13, 2026 04:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 13, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-13T04:57:17.304671Z 90d092a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

Add requester-side timeout to the manage-request sending helper

1 participant