Skip to content

Scan Codex pi sessions with rg --no-ignore - #13621

Closed
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-agent-usage-rg-e0d3
Closed

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-agent-usage-rg-e0d3

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #13207

When $HOME is a git worktree with a whitelist ~/.gitignore of *, rg skipped ~/.pi / ~/.omp sessions so the agents panel showed zero Pi Codex usage.

Change

  • Pass --no-ignore --hidden to the pi-session rg scan
  • Cover the gitignore-whitelist case in the scanner test

Test plan

  • bash test/shell.d/agent-usage-codex-scanner-test.sh

When $HOME is a git worktree with a whitelist gitignore, rg skipped
~/.pi and ~/.omp session files (omacom#13207).

Co-authored-by: AnPod <[email protected]>
@dhh

dhh commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Thanks! The same fix is coming in through #14049 (from #13209, the same rg --no-ignore fix). Closing in favor of that.

@dhh dhh closed this Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agents panel: Codex collector counts no Pi usage when $HOME is a git repo (rg honors ~/.gitignore)

4 participants