Commit 1b63729
authored
🤖 fix: make context usage tooltip slider interactive (#1210)
## Problem
The context usage indicator near ChatInput showed a slider on hover that
**looked** interactive but wasn't draggable. The slider only became
interactive when clicking to open the popover. This was confusing
because:
1. The hover tooltip showed a slider that couldn't be dragged
2. The click popover showed the same slider that *could* be dragged
3. The two overlays had different background colors and text sizes,
making it unclear they were different modes
## Solution
Make both hover and click show the identical interactive slider:
- Tooltip now passes the full `autoCompaction` config instead of just
the threshold number
- Popover styled to exactly match tooltip (background, border, shadow,
text size)
- Removed ~63 lines of dead code (`HorizontalThresholdIndicator`
component and `autoCompactionThreshold` prop)
---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking:
`high`_1 parent df2aade commit 1b63729
File tree
3 files changed
+7
-70
lines changed- src/browser/components
- RightSidebar
3 files changed
+7
-70
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
8 | 4 | | |
9 | 5 | | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
14 | | - | |
15 | | - | |
16 | 10 | | |
17 | 11 | | |
18 | 12 | | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
22 | 16 | | |
23 | | - | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
| |||
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 28 | | |
40 | 29 | | |
41 | 30 | | |
| |||
54 | 43 | | |
55 | 44 | | |
56 | 45 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 46 | | |
61 | 47 | | |
62 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
0 commit comments