Skip to content

feat: smart id detection#9

Merged
AnjayGoel merged 5 commits intomainfrom
feat/smart-id-detection
Apr 12, 2026
Merged

feat: smart id detection#9
AnjayGoel merged 5 commits intomainfrom
feat/smart-id-detection

Conversation

@AnjayGoel
Copy link
Copy Markdown
Owner

No description provided.

AnjayGoel and others added 5 commits April 13, 2026 00:56
When no --id-regex is provided, use IsID() heuristic to detect
identifier segments in Redis keys. Splits on configured delimiter
(default ":") as before, but now automatically detects and collapses
ID segments like UUIDs, Firebase UIDs, hex hashes, and numeric IDs.

Heuristic (staged by length):
- UUID pattern → always ID
- Pure numeric → always ID
- 6+ chars with >= 50% digits → ID
- 8-11 chars with mixed case + digits, or >= 40% digits → ID
- 12-19 chars with mixed case + digits, or >= 30% digits → ID
- 20+ chars with any digit → ID

When --id-regex is provided, uses those patterns instead (no change).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Strings like "SHOgPULACeRqGfhcBNV" (19 chars, mixed case, no digits)
are clearly identifiers, not namespace names. Added rule:
- 16-19 chars with mixed case → ID (even without digits)
- 20+ chars with mixed case OR any digit → ID

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…efresh

Track last prefix — only call Select(1,0) when prefix changes.
Prevents selection jumping to top every 5s during InfoUpdates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@AnjayGoel AnjayGoel merged commit 5ae7955 into main Apr 12, 2026
1 check passed
@AnjayGoel AnjayGoel deleted the feat/smart-id-detection branch April 12, 2026 20:17
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