Repository navigation
fix(ui): prevent Usage hour filters from freezing during DST - #146919
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:13 AM ET / 10:13 UTC. ClawSweeper reviewWhat this changesRepairs Usage hour filtering and elapsed-time allocation across daylight-saving transitions, with timezone regressions and browser coverage for selecting and clearing filters. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair: fetched main and the latest release retain the freezing traversal. No actionable introduced defect was found, and the earlier DST proposal was closed unmerged. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI Usage page turns Gateway session summaries into charts and filtered session lists. Hour traversal handles sessions without usable token buckets using their first and last activity timestamps. flowchart TD
A[Gateway session summaries] --> B{Usable token buckets?}
B -->|Yes| C[Map precise activity hours]
B -->|No| D[Traverse session activity span]
E[Local or UTC selection] --> D
D --> F[Advance through hour and clock boundaries]
C --> G[Usage charts and filtered sessions]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +15, Tests +390. Total +405 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one advancing boundary calculation for both span consumers while preserving precise buckets, instantaneous sessions, and inclusive hour filtering. Do we have a high-confidence way to reproduce the issue? Yes: the supplied Los Angeles timestamps and zero-token response reach a current-main loop whose cursor repeats at the second 01:00. This review verified the source path without executing it; the report records a bounded baseline timeout. Is this the best way to solve the issue? Yes: the patch repairs the shared traversal owner without changing configuration or storage, and handles fractional-hour transitions more accurately than a fixed one-hour increment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 58dce7657690. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
* temp/pr-146802: (51 commits) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) fix(backup): preserve discovery under concurrent state writes (#146912) fix: keep queued deliveries in their original state directory (#146917) fix(discord): settle voice waveform work before releasing input (#146885) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) ...
…ssion-list-roster-batch-20260913 * commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) fix: share Doctor lifecycle coordination with SQLite workers (#146714) fix: retain native session model provenance (#146801) fix: settle embedded transcript repairs before session cleanup (#146842) feat(macos): improve agent navigation and chat layout (#146531) ...
Closes #146914. Related: #61335, which previously identified the DST traversal problem.
What Problem This Solves
Fixes Usage hour filtering freezing when a session crosses the repeated local hour at the end of daylight saving time.
User Impact
Users can select hours and clear filters across clock changes. Session-span allocation also preserves elapsed time across repeated hours, skipped hours, fractional-hour transitions, and exact millisecond boundaries.
Why This Change Was Made
Local Date setters can resolve the second occurrence of an hour back into its first occurrence, leaving the traversal cursor unchanged. Both affected loops now share a numeric boundary calculation that always advances and splits at an earlier timezone transition when necessary. Allocation uses adjacent half-open intervals; filtering still includes the final activity instant. No new cache, configuration, or persistence is introduced.
The current Gateway emits zero-token buckets for timestamped messages without model usage. Those sessions reach the span-based hour filter, so this is reachable with current responses. The earlier report by rex993 in #61335 is retained as context.
Evidence
canonicalProviderNameandlistPackagedStaticExtensionAssetOutputs.The initial browser attempt had an incorrect expected recent-sort order and failed before hour selection; the corrected exact-order assertion passes without changing the tested flow or timeouts. Browser proof and review preceded type-only tuple annotations and two lint-only fixture object-copy rewrites. Their data and runtime behavior are unchanged, and final type/lint checks pass. Current CI 34750955653 and its required
openclaw/ci-gatepass at8da6effcea90bde3e2a1fcdadb0e246bb7ceaa4c. Native preparation and merge remain pending.