There was an error while loading. Please reload this page.
1 parent 0cd5c4a commit b994613Copy full SHA for b994613
1 file changed
commands/cc_statusline.go
@@ -16,8 +16,8 @@ import (
16
)
17
18
var CCStatuslineCommand = &cli.Command{
19
- Name: "statusline",
20
- Usage: "Output statusline for Claude Code (reads JSON from stdin)",
+ Name: "statusline",
+ Usage: "Output statusline for Claude Code (reads JSON from stdin)",
21
Action: commandCCStatusline,
22
}
23
@@ -96,6 +96,7 @@ func calculateContextPercent(cw model.CCStatuslineContextWindow) float64 {
96
// Use current_usage if available for accurate context window state
97
if cw.CurrentUsage != nil {
98
currentTokens := cw.CurrentUsage.InputTokens +
99
+ cw.CurrentUsage.OutputTokens +
100
cw.CurrentUsage.CacheCreationInputTokens +
101
cw.CurrentUsage.CacheReadInputTokens
102
return float64(currentTokens) / float64(cw.ContextWindowSize) * 100
0 commit comments