Skip to content

Keep Codex app-server alive across permission-only changes - #4926

Merged
ymichael merged 1 commit into
mainfrom
bb/codex-no-app-server-rebuild-on-permission-follow-thr_nt329xx2yd
Oct 5, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/codex-no-app-server-rebuild-on-permission-follow-thr_nt329xx2yd

Conversation

@ymichael

@ymichael ymichael commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Codex permission settings were part of the bridge construction signature. Permission-only follow-ups rebuilt the app-server despite Codex supporting per-turn overrides. Initial compaction also left tracked turn permissions unset, so a later permission-changing steer could skip the interrupt comparison.

What changed

Remove approval policy, reviewer, and sandbox from the construction signature while retaining other rebuild triggers. Seed tracked permissions during construction, including activated git roots. Preserve interrupt-and-wait before permission-changing steers start another turn on the same process. No server/daemon wire, SDK, CLI, or database changes.

How you verified

  • Actual built BB CLI → isolated pnpm start:worktree server → daemon → real Codex 0.160.0/gpt-5.5: Accept-edits → Full → Accept-edits follow-ups and both active sleep-turn steer directions. Native app-server PID 85274 remained constant; opaque probe outputs and actual sibling files showed DENIED/WROTE/DENIED/WROTE/DENIED. Both steers sent turn/interrupt then turn/start; zero session/replaced notifications.
  • Turbo plugin test/lint/typecheck: 337 tests passed; final 11 session-signature tests and static checks passed after test cleanup. Ordinary replacement regressions fail against baseline; initial-compaction coverage uses a fake app-server.
  • Unchanged-permission steer through the same product path sent only turn/steer and denied the outside write. Changing reasoning low to medium retained the intentional construction restart: session/replaced and native PID 50563.
  • Final-head hosted CI: 31 checks passed, 3 skipped, none failed or pending.
  • Recorded Codex parity: 15 passed, one skipped, one failed for a stale Provider plugins: one API for Codex, Claude Code, pi, and ACP agents #2325 activityIntents allowlist entry (no old/new difference reported). This remains a verification limitation.
  • Product-path compaction attempt: a never-started pending thread rejects compact with HTTP 409. After session release/resume, first-operation compaction runs, but BB queues a requested permission-changing steer as thread-busy; compaction completes normally before the queued follow-up. Real compaction interruption is therefore blocked by the existing dispatch path and is not claimed verified.

Correction on enforcement scope: restricted turns in the actual CLI matrix used workspaceWrite/on-request/user (BB Accept-edits, user reviewer, escalation ask), with prompts requesting no escalation; they did not use a never/deny approval policy. Michael’s Approve for me (auto preset) used workspaceWrite/on-request/auto_review and approved his explicit outside write. An additional actual-BB user-review control requested escalation, was denied via BB CLI, and left the target absent. Sandbox selection alone does not imply every outside write must fail.

Required verification gap: real-provider initial compaction permission-changing interruption remains harness-covered only. No merge requested.

AGENT GENERATED

@ymichael
ymichael marked this pull request as ready for review October 5, 2026 19:15
@ymichael
ymichael merged commit 95750b8 into main Oct 5, 2026
34 checks passed
@ymichael
ymichael deleted the bb/codex-no-app-server-rebuild-on-permission-follow-thr_nt329xx2yd branch October 5, 2026 19:22
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