Skip to content

Key Claude limits cache by CLAUDE_CONFIG_DIR - #9411

Closed
chessing234 wants to merge 2 commits into
omacom:quattrofrom
chessing234:fix/claude-limits-cache-per-config-dir
Closed

chessing234 wants to merge 2 commits into
omacom:quattrofrom
chessing234:fix/claude-limits-cache-per-config-dir

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

Summary

  • Scan caches were already per-projects-path; the limits probe used a fixed claude-limits.json.
  • Key the probe cache by a digest of config_dir() so multi-account setups do not reuse another account’s numbers.

Test plan

  • test/shell.d/agent-usage-claude-limits-test.sh
  • Two CLAUDE_CONFIG_DIR values get distinct cache files

scan caches were already per-projects-path; the limits probe used a
fixed claude-limits.json, so account B could reuse account A’s numbers.
@chessing234

Copy link
Copy Markdown
Contributor Author

@dhh @ryanrhughes ready for review

@chessing234

Copy link
Copy Markdown
Contributor Author

folded into #12265 for easier review.

chessing234 added a commit to chessing234/omarchy that referenced this pull request Sep 30, 2026
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.

1 participant