Registry Mirror
Skip to content

Slack: user_cache grows unbounded in large workspaces #384

Closed as not planned

Description

@thepagent

Parent: #382

Problem

SlackAdapter::user_cache is a HashMap<String, (String, Instant)> with a 5-minute TTL per entry, but no max size. In a busy Slack workspace with many unique users, the cache grows indefinitely since expired entries are only evicted on cache hit (lazy eviction).

Suggested fix

Add a max entries cap (e.g. 1000). On insert, if over cap, evict the oldest entry. Alternatively, use an LRU cache crate.

Severity: low — only affects large workspaces with 1000+ unique users interacting with the bot.

Activity

  1. github-actions commented on Apr 16, 2026

    @github-actions

    Thanks for the report! It looks like this issue was created without a template and is missing some required fields. Please add one of the following labels: bug, feature, documentation, or guidance, then edit this issue to include the matching template fields — the incomplete label will be removed automatically.

  2. thepagent commented on Apr 16, 2026

    @thepagent
    CollaboratorAuthor

    Closing — low-severity Slack nit, not blocking 0.7.7 GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions