feat(approvals): a request can ask to stay answerable longer - #78
Merged
Merged
Conversation
An agent parking an unattended task needs its approval request answerable for hours — asked at 3am, answered at 8 — but every request expired after the model's default hour. POST /api/external/approvals takes an optional expires_in_seconds (60 s to 7 days). Asking again for the same action keeps the one request and never shortens it. Default unchanged.
This was referenced Sep 30, 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.
An agent parking an unattended task needs its approval request answerable for hours (asked at 3am, answered at 8), but every request expired after the model's default hour.
POST /api/external/approvalsnow takes an optionalexpires_in_seconds(60 s to 7 days; 422 outside that range). Asking again for the same action keeps the one request and never shortens it. The default is unchanged.Used by Prax's parked approvals (praxagent/prax, parked-approvals PR; pattern credit: OpenWorker). Tests: 3 new in
test_agent_self_approvals.py; full suite green.