Skip to content

fix: bound Claude Code transcript discovery#1

Merged
0xernesto merged 1 commit into
mainfrom
fix/bound-claude-code-discovery
Jun 19, 2026
Merged

fix: bound Claude Code transcript discovery#1
0xernesto merged 1 commit into
mainfrom
fix/bound-claude-code-discovery

Conversation

@0xernesto

Copy link
Copy Markdown
Collaborator

Summary

  • stop Claude Code transcript discovery from falling back to a full home-directory crawl when the default home search root lacks the known Claude metadata directory
  • keep discovery bounded to ~/Library/Application Support/Claude/claude-code-sessions for default macOS home-root polling
  • add an infrastructure regression test that places a fake local_*.json under a home subdirectory such as Contacts and verifies discovery ignores it

Why

The background episode_sync poller can invoke Claude Code discovery from the default home search root. If the known Claude metadata directory is absent, the old fallback recursively scanned the entire home directory. On macOS this can trigger repeated TCC privacy prompts for protected locations such as Contacts, Desktop, or other app data.

Tests

  • .venv/bin/python -m pytest tests/infrastructure/test_claude_code_discovery.py
  • .venv/bin/python -m pytest tests/infrastructure

@0xernesto 0xernesto changed the title Bound Claude Code transcript discovery fix: bound Claude Code transcript discovery Jun 19, 2026

@cucupac cucupac left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@0xernesto 0xernesto merged commit beb3d8d into main Jun 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants