Skip to content

Kilroy attractor run sessions with 'worktree' project appear in sidebar #147

@danshapiro

Description

@danshapiro

Description

Claude Code sessions created by Kilroy attractor runs are showing up in the Freshell left-hand sessions pane. These sessions have project paths pointing to Kilroy's internal worktree directories and are not user-initiated sessions — they should be filtered out.

Example

A session with this metadata appears in the sidebar:

{
  "title": "Failure dossier contract:",
  "sessionId": "e52d5cf7-de8c-42d1-85e7-06920a348244",
  "provider": "claude",
  "compositeKey": "claude:e52d5cf7-de8c-42d1-85e7-06920a348244",
  "projectPath": "/home/user/.local/state/kilroy/attractor/runs/01KJZKG0YS3W4FT1YR6M6KC00G/worktree",
  "cwd": "/home/user/.local/state/kilroy/attractor/runs/01KJZKG0YS3W4FT1YR6M6KC00G/worktree",
  "messageCount": 61,
  "sourceFile": "/home/user/.claude/projects/-home-user--local-state-kilroy-attractor-runs-01KJZKG0YS3W4FT1YR6M6KC00G-worktree/e52d5cf7-de8c-42d1-85e7-06920a348244.jsonl"
}

The session content is Kilroy stage execution boilerplate (input materialization contracts, execution status contracts, etc.) — not user terminal sessions.

Expected behavior

Sessions whose projectPath is under ~/.local/state/kilroy/attractor/runs/ (or similar Kilroy-managed paths) should not appear in the Freshell sidebar, or there should be a configurable filter/exclusion list for session discovery paths.

Suggested approaches

  1. Exclude pattern in session discovery: Add a configurable deny-list of project path patterns to the Claude session indexer so sessions from known automation tools are hidden by default.
  2. Archive by default: Auto-archive sessions matching certain path patterns so they don't clutter the active session list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions