claude-code - 💡(How to fix) Fix [BUG] Claude Agent in Xcode 26.4 does not stop to verify user is willing to start using PAYG billing [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45214Fetched 2026-04-09 08:10:37
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

In the Claude Agent provided within Xcode 26.4 and using a paid plan eg. Claude Pro and executing a prompt whilst nearing the 5-hour usage limit (eg. 95-99%), Claude transitions immediately into consuming PAYG extra usage without pausing to verify the user is willing to start using their PAYG credit.

This is in contravention to the online documentation regarding usage limits and gaining extra usage:

"How extra usage works

When you reach your plan’s usage limit with extra usage enabled: You’ll see a notification that you’ve reached your session usage limit. If extra usage is enabled and you have funds available, you can choose to continue working. Your subsequent usage will be billed at standard API pricing rates. Your session limits reset every five hours as usual."

(https://support.claude.com/en/articles/12429409-manage-extra-usage-for-paid-claude-plans accessed 8th April 2026).

The Claude agent executing within Xcode does not stop mid-processing an instruction and immediately begins consuming PAYG credit without providing any notification the session limit is reached or providing a prompt for the user to continue working.

This has already been reported to Apple's Feedback Assistant and they have completed their investigation saying "Works as currently designed".

What Should Happen?

The Claude Agent should pause with a prompt to the user eg. "Session limit reached. You have enabled extra usage. Continue using PAYG credit?" and expect a Y/N answer.

Error Messages/Logs

Steps to Reproduce

See the description.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.14 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

In addition to the reported issue, if extra usage is not enabled, when the 5 hour usage is completely consumed whilst processing a user prompt, the Claude Agent within Xcode 26.4 simply stops. No message is returned to the user indicating what has happened or how long the user should wait. The agent seems completely devoid of many features available from its CLI.

In fact the agent within Xcode is completely unable to tell the user what their current usage whilst within Xcode. Typing eg. /usage at the "Message Claude Agent" in-app prompt produces "Your request couldn't be completed", and attempts at "usage" or "claude usage" cause the agent to try and examine the current Xcode project.

If this is an issue between the Claude agent embedded and distributed within Apple's Xcode app and the user interface to it exposed to the user by Xcode, then Anthropic and Apple need to start having words: the user is not receiving the experience promised by Anthropic.

extent analysis

TL;DR

The Claude Agent in Xcode should be modified to pause and prompt the user when the session limit is reached, allowing them to choose whether to continue using PAYG credit.

Guidance

  • Verify that the issue is not related to the specific Claude Model (Sonnet) being used by testing with other models.
  • Check the Anthropic API documentation to see if there are any specific requirements or settings for handling session limits and extra usage.
  • Consider filing a bug report with Apple to revisit their "Works as currently designed" response, as the behavior described does not match the online documentation.
  • Test the Claude Agent in a different environment (e.g. CLI) to see if the issue is specific to the Xcode integration.

Example

No code snippet is provided as the issue seems to be related to the integration of the Claude Agent with Xcode rather than a specific code problem.

Notes

The issue may be related to a mismatch between the expected behavior described in the online documentation and the actual implementation of the Claude Agent in Xcode. It is unclear whether this is a bug in the Claude Agent, Xcode, or the integration between the two.

Recommendation

Apply workaround: Modify the Claude Agent to pause and prompt the user when the session limit is reached, or work with Apple to resolve the issue, as the current behavior does not match the expected behavior described in the online documentation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING