Skip to content

Standard: a Responses call started in background mode is never billed, so the spending cap does not stop the run #683

Description

@aitianshi

Priority

P2 · Planned: limited in scope, has a way around it, or a missing feature

A placeholder: no bundled agent uses background mode. ARC Prize's harness does, for 24 of its OpenAI configurations.

Evidence

  • An upstream starts POST /responses with background: true, then polls GET /responses/<id>. The relay passes both.
  • The polled reply's usage is never priced. Under --max-usd 1 the run ends with spent_usd 0.0 and an unsettled hold, though its replies reported several times the cap.
  • The same replies without background mode: the run stops at the cap, each later call answered 402.
  • DELETE /responses/<id> is answered 501 by the relay itself.

Reproduction

  1. A scripted provider that serves /responses in background mode, the usage on the polled reply.
  2. standard run with --max-usd 1 on an upstream that calls it that way.

Expected

The polled reply is billed, the cap holds, and DELETE reaches the provider.

Acceptance

  • A background call's cost is in agent/calls.jsonl and in the ledger
  • The cap stops a run made of background calls
  • DELETE /responses/<id> is passed on

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    bug
    P2
    on Dec 2, 2026
  3. added theissue type on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions