Skip to content

Ensure side-chat policy reaches the first model request - #60067

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/889cb317dc3327457cd9ef0879ec9f77dbfaeeba
Nov 7, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Ensure side-chat policy reaches the first model request

Why

An inherited turn can suppress a fork's configured developer instructions, leaving the first side-chat request without its developer policy.

What changed

  • Move shared side-conversation instructions and the history boundary into codex-context-fragments.
  • Inject the developer policy before the user-role boundary when creating a TUI side-chat fork, while retaining the configured instructions.
  • Distinguish attached and temporary policies, applying the worktree restriction only to temporary side chats.
  • Add guidance to set up recurring monitors in the main chat or a new chat because temporary side chats cannot run scheduled updates.

Testing

Add a TUI integration test that checks the first side-chat model request contains the policy and boundary. Add a core request-history snapshot covering an attached side chat that preserves inherited context, policy, and its prior answer after resuming from disk.

## Why

An inherited turn can suppress a fork's configured developer instructions, leaving the first side-chat request without its developer policy.

## What changed

- Move shared side-conversation instructions and the history boundary into `codex-context-fragments`.
- Inject the developer policy before the user-role boundary when creating a TUI side-chat fork, while retaining the configured instructions.
- Distinguish attached and temporary policies, applying the worktree restriction only to temporary side chats.
- Add guidance to set up recurring monitors in the main chat or a new chat because temporary side chats cannot run scheduled updates.

## Testing

Add a TUI integration test that checks the first side-chat model request contains the policy and boundary. Add a core request-history snapshot covering an attached side chat that preserves inherited context, policy, and its prior answer after resuming from disk.

GitOrigin-RevId: 889cb317dc3327457cd9ef0879ec9f77dbfaeeba
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/889cb317dc3327457cd9ef0879ec9f77dbfaeeba branch from 6651361 to 0ed34eb Compare November 7, 2026 05:59
@copyberry
copyberry Bot merged commit 0ed34eb into main Nov 7, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-07T05:59:58.716355Z 6651361 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/889cb317dc3327457cd9ef0879ec9f77dbfaeeba branch November 7, 2026 06:00
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 7, 2026

This branch was previously deployed

1 inactive deployment
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