Repository navigation
refactor(slack): remove cache test reset seams - #125971
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 18, 2026 19:32
Contributor
Author
|
Land-ready proof for exact head
ClawSweeper exact-head review started for this SHA at 2026-08-18T19:36:21Z but has only published its live start placeholder. Production LOC is +0/-13; tests are +93/-125. No user-visible behavior, docs, changelog, schema, protocol, config, dependency, release, publish, or operator-state change. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Slack cache tests depended on production-only reset exports and a historical media-module resolver barrel. That made behavior tests clear internal module state instead of isolating through the cache identities production actually uses.
Why This Change Was Made
Tests now isolate conversation-info caching through distinct Slack-shaped channel IDs and thread-starter caching through distinct account/team/channel/thread identities. Cache reuse, credential rotation, fresh-name authorization, failed-DM retry, TTL refetch, account/team isolation, and the exact 1024-entry and 2000-entry capacity boundaries remain covered. Two impossible-clock thread-cache cases were removed because they replay the shared normalization-core timestamp contract.
Production behavior is unchanged. This removes the two test-only reset exports and the obsolete thread-resolver re-exports from
media.ts; runtime callers already import fromthread.ts.User Impact
No user-visible behavior changes. No docs, changelog, schema, protocol, config, dependency, operator-state, release, or publish changes.
Evidence
node scripts/run-vitest.mjs extensions/slack/src/channel-type.test.ts— 18 passednode scripts/run-vitest.mjs extensions/slack/src/monitor/monitor.media.test.ts extensions/slack/src/monitor/media.test.ts extensions/slack/src/monitor/message-handler/prepare.test.ts extensions/slack/src/monitor.tool-result.test.ts— 259 passednode scripts/run-vitest.mjs extensions/slack— 135 files, 2,417 tests passednode scripts/check-changed.mjs -- extensions/slack/src/channel-type.test.ts extensions/slack/src/channel-type.ts extensions/slack/src/monitor/media.test.ts extensions/slack/src/monitor/media.ts extensions/slack/src/monitor/message-handler/prepare.test.ts extensions/slack/src/monitor/monitor.media.test.ts extensions/slack/src/monitor/thread.ts— passedgit diff --check— passedProduction LOC: +0/-13 (net -13). Tests: +93/-125 (net -32). Total: +93/-138 across seven files.
AI-assisted: implemented and validated with Codex; the final diff was reviewed by the repository autoreview workflow.