Skip to content

fix(codex): allow forks after unarchiving threads - #1153

Merged
nixuuu merged 1 commit into
devfrom
fix/fork-unarchived-thread
Nov 23, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/fork-unarchived-thread

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 23, 2026

Copy link
Copy Markdown
Member

Change

Canopy restores the thread's platform state immediately, while the Codex session log remains archived until the next cold resume. Forking before that resume could fail with session … is archived.

When Codex reports that specific error, the worker restores the source log and retries the fork once with the same turn boundary and settings. The source stays unloaded. Rewind uses the same recovery when it forks an earlier prefix.

Fixes: #882

Verification

  • Reproduced the archived-source error with the app-server fixture before the fix.
  • Passed 17 focused Codex adapter tests via check:tmp, including the regression and the rewind, sandbox profile, and service tier suites.
  • Passed worker typecheck, lint and formatting on the edited TypeScript, and git diff --check.
  • CI runs the full repository gate. Live provider and MacStudio checks are pending.

@nixuuu
nixuuu enabled auto-merge (squash) November 23, 2026 10:56
@nixuuu
nixuuu merged commit 00bd27e into dev Nov 23, 2026
16 checks passed
@nixuuu
nixuuu deleted the fix/fork-unarchived-thread branch November 23, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant