Skip to content

Add better logging to rejection error - #23

Closed
MadcowD wants to merge 1 commit into
openai:mainfrom
MadcowD:feature/my-improvements
Closed

MadcowD wants to merge 1 commit into
openai:mainfrom
MadcowD:feature/my-improvements

Conversation

@MadcowD

@MadcowD MadcowD commented Apr 16, 2025 •

Copy link
Copy Markdown

Helps people progress in this issue

    system
    ⚠️  OpenAI rejected the request (request ID: req_a057493e36bb3dda8a2fe4646b7d4cb0): **400 Your organization must be verified to generate reasoning summaries. Please
     go to: https://platform.openai.com/settings/organization/general and click on Verify Organization.. Please verify your settings and try again.**

Helps sovle #10

@MadcowD
MadcowD force-pushed the feature/my-improvements branch from 6da2f5f to b7f3bb5 Compare April 16, 2025 17:51
@tibo-openai

tibo-openai commented Apr 16, 2025 •

Copy link
Copy Markdown
Collaborator

ty, but will close this one as I will accept #31 instead which does something very similar but with a tad more information added

@MadcowD

MadcowD commented Apr 22, 2025

Copy link
Copy Markdown
Author

Rood

victalejo added a commit to victalejo/codrex that referenced this pull request May 3, 2026
New contributor-facing reference covering:

- The official subset of crates that constitutes verification for
  any change in this fork: orchestrator, cli, config, minimax, login.
  Justification: pre-existing upstream test failures in
  codex-app-server (TODO openai#23) make `cargo test --workspace` unsafe
  as the canonical verification command without locally diverging
  from upstream sources.
- Rebuild the binary before E2E tests (TODO openai#18).
- `set -o pipefail` for piped `cargo test` invocations (TODO openai#21).
- The `[env]` `RUST_MIN_STACK = "8388608"` in .cargo/config.toml
  and how to verify it applies (TODO openai#22).
- Phase 3 fmt-drift stash convention.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
DioNanos referenced this pull request in DioNanos/codex-termux Aug 27, 2026
…t carry it

First CI run failed at the BASE gate (correctly — it did its job) with
"declared upstream base tag not present: rust-v0.149.1". Two causes, both
now addressed; the prescribed one alone would not have been enough.

1. actions/checkout@v4+ does not fetch tags with fetch-depth: 0
   (fetch-tags is a separate input, default false) -> added fetch-tags: true
   and rewrote the comment to say BOTH ingredients are needed, so the next
   reader does not repeat the same assumption.
2. MEASURED (ls-remote): the GitHub mirror carries only 7 real rust-v*
   refs (ancient rust-v0.0.*), and rust-v0.149.1 is NOT among them — with
   fetch-tags alone the gate would move from not-verifiable to REFUTED and
   the build would fail identically. New step fetches exactly the tag the
   package description declares, from upstream openai/codex: it points at
   a commit already inside this branch's history, so it transfers (almost)
   no objects. Data to verify provenance, never the permission not to.

Simulated the CI locally in three stages against a bare remote replicating
the mirror's measured tag inventory (7 rust-v0.0.* refs, branch, full
history; the upstream fetch simulated from the local tag source):
  A' default fetch (no --tags)    -> exit 1, not-verifiable (0 tags here;
     the real runner showed refuted: checkout's follow-tags had carried
     the 7 mirror tags — both fail)
  B  + fetch-tags: true alone     -> exit 1, REFUTED "declared upstream
     base tag not present: rust-v0.149.1"  <- the prescription was not
     sufficient, measured
  C  + declared-tag fetch step    -> exit 0, contract PRESENT, NO override,
     tag resolves to ff29a44, patch #23 still PRESENT
friel-openai referenced this pull request in friel-openai/codex Sep 16, 2026
Supervisor helpers reduced terminal Codex errors to status text before
Saffron decided whether to retry. A terminal invalid request therefore
entered the ordinary retry loop even though repeating it could not
succeed.

Retain the structured `CodexErrorDetails::InvalidRequest` category
through
helper retirement. The supervisor now blocks the matching durable goal,
emits the existing goal update and warning, and clears any persisted
wake.
Retryable failures, including retryable HTTP 400 responses, continue
through the existing retry path.

Add the behavior as a new Saffrodex layer after the existing stack so
prior
layer definitions remain unchanged.
jiangshengdev added a commit to jiangshengdev/codex that referenced this pull request Sep 17, 2026
soddygo added a commit to nuwax-ai/codex that referenced this pull request Sep 25, 2026
…y, proto, compaction

Five findings from the review, implemented with merge-friendly minimal
upstream touch (all changes in fork-controlled files or append-only):

- openai#24 config.schema.json regenerated (experimental_bridge, WireApi
  anthropic variant now present); zero-conflict — regen after each merge
- openai#20 built-in provider `experimental_bridge` override is no longer
  silently dropped by the config merge: an Occupied entry now copies the
  user's bridge selection onto the built-in defaults (native escape
  hatch on ollama/lmstudio works)
- openai#19 provider identity now matches on the config KEY, not the display
  name: `ModelProviderInfo.provider_id` (#[serde(skip)], stamped at
  deserialize from the TOML key and on built-ins at construction) +
  `is_first_party()` replaces the name-based check in the fork's
  responses_routes_via_chat_bridge — a user provider named "OpenAI"
  routes through the bridge, not native Responses
- openai#23 remote thread-config proto now carries WireApi Anthropic
  (WIRE_API_ANTHROPIC = 3) and experimental_bridge (tag 20) end-to-end
  (proto + hand-maintained generated code + remote.rs conversions);
  Azure Responses providers on the default bridge path no longer
  incorrectly claim V2 remote compaction — chat-family wires force
  local compaction (openai#21)

Verified: 381 unit tests green (model-provider-info + config), core
compiles under no/single/both bridge features, test targets compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants