Commit e8661fa
feat: smart countdowns, model+context merge, auto extra gating
Countdown display now responds to two signals: percentage pressure
(5h >= 80%, 7d >= 70%) and time proximity (5h reset <= 2h, 7d reset
<= 3d). Either signal triggers the countdown independently.
Recovery color (DIM_GREEN) when usage is high but reset is imminent
-- reduces false urgency for users about to get a fresh window.
Context bar merged into model component: opus4.6[1m][15%] instead
of opus4.6[1m] [15%]. Context is a property of the model session.
Extra display default changed from "always" to "auto" -- shows when
quota runs out (5h >= 80%, 7d >= 70%) or extra utilization >= 50%.
Hidden during calm sessions.
Switched 5h from clock time (@14:30) to relative time (~1h30m) for
consistency with 7d. Removed dead format_reset_clock(). Extracted
all thresholds as named constants.
95 bats tests, all passing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c0501c1 commit e8661fa
6 files changed
Lines changed: 554 additions & 82 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
4 | 59 | | |
5 | 60 | | |
6 | 61 | | |
| |||
34 | 89 | | |
35 | 90 | | |
36 | 91 | | |
37 | | - | |
| 92 | + | |
38 | 93 | | |
39 | 94 | | |
40 | 95 | | |
| |||
47 | 102 | | |
48 | 103 | | |
49 | 104 | | |
50 | | - | |
51 | | - | |
52 | 105 | | |
53 | 106 | | |
54 | 107 | | |
| |||
61 | 114 | | |
62 | 115 | | |
63 | 116 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 117 | | |
70 | 118 | | |
71 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
0 commit comments