Skip to content

Preserve restored permission profiles in TUI sessions - #41192

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6143dca4b83ab4f59bab05f6a59b4fe841c56192
Aug 27, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Preserve restored permission profiles in TUI sessions

Why

Restored app-server threads can carry permission profiles that cannot be
represented without loss as legacy sandbox-mode overrides. Sending those
profiles as per-turn overrides can discard their original permission details.

What changed

  • Distinguish restored permission profiles from legacy per-turn sandbox
    overrides.
  • Preserve restored profiles while routing turns and changing to compatible
    working directories.
  • Reject /cd when a restored profile cannot be represented safely by a
    legacy sandbox mode.

Testing

  • Cover retaining a restored read-only profile across /cd without a turn
    override.
  • Verify that lossy sandbox-mode projections are detected.

## Why

Restored app-server threads can carry permission profiles that cannot be
represented without loss as legacy sandbox-mode overrides. Sending those
profiles as per-turn overrides can discard their original permission details.

## What changed

- Distinguish restored permission profiles from legacy per-turn sandbox
  overrides.
- Preserve restored profiles while routing turns and changing to compatible
  working directories.
- Reject `/cd` when a restored profile cannot be represented safely by a
  legacy sandbox mode.

## Testing

- Cover retaining a restored read-only profile across `/cd` without a turn
  override.
- Verify that lossy sandbox-mode projections are detected.

GitOrigin-RevId: 6143dca4b83ab4f59bab05f6a59b4fe841c56192
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6143dca4b83ab4f59bab05f6a59b4fe841c56192 branch from cc50960 to c29bc99 Compare August 27, 2026 19:52
@copyberry
copyberry Bot merged commit c29bc99 into main Aug 27, 2026
27 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6143dca4b83ab4f59bab05f6a59b4fe841c56192 branch August 27, 2026 19:53
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 27, 2026
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.

1 participant