Xcode 26.4 rc

Since 26.4 beta 3 I've been having errors after a few hours of using Claude Agent. I get an error stating that I am not authed. If I go into Xcode settings, it still shows I am signed into Claude Agent. I have click sign out and then go through the whole auth process again to start using the agent again. This is on two separate computers.

Is there anything I can do to stop this behaviour and stay logged in for longer? It worked fine in 26.3.

Same here. I'm seeing this, and other Coding Intelligence regressions.

Hi Ajaxharg, mistermodem, thanks for reporting this issue. Additional logging will help with the investigation. Please file an issue with http://feedbackassistant.apple.com, attach a sysdiagnose, and provide the issue number here.

Same issue with Xcode 26.4 (17E192): Failed to authenticate. API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."}"request_id":"req_..."}

I don't normally complain. But I am unpleasantly surprised that Apple shipped Xcode Version 26.4 (17E192) with its known Anthropic OAuth token bug. Xcode 26.4RC and the RC version have proven to be less stable in using Intelligence, specifically Claude than was Xcode 26.4b3.

Please folks, test better before releasing.

Thank you for sharing your post. I understand that it can be frustrating, especially when the job is impacting your daily routine. I am eager to assist you in any way I can.

I have a potential idea, but I would like to request a bug filing for further investigation.

Typically, authentication tokens expire after a few hours. In a stable build, Xcode silently uses a “refresh token” to obtain a new session in the background. Consequently, the system may be terminating your session when the initial token expires. This is an issue that requires immediate attention. However, I am only speculating about the cause.

Given that this issue is occurring across two separate computers and began specifically in beta 3, it is highly probable that the problem lies within the beta itself rather than a misconfiguration on your end.

Instead of simply signing out and signing back in, I recommend completely deleting the integration from Xcode.

  1. Navigate to Xcode > Settings > Accounts (or the specific Claude Agent settings pane).
  2. Select the account and click the minus (-) button to completely remove it.
  3. Restart your Mac (to clear any lingering background authentication daemon states).
  4. Open Xcode and add the account back from scratch.

Will this resolve the issue of refreshing the token?

I would kindly ask you guys to file a bug on this one.

Once you open the bug report, please post the FB number here for my reference.

If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why?

Albert
  Worldwide Developer Relations.

I'm seeing the same issue in Xcode 26.4 release.

Failed to authenticate. API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing token."},"request_id":"req_011CZaDXn4KLC1KJ3SsLdBwC"}

This is happening for Claude Agent within Xcode and the only way I can fix it is to log out of Claude and then log back in. Very frustrating.

I see that same issue as @dppeak and it is solved the same way.

Anyone has filed a bug for this issue where the token does not refresh?

https://developer.apple.com/forums/thread/712889

Can I ask you to download Xcode 26.5 beta to see if fixes the issue?

Albert
  Worldwide Developer Relations.

I filed this feedback on the OAuth issue: FB22388572

@sparkleboss Thank you for this. I see that it has been filed today. Let us route it to the appropriate team for review.

We're unable to share any updates on specific reports on the forums. But the team will reach out to you on the Feedback Assistant.

For more details on when you'll see updates to your report, please see What to expect after submission.

Albert Pascual
  Worldwide Developer Relations.

Xcode 26.4 rc
 
 
Q