anthropics / anthropics/claude-code

Remote Control has no way to complete re-login (OAuth) when the session's auth token expires

Aperta
#88,911 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:auth enhancement
Lingua principale
Python
Stelle
145k
Fork
23.1k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

**Problem**
When accessing a Claude Code session via Remote Control from a mobile/remote device (e.g. an iPad), there's no way to re-authenticate through Remote Control itself if the session's stored OAuth credentials expire or get revoked. Remote Control can send/receive messages to the live session, but the `/login` re-auth flow (print a URL, open it in a browser, pair back) isn't something Remote Control surfaces or can drive -- it just appears as a broken/unresponsive session.

**Workaround required**
The only way to recover is to fall back to raw SSH: connect to the host machine directly, `tmux attach` to the actual pane running the `claude` process, and run `/login` manually from there. This defeats the purpose of Remote Control for anyone who doesn't also have SSH access set up on their mobile device (or whose network path to SSH is separately gated, e.g. behind a VPN).

**Suggested improvement**
Remote Control should detect an auth/login-required state on the underlying session and surface it in the RC interface itself -- e.g. show the login URL directly in the RC chat/notification, or provide an in-app re-auth action -- so re-authentication doesn't require dropping to a terminal.

**Context:** discovered while testing iPad-based recovery access to a remote Claude Code session running in tmux for exactly this "what if I need to re-login and I'm not at my main machine" scenario.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by tracing the Remote Control message path and how the underlying claude process reports the /login state when OAuth credentials expire or are revoked. Reproduce the failure from an iPad or other remote device without using SSH. Done means Remote Control surfaces the login URL or provides an in-app re-auth action and the session can recover without attaching to tmux.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
authentication, mobile-dev
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.