GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(gui): render dashboard log timestamps in server timezone by Wibias · Pull Request #790 · lidge-jun/opencodex

Conversation

@Wibias

@Wibias Wibias commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #725

Renders dashboard log timestamps in the server timezone.

Stack

Stacks on #784 (fix/726-log-pagination → dev). Land the pagination PR first, then retarget this PR to dev if needed.

Test plan

  • bun run typecheck
  • bun run test

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Wibias
Wibias requested review from Ingwannu and lidge-jun as code owners July 30, 2026 22:22
@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Wibias, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 34 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 5f77218a-334d-4a5f-9374-589fb098fbaf

📥 Commits

Reviewing files that changed from the base of the PR and between c777c8e and fd43fcb.

📒 Files selected for processing (4)
  • gui/src/pages/Logs.tsx
  • src/server/management/config-routes.ts
  • src/server/management/logs-usage-routes.ts
  • tests/management-api-logs-metrics.test.ts

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias Wibias mentioned this pull request Jul 30, 2026
[Bug]: Dashboard log timestamps display in browser local timezone instead of system/server time #725
Closed
2 tasks done
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 30, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c36cc46ba8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread gui/src/pages/Logs.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread gui/src/pages/Logs.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jul 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

⚠️ Wrong target branch

This pull request currently targets fix/726-log-pagination, but pull requests must target one of dev or dev2-go.

@Wibias Please retarget this PR to dev. Most contributions go to dev first; use dev2-go only for scoped Go native-port work. main receives only release promotions. See our Contributing guide for details. Thanks! 🙏

Its title has been prefixed with [WRONG BRANCH].

This pull request is being kept as a draft automatically. Once every issue above is resolved, it will be marked ready for review again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot changed the title fix(gui): render dashboard log timestamps in server timezone [WRONG BRANCH] fix(gui): render dashboard log timestamps in server timezone Jul 30, 2026
@github-actions
github-actions Bot marked this pull request as draft July 30, 2026 22:45
@Wibias
Wibias marked this pull request as ready for review July 30, 2026 22:56
@Wibias Wibias changed the title [WRONG BRANCH] fix(gui): render dashboard log timestamps in server timezone fix(gui): render dashboard log timestamps in server timezone Jul 30, 2026
@github-actions github-actions Bot added the bug Something isn't working label Jul 30, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jul 30, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 58662bb2ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/enforce-pr-target.yml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Wibias Wibias mentioned this pull request Jul 30, 2026
fix(logs): raise in-memory log buffer and support limit/offset #784
Merged
2 tasks
@Wibias

Wibias commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

[shipping-github] Status

Not merge-ready yet. This PR is intentionally stacked on fix/726-log-pagination (#784).

enforce-target currently fails with wrong base because that check runs from dev until the stacked-base allowlist from #784 lands. Cross-platform CI may not fully run while that gate is red.

Next: merge #784 to dev first, then re-run checks on this PR (keep the stack). Do not retarget to dev prematurely — this change depends on the paginated /api/logs envelope from #726/#784.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Wibias
fix(gui): show dashboard log timestamps in server timezone
fd43fcb
Return server timeZone from /api/logs, validate client ICU support, cache the timezone with log rows, and tolerate legacy array responses.
@Wibias
Wibias changed the base branch from fix/726-log-pagination to dev July 31, 2026 00:20
@Wibias

Wibias commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

Verdict: approve-comment

  • Usefulness: Fixes [Bug]: Dashboard log timestamps display in browser local timezone instead of system/server time #725 — render log timestamps in server timezone; tolerates array and envelope responses.
  • Bugs: independent of fix(logs): raise in-memory log buffer and support limit/offset #784 merge order for GUI tolerance; full server timeZone field still best after fix(logs): raise in-memory log buffer and support limit/offset #784.
  • Security: none.
  • Owner/maintainer reviews: none.
  • Bots: addressed; retargeted to dev.
  • Base / CI: confirm full Cross-platform CI on tip.
  • Gate: none if CI green.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lidge-jun added a commit that referenced this pull request Jul 31, 2026
@lidge-jun
docs(plan): scope the log-timezone fix to a no-layout-change surface
fd92e99
The user's constraint is that their GUI layout must not change. #790's
direction is right and its defect is real -- dashboard timestamps render
in browser-local time -- but it carries two problems, and only one was
about layout.

It rewrites /api/logs from an array to a {timeZone, logs} envelope while
leaving four array consumers unfixed, and the single test it touches
accepts both shapes, so it passes with the production change reverted.

The narrower path already exists inside that same PR: it adds timeZone to
/api/settings and then never uses it, carrying the same value over two
routes. SettingsData already flows through the GUI, so the fix needs no
new fetch, no session-cache schema change, and no /api/logs change --
only a timezone argument threaded into two formatters at two call sites.

Records the RangeError guard (an ICU-unknown zone would otherwise kill the
row render), the browser-TZ != server-TZ test that #790's version could
not fail on, and the grep that proves no JSX or CSS moved.
lidge-jun added a commit that referenced this pull request Jul 31, 2026
@lidge-jun @Wibias
fix(gui): render dashboard log timestamps in the server's timezone (#725
a6d472e
)

A proxy running in KST viewed from a UTC browser reported every request
nine hours off: `formatLogTimestamp` and `formatLogDateTime` called
`toLocaleTimeString(localeTag)` with no zone, so the viewer's machine
decided what time the server logged something.

The zone rides on `/api/settings`, which is already an object and already
flows through the GUI. PR #790 fixed the same defect by rewriting
`/api/logs` from a bare array into a `{timeZone, logs}` envelope -- while
leaving four suites that read that response as an array untouched
(server-auth:1623, claude-native-passthrough:119,
openai-provider-option-e2e:489, server-403-permission-e2e:86). It also
added a session-cache schema that accepts both the old and new shapes.
Curiously that PR already added `timeZone` to `/api/settings` and then
never read it, carrying one value over two routes.

Layout is untouched, which was the constraint here. The GUI diff is two
call sites gaining a third argument; every `className`, element and
stylesheet is byte-identical. `git diff -- gui/` filtered for
className/element/style changes returns the two timestamp lines and
nothing else.

The formatters swallow `RangeError`: a zone string this browser's ICU
build does not know would otherwise take the whole row render down, and a
timestamp in the wrong zone beats an empty log list. The fetch is a
one-shot on mount rather than part of the 2s log poll, since the server's
zone cannot change while the page is open, and an older proxy without the
field simply keeps browser-local formatting.

Tests, both verified by ablation rather than assumed:

- removing `timeZone` from /api/settings fails the settings test (4/1)
- dropping the formatter argument fails the rendering test (4/1)

That second one is the case #790's own test could not catch: it compared
the response to itself and passed with the production change reverted. The
new test fixes 00:30 UTC and asserts Seoul reads 9:30 while UTC reads
12:30, so an ignored argument shows up as a wrong hour. There is also a
test asserting /api/logs is still a bare array, placed at the source so
the contract fails here rather than in four unrelated suites.

The detail dialog gets the same zone; leaving it on browser time would put
two different times for one request on screen at once.

Co-authored-by: Wibias <[email protected]>
@lidge-jun

lidge-jun commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Closing — the defect is real and now fixed on codex/260731-pr-merge-round as a6d472e3f, but by a narrower route than this branch takes. Two reasons, and only the second is about preference.

The /api/logs contract. This PR turns the response from a bare array into {timeZone, logs}. Four suites read that response as an array and none of them are updated here:

  • tests/server-auth.test.ts:1623
  • tests/claude-native-passthrough.test.ts:119
  • tests/openai-provider-option-e2e.test.ts:489
  • tests/server-403-permission-e2e.test.ts:86

Related: the one test this PR does change (tests/management-api-logs-metrics.test.ts:16-20) accepts both the array and the envelope, so it passes with the production change reverted — it cannot fail on the behavior it ships with.

The zone was already available. This PR adds timeZone to /api/settings (src/server/management/config-routes.ts:113) and then never reads it, carrying the same value over two routes. SettingsData already flows through the GUI, so /api/settings alone is enough and /api/logs never has to change.

What landed instead, keeping your Intl.DateTimeFormat().resolvedOptions().timeZone approach and your acceptClientTimeZone guard in spirit:

  • timeZone on /api/settings only; /api/logs still returns an array, with a test asserting that at the source
  • Logs.tsx threads the zone into the two formatters — two call sites gain a third argument, no JSX/CSS change, no session-cache schema change
  • RangeError is swallowed so a zone the browser's ICU build lacks falls back to browser-local rather than killing the row render
  • the regression test fixes 00:30 UTC and asserts Seoul reads 9:30 while UTC reads 12:30, so a dropped argument surfaces as a wrong hour; verified by ablation in both directions

The branch is staging: it merges into dev and ships once the in-flight optimization work there lands. Credit preserved via Co-authored-by on the commit. Thanks — the diagnosis and the settings-route idea both came from here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun lidge-jun closed this Jul 31, 2026
@lidge-jun lidge-jun mentioned this pull request Jul 31, 2026
fix(bridge): cancel open tool calls on terminal error (#765) #781
Closed
2 of 3 tasks
lidge-jun added a commit that referenced this pull request Jul 31, 2026
@lidge-jun
docs(plan): name the six fixes we can actually land, in dependency order
365f78c
Selection rule is narrow on purpose: an entry must trace to a triage
row and must not be waiting on maintainer approval or third-party
evidence. That is what keeps the list short -- most open PRs are
blocked by approval, not by code.

F1 is first because three other stream items sit on it.
closeCurrentToolCall() at bridge.ts:378-417 hardcodes
status: "completed", and both failure paths call it unconditionally
(:776 on adapter error, :835 on implicit EOF). So a stream that ends
in failure still hands the client a completed tool call, with
response.failed arriving afterward. That is why the adapter-side
attempt at #658 was reverted in 95d8ed7, and it is what PR #781
already fixes with failCurrentToolCall().

F2 must not land before F1. Relaxing EOF without a cancel path would
let a truncated tool call through as success.

Also recorded: bridge.ts:436-441 still says it synthesizes
response.completed, but :838 emits response.incomplete. The comment
outlived the code.

Three tests already on dev would survive reverting the behavior they
claim to cover. With #790 and #758 last round, that is a pattern
rather than three accidents, so it gets its own issue.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
docs(plan): scope the log-timezone fix to a no-layout-change surface
0f157d4
The user's constraint is that their GUI layout must not change. lidge-jun#790's
direction is right and its defect is real -- dashboard timestamps render
in browser-local time -- but it carries two problems, and only one was
about layout.

It rewrites /api/logs from an array to a {timeZone, logs} envelope while
leaving four array consumers unfixed, and the single test it touches
accepts both shapes, so it passes with the production change reverted.

The narrower path already exists inside that same PR: it adds timeZone to
/api/settings and then never uses it, carrying the same value over two
routes. SettingsData already flows through the GUI, so the fix needs no
new fetch, no session-cache schema change, and no /api/logs change --
only a timezone argument threaded into two formatters at two call sites.

Records the RangeError guard (an ICU-unknown zone would otherwise kill the
row render), the browser-TZ != server-TZ test that lidge-jun#790's version could
not fail on, and the grep that proves no JSX or CSS moved.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun @Wibias
fix(gui): render dashboard log timestamps in the server's timezone (l…
8edb8f3
…idge-jun#725)

A proxy running in KST viewed from a UTC browser reported every request
nine hours off: `formatLogTimestamp` and `formatLogDateTime` called
`toLocaleTimeString(localeTag)` with no zone, so the viewer's machine
decided what time the server logged something.

The zone rides on `/api/settings`, which is already an object and already
flows through the GUI. PR lidge-jun#790 fixed the same defect by rewriting
`/api/logs` from a bare array into a `{timeZone, logs}` envelope -- while
leaving four suites that read that response as an array untouched
(server-auth:1623, claude-native-passthrough:119,
openai-provider-option-e2e:489, server-403-permission-e2e:86). It also
added a session-cache schema that accepts both the old and new shapes.
Curiously that PR already added `timeZone` to `/api/settings` and then
never read it, carrying one value over two routes.

Layout is untouched, which was the constraint here. The GUI diff is two
call sites gaining a third argument; every `className`, element and
stylesheet is byte-identical. `git diff -- gui/` filtered for
className/element/style changes returns the two timestamp lines and
nothing else.

The formatters swallow `RangeError`: a zone string this browser's ICU
build does not know would otherwise take the whole row render down, and a
timestamp in the wrong zone beats an empty log list. The fetch is a
one-shot on mount rather than part of the 2s log poll, since the server's
zone cannot change while the page is open, and an older proxy without the
field simply keeps browser-local formatting.

Tests, both verified by ablation rather than assumed:

- removing `timeZone` from /api/settings fails the settings test (4/1)
- dropping the formatter argument fails the rendering test (4/1)

That second one is the case lidge-jun#790's own test could not catch: it compared
the response to itself and passed with the production change reverted. The
new test fixes 00:30 UTC and asserts Seoul reads 9:30 while UTC reads
12:30, so an ignored argument shows up as a wrong hour. There is also a
test asserting /api/logs is still a bare array, placed at the source so
the contract fails here rather than in four unrelated suites.

The detail dialog gets the same zone; leaving it on browser time would put
two different times for one request on screen at once.

Co-authored-by: Wibias <[email protected]>
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
docs(plan): name the six fixes we can actually land, in dependency order
9b1fe65
Selection rule is narrow on purpose: an entry must trace to a triage
row and must not be waiting on maintainer approval or third-party
evidence. That is what keeps the list short -- most open PRs are
blocked by approval, not by code.

F1 is first because three other stream items sit on it.
closeCurrentToolCall() at bridge.ts:378-417 hardcodes
status: "completed", and both failure paths call it unconditionally
(:776 on adapter error, :835 on implicit EOF). So a stream that ends
in failure still hands the client a completed tool call, with
response.failed arriving afterward. That is why the adapter-side
attempt at lidge-jun#658 was reverted in a3e6412, and it is what PR lidge-jun#781
already fixes with failCurrentToolCall().

F2 must not land before F1. Relaxing EOF without a cancel path would
let a truncated tool call through as success.

Also recorded: bridge.ts:436-441 still says it synthesizes
response.completed, but :838 emits response.incomplete. The comment
outlived the code.

Three tests already on dev would survive reverting the behavior they
claim to cover. With lidge-jun#790 and lidge-jun#758 last round, that is a pattern
rather than three accidents, so it gets its own issue.
@luvs01 luvs01 mentioned this pull request Oct 29, 2026
build(deps): bump rustls from 0.23.45 to 0.23.46 in /desktop/src-tauri #7942
Merged
6 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu Ingwannu Awaiting requested review from Ingwannu Ingwannu is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Wibias @lidge-jun
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.