Skip to content

Use session IDs for prompt cache keys - #33035

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cb1bf21a3cb8fa2c5083c5c6afd4829ff2adcf1f
Jul 14, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Use session IDs for prompt cache keys

What changed

  • Default prompt_cache_key to the session ID from response metadata instead of the thread ID.
  • Preserve explicit prompt cache key overrides.
  • Verify that API-key-authenticated root and subagent requests use the same session-based cache key even though they have different thread IDs.

## What changed

- Default `prompt_cache_key` to the session ID from response metadata instead of the thread ID.
- Preserve explicit prompt cache key overrides.
- Verify that API-key-authenticated root and subagent requests use the same session-based cache key even though they have different thread IDs.

GitOrigin-RevId: cb1bf21a3cb8fa2c5083c5c6afd4829ff2adcf1f
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/cb1bf21a3cb8fa2c5083c5c6afd4829ff2adcf1f branch from 4b7faa7 to 4aa950d Compare July 14, 2026 10:38
@copyberry
copyberry Bot merged commit 4aa950d into main Jul 14, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/cb1bf21a3cb8fa2c5083c5c6afd4829ff2adcf1f branch July 14, 2026 10:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 4aa950d4 Deployed Jul 14, 2026 by tenzija via Identify potential duplicates (open issues fallback) #31297
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.

6 participants