Route extension hints into context-window metadata (#40533)

## What changed

- Add a `ContextWindow` prompt slot for thread-scoped extension contributions.
- Include fragments in that slot in the token-budget context-window message.
- Keep the MCP `notes/thread_hint` bridge when the native history-notes extension is disabled, without falling back to it after a native request failure.

GitOrigin-RevId: befcb7cc8570b846094b2b542a112b186b39a30a
This commit is contained in:
pmccrary-oai authored and copyberry committed 2026-08-25 03:38:24 +00:00
1 parent 9c9675d3d0
commit 3a469a297d
4 files changed
+57 -36

No files matched your search

@@ -8,6 +8,8 @@ use codex_protocol::models::ContentItemKind;
pub enum PromptSlot {
DeveloperPolicy,
DeveloperCapabilities,
/// Text inside the context-window message, supplied by `contribute_thread_context`.
ContextWindow,
}
#[derive(Clone, Debug, PartialEq, Eq)]