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: bound the six remaining retained-state leaks (#820 wave 2) by lidge-jun · Pull Request #892 · lidge-jun/opencodex

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Aug 2, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Owner

Summary

Unified bug-fix campaign: the wt2 retained-state hardening plus all four planned workstreams (wt1 update path, wt4 server/config, wt5 Windows service, wt3 provider wire), reviewed per workstream by independent adversarial reviewers and verified end-to-end. Supersedes #840 #841 #843 #844 #845 #847 (closed earlier) and #871 #886 #887 #889 (closed as each workstream landed here).

wt2 — retained-state bounds (tracker #820 wave 2)

  • fix: enforce Responses state byte cap #841 Responses continuation admission: oversized candidates go directly to durable spill (never resident, never demoting unrelated chains); 256 MiB envelope ceiling; bounded snapshot read (32 MiB, regular files only); bounded spill replay; UTF-8 snapshot selection.
  • fix: bound streamed tool argument memory #847 streamed tool arguments: per-call scopes in the non-stream collector; overflow is 502 upstream_error everywhere (was 413 ×4); no unbounded no-budget path; cancel-race fixes.
  • fix: bound Cursor Connect frame buffering #844 Cursor Connect frames: cursor backlog with zero-copy handoff (exact 16 MiB boundary); raw-used accounting incl. headers; EOF drain-to-quiescence + typed frame_incomplete; terminal backlog lease owner.
  • fix: bound Cursor blob-store memory #845 blob-ID keys: domain-separated fixed keys (h:/d:), key bytes counted + classified; zero-payload blobs stay evictable.
  • fix: bound Antigravity replay retention #843 Antigravity replay identities: SHA-256 over length-prefixed UTF-16 code units (injective for every JS string); streaming canonical abort; zero-call shell cleanup.
  • fix: release Windows ACL temp-path memos #840 Windows ACL memos: destination-keyed timeouts; temp-only ephemeral release at proven absence; both residual error classes gated.

wt1 — update path

  • fix(update): allow stable updates from older previews #871 installed previews compare by major.minor.patch core on the latest channel (registry target side stays strict).
  • [Bug] Star-prompt agent deferral leaks into every editing session and re-arms on each agent-driven start #879 star-prompt agent deferral bounded: at most one relay per version (7-day bound while the version is unreadable); future-dated records fail toward re-asking; the consent invariant is unchanged (agent never answers; the human prompt is preserved).

wt4 — server/config

  • fix(server): match browser extension CORS origins exactly #850 extension CORS origins matched by scheme+authority (configured extension ID only; wildcard rejected; all ten data-plane sites).
  • fix: preserve symlinked destinations in atomic config writes #869 atomic writes resolve symlinked destinations before temp+rename; first writes beneath a symlinked parent are refused; pid/port writers guard before any mkdir/chmod.

wt5 — Windows service

  • fix(windows): settle scheduler registration verification #868 scheduler verification settles only on transient states; published-but-invalid XML rolls back with zero delays; conflicts/missing assets/unknown SCM stay fail-closed.
  • [Bug]: doctor repeats OPENCODEX_BUN_PATH guidance when a Bun canary override is already active #848 Bun runtime provenance as a source+path pair through every launcher; legacy payloads read as unknown; source-only or mismatched-path markers report unknown.

wt3 — provider wire

  • OpenCodex GitHub Copilot Model Endpoint Mapping #748 Copilot mixed-wire routing: Responses-only models off chat completions; explicit modelAdapters preserved.
  • fix(responses): gate service tiers by provider capability #860/[Bug] DeepSeek V4 Flash Responses route stalls after tool calls #875 DeepSeek service_tier tri-state capability gate (true permits injection, false strips, undefined preserves caller values; docs aligned in EN + ja/ko/ru/zh-cn) and reasoning_content replay for tool-call continuations.
  • fix(providers): give Claude 4.6/4.7 their 1M context windows #839/fix(claude): honor authoritative context windows in generated profiles #854 Claude Opus 4.6/4.7 + Sonnet 4.6 at 1M in the registry; [1m] picker rows only for authoritative ≥1M windows (no 372K route marked).

wp6 — contributor bug-fix stack (5 PRs stacked, 2 triaged closed)

  • fix(cursor): send Grok 4.5 Fast parameters #881 Cursor grok-4.5-fast: sent as canonical grok-4.5 + requested_model.parameters (effort, fast=true); legacy model_details omitted only for parameterized external selections; flattened ids remain live-discovery evidence only.
  • fix(shadow-call): preserve foreground Luna turns #885 shadow-call intercept: x-codex-turn-metadata request_kind: "turn" preserves foreground Luna turns; headerless/malformed/future-unknown metadata keeps legacy prefix interception.
  • Fix DeepSeek Responses over Codex WebSocket #890 DeepSeek V4 Flash over Codex WebSocket: registry-scoped hint answers WS turns with bounded upstream JSON (stream: false), reframed by the WS bridge; HTTP/SSE stays streaming. Folded review: the upstream body read is now bounded (32 MiB + 180s/30s transfer deadlines via the house bounded-body primitive, fail-closed 502).
  • fix(anthropic): complete AgentRouter streams that end before terminal frames #896 AgentRouter EOF tolerance ([Provider compatibility]: AgentRouter Anthropic streams can end without terminal SSE frames #658): explicit anthropicEofTolerance capability (default off); EOF completes only with non-empty visible text or complete tool-call JSON; backward-scan repair with an exact UTF-8 byte cap (surrogate-safe); budget overflow is a single terminal event.
  • fix(adapters): preserve routed model identity #895 routed model identity: identifyRoutedModel names the concrete wire model id under a strict ASCII allowlist (≤128 chars, ._/@:+-[]~) with safe fallback, across catalog sync + anthropic/google/kiro/openai-chat.
  • fix(cli): make doctor runtime-origin aware for OPENCODEX_BUN_PATH guidance (#848) #898 closed as duplicate — the [Bug]: doctor repeats OPENCODEX_BUN_PATH guidance when a Bun canary override is already active #848 doctor guidance fix already landed here via wt5 (launch-time provenance; an active override is never re-prompted).
  • fix(streaming): repair sparse Responses snapshots #894 closed unmerged — it rewrote another unit's locked devlog decisions and widened the deferred Darwin eager-relay gate; the snapshot-repair feature can return as a narrower PR after this lands.
  • Adversarial review (3 rounds, sol-medium): bounded-body primitive gained a maxBytes option and geometric buffer accumulation.

Validation

  • bun run test: 7,452 pass, 8 skip, 0 fail locally (full suite on daf7069, 499 files); every workstream's focused suites re-run after each stack
  • CI: all 14 checks green on 6ec6ffc — ubuntu / macos / windows full matrix, npm-global ×3, systemd/launchd/schtasks, react-doctor, enforce-target, CodeRabbit. Windows is green on this branch for the first time in the campaign (the dev-inherited matrix breakage is not present here)
  • CI stabilization folded during wp6 (test-only, runner-flake class): [Bug]: doctor repeats OPENCODEX_BUN_PATH guidance when a Bun canary override is already active #848 provenance test timeout headroom (a8e0fe0), dead-pid probe for the symlinked sweep (0bccc8a), STORE_BUDGET_MS for the two cleanup-mode tests (80c49cf), thrown-CIM-deadline tolerance in the live enumeration test (6ec6ffc)
  • bun x tsc --noEmit: pass
  • bun run privacy:scan: pass
  • Red-green verified per fix; 15 adversarial reviewer rounds across 6 independent reviewers, all findings folded or rebutted
  • Pre-push hook (typecheck + gui lint + full test + privacy scan + doctor:gui): pass on every push through eeef7a3; later heads were pushed with the hook skipped per maintainer instruction, with the identical full suite + typecheck + privacy:scan run manually first

Notes

  • No RSS/benchmark superiority claims (comparator cells remain UNKNOWN).
  • Co-developed with a second session on this branch (wt2 augmentations, wt1 commits, review-fix iterations); original PRs' analyses drove each fix.

Summary by CodeRabbit

  • New Features

    • Added ocx config commands for viewing, editing, validating, importing, and exporting configuration.
    • Added Codex prompt-layer management, including toggles, custom instructions, adoption, recovery, and safe rollback.
    • Added Bun runtime provenance to service diagnostics and launchers.
    • Expanded provider support for Copilot routing, Claude 1M context, service-tier capabilities, and reasoning replay.
  • Bug Fixes

    • Improved update detection, GitHub star-prompt deferral, CORS extension handling, symlink-safe writes, Windows service settling, and memory safeguards.
    • Improved error reporting for upstream translation-limit failures.

Sorry, something went wrong.

Uh oh!

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

All reactions
lidge-jun added 30 commits August 2, 2026 19:14
@lidge-jun
docs(plan): split wt3 roadmap into per-bug decade docs with researche…
47e7d61
…d mechanisms

wp-a: modelWireDefaults on the github-copilot registry entry (mechanism
already on tree: hard pin > modelAdapters > registry defaults > provider
adapter); conservative 6-model set, nano/sol lead-only via modelAdapters.
wp-b: adopt PR #860's capability file map + #875 root cause found —
sanitizeReasoningInputContent blanks plaintext reasoning for every
Responses provider (openai-responses.ts:35, called :1027); scope it.
wp-c: registry.ts:217 map + authoritative-window [1m] predicate.
@lidge-jun
docs(plan): fold audit round-1 blockers into wt3 bug-a docs
2bb3d91
1: docs target corrected to reference/configuration/providers.md + locales
2: exact seed before/after array, defaultModel unchanged, nano/sol excluded
3: evidence table moved to 000 (LEXICO-SPLIT-01)
4: per-model pi.dev provenance + two-leg selection rule (sol/nano out)
@lidge-jun
docs(plan): fold audit round-2 blockers — sol in built-in set, additi…
6a9b79e
…ve seed policy

1: gpt-5.6-sol meets the two-leg rule identically to luna/terra (#748 field
report + pi.dev Responses declaration + JetBrains conditional chat failure);
excluding it was an inconsistent rule application. nano stays out (no field
report leg).
2: seed policy made explicitly additive (no removals); gpt-5-mini added as a
verified chat model so the chat regression fixture is honest; scenario 4
corrected.
@lidge-jun
docs(plan): fold audit round-3 — uniform seven-model count, honest pr…
62bbeb5
…ecedence fixture

claim ledger and selection reference now say seven built-in / sol verified;
scenario 3 uses gpt-5.4-nano or gpt-5-mini for the opt-in direction since
sol is itself a default and cannot prove override precedence.
@lidge-jun
fix(providers): route Copilot Responses-only models off chat completions
14c8214
github-copilot fronts a mixed-wire catalog: gpt-5.3-codex, gpt-5.4,
gpt-5.4-mini, gpt-5.5, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra reject
/chat/completions for real Codex-agent traffic (function tools +
reasoning). Declare them as registry modelWireDefaults so every inbound
wire rides Responses while the provider-wide adapter stays openai-chat
for the chat-served catalog. Explicit modelAdapters still win in both
directions; gpt-5.4-nano stays out (no field report) as a documented
override example.

Evidence: issue #748 field runs, pi.dev wire declarations,
litellm#23332 (gpt-5.4), JetBrains LLM-29711 (gpt-5.6-sol).
Tests: tests/github-copilot-wire-defaults.test.ts — 22 cases incl.
captured-upstream-URL replay proof on all three inbound wires.

Consolidates the routing half of PR #746 (its sampling/credential-replay
half remains a separate parity/security unit). Closes #748.
@lidge-jun
docs(plan): wt2 root-cause delta + diff-level decade docs for the six…
202ff8a
… bounds

Three explorer passes found wave-1 landings already on dev (77243d9
framework, d1408b9 continuation cap+spill, 034d320 cache caps,
a616078 translator budgets), so the campaign narrows to refinements:
#841 admission boundary (direct-spill oversized, bounded snapshot read,
bounded replay), #847 collector per-call scope + mandatory budget + 502
normalization, #844 incremental frames + typed partial-EOF, #845 NOOP
(superseded), #843 fixed-size SHA-256 key identities, #840 ACL
timeout-memo release + destination keying.
@lidge-jun
docs(plan): fold audit-round-1 FAIL blockers into wt2 decade docs
123cf9e
All 7 blockers accepted: blob-ID key channel unbounded (045 becomes a
real fix), antigravity caps exclude key bytes, NUL-separator collision
ambiguity (length-prefix instead), cursor backlog/parser-cursor state
machine + frameWork-deferred EOF, collector test math + dual bridge
budget sites + exact 413 sites, ACL temp-only release API, state
typed-observability seams + failure/replacement scenarios.
@lidge-jun
docs(plan): fold audit-round-2 blockers into wt2 decade docs
001daef
001 synced with amended designs; 020 same-ID replacement split 8a/8b
with pruning qualification; 030 scenario-7 asserts lease release after
full serialized owner charge; 040 explicit rawBacklog byte cap incl.
headers + drain-to-quiescence EOF; 045 validate/digest before hex
expansion with separate key-bytes counter (64 MiB payload cap intact);
050 incremental length-prefixed hashing + replay_signature_oversized
skip-replay overflow contract.
@lidge-jun
fix(responses): bound continuation admission, snapshot read, and spil…
18289dc
…l replay

Oversized candidates (> 64 MiB resident cap) now write directly to
durable spill and install only the stub — they never become resident and
never demote unrelated chains; candidates above the new 256 MiB
single-spill payload ceiling are tombstoned at admission instead of
being retained unreadably. Snapshot loading refuses to parse files over
32 MiB and applies the same admission boundary to oversized rows.
Spill replay refuses payloads above the ceiling before read/parse with a
typed too_large reason (surfaced as spill_too_large; wire shape
unchanged). Snapshot selection now measures UTF-8 bytes, not UTF-16
length. Refines #841 on top of the wave-1 spill design.
@lidge-jun
docs(providers): Copilot Responses-only GPT-5 defaults + modelAdapter…
e67c0df
…s escape hatch

reference/configuration/providers.md (EN + ko/ja/zh-cn/ru): the modelAdapters
row now names the built-in Copilot Responses-only defaults and the opt-in
path for models without one (gpt-5.4-nano example). guides/providers.md
gains the routing-precedence note (pin > modelAdapters > registry default
> provider adapter).
@lidge-jun
fix(responses): close the four audit blockers in continuation admission
8c3681e
Envelope truth: the payload ceiling is enforced against the real
{version,...} spill envelope after publication (a candidate within the
wrapper's size of the cap was previously retained unreadably). Snapshot
size gate uses statSync so symlinked oversized snapshots cannot bypass
it. Over-ceiling same-ID tombstones now defer the old generation's
unlink until the tombstone is durable (same crash rule as
replaceSpillEntryAtomically, whose catch path gets the same fix).
directSpills only counts actual stub installs. Tests: exact-envelope
boundary, no-read proof (too_large beats missing), deferred-unlink
ordering for tombstone and spill replacement, symlinked snapshot
refusal, tighter same-ID accounting bound.
@lidge-jun
docs(plan): wp-b P — concrete file map and reviewed service_tier sema…
cbd345b
…ntics

adopts #860's reviewed fail-closed semantics (undefined strips; explicit
config is the escape hatch); names preserveResponsesReasoningContent as the
reasoning-replay flag following the statelessResponses flow; maps every
edit point on the current tree.
@lidge-jun
fix(responses): never read non-regular snapshot targets
eb44a77
A snapshot symlinked to a FIFO or device (isFile=false, size=0, e.g.
/dev/zero) fell through to readFileSync and could block or stream
unbounded input; only regular files within the size ceiling are parsed
now.
@lidge-jun
docs(plan): fold wp-b audit round-1 blockers
198a317
1: research survey moved to 000 (LEXICO-SPLIT-01)
2: guides/codex-app-models.md x5 locales added to docs file map
3: options.serviceTier clearing required + tested
4: ocxr1-strip-under-preservation negative case added
5: comment wording calibrated (accepted replay = verified; required = inference)
@lidge-jun
docs(plan): fold wp-b audit round-2 residual — fail-closed scope word…
b09596e
…ing in 000
@lidge-jun
fix(chat): scope collector tool args per call and normalize overflow …
9c400f5
…to 502

The non-stream Chat collector charged streamed tool arguments to a
generic retained_collectors scope, so one call could consume nearly the
whole 32 MiB turn budget instead of the 2 MiB per-call limit; arguments
now open a per-call scope (kind tool_args, wire-index key) and close it
only after the final serialized owner is charged, with scopes released
on every error path. Provider-controlled overflow in the collector is
now 502 upstream_error on all three mapping sites (was 413
invalid_request_error on two), matching the adapter/bridge contract.
buildResponseJSON/bridgeToResponsesSSE no longer have an unbounded
no-budget path: omission creates a default turn budget (disposed with
the call/stream) instead of skipping accounting.
@lidge-jun
fix(responses): gate service_tier by provider capability, preserve De…
b42d573
…epSeek reasoning replay

Two DeepSeek wire fixes, one capability flow:

1. service_tier is an OpenAI-only Responses parameter, but fast mode
   injected it for every Responses provider. A provider-level
   supportsServiceTier capability now gates it after the final route is
   settled: canonical openai/openai-apikey keep fast-mode inject/remove
   (unset fast mode preserves a caller value); deepseek and
   volcengine-agent-plan strip it; unclassified providers fail closed
   unless explicitly opted in. Stripping also clears
   options.serviceTier so logging never mislabels a removed tier.
   Adopts PR #860's reviewed fail-closed semantics.

2. sanitizeReasoningInputContent blanked reasoning content for EVERY
   Responses provider — a rule only the ChatGPT native backend needs.
   DeepSeek's Responses API accepts plaintext reasoning replay, so
   providers flagged preserveResponsesReasoningContent keep it
   (ocxr1 envelopes are still stripped). Fixes the local half of #875:
   continuations after tool calls no longer reach DeepSeek with emptied
   reasoning items.

Both fields flow registry -> providerConfigSeed -> enrichProviderFromRegistry
-> router backfill without overriding explicit config.
Tests: tests/service-tier-capability.test.ts + tests/deepseek-reasoning-replay.test.ts
(18 cases incl. live handleResponses payload capture).
@lidge-jun
docs(providers): supportsServiceTier + preserveResponsesReasoningCont…
1e3c050
…ent reference rows, capability-gated fast-tier guides

reference/configuration/providers.md (EN/ko/ja/zh-cn/ru): rows for the two
new provider fields. guides/codex-app-models.md (all five locales): the
blanket 'routed non-OpenAI models strip service-tier metadata' wording is
now the capability-gated fail-closed behavior with the explicit opt-in —
closing #860's open docs review issue.
@lidge-jun
fix(chat): close the three audit blockers in collector/bridge bounds
30bf3af
Final owner transfer is wrapped: a copy-charge overflow now releases the
copies already charged, closes every open call scope, and surfaces the
same typed 502 upstream_error instead of a raw budget exception. The
translation_buffer_limit classification is 502 upstream_error on the
remaining streaming sites (fail() override, response.failed handler,
processing catch) and the defensive JSON replay path, so streaming,
collector, and non-stream clients agree; genuine client-request 413s
are untouched. Owned default SSE budgets are disposed at every
stream-death path (terminal close, incomplete terminal, torn-down
controller, heartbeat failure, cancel) after the final charges, never
inside reportTerminal. New test seam translatorLiveBudgetCountForTests
proves disposal; collector tests now cover final-copy overflow cleanup
and exact surviving charge.
@lidge-jun
docs(plan): record 030 round-2 accepted residuals
51cf17c
@lidge-jun
fix(chat): close the cancel race and the last 413 in replay
3185610
A client cancel during a pending upstream next() disposed the owned
budget while the in-flight step still processed the late event,
reanimating charges outside liveBudgets; step() now bails immediately
after the await when closed/cancelled (emit() was already guarded).
The defensive JSON replay status ternary for translation_buffer_limit
is 502 (was 413) — every path now agrees. The final-copy overflow test
threshold is corrected so the overflow actually activates in the final
owner transfer (250, not 150). New seams:
translatorAggregateCurrentBytesForTests; cancel-during-pending-next
regression asserts live count and aggregate bytes return to baseline;
endpoint regression pins the replay 502/upstream_error shape.
@lidge-jun
fix(providers): keep service-tier/reasoning capabilities registry-only
9f801e3
Seeding them via providerConfigSeed broke the management API's canonical
openai seed comparison (exact key set) — 4 management-provider-validation
failures. Follow the modelWireDefaults philosophy instead: the registry
holds the defaults, providerConfigSeed stays free of them so an explicit
user value stays distinguishable, and enrichProviderFromRegistry +
the router backfill supply them from the entry directly.
@lidge-jun
fix(chat): exit the bridge step without EOF synthesis after cancel
c985863
Breaking to upstreamDone still ran the EOF path, whose
closeCurrentMessage()/retainFinishedItem() charges the disposed budget
directly (the emit() closed-guard does not cover retention); a
cancelled step now returns immediately like the gated early-return
path. The regression now synchronizes on the second upstream next()
having actually started before cancelling.
@lidge-jun
docs(plan): wp4 P re-verification — cursor transport implementation d…
8d31b82
…esign
@lidge-jun
docs(plan): wp-c P — stale check narrows scope to registry map + agen…
a0ea408
…ts-inject + generator override

desktop-profile and model-info guards already landed; the open halves are
the registry map, #854's withSubagentContextMarker port, and the stale
jawcode generator override contradicting its own committed output.
@lidge-jun
fix(cursor): decode Connect frames from a cursor backlog and classify…
10388e1
… EOF

The live transport concatenated every incoming chunk with the entire
pending remainder (O(n^2) on a large incomplete frame) and settled
stream end immediately: complete frames plus a trailing partial settled
as silent success. The backlog is now a {buf,start,end} cursor with
amortized growth (per-chunk O(chunk)) and lazy prefix compaction; a new
framing export consumeConnectFrames reports consumed raw bytes without
materializing a remainder copy. Accounting moves to raw used bytes
(headers included), closing the tiny-frame/header-flood gap in the
payload-only counter. Stream end now drains frameWork to quiescence,
fails typed frame_incomplete on any unconsumed remainder (unless the
close was expected), and keeps the zero-frame unexpected-EOF
classification.
@lidge-jun
docs(plan): fold wp-c audit round-1 — generated metadata + pinned tes…
2843eb5
…ts + full regression set

my stale check misread the bedrock rows: the anthropic section of the
generated metadata still pins sonnet-4-6 at 200k with a catalog test
blessing it; file map now includes the generated rows, codex-catalog
test, registry-parity assertions, and #854's complete test set
(modified 372k test + five additions incl incomplete-metadata branch).
@lidge-jun
fix(providers): give Claude 4.6/4.7 their 1M context windows; authori…
0b30283
…tative [1m] in generated profiles

Two halves, consolidated from PRs #839 and #854:

1. ANTHROPIC_MODEL_CONTEXT_WINDOWS omitted claude-opus-4-7, claude-opus-4-6,
   and claude-sonnet-4-6 although all three ship in ANTHROPIC_MODELS —
   they advertised max_input_tokens null, emitted no [1m] picker row, and
   Claude Code accounted them at its 200k default. All three are
   documented at 1M by Anthropic (Opus 4.6 2026-02-05, Opus 4.7
   2026-04-16, Sonnet 4.6 2026-02-17). The generated jawcode metadata and
   its 200k-pinned catalog test move with the registry; the stale
   CONTEXT_WINDOW_OVERRIDES generator pin is removed.

2. Generated subagent defs marked [1m] with the MAIN-SESSION auto-context
   predicate, so a 372K route was written [1m] into generated profiles —
   accounted at 1M with no compaction pairing in the subagent. Generated
   defs now mark only authoritative >=1M windows, strip inherited unsafe
   markers to bare, preserve genuine routed [1m] ids (kimi/k3[1m]) and
   provider caps, and keep selectors with unknown windows as-was.
   Main-session env-slot marking is unchanged.

Tests: 372k roster test corrected + five new regressions (catalog-derived
1M markers, routed [1m] preservation, 350K cap unmarking, marker-case
precedence, incomplete-metadata preservation), catalog 1M contract,
registry parity assertions for all three windows.
@lidge-jun
fix(cursor): zero-copy frame handoff and terminal backlog cleanup
e290550
consumeConnectFrames now returns payload VIEWS into the backlog (safe:
append-only at end, compaction/growth replace the buffer), so the charge
transfers to the frame lifecycle instead of reserving a second copy —
an exact 16 MiB effective payload peaks at 16 MiB + 5 and completes,
matching the documented boundary. One idempotent releaseBacklogLease
owns the raw remainder on every terminal path (failAndClear, EOF
classifications, first-frame timeout); the data-handler catch no longer
releases the chunk charge after a successful append, which understated
the retained backlog. Tests: exact-boundary live probe, lease-to-zero
after frame_incomplete, 1/3/7/64 KiB chunk sweep (RED on both counts
before this repair).
@lidge-jun
fix(cursor): never release an uncharged rejected chunk
4f1f059
When reserveTransportBytes rejected an over-cap chunk, the data-handler
catch released the chunk size anyway, debiting unrelated live ownership
(clamps masked the imbalance). The catch now releases only when the
reservation succeeded but the append never ran; after an append the
terminal backlog cleanup owns the bytes. Regression: two transports on
one shared budget — A parks an incomplete frame, B's own incomplete
frame overflows; A's lease is byte-exact throughout and the budget
returns to zero.
lidge-jun added 4 commits August 3, 2026 04:44
@lidge-jun
test(responses-state): probe a genuinely dead pid for the symlinked-s…
0bccc8a
…weep test

The symlinked-directory sweep test drives the real load path, whose stale-temp
sweep checks liveness with kill(pid, 0). The hardcoded dead pid (4242/4243)
collided with a live process on the macos CI runner, so the temp survived and
the assertion flaked red while the same commit passed locally and on ubuntu.
Probe upward for a pid that returns ESRCH instead; the injected-liveness tests
are untouched.
@lidge-jun
test(storage): budget the two cleanup-mode tests on loaded Windows ru…
80c49cf
…nners

Both execute real SQLite writes and filesystem moves, the same intrinsic-cost
class as the five neighbors that already carry STORE_BUDGET_MS — they simply
never got the budget, and flaked at ~5.6s against bun's 5s default on the
windows-latest runner. Ablation check: both assert real quarantine/permanent
behavior (locally green in <0.5s), so the budget is headroom, not cover.
@lidge-jun
test(app-server): tolerate a thrown CIM deadline in the live enumerat…
6ec6ffc
…ion test

The live PowerShell enumeration test already tolerated one transient empty
result, but on a sufficiently contended windows-latest runner execFileSync's
8s production deadline fires instead and the error propagates by design —
that throw was not tolerated, flaking the job. Catch it the same way and add
a third attempt with a longer settle; production behavior is unchanged.
@lidge-jun
Merge remote-tracking branch 'origin/dev' into codex/wt2-zero-leak-impl
a4ff77c
This was referenced Aug 2, 2026
[Bug] DeepSeek V4 Flash Responses route stalls after tool calls #875
Closed
[Bug] Star-prompt agent deferral leaks into every editing session and re-arms on each agent-driven start #879
Closed
[Bug]: doctor repeats OPENCODEX_BUN_PATH guidance when a Bun canary override is already active #848
Closed
fix(deepseek): preserve Responses reasoning replay on continuations (#875) #906
Closed
GUI tabs show no loading state on switch; providers tab issues 38 requests per switch #753
Closed
multimodal image forwarding seems to be broken (kimi k3 + claude code) #888
Closed
Bundled jawcode prices for gpt-5.6-terra and gpt-5.6-luna are the pre-price-cut rates #907
Closed
@lidge-jun
lidge-jun merged commit 075c2f3 into dev Aug 3, 2026
14 checks passed

Uh oh!

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

lidge-jun added a commit that referenced this pull request Aug 3, 2026
@lidge-jun
fix(repo): untrack the retired Go file that reached dev, and guard it…
3ffb7e6
… mechanically

go/internal/cli/config_parity.go was committed by a broad `git add` three times
during the #820 campaign. Two of those were caught and reverted (2101d50,
58e8718); the third rode a86ee03 into the #892 merge, so 682 lines of the
retired Go experiment are now tracked on dev — the one and only tracked file
under go/, absent from main, preview, and v2.10.0.

Nothing in src/, the build, the typecheck, or the test path reads from go/, so
this is dead weight in every clone rather than a functional regression. The
commit that introduced it says "untrack ... again" in its own message, which is
how it passed review: the intent was right and the index was not.

.gitignore alone cannot prevent the repeat, because an already-tracked path
stops honoring the ignore rule — so the guard lives in tests/repo-hygiene.test.ts
next to the .codexclaw/gitlink invariants, driven red once by re-adding the file.
@lidge-jun lidge-jun mentioned this pull request Aug 3, 2026
fix(security): close the agent star-consent bypass found auditing the #892 merge #917
Merged
lidge-jun added a commit that referenced this pull request Aug 3, 2026
@lidge-jun
Merge pull request #917 from lidge-jun/codex/postmerge-audit-fixes
3a93a8d
fix(security): close the agent star-consent bypass found auditing the #892 merge
@lidge-jun lidge-jun mentioned this pull request Aug 3, 2026
[Bug]: Responses-compatible gateways can return sparse lifecycle snapshots that Codex clients do not commit #893
Closed
2 tasks done
This was referenced Aug 13, 2026
OpenCode integration dead-ends in permanent 'conflict' after any unrelated user edit to opencode.json (e.g. adding an MCP server) #1631
Closed
Non-json client configs: no nesting-depth cap (json5/yaml resource spike) and silent big-integer rounding on rewrite (toml/json5/yaml) #1635
Closed
[Bug] ocx sync overwrites hand-edited config.json from stale server memory (GLM-5.3 tune lost); 2.21.0 save path fixed it but sync path question remains #1802
Closed
[Research]: AgentRouter content-blocked responses correlate with non-English first prompts #1804
Closed
[Bug] ocx config set / ocx config import bypass the protected 3-way reconcile and can clobber concurrent disk / hand edits #1835
Closed
[Bug] ocx config set / ocx config import bypass the protected 3-way reconcile and can clobber concurrent disk / hand edits #1838
Closed
[Bug] Routing optimize.latency never scores latency + ocx config import/set silently delete hand edits #1839
Closed
[Bug] Routing profile optimize.latency has no latency score term and only becomes the residual priorityWeight #1837
Closed
[Feature]: FastWire — generalize Fast mode across providers (umbrella) #1886
Closed
[Bug] Cursor adapter injects hide-from-user policy and fake user-turn tool-result replay; downstream agents treat it as prompt injection #1992
Closed
[Safety] Prevent or fork same-task switches across native and routed providers #2095
Closed
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
Merge pull request lidge-jun#892 from lidge-jun/codex/wt2-zero-leak-impl
1c3d8d0
fix: bound the six remaining retained-state leaks (lidge-jun#820 wave 2)
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
fix(repo): untrack the retired Go file that reached dev, and guard it…
dc9e2a2
… mechanically

go/internal/cli/config_parity.go was committed by a broad `git add` three times
during the lidge-jun#820 campaign. Two of those were caught and reverted (ab2178c,
2f6b613); the third rode 78d638a into the lidge-jun#892 merge, so 682 lines of the
retired Go experiment are now tracked on dev — the one and only tracked file
under go/, absent from main, preview, and v2.10.0.

Nothing in src/, the build, the typecheck, or the test path reads from go/, so
this is dead weight in every clone rather than a functional regression. The
commit that introduced it says "untrack ... again" in its own message, which is
how it passed review: the intent was right and the index was not.

.gitignore alone cannot prevent the repeat, because an already-tracked path
stops honoring the ignore rule — so the guard lives in tests/repo-hygiene.test.ts
next to the .codexclaw/gitlink invariants, driven red once by re-adding the file.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
Merge pull request lidge-jun#917 from lidge-jun/codex/postmerge-audit…
289a967
…-fixes

fix(security): close the agent star-consent bypass found auditing the lidge-jun#892 merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

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

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.

6 participants

@lidge-jun @jbaehova @Yuxin-Qiao @kimrinking-cell @atian8179 @0xJingwei
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.