anthropics / anthropics/claude-code

Mobile client creates a duplicate session on every reconnect to a remote session; auto-archive on disconnect no longer fires

未关闭
#92,235 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:desktop bug platform:macos regression
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

**What happens**

Connecting from the mobile client to an existing remote session creates a *new*
session record with the same title instead of attaching to the existing one.
Previously, disconnecting auto-archived the duplicate, so this was invisible.
That auto-archive no longer happens, so every login/reconnect cycle leaves a
permanent duplicate behind and the session list on the phone grows without bound.

**Expected**

Reconnecting attaches to the existing session, or — failing that — the duplicate
shell is archived on disconnect as it used to be.

**Evidence**

From a Claude Code desktop session on the host machine, `ListAgents` reports 26
peer sessions labeled `Remote Control · offline`. Grouped by title:

- one title appears 9 times (9 distinct session refs)
- two more titles appear 3 times each
- the remaining 11 titles appear once

So 26 entries correspond to roughly 14 real conversations plus ~12 duplicate
shells. The duplicates carry distinct session refs but identical titles.

These sessions have no record on the host machine: the desktop session store
returns only 5 sessions for this project even with archived included, none of
them matching the duplicated titles, and there are no local transcripts for them
under `~/.claude/projects/`. The duplicates therefore exist only account-side and
cannot be cleaned up from the desktop client — only from the phone, by hand.

**Environment**

- Host: macOS (Darwin 25.6.0), Claude Code desktop app
- Client creating the duplicates: Claude mobile app, Remote Control
- Behavior change: auto-archive-on-disconnect worked previously, stopped at some
point (exact version unknown)

贡献指南

这个仓库没有索引到贡献指南

调研方向

No source file or test is named. Start by tracing the mobile Remote Control reconnect flow and disconnect path, using ListAgents and the account-side session records as the observable entry points; done means reconnecting attaches to the existing session or the duplicate shell is archived, without permanent duplicates.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。