GeezerVison is showing github.com — merge: carry the refreshed #4357 usage-totals base into the client us… · lidge-jun/opencodex@c9b73a4
File tree
Expand file treeCollapse file tree
Open diff view settings
devlog/_plan/260912_accounts/screenshots
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard 152 KB
- Display the source diff
- Display the rich diff
Collapse file
Copy file name to clipboard 170 KB
- Display the source diff
- Display the rich diff
Collapse file
Copy file name to clipboard 192 KB
- Display the source diff
- Display the rich diff
Collapse file
Copy file name to clipboardExpand all lines: structure/providers/openai-tiers.md -1Lines changed: 0 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -441,7 +441,6 @@ API-key and custom forward destinations preserve their metadata. See [Responses |
441 | 441 | `src/codex/routing.ts` applies optional `codexPool.excludedPlans` to both candidate selection and existing active/affined accounts. An all-excluded pool returns no automatic candidate, including preview and configured-account fallback. Native main remains exempt and unknown plans remain eligible. Explicit account-qualified routes retain pause, credential and entitlement checks while bypassing only this automatic policy. |
442 | 442 |
|
443 | 443 | `src/codex/auth-api.ts` projects `selectionExcludedReason: "plan_excluded"` and `selectionExcludedPlan` from the routing config, even when a newer display-only WHAM plan could not be persisted. The dashboard and account CLI show the policy reason separately from credential health; renewal clears the derived fields. The automatic next-session action and badge are omitted for excluded rows. |
444 | | - |
445 | 444 | ## Paginated history writer boundary |
446 | 445 | `src/codex/history-provider.ts` refuses external writes to paginated or migration-capable history. `src/codex/inject.ts` checks affected rows and manifest-owned restore targets before and after config/profile/journal changes, including successful journal and fallback restores, and compensates detected migration. Failed config restore stops later catalog/history work and rolls back a coordinated remove transition. See the [history writer contract](../codex-home.md#paginated-history-writer-boundary) for guarantees and concurrent-writer limits. |
447 | 446 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: tests/cli/cli-status-json.test.ts +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -984,6 +984,11 @@ describe("status reports stale process records end to end", () => { |
984 | 984 | writeFileSync(join(home, "runtime-port.json"), JSON.stringify({ pid, port: recordedPort, hostname: "127.0.0.1" }), "utf8"); |
985 | 985 | const observed = JSON.parse(runStatusJson(home).stdout) as { proxy?: { staleProcessState?: unknown } }; |
986 | 986 | if (!await refusesConnection(recordedPort)) continue; |
| 987 | + // The TCP check can refuse while the HTTP /healthz probe aborts at 800ms |
| 988 | + // without an ECONNREFUSED code. That leaves staleProcessState false even |
| 989 | + // though the recorded port is still empty; retry instead of treating a |
| 990 | + // timed-out probe as "judged the occupied configured port". |
| 991 | + if (observed?.proxy?.staleProcessState !== true) continue; |
987 | 992 | parsed = observed; |
988 | 993 | } |
989 | 994 |
|
|