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 — feat(usage): read connected hub usage scoped to the enrolled client key by lidge-jun · Pull Request #4373 · lidge-jun/opencodex

feat(usage): read connected hub usage scoped to the enrolled client key #4373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
lidge-jun merged 113 commits into codex/260912-60plus-operations-totals from codex/260912-60plus-operations-client-usage
Sep 13, 2026

Uh oh!

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

Merged

feat(usage): read connected hub usage scoped to the enrolled client key #4373

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
9cab1ae
fix(start): report auxiliary listener failures without public-port re…
lidge-jun Sep 12, 2026
c597591
fix(start): retain degraded-listener evidence in salvage diagnostics
lidge-jun Sep 12, 2026
d95743b
test(config): activate routing-profile salvage in listener regression
lidge-jun Sep 12, 2026
dcd2d07
fix(search): retry clean empty answers without masking truncation
lidge-jun Sep 12, 2026
45f703f
test(search): narrow terminal fixture projection
lidge-jun Sep 12, 2026
3652da7
test(search): exercise live output truncation without duplicate replay
lidge-jun Sep 12, 2026
3bf0ae1
feat(remote): carry bounded executor and hub runtime adapters
lidge-jun Sep 12, 2026
59ec04b
fix(cursor): preserve first overflow and bound stable-thread remints
lidge-jun Sep 12, 2026
a318218
style(remote): remove trailing blank line in runner
lidge-jun Sep 12, 2026
b2d239e
fix: bound multipart encrypted agent task recovery
lidge-jun Sep 12, 2026
36625c7
test(cursor): activate remint guards after first overflow
lidge-jun Sep 12, 2026
a7b41aa
test: cover multipart boundary and input mutation cases
lidge-jun Sep 12, 2026
321b9b1
fix(live): validate sideband upstream before client upgrade
lidge-jun Sep 12, 2026
115e347
docs: synchronize shared V2 roadmap and review outcomes
lidge-jun Sep 12, 2026
d3b3b6d
feat(remote): integrate opt-in workspace dashboard and admission
lidge-jun Sep 12, 2026
3565b90
feat(usage): read connected hub usage within the enrolled client key
lidge-jun Sep 12, 2026
132403d
docs: place recovery contract away from shared append points
lidge-jun Sep 12, 2026
c9544c1
docs: separate sibling contract references in single-section owners
lidge-jun Sep 12, 2026
bf369d9
test(usage): ground account redaction and hub read deadlines
lidge-jun Sep 12, 2026
5c462fe
fix(remote): close startup cleanup races and preserve dashboard intent
lidge-jun Sep 12, 2026
e5ce931
fix(config): identify the actual malformed hub field in listener warn…
lidge-jun Sep 12, 2026
46f90d3
Merge latest dev and preserve sideband runtime contract
lidge-jun Sep 12, 2026
a1b8f96
fix(usage): restrict client-key transport and prevent response caching
lidge-jun Sep 12, 2026
7cccab3
fix(dashboard): guide hub pairing without restarting healthy clients
lidge-jun Sep 12, 2026
673ee8c
fix(openai-chat): normalize oversized inline images before serialization
lidge-jun Sep 12, 2026
b110d63
fix(openai-chat): retain synchronous under-budget image construction
lidge-jun Sep 12, 2026
1898bba
merge: reconcile current dev documentation for search recovery
lidge-jun Sep 12, 2026
14e93ca
merge: preserve current dev contracts for #4378
lidge-jun Sep 12, 2026
2be548a
merge: preserve current dev contracts for #4353
lidge-jun Sep 12, 2026
06fc280
Merge remote-tracking branch 'origin/dev' into codex/260912-finish-4363
lidge-jun Sep 12, 2026
eca7ce9
fix(cursor): preserve isolated recovery state and active cap retention
lidge-jun Sep 12, 2026
e2fc5ab
fix(remote): bound runtime admission and retain cleanup ownership
lidge-jun Sep 12, 2026
2056305
merge: carry refreshed usage foundation into client usage
lidge-jun Sep 12, 2026
379cf25
merge: carry runtime bounds while preserving integration shutdown han…
lidge-jun Sep 12, 2026
8cafec9
Merge remote-tracking branch 'origin/dev' into codex/260912-finish-4367
lidge-jun Sep 12, 2026
3ad908f
docs: synchronize live sideband handshake ownership
lidge-jun Sep 12, 2026
47d07d5
fix(remote): surface late resumed runtime cleanup failures
lidge-jun Sep 12, 2026
efb3936
fix(search): reject malformed truncated calls before replay
lidge-jun Sep 12, 2026
63bba2f
fix(remote): start owned socket cleanup before graceful drain
lidge-jun Sep 12, 2026
dbeade7
fix(remote): acknowledge prompt admission before model completion
lidge-jun Sep 12, 2026
4124a64
fix(dashboard): retain access errors across compound poll failures
lidge-jun Sep 12, 2026
4ad1d1c
fix(remote): align admission contracts and fallback session cursors
lidge-jun Sep 12, 2026
57b3057
docs: describe cancelled live sideband handshakes
lidge-jun Sep 12, 2026
52c8e8a
fix(pairing): use erasable types and explicit JSX event handlers
lidge-jun Sep 12, 2026
d1a922a
test(remote): repair admission fixtures and deferred cleanup assertions
lidge-jun Sep 12, 2026
3e73ca4
docs: record operations resume and remaining verification
lidge-jun Sep 12, 2026
36ab8cd
fix(opencode): separate local management catalog authority from infer…
lidge-jun Sep 12, 2026
535884e
docs: pin operations final verification and reconciliation scope
lidge-jun Sep 12, 2026
c5e9737
merge: reconcile listener candidate with the shared fixture repair ba…
lidge-jun Sep 12, 2026
eb409d0
merge: carry the verified usage foundation into the client usage tip
lidge-jun Sep 12, 2026
f67d4f0
merge: reconcile pairing candidate with the shared repair baseline
lidge-jun Sep 12, 2026
9b55626
test(remote): use portable subprocess fixtures on Windows
lidge-jun Sep 12, 2026
25c70d5
test(clients): retain bounded phase evidence for coordinator refusal …
lidge-jun Sep 12, 2026
c720dc5
test(clients): preserve spawn failures without captured stderr
lidge-jun Sep 12, 2026
31a96b2
docs(devlog): diff-level roadmap for the unimplemented trio stack (#4…
lidge-jun Sep 12, 2026
0268727
docs(devlog): fold wp1 audit findings into trio stack roadmap
lidge-jun Sep 12, 2026
2b533a5
docs(devlog): revalidate folded audit citations against source in wp1 B
lidge-jun Sep 12, 2026
da54017
docs(devlog): fold wp2 audit FAIL findings into L1 emission design
lidge-jun Sep 12, 2026
1893eec
docs(devlog): fold wp2 re-audit residual into L1 adoption points
lidge-jun Sep 12, 2026
923ca3c
feat(responses): persist content-free Codex WS upstream stage records…
lidge-jun Sep 12, 2026
07beb73
docs(structure): record the durable Codex WS stage record ownership (…
lidge-jun Sep 12, 2026
49dba44
fix(responses): refresh the WS stage record with final counters at te…
lidge-jun Sep 13, 2026
77dba07
docs(devlog): fold wp3 audit residual into L2 design
lidge-jun Sep 12, 2026
2c5022c
feat(codex): native-main device reauth API for headless hubs (#3898)
lidge-jun Sep 12, 2026
647e52f
feat(cli): ocx account main reauth --device with registry, docs, and …
lidge-jun Sep 12, 2026
4eed49e
fix(codex): close the cancel/commit race and fence the reauth commit …
lidge-jun Sep 12, 2026
584dadd
test(oauth): name the composite-signal proof and bound the fetch dead…
lidge-jun Sep 12, 2026
d666aef
test(codex): allow the transient cancelled read before publication wi…
lidge-jun Sep 13, 2026
4500ea0
docs(devlog): fold wp4 audit residual into L3 design
lidge-jun Sep 13, 2026
4d56932
fix(opencode-go): publish DeepSeek V4.1 context
martinbcg Sep 13, 2026
d111f8d
feat(gui): main-card Re-login with device code on the native reauth n…
lidge-jun Sep 13, 2026
7ab4cd4
merge: carry current dev into L1 WS stage instrumentation [skip ci]
lidge-jun Sep 13, 2026
e8ce186
merge: carry L1 WS stage instrumentation and current dev into L2 reau…
lidge-jun Sep 13, 2026
d420a46
merge: carry L2 reauth API and current dev into L3 main-card relogin …
lidge-jun Sep 13, 2026
247dc53
merge: carry the native-main trio and current dev into the remote run…
lidge-jun Sep 13, 2026
cf60fcc
merge: carry the refreshed remote runtime foundation into the integra…
lidge-jun Sep 13, 2026
a7514f2
merge: carry the remote/hub stack into the client-scoped usage tip
lidge-jun Sep 13, 2026
b4cc99e
[skip ci] chore(stack): merge origin/dev into codex/260912-60plus-str…
lidge-jun Sep 13, 2026
4f260b7
[skip ci] chore(stack): merge codex/260912-60plus-stream-search into …
lidge-jun Sep 13, 2026
37bc1a0
[skip ci] chore(stack): merge codex/260912-60plus-stream-cursor into …
lidge-jun Sep 13, 2026
c240534
[skip ci] chore(stack): merge codex/260912-60plus-stream-sideband int…
lidge-jun Sep 13, 2026
90667e5
[skip ci] chore(stack): merge codex/260912-60plus-models-images into …
lidge-jun Sep 13, 2026
00f8567
[skip ci] chore(stack): merge codex/260912-60plus-operations-pairing …
lidge-jun Sep 13, 2026
8acd73b
[skip ci] chore(stack): merge codex/260912-60plus-operations-transpor…
lidge-jun Sep 13, 2026
388c9d1
[skip ci] chore(stack): merge codex/260912-operations-client-probe in…
lidge-jun Sep 13, 2026
d7a3acc
chore(stack): merge codex/260912-60plus-operations-listeners into cod…
lidge-jun Sep 13, 2026
b324beb
test(gui): select the Re-login CTA by label and stop awaiting a pendi…
lidge-jun Sep 13, 2026
0c8d9d3
fix(gui): give the reauth poll loop an explicit abort condition [skip…
lidge-jun Sep 13, 2026
d2b0cb1
merge: carry the repaired native-main trio into the remote runtime fo…
lidge-jun Sep 13, 2026
ae79519
merge: carry the repaired runtime foundation into the integration lay…
lidge-jun Sep 13, 2026
6df609f
merge: carry the repaired remote/hub stack into the client-scoped usa…
lidge-jun Sep 13, 2026
81f58a4
merge: refresh the stack tip against current dev
lidge-jun Sep 13, 2026
ec29d80
merge: carry the refreshed #4357 usage-totals base into the client us…
lidge-jun Sep 13, 2026
f65b8eb
merge: carry current dev into L1 WS stage instrumentation [skip ci]
lidge-jun Sep 13, 2026
300ad2d
merge: carry L1 and current dev into L2 reauth API [skip ci]
lidge-jun Sep 13, 2026
d42d873
merge: carry L2 and current dev into L3 main-card relogin UI [skip ci]
lidge-jun Sep 13, 2026
0c4f962
merge: carry the native-main trio and current dev into the remote run…
lidge-jun Sep 13, 2026
19601ea
merge: carry the refreshed runtime foundation into the integration la…
lidge-jun Sep 13, 2026
c20abd0
chore(stack): merge origin/dev into codex/260912-60plus-v2-recovery
lidge-jun Sep 13, 2026
7874900
merge: carry the refreshed remote/hub stack into the client-scoped us…
lidge-jun Sep 13, 2026
4a252f5
fix: keep stacked live handshake with audio sideband and unbreak cata…
lidge-jun Sep 13, 2026
b32df5f
docs: capture stacked hub pairing panel for the tip PR screenshot gate
lidge-jun Sep 13, 2026
5eb6e73
docs(devlog): capture the Remote Workspace hub dashboard for the stac…
lidge-jun Sep 13, 2026
c4e5f20
fix: plant sidecar fixture and drop Bun HTTP_PROXY catalog control
lidge-jun Sep 13, 2026
f059251
chore(stack): merge origin/dev into codex/260912-60plus-v2-recovery
lidge-jun Sep 13, 2026
d2a7dc0
merge: refresh the stack tip against current dev
lidge-jun Sep 13, 2026
c9b73a4
merge: carry the refreshed #4357 usage-totals base into the client us…
lidge-jun Sep 13, 2026
0a96f88
Merge pull request #4440 from martinbcg/fix/opencode-go-deepseek-v41-…
lidge-jun Sep 13, 2026
2ba5a54
fix(gui): check reauth response status before reading its body
lidge-jun Sep 13, 2026
beb2e12
merge: refresh the stack tip against current dev
lidge-jun Sep 13, 2026
2c2223b
Merge pull request #4364 from lidge-jun/codex/260912-60plus-v2-recovery
lidge-jun Sep 13, 2026
7d280d6
test(server): stop reading a pure delegation guard as an unresolved r…
lidge-jun Sep 13, 2026
8ccd80d
merge: refresh the stack tip against current dev
lidge-jun Sep 13, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

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

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

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

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(gui): check reauth response status before reading its body
React Doctor runs as a PR gate at blocking: warning and flagged three findings,
all from the device-reauth work this stack carries.

The hook parsed every reauth response before testing res.ok, so a failure body
was consumed without a status check
(react-doctor/no-fetch-response-used-without-status-check, twice). The status
test now comes first and each branch reads the body it needs; the failure code
still comes from the error payload, so behavior is unchanged.

The test probe assigned the hook result to an outer binding during render,
which react/react-compiler rejects. It publishes from an effect instead, and
act() flushes effects, so every assertion still reads the latest committed
value. All three tests in the file pass and React Doctor reports no issues.
  • Loading branch information

Uh oh!

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

@lidge-jun
lidge-jun committed Sep 13, 2026
commit 2ba5a548b35fee09a4315172bf726d8715d67a8a

There are no files selected for viewing

10 changes: 6 additions & 4 deletions 10 gui/src/components/use-main-device-reauth.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,12 @@ export function useMainDeviceReauth(apiBase: string, onCompleted: () => void) {
try {
// Empty body by contract: the route rejects any request keys with 400.
const res = await fetch(`${apiBase}/api/codex-auth/main/reauth-device`, { method: "POST", signal: ctrl.signal });
const dto = await res.json().catch(() => ({})) as FlowDto;
if (!res.ok) {
setState({ phase: "failed", code: failureCode(dto.code) });
const failed = await res.json().catch(() => ({})) as FlowDto;
setState({ phase: "failed", code: failureCode(failed.code) });
return;
}
const dto = await res.json().catch(() => ({})) as FlowDto;
if (typeof dto.flowId !== "string" || !dto.flowId) {
setState({ phase: "failed", code: "request_failed" });
return;
Expand All @@ -131,11 +132,12 @@ export function useMainDeviceReauth(apiBase: string, onCompleted: () => void) {
`${apiBase}/api/codex-auth/main/reauth-device?flowId=${encodeURIComponent(flowId)}`,
{ signal: AbortSignal.any([ctrl.signal, AbortSignal.timeout(POLL_TICK_TIMEOUT_MS)]) },
);
const dto = await res.json().catch(() => ({})) as FlowDto;
if (!res.ok) {
setState({ phase: "failed", code: failureCode(dto.code) });
const failed = await res.json().catch(() => ({})) as FlowDto;
setState({ phase: "failed", code: failureCode(failed.code) });
return;
}
const dto = await res.json().catch(() => ({})) as FlowDto;
lastUrl = allowedVerificationUrl(dto.verificationUrl) || lastUrl;
lastCode = humanCode(dto.deviceCode) || lastCode;
if (dto.status === "pending" || dto.status === "committing") {
Expand Down
8 changes: 6 additions & 2 deletions 8 gui/tests/main-device-reauth.test.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { afterEach, beforeEach, expect, test } from "bun:test";
import { Window } from "happy-dom";
import { act } from "react";
import { act, useEffect } from "react";
import type { Root } from "react-dom/client";
import { LanguageProvider } from "../src/i18n/provider";
import { CodexAccountPoolMainCard } from "../src/components/codex-account-pool-main-card";
Expand Down Expand Up @@ -132,7 +132,11 @@ test("the hook POSTs an empty body to the dedicated route and polls to success",
let completed = 0;
let captured: { state: MainDeviceReauthState; start: () => Promise<void>; cancel: () => Promise<void> } | null = null;
const Probe = () => {
captured = useMainDeviceReauth("", () => { completed += 1; });
const value = useMainDeviceReauth("", () => { completed += 1; });
// Publish from an effect, not during render: assigning an outer binding while
// rendering is exactly what the React compiler rejects. act() flushes effects,
// so every assertion below still reads the latest committed value.
useEffect(() => { captured = value; });
return null;
};
const { createRoot } = await import("react-dom/client");
Expand Down
Loading
Oops, something went wrong.

Uh oh!

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

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 01402792 — 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.