Skip to content

Propagate Apps tool refreshes to existing threads - #43900

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7a5ee34e23742ce374c6647dc8928b76ea622448
Sep 8, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7a5ee34e23742ce374c6647dc8928b76ea622448

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Propagate Apps tool refreshes to existing threads

Why

Refreshing installed Apps without a thread should update the tools available to existing threads on their next turn.

What changed

  • Publish live tool catalogs to clients with matching transport, auth, protocol, and listing settings within the same account and home directory. Ignore the thread attribution header when matching scopes.
  • Adopt updated tools before catalog reads and new calls, preserving running calls and rejecting calls prepared against an outdated catalog revision.
  • Keep the newest successful fetch per scope so older refreshes cannot overwrite newer tools, and exclude disk snapshots from live updates.

Testing

Add regression coverage for refresh propagation to an existing thread without another tools listing, scope and account isolation, out-of-order refreshes, late client startup, and running versus stale prepared calls.

## Why

Refreshing installed Apps without a thread should update the tools available to existing threads on their next turn.

## What changed

- Publish live tool catalogs to clients with matching transport, auth, protocol, and listing settings within the same account and home directory. Ignore the thread attribution header when matching scopes.
- Adopt updated tools before catalog reads and new calls, preserving running calls and rejecting calls prepared against an outdated catalog revision.
- Keep the newest successful fetch per scope so older refreshes cannot overwrite newer tools, and exclude disk snapshots from live updates.

## Testing

Add regression coverage for refresh propagation to an existing thread without another tools listing, scope and account isolation, out-of-order refreshes, late client startup, and running versus stale prepared calls.

GitOrigin-RevId: 7a5ee34e23742ce374c6647dc8928b76ea622448
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7a5ee34e23742ce374c6647dc8928b76ea622448 branch from 6ed6aa5 to 6d377e9 Compare September 8, 2026 19:57
@copyberry
copyberry Bot merged commit 6d377e9 into main Sep 8, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7a5ee34e23742ce374c6647dc8928b76ea622448 branch September 8, 2026 19:58
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 8, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 6d377e96 Deployed Sep 8, 2026 by splitskull691 via Generate label suggestions #43631
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.

4 participants