Skip to content

Approval buttons expire after a fixed 1 hour with no notice: make the TTL configurable and explain expiry #208

Backlog

Description

@OkiriGabriel

Problem

Approval references expire after a hard-coded 1 hour (APPROVAL_TTL_SECONDS = 3600 in services/approval_store.py).

Proposed fix

  • Make it configurable with APPROVAL_TTL_SECONDS (default 3600, bounded to between 5 minutes and 24 hours), with a per-type override for containment (CONTAINMENT_APPROVAL_TTL_SECONDS, e.g. 4h).
  • Show "expires at HH:MM UTC" in every approval message.
  • On an expired click, reply clearly ("This approval expired at …; ask the agent to request it again") and record a expired decision. Don't report "failed".
  • Optionally, when an unanswered approval expires, notify the channel so it doesn't fail silently.
  • Tests: the configured TTL is respected, and an expired click produces the expired message and record.

Files

services/approval_store.py, tools/notify.py, agent/core.py (execute_approved_action), api/server.py

Activity

  1. added
    enhancement
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions