Skip to content

Codex autopilot follow-ups: after any off, only a new on that starts a turn turns merges on (T823) - #456

Merged
erickb336 merged 1 commit into
mainfrom
sage/t823-autopilot-followups
Nov 8, 2026
Merged

erickb336 merged 1 commit into
mainfrom
sage/t823-autopilot-followups

Conversation

@erickb336

Copy link
Copy Markdown
Owner

What this is

The follow-ups of the Codex autopilot (PR 455, T677), grouped in T823: one rule edge that differed from the owner's decision, and several confusing texts.

The rule edge (F-T677-33, owner decision 2026-11-08, option A)

An off from a fork, a subagent's thread or a side conversation reaches only the mode files, not the main thread's record. Before this change, an on that joined the main thread's running turn turned the mode file on again, and the record still counted the earlier on, so the gate admitted merges.

Now the mode hook saves the turn of each on that it accepts (onTurn). The gate and the merge command admit a merge only when the record's latest counted on is in that turn. So after any off, only a new on that starts its own turn turns merges on.

The other items

Finding Change
F-T677-18, F-T677-25 The mode hook reads the record before Codex records the prompt. An on that joins a turn, or a turn that no person started, switches nothing, and the chief tells the owner that it did not count and how to send one that counts. The gate's refusals say it too.
F-T677-31 A turn that another agent's message started has that message as its opener, so a joined on never counts. A trigger_turn: true line refuses.
F-T677-32 The off line for a thread whose record sage cannot read fits a main thread.
F-T677-26 The version refusal says that a newer Codex waits until sage adds it.
F-T677-27 The refusal for a missing Codex folder on the hook's PATH uses plain words and gives the fix.
F-T677-34 The gate's allow of the api.github.com network approval could never apply, because the merge command uses its permit before gh asks. It is removed, and the guide says that the owner can see one network prompt.
F-T677-19, F-T677-28 Guide texts: a Tab-queued on in the terminal UI counts when it starts the next turn; the no-image rule has its reason and its result.

Evidence

  • New tests fail on the base (afb1a92) and pass on this head: autopilot-record, autopilot-gate, autopilot-merge and codex-mode-hook. On the base, the gate admits the merge after the fork's off and the joined on, and the merge command runs gh.
  • npm run build and npm run check pass.

After this update

If autopilot is on in a Codex session, send autopilot on again as a new message before the next merge (a mode file from before this change has no on turn, so the gate refuses).

🤖 Generated with Claude Code

…s merges on (T823)

F-T677-33 (owner decision 2026-11-08, option A): an off from a fork, a
subagent's thread or a side conversation reaches only the mode files, so
an on that joined the main thread's running turn turned the mode file on
again while Codex's record still counted the earlier on. The mode hook now
saves the turn of each on that it accepts (onTurn), and the gate and the
merge command admit a merge only when the record's latest counted on is
in that turn.

- F-T677-18, F-T677-25: the mode hook reads the record before Codex
  records the prompt; an on that joins a turn, or a turn that no person
  started, switches nothing, and the chief's note says why and how to send
  an on that counts. The gate's refusals say it too.
- F-T677-31: a turn that another agent's message started has that message
  as its opener, so a joined on never counts; trigger_turn true refuses.
- F-T677-32: the off line for a thread whose record sage cannot read fits
  a main thread.
- F-T677-26, F-T677-27: the version refusal says that a newer Codex waits
  until sage adds it; the missing Codex folder refusal uses plain words.
- F-T677-34: the gate's allow of the api.github.com network approval
  could never apply (the merge command uses the permit first): removed,
  and the guide says the owner may see one network prompt.
- F-T677-19, F-T677-28: guide texts for the Tab-queued on and the
  no-image rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@erickb336
erickb336 merged commit 5bc9422 into main Nov 8, 2026
1 check passed
@erickb336
erickb336 deleted the sage/t823-autopilot-followups branch November 8, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant