Bug: /resume command shows incomplete session list
Problem:
The /resume command only displays a subset of available sessions because sessions-index.json is not being updated when sessions are
created/modified.
Evidence:
- history.jsonl contains 35 unique sessionIds for this project
- Actual .jsonl session files on disk: 28
- sessions-index.json entries: only 10
- 18 sessions are invisible to /resume
Root cause:
The session index file (~/.claude/projects//sessions-index.json) is out of sync with actual session files. New sessions are not being
added to the index.
Reproduction:
- Work on a project over multiple sessions
- Run /resume
- Compare listed sessions vs actual .jsonl files in the project directory
- Many sessions will be missing from the list
Workaround:
Resume by direct session ID: claude --resume
Suggested fix:
Either rebuild the index from .jsonl files when /resume is called, or remove the index dependency entirely.
Environment Info
- Platform: darwin
- Terminal: vscode
- Version: 2.1.31
- Feedback ID: 0a10576d-a947-470b-a522-5fddb28d3963
Errors
[{"error":"Error\n at jb (/$bunfs/root/claude:42:1144)\n at <anonymous> (/$bunfs/root/claude:47:10089)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T07:44:38.402Z"},{"error":"Error\n at jb (/$bunfs/root/claude:42:1144)\n at <anonymous> (/$bunfs/root/claude:47:10089)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T07:44:38.477Z"},{"error":"Error\n at jb (/$bunfs/root/claude:42:1144)\n at <anonymous> (/$bunfs/root/claude:47:10089)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T07:44:40.756Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.026Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.027Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.027Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.028Z"}]
Bug: /resume command shows incomplete session list
Problem:
The /resume command only displays a subset of available sessions because sessions-index.json is not being updated when sessions are
created/modified.
Evidence:
Root cause:
The session index file (~/.claude/projects//sessions-index.json) is out of sync with actual session files. New sessions are not being
added to the index.
Reproduction:
Workaround:
Resume by direct session ID: claude --resume
Suggested fix:
Either rebuild the index from .jsonl files when /resume is called, or remove the index dependency entirely.
Environment Info
Errors
[{"error":"Error\n at jb (/$bunfs/root/claude:42:1144)\n at <anonymous> (/$bunfs/root/claude:47:10089)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T07:44:38.402Z"},{"error":"Error\n at jb (/$bunfs/root/claude:42:1144)\n at <anonymous> (/$bunfs/root/claude:47:10089)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T07:44:38.477Z"},{"error":"Error\n at jb (/$bunfs/root/claude:42:1144)\n at <anonymous> (/$bunfs/root/claude:47:10089)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T07:44:40.756Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.026Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.027Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.027Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at readFileSync (unknown)\n at <anonymous> (/$bunfs/root/claude:12:742)\n at d5 (/$bunfs/root/claude:11:40746)\n at readFileSync (/$bunfs/root/claude:12:701)\n at bPB (/$bunfs/root/claude:6124:17702)\n at call (/$bunfs/root/claude:3564:2357)\n at call (/$bunfs/root/claude:3560:8805)\n at <anonymous> (/$bunfs/root/claude:3576:1604)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-05T08:04:27.028Z"}]