Repository navigation
Conversation
Copy per-record updatedAt into the display model and dim/label panels older than two refresh cycles so frozen collector files are visible.
|
Verified: The local-record freshness path is now connected: Synced-only freshness measures the local scan, not the remote dataThe new fallback in Impact: Old remote usage totals still look current in the offline-machine case mentioned in #12849. This is a remaining freshness gap, not a regression in aggregation. Synced-only tabs do not carry account rate limits or balances, so the impact here is limited to synced usage statistics. Suggested change: Carry source freshness through the sync model and derive the provider's age from contributing snapshots, with an explicit policy for mixed-age contributors. Alternatively, scope this change to local-record freshness and explicitly document that the aggregate-time fallback does not detect an offline remote writer. Review informationTest scope: Pinned head Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium performed initial inspection and synthesis; Opus 5.5 High and GPT 6 Sol Xhigh completed separate independent technical assessments. The final claims were checked against pinned source and targeted evidence. |
|
Tested in the Omarchy VM (Omarchy 4.0.4 / Quickshell 0.3.1):
Works as expected! |
|
Reviewed at This branch no longer merges, though, and the conflict is not mechanical. Since this was opened, Two things to carry into whatever shape it takes:
Smaller points: What was checked: the diff, Next step: the maintainer decides how a stale record should look in the current panel. After that, this needs porting onto |
displayProvider now carries when the collector last wrote the record (updatedAtMs). A panel section whose record no refresh has rewritten in two refresh intervals dims its limits, balance and spend, and shows "Last updated ... ago" above them. Fixes omacom#12849
|
I merged quattro in and rebuilt this on the redesigned panel. It's now at The age now sits on the provider section, not the hero, because the hero sums every agent. A section whose record no refresh has rewritten in two refresh intervals dims its limits, balance and spend and shows Checked:
Prepared by Claude Opus 5.5 via Hermes Agent; reviewed under kvnloo's account. |
[Medium impact] The PR appears safe to merge; no actionable defects were established. SummaryThe panel now reads each local record’s
Reviews (1) · Last reviewed commit: "Dim an agent's numbers once its usage re..." · Reviewed by Greptile |
|
Checked On a disposable ISO worker running this branch under Hyprland, a three-hour-old local record gained its age caption and dimmed limits while a fresh record stayed unchanged. Current GPT-6 High in Codex, Opus 5.5 High and muse-wonder via pi (thinking high) checked this head. Both second opinions found no actionable defect; independence is not guaranteed. They also traced the collector's fresh timestamp through cached scans and checked that account lines inherit it. This verifies local record freshness; live endpoints and cross-device sync were not exercised, and hero/synced statistics remain outside this freshness signal. No branch changes were needed. Waiting on maintainer review. |


Fixes #12849.
What changes
The collectors stamp every usage record with
updatedAt, but the panel never read it, so a record left behind by a collector that stopped running looked exactly like a live one.Rebuilt on the redesigned panel (quattro merged in; the old diff targeted the single-provider hero, which no longer exists):
displayProviderinMain.qmlcarries the record's time asupdatedAtMs. An agent with no record on this machine (a synced-only agent, a local model) gets0and is never aged.Last updated 3h 0m agoabove them. The caption reuses the existingagents.lastUpdatedAgostring, so every language already has it.What changed from the earlier version, after the reviews from @llstrk and omarchybot:
syncUpdatedAtfallback is gone. That timestamp is set at aggregation time, so it never showed an offline machine's data as old. Synced-only agents get no section in the new panel anyway; they only feed the hero summary.limitsStale. A failed check still rewrites the record and keeps its note and hover age. This caption is for a collector that stopped writing completely, which nothing else shows.Main.qml, and the test runs the real functions instead of matching source text.Verification
bash test/shell.d/agents-panel-test.sh, extended in place: it buildsdisplayProviderfromMain.qmland checks that the collector's microsecond ISO stamp becomesupdatedAtMs(0 with no stamp). It also checksrecordOutdatedfromPanel.qmlat 29 min (current) and 31 min (outdated) with the 900 s interval, at 11 min with a 300 s interval, and that a line with no record is never outdated.cdd18b2plus the new test: fails (not ok - a line carries when its collector wrote the record).f6daae8: passes.updatedAtMsline fromdisplayProviderfails on the same assertion, and makingrecordOutdatedreturnfalsefails ona record two refreshes old is outdated.bash test/shell.d/i18n-test.shpasses (no catalog change).qml, offscreen):recordUpdatedAtMsgives1795543200123for2026-11-24T18:00:00.123456+00:00(the collectors'isoformat()form), the same asDate.UTC(...)for that instant. It also handles+00:00without a fraction, and gives0for empty and invalid strings.omarchy-shell shell summon omarchy.agentsand captured withgrim. The same records on quattro show both agents the same. Not checked: Hyprland itself (sway stood in for it), a real collector stopping, or the sync folder.Screenshots
Before (quattro
cdd18b2): Claude's record is 3 hours old and looks the same as Codex's live one.After (
f6daae8): Claude's limits are dimmed underLast updated 3h 0m ago; Codex is unchanged.Credit
updatedAtis never read) #12849 and found that the per-recordupdatedAtwritten by the collectors was never read by the panel.Prepared by Claude Opus 5.5 via Hermes Agent; reviewed under kvnloo's account.