fix(codex): return remote auth refresh to external home - #11095
Open
Oldrich333 wants to merge 1 commit into
Open
fix(codex): return remote auth refresh to external home#11095Oldrich333 wants to merge 1 commit into
Oldrich333 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Linked Issues or Issue Description
Fixes: #11094
Refs: #9621
Refs: #10005
Refs: #5952
What Changed
CODEX_HOME.auth.jsonsymlink before the atomic copy-back. This preserves the symlink.Verification
pnpm exec vitest run packages/adapters/codex-local/src/server/execute.test.ts packages/adapters/codex-local/src/server/codex-auth-copyback.test.ts packages/adapters/codex-local/src/server/codex-home.test.tspnpm --filter @paperclipai/adapter-codex-local typecheckpnpm run check:tokensRisks
Low risk.
The change only selects the copy-back destination for a remote run. Managed homes keep the existing shared destination. External homes already own their auth state. The existing decision predicate still refuses older data, unusable data, API-key data, and a different account identity.
No schema, API, migration, or local-run behavior changes.
Model Used
gpt-5.6-solwith medium reasoning, tool use, and code execution produced the change. The harness did not disclose its context window size.gemini-3-pro-previewperformed independent full reviews of the frozen commit.Checklist
Fixes: #/Closes #/Refs #OR (b) described the issue in-PR following the relevant issue template#NNN/github.com/paperclipai/paperclipURLs)docs/...,fix/...) and contains no internal Paperclip ticket id or instance-derived details