Repository navigation
fix: keep Codex activity ordered when steering active runs - #126997
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 21, 2026, 1:59 AM ET / 05:59 UTC. ClawSweeper reviewWhat this changesThe PR persists pre-steer Codex commentary and tool activity before the accepted steering user message, then renders that activity as completed work before the steering message in Control UI. Merge readinessKeep this maintainer-authored PR open: it addresses a current-main transcript-ordering gap, but retains the release-owned changelog edit and lacks the required direct Codex app-server contract inspection. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherThe Codex extension receives app-server events and mirrors them into the durable session transcript. Control UI rebuilds that transcript into chat turns, keeping active work expanded and collapsing completed intermediate work. flowchart LR
A[Codex app-server events] --> B[Codex event projector]
B --> C[Durable session transcript]
D[Accepted steering message] --> C
C --> E[Control UI turn grouping]
E --> F[Worked for disclosure]
E --> G[Final chat reply]
Decision needed
Why: The PR depends on Codex app-server protocol semantics, and repository policy requires direct sibling-source inspection before a Codex verdict; that checkout is absent and cannot be fetched in this environment. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +220, Tests +153, Docs +1. Total +374 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Remove the release-owned changelog entry and have a reviewer with the Codex source confirm that the correlated userMessage completion is the canonical persistence boundary; no simpler owner-level seam currently serializes durable prefix, steering turn, and terminal transcript order. Do we have a high-confidence way to reproduce the issue? Yes, source reproducibility is medium-confidence: current main lacks the pre-confirm durable-prefix write and continuation grouping present in this branch, but the exact Codex completion-event contract could not be inspected locally. Is this the best way to solve the issue? Unclear: the persistence and UI changes sit at the apparent owners, but a best-fix verdict requires direct verification that Codex's correlated userMessage completion is the intended authoritative boundary. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0e75204f0505. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
a39a6ee to
05713cf
Compare
05713cf to
663c85b
Compare
663c85b to
c4eab4a
Compare
c4eab4a to
faa1cfc
Compare
|
Fixed: Codex steering now preserves activity order, removes transient commentary duplication, and settles completed work smoothly. |
* origin/main: (107 commits) perf(test): speed up Agents page observation polling (#127063) fix(android): explicitly target notification intents (#127055) fix(agents): preserve literal Unicode-space paths (#126797) fix(agents): distinguish review routing from enforcement (#126216) fix(ui): associate steering work by target run (#126997) fix(ui): collapse completed pre-steer work fix(codex): preserve steering transcript order fix(gateway): retain Bonjour cleanup on startup failure (#127062) fix(release): require concrete validation retry groups (#127012) fix(file-transfer): expose directory page tokens (#127051) perf: trim setup detection worker imports (#127053) fix(onboard): make --auth-choice help match the accepted set (#127030) fix(gateway): await cron exit watcher drain (#126963) fix(telegram): preserve direct-topic self-history (#127050) fix: dismiss sidebar session menu tooltip (#127044) perf(test): speed up pairing access polling (#127047) perf(cli): remove ineffective dynamic imports (#127046) fix(gateway): recover credential-file accounts after secrets reload (#126999) fix(gateway): restore scheduler-owned Gateway context (#126640) fix(macos): keep first-run onboarding visible after Gateway changes (#127038) ... # Conflicts: # .github/workflows/full-release-validation.yml # test/scripts/full-release-validation-at-sha.test.ts
Related: #126938
What Problem This Solves
Fixes an issue where steering an active Codex run could preserve prior commentary and tool activity only while the run was live, then rebuild the completed transcript with that work in the wrong position or leave it expanded instead of the normal
Worked for …disclosure.Why This Change Was Made
OpenClaw now mirrors the stable pre-steer activity prefix and commits the steering user turn at Codex's confirmed user-message boundary, before terminal reconciliation can append later output. The Control UI uses the persisted steer marker to keep the linked run expanded while active and collapse its completed work before the steering message.
User Impact
Users can steer an active Codex run without losing or rearranging previously visible work. After completion, the transcript matches Codex Desktop: pre-steer activity appears under
Worked for …before the steer, and the final response remains after it.Evidence
sleep 30above the steer during execution.Worked for 46srenders before the steering message after completion.Visual proof
Before: completed work appears after the steering message.
After: completed work collapses before the steering message.