Skip to content

fix(update): validate configuration before stopping services - #8227

Merged
lidge-jun merged 4 commits into
devfrom
codex/carry-8081-config-preflight
Nov 6, 2026
Merged

lidge-jun merged 4 commits into
devfrom
codex/carry-8081-config-preflight

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • A Bun CLI update could stop the running service before discovering that its configuration would fall back. Check the selected configuration first and refuse the update before the stop when the file is unreadable or remains invalid after the supported load-time repairs.
  • Read and validate the same opened regular file, including valid symlink targets; distinguish a genuinely missing configuration from an occupied dangling link. The preflight is passive and does not write a configuration backup. Later independent configuration edits are outside this preflight's guarantee.
  • Explain how to inspect an unreadable path or symlink target and restore a trusted readable file; for a readable invalid file, recommend validation for diagnosis and explicitly state that validation does not repair the file.
  • The preflight evaluates the opened descriptor's bytes with the same passive diagnostics used for disk reads and refuses diagnostics fallback, including salvaged configurations. It suppresses configuration-derived sanitizer warnings without changing the default warnings for existing diagnostics and runtime callers. This adds an optional warning callback in the shared diagnostics path and covers the Bun CLI update path; npm/pnpm and the dashboard worker are not changed.
  • Reference: Node.js filesystem guidance on prechecking and races and symlink metadata.

Supersedes #8081

Co-authored-by: Rafael Moreira [email protected]

Verification

  • bun install — passed on Windows.

  • bun run typecheck — passed on Windows at ee851a538f2a64eb0b3c3cb8c25ae8699b576e4b.

  • bun test tests/update/update-config-preflight.test.ts tests/update/update-stop-first.test.ts — 58 passed, 1 skipped, 0 failed on Windows at ee851a53. The tests cover refusal before stop for diagnostics fallback, including an invalid alias and salvageable configuration, along with missing and readable symlink paths. The skipped case is platform-specific.

  • bun run test:changed — timed out after 900 seconds (exit 124) at ee851a53; its capture was incomplete and contained 29 failure markers across 14 files. This is not a passing result.

  • Each file below was then run separately and serially with bun run test <file>, after bun install, on both ee851a538f2a64eb0b3c3cb8c25ae8699b576e4b and baseline a0d4b4045a14e8be4efece43262b006ff804b4e6. Both commits had the same exit code, counts, and failure names. The normal Windows test coordination lock was enabled.

    File under tests/ Exit Pass / fail / skip on each commit
    adapters/google/google-models-listing.test.ts 1 12 / 2 / 0
    ci-workflows/test-home-guard.test.ts 0 26 / 0 / 1
    codex-integration/codex-app-server-processes.test.ts 1 65 / 1 / 2
    codex-integration/codex-catalog-writer.test.ts 0 18 / 0 / 0
    codex-integration/codex-cli-update-apply.test.ts 0 3 / 0 / 40
    oauth/oauth-refresh.test.ts 1 60 / 7 / 0
    oauth/oauth-store-multi.test.ts 0 62 / 0 / 2
    providers/kiro/kiro-refusal-failover.test.ts 0 12 / 0 / 0
    responses/chat-error-body-normalization.test.ts 1 206 / 1 / 0
    routing/compatibility-provider-equivalence.test.ts 1 2 / 1 / 0
    routing/routing-compatibility-boundaries.test.ts 1 1 / 2 / 0
    routing/routing-compatibility.test.ts 1 34 / 1 / 0
    routing/routing-policy-surface-parity.test.ts 1 6 / 1 / 0
    routing/routing-profile-management-editor.test.ts 1 13 / 2 / 0

    Nine files failed on both commits with the same failure names; five passed on both. There were no head-only failures. Google and OAuth logs included EICACLS errors; the app-server and several routing/response cases reported timeouts. These observations do not establish the causes. The app-server test output reported killing two dangling processes per run; their identities could not be independently established from the logs.

    Matching named failures were: Google “uses the CCA agent list and applies CCA metadata” and “does not register wire mappings from a stale CCA discovery”; app-server “a defaulted read is memoized, and invalidation is what clears it”; OAuth refresh's seven Nous cases covering successful rotation, intent-cleanup failure, insufficient scope, persistence failure, concurrent generation preservation, concurrent writer preservation, and RT-B cleanup failure; routing boundaries “management dry-run and production routing agree on compatibility penalty and trace”; and routing editor “PUT update migrates config references when the profile alias changes”. The response file and five routing files also each reported an unnamed hook timeout.

  • bun run structure:check and bun run privacy:scan — passed on Windows at ee851a53.

  • Earlier head 57f708f7 verification, retained here as historical evidence, does not prove the rebased parity head:

  • bun test tests/update/update-config-preflight.test.ts — 26 passed, 0 failed at 57f708f7; the readable-invalid and real dangling-symlink guidance regressions failed before the correction.

  • bun test tests/update/update-config-preflight.test.ts tests/update/update-stop-first.test.ts tests/config/model-pinned-effort-config.test.ts tests/config/config-load-degrade.test.ts tests/config/config-anthropic-instance-pool.test.ts — 129 passed, 1 POSIX-only recovery case skipped, 0 failed on Windows after rebase. This host supported real symlinks; its valid and dangling link cases ran. An unprivileged Windows account's real symlink behavior was not tested.

  • bun run test:changed — timed out on head 57f708f7fa64bbc97fb9826682825557cca3d352 after selecting 2,195 files. The incomplete output reported failures in the five files compared below. Each command was run separately on that head and clean origin/dev c637be2cc7bf7cc3b7a8b6b4252af5eb25f61c69 on Windows.

  • bun test tests/oauth/oauth-refresh.test.ts — exit 0, 67 passed on both head and dev; the batch failures did not reproduce alone (load/timeout noise).

  • bun test tests/oauth/oauth-store-multi.test.ts — exit 1, 59 passed, 3 failed, 2 skipped on both head and dev; the same three uninstall and migration cases fail on the Windows baseline.

  • bun test tests/responses/chat-error-body-normalization.test.ts — exit 1, 206 passed, 1 failed on both head and dev; the same unnamed setup or cleanup hook timed out on the Windows baseline.

  • bun test tests/claude-integration/claude-cli-picker.test.ts — exit 0, 25 passed on both head and dev; the batch failure did not reproduce alone (load/timeout noise).

  • bun test tests/claude-integration/claude-config-root-late-admission.test.ts — initial isolated comparison: head exit 1, 65 passed and 2 timeout failures; dev exit 0, 66 passed. A subsequent diagnostic after bun install, with the normal test lock, passed 66/0 on the same head. Under the coordinator's rule this is classified as load/timeout noise; the precise cause of the initial timeout was not established. A preceding diagnostic attempt did not run tests because its isolated worktree lacked zod/v4.

  • Test-layout checks and file-size ratchet passed on the earlier implementation head. cd docs-site && bun install --frozen-lockfile && bun run build passed at 57f708f7; the build emitted Astro warnings.

  • The full root suite was not run locally because six lanes were running concurrently. ci:full requests broader Ubuntu and source-oracle coverage; POSIX live update recovery and Windows without symlink privileges remain for appropriate environments.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

@lidge-jun lidge-jun added bug Something isn't working ci:full Run the four full Ubuntu test shards on this pull request labels Nov 6, 2026
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

lidge-jun and others added 4 commits November 6, 2026 17:22
Carry PR #8081 with passive single-file diagnostics and fail-closed handling for occupied unreadable paths.

Co-authored-by: Rafael Moreira <[email protected]>
Match supported load-time sanitizers while refusing fallback diagnostics,
and exercise real and simulated symlink behavior on supported hosts.

Co-authored-by: Rafael Moreira <[email protected]>
@lidge-jun
lidge-jun force-pushed the codex/carry-8081-config-preflight branch from 57f708f to ee851a5 Compare November 6, 2026 09:14
@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration into dev under MAINTAINERS.md (lidge-jun, admin).

  • Checked head: ee851a5; all required PR checks on this head passed; no unresolved review threads.
  • Review: carry of fix(update): validate config candidate before stopping services #8081: ocx update validates the config candidate before stopping services; load-time sanitizers take an injected warn so preflight diagnostics are collected instead of printed; regression tests for stop-first ordering and preflight refusal; docs updated.

@lidge-jun
lidge-jun marked this pull request as ready for review November 6, 2026 12:10
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 6, 2026 12:10
@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration into dev under MAINTAINERS.md (lidge-jun, admin).

  • Checked head: ee851a5; all 30 PR checks on this head passed; no unresolved review threads; the original independent reviewer re-checked this head (diagnostics fallback parity) with no P0–P2 findings.
  • Review: carry of fix(update): validate config candidate before stopping services #8081 — ocx update validates the selected config before stopping services and refuses when it is unreadable or would fall back after supported load-time repairs; preflight reuses the passive diagnostics on the opened descriptor; dangling-symlink recovery guidance matches ocx config validate; load-time sanitizers take an injected warn. Regression tests and docs included.
  • Local test:changed on the Windows lane host was incomplete (900 s cap); 14 reported files compared head vs dev individually showed no head-only failure. The lane could not prove the test runner's dangling-process sweep is confined to test-owned processes, so it did not repeat a broad run there; the exact-head hosted CI above is the gate.

@lidge-jun
lidge-jun merged commit b4cc5e8 into dev Nov 6, 2026
33 of 35 checks passed
@lidge-jun
lidge-jun deleted the codex/carry-8081-config-preflight branch November 6, 2026 12:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T12:12:08.137077Z ee851a5 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

jack-o-mania added a commit to alexalok/opencodex that referenced this pull request Nov 6, 2026
…20)

* feat: configure approval-review reasoning and allow native reviewers

* test: update response source guards for approval review effort

* fix(claude): normalize direct context overflow errors with parity coverage (lidge-jun#8148)

* fix(claude): normalize direct context overflow errors

* test(claude): cover generic overflow parity and document direct errors

Preserve the existing direct-encoder fix and cover four generic error codes across streaming and folded responses.

Verified tree matches local commit 25f1104c7631e713199de631505c1dba01ff49d3.

* test(messages): align generic overflow normalization expectations

* fix(responses): lower ocx envelopes on native v1 compact (lidge-jun#8042) (lidge-jun#8151)

Canonical ChatGPT and official OpenAI native /responses/compact sends
forwarded OpenCodex-owned ocx1:/ocx2: compaction envelopes verbatim, so the
upstream rejected them as invalid_encrypted_content. Only the custom gateway
send lowered them. Run scrubOcxCompactionItems on the non-gateway send as
well, so the envelopes become plain user summaries like on ordinary turns,
while native blobs stay byte-identical for these decoding destinations.

Co-authored-by: Ingwannu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* fix(codex): preserve pre-output hold across safe WS heartbeats (lidge-jun#8188)

* fix(codex): preserve pre-output hold across safe WS heartbeats

* test(codex): cover heartbeat cancellation and sequence bounds

* test(codex): assert the relayed refusal frame reaches the body

The parameterised "relayed in the body" cases only checked the status, so a
regression that dropped the frame would still pass. Assert the event marker and
message, and say in the transport contract that sequence_number is also bounded
to a non-negative safe integer.

* fix(terminal-guard): pass completion summaries that follow tool results (lidge-jun#8154)

* fix(terminal-guard): pass completion summaries that follow tool results

The Anthropic terminal guard read the latest user text and ignored tool
activity after it, so a normal turn (request -> tool calls -> tool
results -> short "done" summary) was classified suspicious_no_tool. The
relay then appended the plan-only nudge and re-asked the model, which
re-ran tools it had already run and repeated the cycle on every client
turn.

Tool calls or results after the latest user message now mark the turn as
already executed; only a renewed plan announcement (PLAN_INTENT_RE) is
still continued.

* fix(terminal-guard): stop the tool-activity pass at a stalled plan announcement

A text-only plan announcement after the last tool activity means the turn
stalled there, so a following completion is continued again, matching
recentTurnHasToolActivity. Pin the boundary for next-step wording: first-person
plans still continue, while a summary that suggests a next step to the user
passes.

---------

Co-authored-by: yazzang-homelab <[email protected]>

* fix(mistral): keep replayed images within each model's per-request cap (lidge-jun#8174)

Mistral rejects requests that carry more images than a model accepts,
counting the whole replayed history: most vision models refuse a ninth
image with HTTP 400, and DeepSeek V4.1 Flash answers an opaque HTTP 503
(code 3800) past 20. A screenshot-heavy session then fails on every turn.

For the first-party Mistral destination, messagesToChatFormat now keeps
the newest image_url parts within the model's cap and replaces older ones
with a text note naming the cap, in the outbound copy only. The cap is the
new modelCapabilities.<id>.mistralMaxImages axis: an operator declaration
over the measured rows on the mistral registry entry, else the documented 8.

Co-authored-by: Henry Fontanier <[email protected]>

* fix(openai-chat): flatten root tool schemas for Claude chat gateways (lidge-jun#8163)

* fix(openai-chat): flatten Claude gateway root tool schemas

Apply the supplied Claude Chat gateway compatibility patch to current dev.
Flatten root oneOf/anyOf/allOf by upstream model id while preserving nested
schemas and literal values. Keep existing Zen and Azure sanitization intact.

Cover root compositions, required fields, wire-model overrides, non-Claude
exclusion, nested schema preservation and input immutability. Register the
new suite in the existing providers layout shard and document the lossy
root normalization contract.

* fix(openai-chat): preserve Claude root reference arguments

Preserve own __proto__ argument names and resolve local root-branch ref
chains with a shared 64-dereference budget per tool schema. Keep nested
schemas and existing Zen/Azure handling unchanged. Preserve the original
composition for cyclic, missing, external, over-budget or nested-composition
references instead of emitting an incomplete flattened argument catalog.

Add regression coverage for local references, safety fallbacks, property
precedence and non-final Claude name segments. Clarify allOf required-field
promotion and reference limits in the public and architecture docs.

* fix(openai-chat): retain unread inline composition arguments

* fix(openai-chat): flatten empty nested property maps

* test(service): make service definition probes portable (lidge-jun#8201)

Co-authored-by: JUN <[email protected]>
Co-authored-by: Omar <[email protected]>

* fix(responses): join repeated tool outputs for one call (lidge-jun#8199)

* fix(responses): join repeated tool outputs for one call

Co-authored-by: tachyon6 <[email protected]>

* fix(chat): preserve late tool output chronology

* docs(chat): clarify repeated output folding boundary

---------

Co-authored-by: tachyon6 <[email protected]>

* fix(transport): release disposed SOCKS5 readers and timeout closures (lidge-jun#8203)

Co-authored-by: youhuangla <[email protected]>

* fix(claude): avoid retries for definite context overflow (lidge-jun#8211)

* fix(claude): avoid retries for definite context overflow

Co-authored-by: gitrvc-hub <[email protected]>

* fix(retry): reject negated overflow verdicts

* fix(claude): preserve overflow verdicts across sentences

* fix(claude): preserve verdicts across separate sentences

---------

Co-authored-by: gitrvc-hub <[email protected]>

* fix(antigravity): include Argon level with thought summaries (lidge-jun#8208)

Preserve suffix-only requests when summaries are hidden and reject inherited effort-map keys.

Co-authored-by: Andrew (agent) <[email protected]>

* fix(claude): preserve translated system cache boundary (lidge-jun#8212)

* fix(claude): preserve translated system cache boundary

Co-authored-by: Vadym O <[email protected]>

* fix(claude): retain cache boundary after identity normalization

* test(claude): cover mismatched system cache prefix

---------

Co-authored-by: Vadym O <[email protected]>

* fix(web-search): strip Lite marker from classic search (lidge-jun#8202)

* fix(web-search): omit lite marker from classic search

Preserve classic search wire semantics for configured and selected headers.

Co-authored-by: Ege Arhan <[email protected]>

* docs(web-search): explain classic sidecar header exception

---------

Co-authored-by: Ege Arhan <[email protected]>

* fix(web-search): report incomplete Anthropic search results (lidge-jun#8210)

* fix(web-search): report incomplete Anthropic search results

* fix(web-search): reject malformed Anthropic search frames

* fix(web-search): reject empty Anthropic stop reasons

* test(web-search): complete routed Anthropic search fixture

* fix(web-search): honor SSE controls and exact byte boundary

* fix(web-search): honor clean EOF at exact byte cap

* fix(web-search): separate consumer and upstream inactivity (lidge-jun#8213)

* fix(web-search): separate consumer and upstream inactivity

* fix(web-search): yield on synchronous empty chunks

* Preserve consumer timeout in image bridge

* test(messages): restore Windows fixture coverage (lidge-jun#8214)

* test(messages): fix Windows fixture path matching

* test(messages): prove sink and overlay execution

---------

Co-authored-by: JUN <[email protected]>

* docs(credits): record lidge-jun#8176 credit lost in lidge-jun#8214's squash (lidge-jun#8219)

* fix(responses): preserve adapter body stall status (lidge-jun#8200)

* fix(responses): preserve adapter body stall status

* docs(responses): describe adapter body stall failures

* fix(responses): preserve continuation stall status

* Preserve body stall across empty completion retry

* fix(tests): isolate Codex profile cases on Windows (lidge-jun#8217)

Co-authored-by: JUN <[email protected]>

* fix(tests): isolate Windows uninstall privilege scenarios (lidge-jun#8218)

Co-authored-by: JUN <[email protected]>

* fix(tests): pair Windows job store route fixture (lidge-jun#8225)

Co-authored-by: JUN <[email protected]>

* fix(tests): use native homes in systemd probe fixtures (lidge-jun#8226)

Co-authored-by: JUN <[email protected]>

* fix(models): list router-known IDs with effective metadata (lidge-jun#8215)

Carries lidge-jun#8187 by @ismell0992-afk.

Co-authored-by: ismell0992-afk <[email protected]>

* fix(gui): prioritize critical credits in quota summary (lidge-jun#8223)

* Prioritize critical credits in quota headline

Co-authored-by: Rafael Moreira Lima <[email protected]>

* Fix quota headline selection for custom label collisions

Co-authored-by: Rafael Moreira Lima <[email protected]>

* Strengthen unlimited credits quota summary fixture

Co-authored-by: Rafael Moreira Lima <[email protected]>

* docs: record quota headline precedence

Co-authored-by: Rafael Moreira Lima <[email protected]>

* fix(gui): index quota headline windows by label

Co-authored-by: Rafael Moreira Lima <[email protected]>

* docs: clarify critical credit precedence in translations

Co-authored-by: Rafael Moreira Lima <[email protected]>

* docs: describe quota window projection

Co-authored-by: Rafael Moreira Lima <[email protected]>

---------

Co-authored-by: JUN <[email protected]>
Co-authored-by: Rafael Moreira Lima <[email protected]>

* fix(update): validate configuration before stopping services (lidge-jun#8227)

Carries lidge-jun#8081 by @rrmlima.

Co-authored-by: Rafael Moreira <[email protected]>

* docs: keep merged provider reference within size limit

* ci: allow Linux shards time to finish the full suite

---------

Co-authored-by: Epinephrine <[email protected]>
Co-authored-by: ingwannu <[email protected]>
Co-authored-by: Ingwannu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: jaekwonhong <[email protected]>
Co-authored-by: Lee SaYah <[email protected]>
Co-authored-by: yazzang-homelab <[email protected]>
Co-authored-by: Henry Fontanier <[email protected]>
Co-authored-by: Henry Fontanier <[email protected]>
Co-authored-by: lcxhh <[email protected]>
Co-authored-by: JUN <[email protected]>
Co-authored-by: JUN <[email protected]>
Co-authored-by: Omar <[email protected]>
Co-authored-by: tachyon6 <[email protected]>
Co-authored-by: youhuangla <[email protected]>
Co-authored-by: gitrvc-hub <[email protected]>
Co-authored-by: Andrew (agent) <[email protected]>
Co-authored-by: Vadym O <[email protected]>
Co-authored-by: Ege Arhan <[email protected]>
Co-authored-by: ismell0992-afk <[email protected]>
Co-authored-by: Rafael Moreira Lima <[email protected]>
alexalok added a commit to alexalok/opencodex that referenced this pull request Nov 20, 2026
…#41)

* fix(catalog): discover native Pool models on hubs (#40)

* fix(catalog): discover native Pool models on hubs

* fix(catalog): fence hub convergence against concurrent disable

* fix(catalog): project hub discoveries in client downloads

* fix(catalog): stop authenticated discovery after cancellation

* fix(catalog): preserve converged rows and align hub revision tracking

* fix(catalog): retain account selectors and cache projected revisions

* fix(link): hash catalogs with the serving config

* fix(catalog): omit disabled discovered account selectors

(cherry picked from commit e111ae1)

* fix(search): accept validated Hub bearer admission (#3)

* fix(search): accept validated Hub bearer admission

* test(search): shard admission layout registration

* test(search): align Reserve ingress with Hub bearer admission

---------

Co-authored-by: Codex <codex@localhost>
(cherry picked from commit f9206d4)

* Fix link management on IPv4 loopback aliases

(cherry picked from commit cbc48e3)

* Allow native GPT approval reviewers and configure reviewer reasoning (#20)

* feat: configure approval-review reasoning and allow native reviewers

* test: update response source guards for approval review effort

* fix(claude): normalize direct context overflow errors with parity coverage (lidge-jun#8148)

* fix(claude): normalize direct context overflow errors

* test(claude): cover generic overflow parity and document direct errors

Preserve the existing direct-encoder fix and cover four generic error codes across streaming and folded responses.

Verified tree matches local commit 25f1104c7631e713199de631505c1dba01ff49d3.

* test(messages): align generic overflow normalization expectations

* fix(responses): lower ocx envelopes on native v1 compact (lidge-jun#8042) (lidge-jun#8151)

Canonical ChatGPT and official OpenAI native /responses/compact sends
forwarded OpenCodex-owned ocx1:/ocx2: compaction envelopes verbatim, so the
upstream rejected them as invalid_encrypted_content. Only the custom gateway
send lowered them. Run scrubOcxCompactionItems on the non-gateway send as
well, so the envelopes become plain user summaries like on ordinary turns,
while native blobs stay byte-identical for these decoding destinations.

Co-authored-by: Ingwannu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* fix(codex): preserve pre-output hold across safe WS heartbeats (lidge-jun#8188)

* fix(codex): preserve pre-output hold across safe WS heartbeats

* test(codex): cover heartbeat cancellation and sequence bounds

* test(codex): assert the relayed refusal frame reaches the body

The parameterised "relayed in the body" cases only checked the status, so a
regression that dropped the frame would still pass. Assert the event marker and
message, and say in the transport contract that sequence_number is also bounded
to a non-negative safe integer.

* fix(terminal-guard): pass completion summaries that follow tool results (lidge-jun#8154)

* fix(terminal-guard): pass completion summaries that follow tool results

The Anthropic terminal guard read the latest user text and ignored tool
activity after it, so a normal turn (request -> tool calls -> tool
results -> short "done" summary) was classified suspicious_no_tool. The
relay then appended the plan-only nudge and re-asked the model, which
re-ran tools it had already run and repeated the cycle on every client
turn.

Tool calls or results after the latest user message now mark the turn as
already executed; only a renewed plan announcement (PLAN_INTENT_RE) is
still continued.

* fix(terminal-guard): stop the tool-activity pass at a stalled plan announcement

A text-only plan announcement after the last tool activity means the turn
stalled there, so a following completion is continued again, matching
recentTurnHasToolActivity. Pin the boundary for next-step wording: first-person
plans still continue, while a summary that suggests a next step to the user
passes.

---------

Co-authored-by: yazzang-homelab <[email protected]>

* fix(mistral): keep replayed images within each model's per-request cap (lidge-jun#8174)

Mistral rejects requests that carry more images than a model accepts,
counting the whole replayed history: most vision models refuse a ninth
image with HTTP 400, and DeepSeek V4.1 Flash answers an opaque HTTP 503
(code 3800) past 20. A screenshot-heavy session then fails on every turn.

For the first-party Mistral destination, messagesToChatFormat now keeps
the newest image_url parts within the model's cap and replaces older ones
with a text note naming the cap, in the outbound copy only. The cap is the
new modelCapabilities.<id>.mistralMaxImages axis: an operator declaration
over the measured rows on the mistral registry entry, else the documented 8.

Co-authored-by: Henry Fontanier <[email protected]>

* fix(openai-chat): flatten root tool schemas for Claude chat gateways (lidge-jun#8163)

* fix(openai-chat): flatten Claude gateway root tool schemas

Apply the supplied Claude Chat gateway compatibility patch to current dev.
Flatten root oneOf/anyOf/allOf by upstream model id while preserving nested
schemas and literal values. Keep existing Zen and Azure sanitization intact.

Cover root compositions, required fields, wire-model overrides, non-Claude
exclusion, nested schema preservation and input immutability. Register the
new suite in the existing providers layout shard and document the lossy
root normalization contract.

* fix(openai-chat): preserve Claude root reference arguments

Preserve own __proto__ argument names and resolve local root-branch ref
chains with a shared 64-dereference budget per tool schema. Keep nested
schemas and existing Zen/Azure handling unchanged. Preserve the original
composition for cyclic, missing, external, over-budget or nested-composition
references instead of emitting an incomplete flattened argument catalog.

Add regression coverage for local references, safety fallbacks, property
precedence and non-final Claude name segments. Clarify allOf required-field
promotion and reference limits in the public and architecture docs.

* fix(openai-chat): retain unread inline composition arguments

* fix(openai-chat): flatten empty nested property maps

* test(service): make service definition probes portable (lidge-jun#8201)

Co-authored-by: JUN <[email protected]>
Co-authored-by: Omar <[email protected]>

* fix(responses): join repeated tool outputs for one call (lidge-jun#8199)

* fix(responses): join repeated tool outputs for one call

Co-authored-by: tachyon6 <[email protected]>

* fix(chat): preserve late tool output chronology

* docs(chat): clarify repeated output folding boundary

---------

Co-authored-by: tachyon6 <[email protected]>

* fix(transport): release disposed SOCKS5 readers and timeout closures (lidge-jun#8203)

Co-authored-by: youhuangla <[email protected]>

* fix(claude): avoid retries for definite context overflow (lidge-jun#8211)

* fix(claude): avoid retries for definite context overflow

Co-authored-by: gitrvc-hub <[email protected]>

* fix(retry): reject negated overflow verdicts

* fix(claude): preserve overflow verdicts across sentences

* fix(claude): preserve verdicts across separate sentences

---------

Co-authored-by: gitrvc-hub <[email protected]>

* fix(antigravity): include Argon level with thought summaries (lidge-jun#8208)

Preserve suffix-only requests when summaries are hidden and reject inherited effort-map keys.

Co-authored-by: Andrew (agent) <[email protected]>

* fix(claude): preserve translated system cache boundary (lidge-jun#8212)

* fix(claude): preserve translated system cache boundary

Co-authored-by: Vadym O <[email protected]>

* fix(claude): retain cache boundary after identity normalization

* test(claude): cover mismatched system cache prefix

---------

Co-authored-by: Vadym O <[email protected]>

* fix(web-search): strip Lite marker from classic search (lidge-jun#8202)

* fix(web-search): omit lite marker from classic search

Preserve classic search wire semantics for configured and selected headers.

Co-authored-by: Ege Arhan <[email protected]>

* docs(web-search): explain classic sidecar header exception

---------

Co-authored-by: Ege Arhan <[email protected]>

* fix(web-search): report incomplete Anthropic search results (lidge-jun#8210)

* fix(web-search): report incomplete Anthropic search results

* fix(web-search): reject malformed Anthropic search frames

* fix(web-search): reject empty Anthropic stop reasons

* test(web-search): complete routed Anthropic search fixture

* fix(web-search): honor SSE controls and exact byte boundary

* fix(web-search): honor clean EOF at exact byte cap

* fix(web-search): separate consumer and upstream inactivity (lidge-jun#8213)

* fix(web-search): separate consumer and upstream inactivity

* fix(web-search): yield on synchronous empty chunks

* Preserve consumer timeout in image bridge

* test(messages): restore Windows fixture coverage (lidge-jun#8214)

* test(messages): fix Windows fixture path matching

* test(messages): prove sink and overlay execution

---------

Co-authored-by: JUN <[email protected]>

* docs(credits): record lidge-jun#8176 credit lost in lidge-jun#8214's squash (lidge-jun#8219)

* fix(responses): preserve adapter body stall status (lidge-jun#8200)

* fix(responses): preserve adapter body stall status

* docs(responses): describe adapter body stall failures

* fix(responses): preserve continuation stall status

* Preserve body stall across empty completion retry

* fix(tests): isolate Codex profile cases on Windows (lidge-jun#8217)

Co-authored-by: JUN <[email protected]>

* fix(tests): isolate Windows uninstall privilege scenarios (lidge-jun#8218)

Co-authored-by: JUN <[email protected]>

* fix(tests): pair Windows job store route fixture (lidge-jun#8225)

Co-authored-by: JUN <[email protected]>

* fix(tests): use native homes in systemd probe fixtures (lidge-jun#8226)

Co-authored-by: JUN <[email protected]>

* fix(models): list router-known IDs with effective metadata (lidge-jun#8215)

Carries lidge-jun#8187 by @ismell0992-afk.

Co-authored-by: ismell0992-afk <[email protected]>

* fix(gui): prioritize critical credits in quota summary (lidge-jun#8223)

* Prioritize critical credits in quota headline

Co-authored-by: Rafael Moreira Lima <[email protected]>

* Fix quota headline selection for custom label collisions

Co-authored-by: Rafael Moreira Lima <[email protected]>

* Strengthen unlimited credits quota summary fixture

Co-authored-by: Rafael Moreira Lima <[email protected]>

* docs: record quota headline precedence

Co-authored-by: Rafael Moreira Lima <[email protected]>

* fix(gui): index quota headline windows by label

Co-authored-by: Rafael Moreira Lima <[email protected]>

* docs: clarify critical credit precedence in translations

Co-authored-by: Rafael Moreira Lima <[email protected]>

* docs: describe quota window projection

Co-authored-by: Rafael Moreira Lima <[email protected]>

---------

Co-authored-by: JUN <[email protected]>
Co-authored-by: Rafael Moreira Lima <[email protected]>

* fix(update): validate configuration before stopping services (lidge-jun#8227)

Carries lidge-jun#8081 by @rrmlima.

Co-authored-by: Rafael Moreira <[email protected]>

* docs: keep merged provider reference within size limit

* ci: allow Linux shards time to finish the full suite

---------

Co-authored-by: Epinephrine <[email protected]>
Co-authored-by: ingwannu <[email protected]>
Co-authored-by: Ingwannu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: jaekwonhong <[email protected]>
Co-authored-by: Lee SaYah <[email protected]>
Co-authored-by: yazzang-homelab <[email protected]>
Co-authored-by: Henry Fontanier <[email protected]>
Co-authored-by: Henry Fontanier <[email protected]>
Co-authored-by: lcxhh <[email protected]>
Co-authored-by: JUN <[email protected]>
Co-authored-by: JUN <[email protected]>
Co-authored-by: Omar <[email protected]>
Co-authored-by: tachyon6 <[email protected]>
Co-authored-by: youhuangla <[email protected]>
Co-authored-by: gitrvc-hub <[email protected]>
Co-authored-by: Andrew (agent) <[email protected]>
Co-authored-by: Vadym O <[email protected]>
Co-authored-by: Ege Arhan <[email protected]>
Co-authored-by: ismell0992-afk <[email protected]>
Co-authored-by: Rafael Moreira Lima <[email protected]>
(cherry picked from commit e7fb410)

* feat(quota-pool): add tray read with pooled recovery and reset-credit expiry (#24)

Add the precomputed quota tray API, pooled recovery/blocking projections, identity-bound reset-credit expiry memo and updated Codex capacity weights. Preserve passive relay reads, email masking, current Claude identity gating and injected Codex snapshots.

Co-authored-by: Aleksei Chistiakov <[email protected]>
Co-authored-by: jack-o-mania <[email protected]>
(cherry picked from commit bec9317)

* feat(quota-pool): list per-account recoveries in the tray read (#35)

(cherry picked from commit 4fb7566)

* Merge pull request #36 from alexalok/alex/preserve-link-service-token

fix(service): preserve hub client token against stale environment

(cherry picked from commit 8471020)

* Refresh held key-provider quota after routed traffic (#39)

* fix(quota): refresh held key-provider reports after traffic

* refactor(quota): keep request log and test layout within size limits

* fix(quota): preserve traffic report ownership and reset observations

* fix(quota): discard retired traffic rows before aggregate collection

* fix(quota): narrow captured report cache in collection filter

(cherry picked from commit 4a9ef41)

* fix(test): retain only available provider layout entries

* test(windows): settle native startup in server fixtures (#30)

Owner-authorized release preparation: squash the fixture correction after successful exact-head PR CI and completed external Codex code/security reviews with a clean PR-opening reaction.

Reviewed head: 48263d5
CI: https://github.com/alexalok/opencodex/actions/runs/42848918887
Retains the approved #25 upstream baseline for 2.96.5.

(cherry picked from commit 70895c8)

* feat: expose explicitly granted read-only hub quotas

(cherry picked from commit 60a5062)

* fix: preserve healthy Anthropic hub quotas

(cherry picked from commit 1f49c43)

* fix: revalidate hub quota ownership before publication

(cherry picked from commit 3955a08)

* fix: deduplicate hub quotas using private snapshot identity

(cherry picked from commit 8fb10cc)

* fix: isolate Anthropic hub quota transport failures

(cherry picked from commit 8f57ad5)

* chore(release): carry reviewed fork qualification and publishing policy

Carry existing fork tooling from e111ae1. Preserve GitHub-only publication, exact-source qualification, authorized actors, disposable runners, and OCX_DISABLE_MACOS_CI. No release is dispatched.

* fix(backport): preserve quota counts and release-native refusal contract

* chore(release): prepare 2.100.11 on the aged 2.100.2 base

* fix(backport): retain classic compatibility and module size limits

* docs(backport): keep expanded files below size threshold

* fix(codex): require explicit benchmark model identity mappings

(cherry picked from commit 8dcf180)

* fix(gui): keep unknown budget row keys stable

(cherry picked from commit d34590d)

* fix(telemetry): withhold public aggregates without trusted identities

(cherry picked from commit 5f30569)

* fix(telemetry): withhold all unverified profile rankings

(cherry picked from commit 717229e)

* fix(telemetry): preserve reconnect state after delayed disconnect

(cherry picked from commit 62e3593)

* fix(telemetry): prevent submissions from recreating deleted profile rows

(cherry picked from commit 2ab5985)

* fix(telemetry): roll back profile creation when credential save fails

(cherry picked from commit 9d97126)

* fix(telemetry): publish initial profile credentials exclusively

(cherry picked from commit 93d304d)

* chore(release): complete fork feature carry-forward as 2.100.14

* test(backport): restore globals and align signing fixture

* fix(catalog): finalize reviewer policy on projected discoveries

* fix(quota): admit browser preflights before authenticated reads

* test(telemetry): retain dashboard privacy documentation contract

* test(quota): expect shared credential-free preflight response

* test(search): account for native owner admission state

---------

Co-authored-by: jack-o-mania <[email protected]>
Co-authored-by: Codex <codex@localhost>
Co-authored-by: jack-o-mania <[email protected]>
Co-authored-by: Epinephrine <[email protected]>
Co-authored-by: ingwannu <[email protected]>
Co-authored-by: Ingwannu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: jaekwonhong <[email protected]>
Co-authored-by: Lee SaYah <[email protected]>
Co-authored-by: yazzang-homelab <[email protected]>
Co-authored-by: Henry Fontanier <[email protected]>
Co-authored-by: Henry Fontanier <[email protected]>
Co-authored-by: lcxhh <[email protected]>
Co-authored-by: JUN <[email protected]>
Co-authored-by: JUN <[email protected]>
Co-authored-by: Omar <[email protected]>
Co-authored-by: tachyon6 <[email protected]>
Co-authored-by: youhuangla <[email protected]>
Co-authored-by: gitrvc-hub <[email protected]>
Co-authored-by: Andrew (agent) <[email protected]>
Co-authored-by: Vadym O <[email protected]>
Co-authored-by: Ege Arhan <[email protected]>
Co-authored-by: ismell0992-afk <[email protected]>
Co-authored-by: Rafael Moreira Lima <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci:full Run the four full Ubuntu test shards on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant