anthropics / anthropics/claude-code

[BUG] Account switcher shows new account, but Code sessions still authenticate old account

オープン
#93,367 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:auth bug duplicate platform:macos
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code

### What's Wrong?

I currently have 2 Claude accounts:
1. sdenjoymfg@gmail.com
2. sarah@shopenjoymfg.com
I am logged into sarah@shopenjoymfg.com on the account switcher in the bottom left hand corner and trying to pull in my projects from sdenjoymfg.com for my new team account. my code sessions are still authenticating my old account sdenjoymfg@gmail.com

### What Should Happen?

I need to be logged into sarah@shopenjoymfg.com for both and be able to pull in the projects and session history from sdenjoymfg.com that is stored on my computer locally

### Error Messages/Logs

```shell

```

### Steps to Reproduce

I went through exact steps before

### Claude Model

None

### Is this a regression?

Yes, this worked in a previous version

### Last Working Version

_No response_

### Claude Code Version

1.49585.0

### Platform

Anthropic API

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by reproducing the account-switching flow on macOS with Claude Code 1.49585.0, checking whether Code sessions authenticate the selected account or the previous one. Done means switching to sarah@shopenjoymfg.com authenticates both the account switcher and Code sessions while preserving access to the locally stored projects and session history.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
macos
領域
authentication, cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。