Skip to content

feat: add cached referenced_users enrichment for messages and search (Opt-In)#78

Merged
AmethystLiang merged 3 commits intomainfrom
feature/enhance-message-response-with-user-info
Apr 12, 2026
Merged

feat: add cached referenced_users enrichment for messages and search (Opt-In)#78
AmethystLiang merged 3 commits intomainfrom
feature/enhance-message-response-with-user-info

Conversation

@AmethystLiang
Copy link
Copy Markdown
Contributor

This supersedes #72 by implementing the opt-in architecture and concurrency limits requested in the review.

cpitt and others added 3 commits March 24, 2026 09:27
Add a per-workspace user cache with TTL and refresh controls, then wire it into message get/list and search messages/all so outputs include a shared referenced_users map without changing canonical ID fields. Also add --refresh-users flags for message and search commands and update skill/reference docs to document the canonical-ID-plus-reference-map contract.
- Make user resolution opt-in via `--resolve-users` flag
- Limit `users.info` concurrency to max 5 calls to prevent HTTP 429s
- Keep the code DRY by reusing `toCompactUser` from `users.ts`
- Smart cache writes: skip writing "unknown" workspace caches and avoid writing identical cache states
- Update docs to reference `--resolve-users`
@AmethystLiang AmethystLiang merged commit 3b369ae into main Apr 12, 2026
1 check passed
@AmethystLiang AmethystLiang deleted the feature/enhance-message-response-with-user-info branch April 12, 2026 00:26
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