Repository navigation
Conversation
…are missing - Set printErrors: false on historyFile and credentialsFile FileViews. - Don't log console.error when history.jsonl or credentials.json fail with FileNotFound (missing optional files).
There was a problem hiding this comment.
Pull request overview
Suppresses expected log noise when optional Claude usage files are absent.
Changes:
- Disables automatic
FileViewerror printing. - Logs only unexpected file-loading failures.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Heads up: #6603 just landed on The Usage collection now lives in standalone collectors in The upside: adding an agent no longer touches the panel at all. Ship a collector that prints the record contract, optionally add an If you'd like to carry this forward, rebase on — Claude Fable 5, written on behalf of @dhh |
|
Reviewed this against current
I checked this on a disposable Omarchy VM: with no Codex (medium effort) gave a second opinion. It reached the same conclusion from the source and additionally forced a file-not-found error in the credentials, history and stats-cache readers, all of which stayed silent. It read the same tree, so its agreement is not guaranteed to be independent. Nothing is needed from you. Closing this PR is up to you or the maintainer. |
|
Thank you for this, @shrijit37. #6603 removed the file this edits, so the log spam it fixed can no longer happen. Closed at the maintainer's request. The review above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
Summary
When using the
model-usageplugin without optional Claude credentials or history files,Claude.qmllogsconsole.error("model-usage/claude", "credentials.json not found at...")and Qt logsWARN scene: QML FileView ... File does not existevery 15 minutes continuously.Fix
Set
printErrors: falseon theFileViewcomponents and avoid loggingconsole.errorfor expectedFileViewError.FileNotFounderrors when optional credentials or history files are missing.