Commit b987135
committed
docs(plugin): clarify cache segment semantics as last-call-only token display
Document why the status-bar cache segment renders raw tokens (♻N/M)
instead of a percentage, explaining the last-call semantics of
context_window.current_usage from Claude Code stdin.
status-bar-model.md:
- Update the example status line and segment table to show the new
♻2k/3.5k format instead of the deprecated Cache:XX%
- Add a new "Cache Segment Semantics (Last-Call Only)" subsection
explaining numerator/denominator, format rules, fallback behavior,
and a contributor caution against reintroducing percentage rendering
- Refresh all 5 Mode Examples (PLAN/ACT/EVAL/AUTO/Ready) to match
the current v5.3.0 output
- Add an explicit note on the Ready state that the cache segment is
hidden when no API calls have been made yet (documented fallback,
not a bug)
codingbuddy-hud.py:
- Expand format_compact_tokens docstring with explicit output rules,
the 1000-1049 rounding note, and the error fallback contract
(returns "0" when input is not coercible to int — never raises)
- Expand format_cache_segment docstring with the last-call rationale,
fallback conditions, and a contributor caution mirrored in the docs
This PR is docs-only — no behavior changes. Regression tests from
PR #1359 continue to guard against Cache:XX% reintroduction.
Closes #13571 parent 8b32125 commit b987135
2 files changed
Lines changed: 86 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
37 | 64 | | |
38 | 65 | | |
39 | 66 | | |
| |||
124 | 151 | | |
125 | 152 | | |
126 | 153 | | |
127 | | - | |
| 154 | + | |
128 | 155 | | |
129 | 156 | | |
130 | 157 | | |
| |||
163 | 190 | | |
164 | 191 | | |
165 | 192 | | |
166 | | - | |
| 193 | + | |
167 | 194 | | |
168 | 195 | | |
169 | 196 | | |
170 | 197 | | |
171 | 198 | | |
172 | | - | |
| 199 | + | |
173 | 200 | | |
174 | 201 | | |
175 | 202 | | |
176 | 203 | | |
177 | 204 | | |
178 | 205 | | |
179 | | - | |
| 206 | + | |
180 | 207 | | |
181 | 208 | | |
182 | 209 | | |
183 | 210 | | |
184 | 211 | | |
185 | 212 | | |
186 | | - | |
| 213 | + | |
187 | 214 | | |
188 | 215 | | |
189 | 216 | | |
190 | | - | |
| 217 | + | |
191 | 218 | | |
192 | 219 | | |
193 | | - | |
| 220 | + | |
194 | 221 | | |
195 | 222 | | |
| 223 | + | |
| 224 | + | |
196 | 225 | | |
197 | 226 | | |
198 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
139 | 153 | | |
140 | 154 | | |
141 | 155 | | |
| |||
153 | 167 | | |
154 | 168 | | |
155 | 169 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
167 | 200 | | |
168 | 201 | | |
169 | 202 | | |
| |||
0 commit comments