Commit a7f5b53
committed
fix(slack): evict web_client cache on invalidation + clarify caching test (review)
Two review follow-ups on the web_client port:
- Gemini: `_invalidate_client` cleared only the async `_client_cache`, leaving
stale/revoked synchronous `WebClient` instances in `_web_client_cache` on
token revocation / auth-error eviction. Pop the token from both caches.
New `test_invalidate_client_clears_web_client_cache` is load-bearing.
- github-code-quality: `assert adapter.web_client is adapter.web_client`
tripped "comparison of identical values". The test is a genuine caching
check (the property is invoked twice), but binding each access to a name
makes that intent explicit and silences the false-positive.
https://claude.ai/code/session_01FyMxQn2BEAzmwKS1GZczKj1 parent d0692a4 commit a7f5b53
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
808 | 808 | | |
809 | 809 | | |
810 | 810 | | |
| 811 | + | |
811 | 812 | | |
812 | 813 | | |
813 | 814 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
| |||
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
122 | 143 | | |
123 | 144 | | |
124 | 145 | | |
| |||
0 commit comments