Skip to content

Inject history notes hints into context windows - #40539

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/344a7bb79d962ea8b7c969f25b67a79423fc7fcc
Aug 25, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Inject history notes hints into context windows

What changed

  • Register the history-notes extension as a context contributor and fetch thread_hint from the configured history-notes backend.
  • Add non-empty hints of at most 4,000 bytes to the context-window prompt, and omit hints when the request fails or the response is missing, empty, or oversized.
  • Verify that app-server sessions use the native backend when use_history_notes_extension is enabled and retain the MCP bridge behavior when it is disabled.

Testing

  • Cover hint injection, request context, response validation, backend failures, and disabled-extension behavior in history-notes and app-server tests.

## What changed

- Register the history-notes extension as a context contributor and fetch `thread_hint` from the configured history-notes backend.
- Add non-empty hints of at most 4,000 bytes to the context-window prompt, and omit hints when the request fails or the response is missing, empty, or oversized.
- Verify that app-server sessions use the native backend when `use_history_notes_extension` is enabled and retain the MCP bridge behavior when it is disabled.

## Testing

- Cover hint injection, request context, response validation, backend failures, and disabled-extension behavior in history-notes and app-server tests.

GitOrigin-RevId: 344a7bb79d962ea8b7c969f25b67a79423fc7fcc
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/344a7bb79d962ea8b7c969f25b67a79423fc7fcc branch from aa5decb to 2e46759 Compare August 25, 2026 04:06
@copyberry
copyberry Bot merged commit 2e46759 into main Aug 25, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/344a7bb79d962ea8b7c969f25b67a79423fc7fcc branch August 25, 2026 04:07
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 2e467591 Deployed Aug 25, 2026 by dby062996-sys via Identify potential duplicates (all issues) #39766
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