Skip to content

Track deferred tool namespaces in world state - #35063

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/867e599666dc3569eb0789ba78aaa40254253a6f
Jul 24, 2026
Merged

Track deferred tool namespaces in world state#35063
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/867e599666dc3569eb0789ba78aaa40254253a6f

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 24, 2026

Copy link
Copy Markdown

Track deferred tool namespaces in world state

What changed

  • Add the disabled-by-default deferred_tool_world_state feature, which exposes deferred tool namespaces and their descriptions to the model in a <tools> world-state section.
  • Emit added and removed namespace updates as tool availability changes, bound the rendered context size, and persist nonempty state across thread resumes.
  • Omit empty tool state while retaining deferred tool discovery through tool_search.

Testing

  • Cover initial, unchanged, removed, recovered, empty, and resumed namespace state, along with description truncation and rendered-size limits.

## What changed

- Add the disabled-by-default `deferred_tool_world_state` feature, which exposes deferred tool namespaces and their descriptions to the model in a `<tools>` world-state section.
- Emit added and removed namespace updates as tool availability changes, bound the rendered context size, and persist nonempty state across thread resumes.
- Omit empty tool state while retaining deferred tool discovery through `tool_search`.

## Testing

- Cover initial, unchanged, removed, recovered, empty, and resumed namespace state, along with description truncation and rendered-size limits.

GitOrigin-RevId: 867e599666dc3569eb0789ba78aaa40254253a6f
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/867e599666dc3569eb0789ba78aaa40254253a6f branch from a798850 to 1d4b58f Compare July 24, 2026 01:21
@copyberry
copyberry Bot merged commit 1d4b58f into main Jul 24, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/867e599666dc3569eb0789ba78aaa40254253a6f branch July 24, 2026 01:22
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants