makecindy / makecindy/cindy

本地任务导入:外部 VS Code Claude Code 会话被归入“已跳过”,无法导入

Open
#1,791 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: chenxinjie
**客户端版本**: 0.1.26

---

## 现象
在「本地任务导入」界面点击扫描后,显示“0 列表中 / 352 已跳过(内部 Agent 会话或已在应用内)”。但本机 `~/.claude/projects/c--newlife/` 下由 VS Code Claude Code 插件创建的多条会话,既不在 Cindy 应用内(用 cindy_helper 的 list_sessions / search_chat_history 按标题和内容均查不到),也没有出现在可导入列表里——被归入“已跳过”,用户没有任何途径把它们导入。

## 复现步骤(本机实测,2026-08-05)
1. 在 VS Code Claude Code 插件里对工作目录 `C:\newlife` 产生若干会话(07-25 之后共 13 个 jsonl)。
2. 在 Cindy「本地任务导入」执行扫描并导入。
3. 结果:仅 3 条在应用内(会话 id 前缀 `claude-`);其余约 9 条(例:`d87ebb03-…`、`9feec4c2-…`、`1aa7086f-…`、`44d1be95-…`,活跃时间 07-27 ~ 08-05)不在应用内。
4. 再次扫描,这些会话仍不出现在可导入列表,被计入“已跳过”。同一次扫描中 Codex 来源的会话导入正常(已追平到当天)。

## 期望行为
外部工具(VS Code 插件 / CLI)创建的 Claude Code 会话应出现在可导入列表;或“已跳过”至少区分并展示跳过原因(内部 Agent 会话 / 已在应用内 / 其他),让用户能判断是否真的已在应用内。

## 实际行为
这些外部会话被归入“已跳过(内部 Agent 会话或已在应用内)”,既不可选、实际也不在应用内。猜测跳过判定按 sdkSessionId 或去重规则把外部会话误判为内部 Agent 会话。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start at the local task import scan and its cindy_helper session lookup, then trace how sessions under ~/.claude/projects/c--newlife/ are classified as skipped. Reproduce with the external VS Code Claude Code JSONL sessions described in the report; done means they appear as importable, or skipped results clearly distinguish internal sessions from already-imported sessions and other reasons.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.