Skip to content

Support thread forks from symlinked session roots - #42135

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0128ecde7087120ef510baa3ed62cdbb33073117
Sep 1, 2026
Merged

Support thread forks from symlinked session roots#42135
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0128ecde7087120ef510baa3ed62cdbb33073117

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 1, 2026

Copy link
Copy Markdown

Support thread forks from symlinked session roots

Why

Forking a resumed paginated thread failed when the managed sessions directory was a symlink, even though the rollout remained under that managed root.

What changed

  • Validate rollout lineage references against the canonical sessions and archived_sessions roots.
  • Accept rollouts beneath symlinked managed roots while rejecting nested symlinks that escape those roots.

Testing

  • Cover forking a resumed rollout under a symlinked sessions root.
  • Cover rejection of rollout lineage paths that escape through a nested symlink.

## Why

Forking a resumed paginated thread failed when the managed `sessions` directory was a symlink, even though the rollout remained under that managed root.

## What changed

- Validate rollout lineage references against the canonical `sessions` and `archived_sessions` roots.
- Accept rollouts beneath symlinked managed roots while rejecting nested symlinks that escape those roots.

## Testing

- Cover forking a resumed rollout under a symlinked `sessions` root.
- Cover rejection of rollout lineage paths that escape through a nested symlink.

GitOrigin-RevId: 0128ecde7087120ef510baa3ed62cdbb33073117
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/0128ecde7087120ef510baa3ed62cdbb33073117 branch from cfd1122 to c5b5fa8 Compare September 1, 2026 21:04
@copyberry
copyberry Bot merged commit c5b5fa8 into main Sep 1, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/0128ecde7087120ef510baa3ed62cdbb33073117 branch September 1, 2026 21:05
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 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.

2 participants