The CLD panel went blank with no reason when Claude Code's saved OAuth token had expired and the widget's own renewal was refused. - Collapsed panel shows EXPIRED/ERR instead of dashes; failures are logged to `qs log`. - Retry every minute after a failure instead of every 5. - claude-usage identifies as claude-cli, the suspected cause of the refresh 429s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
2.0 KiB
QML
71 lines
2.0 KiB
QML
import QtQuick
|
|
import qs.HyprChrome.Widgets.Bar.Claude
|
|
|
|
// The rail's claude panel collapsed and expanded, healthy and failing.
|
|
//
|
|
// ./tools/quickshell-preview/render.sh \
|
|
// tests/ClaudePanelHeadless.qml \
|
|
// .artifacts/quickshell-preview/claude-panel.png 640 420
|
|
Rectangle {
|
|
width: 640
|
|
height: 420
|
|
color: "#0f1012"
|
|
|
|
readonly property var soon: new Date(Date.now() + 2 * 3600000 + 17 * 60000).toISOString()
|
|
readonly property var later: new Date(Date.now() + 4 * 86400000 + 5 * 3600000).toISOString()
|
|
|
|
Row {
|
|
x: 16
|
|
y: 16
|
|
spacing: 24
|
|
|
|
Column {
|
|
spacing: 12
|
|
|
|
ClaudePanel {
|
|
expanded: false
|
|
ready: true
|
|
fiveHour: ({ utilization: 42, resets_at: soon })
|
|
sevenDay: ({ utilization: 91, resets_at: later })
|
|
}
|
|
|
|
ClaudePanel {
|
|
expanded: false
|
|
ready: true
|
|
error: "usage HTTP 429"
|
|
shortError: "ERR"
|
|
fiveHour: ({ utilization: 42, resets_at: soon })
|
|
sevenDay: ({ utilization: 91, resets_at: later })
|
|
}
|
|
|
|
ClaudePanel {
|
|
expanded: false
|
|
ready: false
|
|
error: "token refresh HTTP 400"
|
|
shortError: "EXPIRED"
|
|
}
|
|
}
|
|
|
|
Column {
|
|
spacing: 12
|
|
|
|
ClaudePanel {
|
|
expanded: true
|
|
ready: true
|
|
fiveHour: ({ utilization: 42, resets_at: soon })
|
|
sevenDay: ({ utilization: 91, resets_at: later })
|
|
extra: [{ label: "SONNET", window: { utilization: 12, resets_at: later } }]
|
|
}
|
|
|
|
ClaudePanel {
|
|
expanded: true
|
|
ready: true
|
|
error: "usage HTTP 429"
|
|
shortError: "ERR"
|
|
fiveHour: ({ utilization: 8, resets_at: soon })
|
|
sevenDay: ({ utilization: 30, resets_at: later })
|
|
}
|
|
}
|
|
}
|
|
}
|