Repository navigation
move all tests under tests/ - #3
Merged
Merged
Conversation
parkerhancock
approved these changes
Oct 12, 2025
parkerhancock
left a comment
There was a problem hiding this comment.
Looks great—auto-compaction logic now drives the same SUMMARIZATION_PROMPT and the integration fixture mirrors the trigger marker. Full test suite passes locally.
DioNanos
referenced
this pull request
in DioNanos/codex-termux
Nov 15, 2025
Critical bugfix - auto-update detection now working Fixes: - Version parser now handles -termux suffix correctly - Tag parser accepts both rust-v* and v*-termux formats - Added test coverage for Termux tag validation Technical details: - v0.58.0 upstream merge overwrote -termux suffix support - New upstream code rejected v*-termux tag format - Prevented version.json creation and update notifications Affected versions: v0.58.0 through v0.58.3 Termux patches (4 total): - Patch #1: Browser login fix (termux-open-url) - Patch #2: RAM optimizations (lto=false, codegen-units=16) - Patch #3: Auto-update URL (@mmmbuto/codex-cli-termux) - Patch #4: Auto-update detection (this release)
DioNanos
referenced
this pull request
in DioNanos/codex-termux
Nov 27, 2025
Version alignment with upstream development. This is Patch #3 - Version Alignment.
2 of 4 tasks
DioNanos
referenced
this pull request
in DioNanos/codex-termux
Feb 18, 2026
Patches applied: - Patch #1: Browser login fix (termux-open-url) - Patch #2: Compilation optimizations (lto=false, codegen-units=16) - Patch #3: Version alignment (0.104.0) - Patch #4: Auto-update URL (DioNanos/codex-termux) - Patch #5: Version parser (-termux suffix) - Patch #6: NPM package name (@mmmbuto/codex-cli-termux) - Patch #9: Auto-update execution (tui/src/main.rs) Updated files: - codex-rs/Cargo.toml: version 0.104.0 - codex-rs/tui/src/main.rs: add update_action execution - npm-package/package.json: 0.104.0-termux - patches/README.md: update validated version
This was referenced Mar 8, 2026
shaqayeq-oai
added a commit
that referenced
this pull request
Mar 10, 2026
## Summary Foundation PR only (base for PR #3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR #2 = binary + generation pipeline + generated types foundation - ❌ PR #2 does **not** include examples/integration logic polish (that is PR #3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
charley-oai
pushed a commit
that referenced
this pull request
Mar 11, 2026
## Summary Foundation PR only (base for PR #3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR #2 = binary + generation pipeline + generated types foundation - ❌ PR #2 does **not** include examples/integration logic polish (that is PR #3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
apanasenko-oai
pushed a commit
that referenced
this pull request
Mar 11, 2026
## Summary Foundation PR only (base for PR #3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR #2 = binary + generation pipeline + generated types foundation - ❌ PR #2 does **not** include examples/integration logic polish (that is PR #3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
charley-oai
pushed a commit
that referenced
this pull request
Mar 11, 2026
## Summary Foundation PR only (base for PR #3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR #2 = binary + generation pipeline + generated types foundation - ❌ PR #2 does **not** include examples/integration logic polish (that is PR #3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
viyatb-oai
pushed a commit
that referenced
this pull request
Mar 11, 2026
## Summary Foundation PR only (base for PR #3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR #2 = binary + generation pipeline + generated types foundation - ❌ PR #2 does **not** include examples/integration logic polish (that is PR #3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
owenlin0
pushed a commit
that referenced
this pull request
Mar 11, 2026
## Summary Foundation PR only (base for PR #3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR #2 = binary + generation pipeline + generated types foundation - ❌ PR #2 does **not** include examples/integration logic polish (that is PR #3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
EthanLipnik
pushed a commit
to EthanLipnik/codex
that referenced
this pull request
Mar 11, 2026
## Summary Foundation PR only (base for PR openai#3). This PR contains the SDK runtime foundation and generated artifacts: - pinned runtime binary in `sdk/python/bin/` (`codex` or `codex.exe` by platform) - single maintenance script: `sdk/python/scripts/update_sdk_artifacts.py` - generated protocol/types artifacts under: - `sdk/python/src/codex_app_server/generated/protocol_types.py` - `sdk/python/src/codex_app_server/generated/schema_types.py` - `sdk/python/src/codex_app_server/generated/v2_all/*` - generation-contract test wiring (`tests/test_contract_generation.py`) ## Release asset behavior `update_sdk_artifacts.py` now: - selects latest release by channel (`--channel stable|alpha`) - resolves the correct asset for current OS/arch - extracts platform binary (`codex` on macOS/Linux, `codex.exe` on Windows) - keeps runtime on single pinned binary source in `sdk/python/bin/` ## Scope boundary - ✅ PR openai#2 = binary + generation pipeline + generated types foundation - ❌ PR openai#2 does **not** include examples/integration logic polish (that is PR openai#3) ## Validation - Ran: `python scripts/update_sdk_artifacts.py --channel stable` - Regenerated and committed resulting generated artifacts - Local tests pass on branch
MarMarLabs
pushed a commit
to MarMarLabs/codex
that referenced
this pull request
Apr 19, 2026
Adds a hosted Node.js gateway (Express + ws) and a single-page browser UI that bring the Codex agent into the browser. The server spawns a backend agent per WebSocket connection and bridges Codex's JSONL event stream (thread.started, turn.started/completed/failed, item.started/updated/ completed for agent_message, reasoning, command_execution, file_change, mcp_tool_call, web_search, todo_list) up to the UI. - `web/server.mjs`: cookie-keyed in-memory sessions (7-day TTL), per-session workdir, same-origin guard on credential endpoints + WS upgrade, SIGTERM→SIGKILL escalation for child processes. Backend selection: real `$CODEX_BIN exec --experimental-json` when API key is set, else bundled mock. Real backend forces approval_policy=never (the JSONL stream doesn't carry approvals — that's the JSON-RPC app-server, deferred as task openai#2). - `web/mock-codex.mjs`: emits realistic JSONL events for every item type + an out-of-band approval-request envelope so the UI's approval flow can be exercised without OpenAI keys. Stdin uses a JSON-line protocol so approvals can be interleaved with the prompt while the turn runs. - `web/public/{index.html,app.js,styles.css}`: vanilla ES module, no build step. Dark theme; sessions sidebar; streaming agent messages; tool-call cards; inline approval prompts; 13 slash commands with `/`-autocomplete; `@`-file autocomplete; settings/login modals; reconnecting WebSocket. - Workflow "Start application" reconfigured to `cd web && npm start` on port 5000. - E2E tested via Playwright (chat streaming, plan, approval flow with apply_patch, errors, slash commands, settings round-trip). - replit.md and web/README.md updated with the new architecture. Deviations from the original plan: ChatGPT/OAuth login and full interactive approvals on the real backend are deferred to follow-up tasks openai#2 and openai#3 since they require bridging the separate JSON-RPC app-server protocol — out of scope for the MVP gateway. MCP server management UI is deferred to follow-up openai#4.
victalejo
added a commit
to victalejo/codrex
that referenced
this pull request
Apr 28, 2026
Phase 2.5, commits 3+4+5/7 (combined). Bundles `codrex login <provider>`, `codrex logout <provider>`, and `codrex login --list` into a single landing because they share the same provider registry, prompt helpers, and list-rendering logic. The user-proposed split into three commits would have left awkward stub states between them. # `codrex login <provider>` Three credential-supply paths, in priority order: 1. `--with-api-key` (stdin pipe) — recommended for CI/scripts. 2. `--api-key sk-...` (deprecated, hidden in --help) — emits a stderr warning explaining the key stays in shell history and pointing at --with-api-key. 3. Interactive `rpassword`-backed hidden prompt when stdin is a TTY. Other flags: - `--coding-plan` tags the saved credential as a Coding Plan key (writes `kind: "coding_plan"` into auth.json::providers). - `--test-connection` opt-in flag for non-interactive flows; the interactive flow asks `Test the connection? [Y/n]` automatically. - `--list` (mutually exclusive with all other flags via clap conflicts_with_all) prints the credential table. Test-connection details: - Hits `<base>/chat/completions` once with `max_tokens: 4` against the provider's default model and reports `(model, latency_ms)`. - On success, persists `last_verified` so `--list` can surface it. - On failure, **never deletes the saved credential** — the message tells the user to re-run `codrex login <provider> --test-connection` after fixing the issue. Transient network failures must not invalidate a freshly-saved key. Hidden prompt only fires when stdin is a TTY. Piping a key without the `--with-api-key` flag now exits with a clear error instead of hanging on a hidden prompt nobody will see. # `codrex logout <provider>` Surgical removal — only the named provider's entry is removed from auth.json::providers. OpenAI auth (and any other provider's credentials) are preserved verbatim. When the removal leaves auth.json empty, the file is deleted outright. Env-var hint (correction openai#2 in the plan): when the user runs `codrex logout minimax` while `MINIMAX_API_KEY` is still set in the shell, the post-logout message includes actionable guidance: unset MINIMAX_API_KEY # current shell # then remove from ~/.zshrc, ~/.bash_profile, or wherever you set it Calling `codrex logout` (no provider) keeps the upstream behavior of clearing the entire auth payload. # `codrex login --list` Renders a stable, sorted table: Provider Type Source Last verified minimax coding_plan /Users/.../auth.json 2026-04-27 openai api_key env: OPENAI_API_KEY — Source column distinguishes file path vs `keyring (macOS)` vs `keyring (libsecret)` vs `keyring (Windows credential manager)` vs `env: <VARNAME>`. Per the plan correction openai#3, **the API key itself is never printed** — not even truncated prefixes. Per correction openai#4, the source display always identifies the storage backend (file path vs keyring + platform). When no credentials exist anywhere (per correction openai#6), the output is an actionable onboarding hint instead of an empty table: No credentials configured. To get started: codrex login # OpenAI (interactive OAuth) codrex login minimax # MiniMax (paste API key) # Provider registry `KnownProvider::resolve(id)` is the single registration point. Adding Qwen / DeepSeek / GLM in a future phase becomes a 6-line match arm — the prompt, save, list, and logout paths are provider-agnostic. Wiring: - `cli/src/provider_login.rs` (new) — handlers + KnownProvider catalog. - `cli/src/lib.rs` re-exports `run_login_provider`, `run_provider_logout`, `run_login_list`, `ProviderLoginInput`. - `cli/src/main.rs` extends LoginCommand with `provider`, `--coding-plan`, `--test-connection`, `--list`. LogoutCommand gets an optional `provider` arg. - `cli/Cargo.toml` adds chrono, codex-minimax, reqwest, rpassword, codex-utils-home-dir. - `Cargo.toml` workspace adds rpassword 7.3. Verified live against the freshly-built binary: - `echo sk-fake | codrex login minimax --with-api-key --coding-plan` saves credentials with `kind: "coding_plan"`, reports `✓ Permissions verified: 0600`. - `codrex login --list` after the above shows minimax row only, source=`<auth.json path>`, key never printed. - `MINIMAX_API_KEY=sk codrex logout minimax` removes the auth.json entry, deletes the file when last credential, surfaces the unset-from-shell hint. - `codrex login --list` with only env vars set shows `Source: env: MINIMAX_API_KEY`, key never printed. - `codrex login bogus-provider --with-api-key` → `unknown provider 'bogus-provider' (known: minimax)`. - `codrex login --list minimax` → clap rejects with `the argument '--list' cannot be used with '[PROVIDER]'`. Cross-cutting integration tests + docs/auth.md land in the final two commits of this phase.
victalejo
added a commit
to victalejo/codrex
that referenced
this pull request
Apr 28, 2026
…n logging Phase 3 commit 4 — replaces PlaceholderAuditor with PatternAuditor that evaluates every AcceptanceCriterion variant against a real DispatchOutcome and produces a structured AuditReport with per-criterion timing, details, and a final AuditDecision. Decision matrix and ordering (cheap-to-expensive, short-circuit): Order Criterion Cost On failure ----- -------------------- ------- ---------- 1 NoForbiddenPatterns micros Escalate 2 OutputMatches[*] micros Retry 3 TestsPass seconds Retry 4 Custom[*] seconds Retry NoForbiddenPatterns escalates (not retries) per the Phase 3 plan guardrail openai#3: "the model is unlikely to 'not use' a pattern if it didn't understand why" — so the spec needs a human to refine, not the model to retry. Trait refactor (commit 1's contract): - Auditor::audit() now returns AuditReport { decision, criterion_results }. - New types CriterionResult and AuditReport surface in the lib root. - LogStage::AuditCriterion added; emitted once per evaluated criterion BEFORE the aggregated audit row. Greppable in JSONL as `"stage":"audit_criterion"` for per-criterion failure dashboards. - run_orchestrate updated to log per-criterion + final decision, and to exit non-zero with a clear message on Retry/Escalate/Drop verdicts (real retry loop arrives in commit 5). CLI flags surfaced for manual E2E demo (replaced in commit 6 by the rules-driven classifier): - --forbidden <regex> (repeatable, regex pre-validated) - --require-output-match <regex> (repeatable, regex pre-validated) - --require-tests-cmd <cmd...> (whitespace-split, sets TestsPass) Process safety (Phase 3 plan guardrail openai#2): TestsPass and Custom spawn with a 30s hard timeout via tokio::time::timeout. Timeouts record a structured `error: "timeout"` failure and short-circuit to Retry. tokio::process::Command uses kill_on_drop(true) so child processes die when the auditor returns early. Live verification (Apr 27 17:11-17:18 UTC): Scenario 1 (--forbidden ABC --require-output-match ".+", spec passes) → verdict=ok, all 2 criteria passed Scenario 2 (--require-output-match '^STRICTLY_DONE$', mismatch) → verdict=retry, feedback cites the regex Scenario 3 (--require-tests-cmd <fake-test exits 1 with stderr>) → verdict=retry, feedback contains stderr snippet Scenario 4 (--forbidden '7' + prompt requiring 7) → verdict=escalate, blocking_issue shows matched pattern + snippet Side observation from scenario 4 attempts: MiniMax respects the forbidden_patterns list when it sees them in the system message (commit 3's render_system_message wires them in). In practice that means most forbidden-pattern tripwires get pre-empted by the model itself or surface as CLARIFY:; the auditor's escalate path catches the rest. Healthy belt+suspenders. Tests: - 9 new unit tests in audit.rs: placeholder_auditor_returns_ok_with_no_criterion_results pattern_auditor_passes_when_no_criteria_configured pattern_auditor_passes_when_all_criteria_pass forbidden_pattern_match_escalates_not_retries output_matches_failure_returns_retry auditor_short_circuits_on_first_failure tests_pass_failure_returns_retry_with_stderr_snippet timeout_records_structured_failure_and_short_circuits custom_script_failure_returns_retry criterion_results_record_duration_ms - 45 orchestrator tests passing total. - Workspace cargo build green.
KitPan
added a commit
to KitPan/codex
that referenced
this pull request
Aug 5, 2026
- compose_task_prompt:登记表 escalation_note 注入任务模板(openai#11「on-request 依赖模型自觉,不教不会」);只注入新会话,resume 历史已含不重复。 spec/plan 记录实际发射文本(审计真相)。 - plan_overrides:分派 overrides 抽为纯函数;reasoning 档经 model_reasoning_effort 下发(openai#11 三维分派),并写入会话模型亲和(openai#3)。 - observe:codex metadata fallback 警告识别为已知无害并降噪(openai#15)—— catalog JSON 方案否决:ModelInfo.base_instructions 必填且整体替换系统 提示词,静态目录会把某版提示词冻结进仓库,rebase 漂移雷。 - 预存 clippy 1.95 新 lint 清零(collapsible_match / trim_split_whitespace)。 33 lib + 10 e2e 全绿。登记表内容更新在外层 repo(qwen36-deep 深推理档条目)。 Authored by Claude Fable 5 (Claude Code).
arena-ai-coding-agent Bot
added a commit
to Badreddine1982/codex
that referenced
this pull request
Aug 24, 2026
…generator (#1) * Add repo health ratchet gates and PathUri migration epic Implements suggestions #1, openai#3 and openai#10 from IMPROVEMENT_SUGGESTIONS.md: File-size ratchet gate (AGENTS.md module-size guidance): - scripts/check_repo_health.py gates on an 800-line limit for production Rust files (tests, vendor, generated code excluded). Existing debt is snapshotted in scripts/repo-health-baseline.json; any NEW oversized file or GROWTH past the baseline fails CI, shrinkage always passes. - --metrics dashboard: production unwrap count, TODO count, duplicated Cargo.lock dependency versions (95 today). TODO ratchet gate: - The baseline also records the production TODO/FIXME/HACK count (229); any new TODO fails CI, deletions ratchet the count down. - --todos report groups TODO mentions by owner tag (anp owns 57). - 15 unit tests cover all gate scenarios. PathUri migration epic (suggestion openai#3): - PATHURI_MIGRATION.md maps the documented TODO(anp) debt: 42 production sites across 22 files and 10 crates where paths cross process boundaries as native paths instead of PathUri. Five dependency-ordered phases with acceptance criteria; completing it removes ~19% of all production TODO debt in one epic. CI: repo-checks.yml runs the gate and its unit tests; justfile gains repo-health, repo-health-update, repo-health-metrics and todos recipes. Co-authored-by: arena-agent <[email protected]> * Add metric ratchets (unwrap, duplicate deps) and offline changelog generator Extends the repo health gates to cover all dashboard metrics and makes the changelog offline-browsable (suggestions openai#6 and openai#9): - check_repo_health.py now ratchets production .unwrap() count (1179) and duplicated Cargo.lock dependency names (95) in addition to the TODO count and oversized-file snapshot; any regression fails CI and improvements prompt a baseline ratchet-down. - 6 new unit tests cover both gates (21 total for the gate). - scripts/generate_changelog.py: dependency-free CHANGELOG.md generator that understands both Conventional Commits and GitHub squash-merge subjects (#PR links resolved from the origin remote), hoists breaking changes, and ranges from the latest tag by default. - scripts/test_generate_changelog.py: 10 unit tests driving real throwaway git repositories end to end. - justfile: new 'changelog' recipe; CI runs the generator's tests. - CHANGELOG.md regenerated as a real searchable document. Co-authored-by: arena-agent <[email protected]> * Restore repo-checks.yml: bot token lacks workflows permission The push token used here cannot modify GitHub workflow files. The two CI steps below must be applied manually (or via the GitHub UI) after merge — paste them under 'Test Codex package builder' in repo-checks.yml: - name: Repo health ratchet (files, TODOs, unwraps, dup deps) run: python3 scripts/check_repo_health.py - name: Test repo health gate script run: python3 -m unittest discover -s scripts -p 'test_check_repo_health.py' - name: Test changelog generator script run: python3 -m unittest discover -s scripts -p 'test_generate_changelog.py' The gate itself is fully usable via 'just repo-health' without CI. Co-authored-by: arena-agent <[email protected]> * Document manual CI wiring for repo health gates Co-authored-by: arena-agent <[email protected]> --------- Co-authored-by: Arena Agent <[email protected]> Co-authored-by: arena-agent <[email protected]>
jiangshengdev
added a commit
to jiangshengdev/codex
that referenced
this pull request
Sep 16, 2026
soddygo
added a commit
to nuwax-ai/codex
that referenced
this pull request
Sep 24, 2026
All seven bridge-correctness items from the external review, each with regression coverage (unit tests 22/22, live matrix 64/64): - #1 (P0) tool-result images were serialized as unbounded base64 text: the rig bridge now converts ContentItems item-by-item — data URLs decode into typed base64 image blocks, text gets a 200KB defensive cap; the genai bridge (text-only ToolResponse) extracts text and replaces data URLs with placeholders instead of inlining megabytes. Encrypted tool content becomes an explicit placeholder. - openai#3 reasoning replay broke under real history order (Reasoning → Message → FunctionCall): consecutive assistant items now merge into a single assistant message in both bridges, so the DeepSeek-required reasoning echo stays attached to the turn instead of landing in a reasoning-only message that the OpenAI wire drops. - openai#4 AgentMessage (multi-agent NEW_TASK/MESSAGE/FINAL_ANSWER traffic) was silently dropped; plaintext parts now forward as assistant text, provider-encrypted parts are skipped with a debug note. - openai#7 data: URLs in input images were forwarded as remote links, which the Anthropic wire cannot render; the rig bridge decodes them into base64 sources everywhere (user content, assistant content, tool results). - openai#44 argument deltas arriving before the tool name violated the Added-before-delta contract; deltas are now buffered until the item is established, then released in order. - openai#14 the eager first-event pull (the 401-recovery fix) had no timeout; now bounded by idle_timeout like every other pull. - openai#12 rig's Anthropic usage reports cache read/write outside input_tokens while codex expects the total; normalized per provider tag so cached turns no longer undercount input to zero.
soddygo
added a commit
to nuwax-ai/codex
that referenced
this pull request
Sep 26, 2026
…nthropic wire Implements fix candidates #1/#2/openai#4 from the Responses→Anthropic field diff checklist (my-docs/responses-anthropic-field-diff.md): - reasoning.effort → output_config.effort, injected by the transport and merged into any existing output_config (rig serializes output_config.format from output_schema). minimal→low and ultra→max clamp (warned); none/persistent/custom values stay unset — thinking remains under gateway control rather than risking an unknown-field degradation (the GLM lesson). - tool strict: the same per-tool strict map now feeds both wires — function.strict on Chat, top-level tool strict on Anthropic (a 2026 protocol field; the old 'protocol lacks strict' conclusion is stale). - service_tier: only the two semantically matching values cross over (auto→auto, standard→standard_only); flex/priority stay dropped. Verified: wire tests assert the exact HTTP body on both protocols (52/52); new live canary scenario asserts that explicit high effort produces visible thinking on the Anthropic wire for every vendor — MiMo/GLM/StepFun gateways accept the injected fields without the thinking-degradation failure mode (mimo 116 / step 169 reasoning chars in the canary logs, GLM green). Full live matrix 70/70; offline replay 43/43; clippy clean. Deferred: cache_control auto-breakpoints (openai#3) — needs per-gateway billing verification, tracked in the checklist doc.
soddygo
added a commit
to nuwax-ai/codex
that referenced
this pull request
Nov 11, 2026
…7 review findings) 核实并修复 2026-11-11 代码审查的 2 项 P1 + 5 项 P2,另附一项自行复盘的主因。 **主因(P0,本轮新发现)**:`get_total_token_usage()` = 上次服务端用量 + 未上报条目 估算。恢复会话只调 `set_token_info`,`last_server_reported_usage_item_count` 留在 0, **整个重载历史被再估算一遍**。实测 7 次引擎重启、每次 +0.9s 都触发一次压缩;14.8 万 token 的会话被判成"满窗口"。改为 `set_token_info_with_boundary`(覆盖数=重载条目数)。 - #1(P1) `prune_stale_images` 不再剪 `Message` 图片:用户上传是本人输入,且无 call id 无法持久化(实时/回放不一致)。只剪工具输出。 - #2(P1) `degrade_history_to_target_window`:token 合规但 body 超限(413)时不再直接 返回"未裁减",改为走完确定性剪枝,避免原样重试再 413。 - openai#4(P2) 迁移压缩只在换模型或真的装不下时运行,不再按 ~80% 调度线抢跑惰性轮前判断。 - openai#6(P2) 单图合规但合计超限时仍执行 aggregate 收缩,不再被入口整张丢弃。 - openai#7(P2) `has_authorization_header` 同时认 `env_http_headers.Authorization`。 - openai#5(P2) 重新生成 `core/config.schema.json`(补 `image_byte_budget_bytes`), `config_schema_matches_fixture` 此前实红。 - openai#3(P2) 图片字节预算写入移到配置校验之后(失败加载不再改写全局);进程级共享是结构性 限制,彻底修法待办。 Tests: config_schema + compact + compaction_prune + rollout_reconstruction + context_manager 286/287(串行);唯一失败 model_switches_refresh_... 经 stash 对照 确认既有。新增 resuming_anchors_the_token_count_to_the_recorded_usage。 Docs: FORK.md §5.5。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.