Skip to content

fix(server): a Codex config warning shows once, not once per agent - #983

Merged
badcuban merged 1 commit into
mainfrom
fix/codex-warning-once
Nov 18, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/codex-warning-once

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

A Codex thread with subagents showed the same config warning over and over. With [features].multi_agent = true in ~/.codex/config.toml, one thread with three subagents showed the deprecation warning five times: once as configWarning when the app server started, then once as warning for the main thread and once for each subagent. The config warning row also printed its summary twice, as the title and again as the detail line.

Fix:

  • CodexAdapter: each session keeps the text of every configWarning and warning it has shown, and drops a repeat. Retry, guardian and stderr warnings are untouched.
  • ProviderActivityProjection: a config warning gets a detail line only when Codex sends details that differ from the summary.
  • New adapter test: one config warning, the same text from the main thread and a subagent, then a different warning. Two warnings come out. The test fails without the fix.

Checks: fmt, lint, typecheck, CodexAdapter.test, ProviderActivityProjection, and the replay suite (13/13; the recorded subagent session has this exact warning).

Codex reports a stale config setting once as configWarning when the app
server starts, then again as a warning for every thread it opens,
subagents included. A thread with three subagents showed the same
multi_agent deprecation five times. A Codex session now drops a plain
config or runtime warning whose text it already showed. The config
warning row also stops repeating its summary as its detail line.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 17, 2026 11:51pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 4c90e88 Nov 18, 2026
24 checks passed
@badcuban
badcuban deleted the fix/codex-warning-once branch November 18, 2026 00:02

This branch was previously deployed

1 inactive deployment
Preview — 91c40092 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant