Repository navigation
Refactor Codex adapter lifecycle helpers - #1478
Merged
Merged
Conversation
- Split adapter setup into named Effect.fn helpers - Keep listener registration and cleanup explicit
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
- Replace `sendTurn` parameter inference with `ProviderSendTurnInput` - Keep attachment resolution aligned with shared contracts
xddinside
referenced
this pull request
in xddinside/t3code
Apr 4, 2026
youpele52
referenced
this pull request
in youpele52/bigbud
Jun 17, 2026
dcherrera
pushed a commit
to dcherrera/t3code
that referenced
this pull request
Jul 7, 2026
NeilTheFisher
pushed a commit
to NeilTheFisher/t3code
that referenced
this pull request
Aug 18, 2026
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.
What Changed
Why
UI Changes
Checklist
Note
Low Risk
Refactor-only change in the Codex provider adapter; primary risk is subtle lifecycle/cleanup differences around manager acquisition and event listener registration/shutdown.
Overview
Refactors
apps/server/src/provider/Layers/CodexAdapter.tsto breakmakeCodexAdapterinto namedEffect.fnhelpers, improving stack traces and making the lifecycle steps more explicit.This extracts helpers for manager acquisition (
acquireManager), attachment loading/encoding (resolveAttachmentused bysendTurn), and event listener registration/cleanup (registerListener/unregisterListenerpluswriteNativeEvent), while keeping the adapter’s public operations and error mapping behavior the same.Written by Cursor Bugbot for commit 9b9c9b3. This will update automatically on new commits. Configure here.
Note
Refactor
CodexAdapterlifecycle helpers into namedEffect.fngeneratorsRestructures CodexAdapter.ts to use named
Effect.fngenerators throughout, improving traceability in Effect traces.acquireManageras a standalone helper that resolves an existing manager from options or constructs one viaCodexAppServerManagerresolveAttachmenthelper to consolidate inline file-reading logic fromsendTurn, usingEffect.forEachwith concurrency 1registerListenerandunregisterListeneras named helpers wired viaEffect.acquireRelease, and addswriteNativeEventto isolate native event loggingMacroscope summarized 9b9c9b3.