Skip to main content
← Back to list
01Issue
BugShippedExtensionsPublic
Assigneesskunk-ape

Relationships

#4750 agent-sessions assess: a Claude Code session reachable at two paths is counted twice

Opened by zack · 11/14/2026· Shipped 11/15/2026

Description

Claude Code discovery in @swamp/agent-sessions does not dedupe transcripts by session id. When the same transcript is reachable at two paths under projectsDir (two project folders holding the same file as a hard link, or, since swamp-club#4742, a symlink), assess counts the session twice: the summary reads Assessed 3 sessions for 2 distinct sessions, and its calls are mined twice, which can inflate candidate counts. import is not harmed (both paths map to the same record name, so the second is reported unchanged), though its session total also counts 3.

Codex discovery keys rollouts by thread id, so the last path wins there; only Claude Code is affected.

Steps to reproduce

  1. projectsDir/proj/ID.jsonl holds a valid transcript whose cwd is a git repo.
  2. projectsDir/proj2/ID.jsonl is a hard link (or symlink) to the same file.
  3. Run assess with all=true and that projectsDir.
  4. Result: the session is assessed twice.

Expected behavior

One session per id: discovery keeps one path per id and skips the rest.

Where

agent-sessions/extensions/models/_lib/claude_code/discover.ts: the transcript loop records the id in seen but calls placer.add for every path.

Found while fixing swamp-club#4742.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 6 MOREREVIEW+ 11 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

11/15/2026, 5:25:23 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
skunk-ape assigned skunk-ape11/15/2026, 12:55:04 PM
Editable. Press Enter to edit.

system commented 11/14/2026, 3:13:36 PM

Classified automatically when this issue was filed.

  • Source: Extensions

If you feel this classification is incorrect, add a ripple to tell us so.

Sign in to post a ripple.