Add a host-managed wait tool for Codex sessions #4262
ClosedJules-Astier(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/4262/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/provider/Layers/CodexDynamicTools.ts line 114Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +88,21 @@88+ );89+90+ return outcome === "elapsed"91+ ? textResponse(true, `Wait completed after ${decoded.success.durationMs} ms.`)92+ : textResponse(false, "Wait cancelled because the turn was interrupted or the session closed.");93+});94+95+interface PendingWait {96+ readonly turnId: string;97+ readonly cancelled: Deferred.Deferred<void>;98+}99+100+export interface T3CodexDynamicToolWaitRegistry {101+ readonly handle: (102+ payload: EffectCodexSchema.DynamicToolCallParams,103+ ) => Effect.Effect<EffectCodexSchema.DynamicToolCallResponse>;104+ readonly cancelTurn: (turnId: string) => Effect.Effect<void>;105+ readonly cancelAll: Effect.Effect<void>;106+}107+108+export const makeT3CodexDynamicToolWaitRegistry = Effect.fn("makeT3CodexDynamicToolWaitRegistry")(
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
3a84ea43-e5bf-4263-9727-3fe0cdd5f85aYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share