Skip to content

OpenAI Agents adapter: tell the app why a call was held #832

Open

Description

@LoopGlitch26

When the signer holds a call (ask), the OpenAI Agents adapter (tracekit/integrations/openai_agents.py) doesn't pass the decide response's reason to the app or the model, so the app can't show the person why it's waiting. For example, a grant's 100 of 120 USD used; this call needs 40 USD. The spending recipe (#830) has to read the reason from the bundle after export instead. Found while writing that recipe.

Done when:

  • A held call gives the app the signer's reason (the decide response's reason or reasons), the way the other adapters do. Check tracekit/integrations/gate.py and the LangChain adapter, and match their shape.
  • The model is told the call is held and why, as the Claude Code hook's message does (stopped() in tracekit/integrations/claude_code.py), without the approval commands, which are for the person.
  • A test fails on main and passes with the change.
  • If it's simpler, the recipe's example (examples/v2/openai_agents/spending.py, once Docs: a recipe for agent spending limits and offline receipts (intent grants) #830 merges) prints the reason at the hold instead of from the bundle.

Commits need a DCO sign-off (git commit -s).

Activity

  1. Seemanshi2104 commented on Nov 15, 2026

    @Seemanshi2104
    Contributor

    I would like to work on this issue.

  2. LoopGlitch26 commented on Nov 15, 2026

    @LoopGlitch26
    MemberAuthor

    Assigned to you. Ask here if anything in the issue is unclear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions