Skip to content

feat(codex): port native goals to orchestration V2 - #1

Draft
cjavad wants to merge 2 commits into
t3code/codex-turn-mappingfrom
feat/codex-goals-v2
Draft

feat(codex): port native goals to orchestration V2#1
cjavad wants to merge 2 commits into
t3code/codex-turn-mappingfrom
feat/codex-goals-v2

Conversation

@cjavad

@cjavad cjavad commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Codex can start a native goal continuation after a turn completes, but orchestration V2 treats the unknown turn as a subagent and loses its output. This ports pingdotgg#7935 to V2, attaches native continuation output to T3 runs, and adds native /goal controls and live status to web/desktop and mobile.

Native notifications are buffered without blocking the protocol reader while T3 attaches a run. Resumed threads retain continuation ownership; fast successive turns and user messages racing adoption retain their output. /goal resume can reconnect a dormant session. Goal mutations serialize across clients, subscriptions reconnect, and Stop checks native goal status before pausing/interruption. Archive/delete discards unattached native work. Codex remains the goal-state authority. Stop follows the intent of pingdotgg#10447.

Validation: the PR's adapter/session-manager suites pass 94 tests and its server typecheck passes. The combined build includes the existing fork, migration, scheduler and runtime patches: 145 focused tests pass, server/web/mobile typechecks pass, production server/web builds pass, and scoped lint has zero errors (42 warnings). It starts against a snapshot of the live 5 GB database and serves its HTML and JavaScript successfully. No live-provider/browser/mobile-device workflow has been exercised; UI evidence remains to attach before upstream review.

Prepared for local use: t3code-branch:goals-ready-20260909, image 363861031077. Reproducible combined source: build/codex-goals-ready-20260909 at b42a46ef5. The goal changes are saved in the local patches system. The running container and latest image tag were not changed.

Based on upstream pingdotgg#7935 at 3e2f3794aee2f61a2333d928d97bb57c566745d8. This PR targets t3code/codex-turn-mapping; the combined build branch retains the newer prepared runtime and all existing fixes.

Model/harness: GPT-6 / Codex.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Sep 9, 2026
@github-actions

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 7964c7b.

This comment will update automatically after the next completed run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant