Repository navigation
fix(server): Codex full access no longer asks before dangerous commands - #206
Merged
Merged
Conversation
A full-access Codex turn gets a command approval request for `rm -rf`. The adapter must answer `accept` on the wire and open no pending runtime request. It fails on main: the request stays pending. Early port of the test of upstream pingdotgg#37306 (head 8c549d9), with one more assertion: no pending request was recorded before the turn ended. Drop it for upstream's final code when upstream merges it. Co-Authored-By: Julius Marminge <julius0216@outlook.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex asks before a command it finds dangerous, such as `rm -rf`, under every approval policy except `never`. T3 sends a granular policy in full access, so these prompts reached the user, and threads an agent started stopped until a person answered. In full access with no explicit approval policy, the Codex adapter now answers every command approval request `accept` itself; in that mode Codex asks only before commands it finds dangerous. An explicit approval policy, and every other mode, still asks. Early port of upstream pingdotgg#37306 (head 8c549d9). Drop it for upstream's final code when upstream merges it. Co-Authored-By: Julius Marminge <julius0216@outlook.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
orbitingflea
added a commit
that referenced
this pull request
Nov 23, 2026
Resolve the 24 conflicts of commit A (1640512) and fix the breaks the merge brought. - Keep both sides in the server, settings, file preview and adapter conflicts; the fork's change sits on upstream's code. - Drop the fork's early port of Codex full-access approvals (#206): upstream shipped its own fix (pingdotgg#40773). - Re-port the fork's chat Markdown changes onto upstream's Words renderer (pingdotgg#27866) through apps/web/src/fork/forkMarkdown.ts and hooks in wordsHast.ts: single tilde in agent text, CJK bold, CJK link ends, board links, \eps in math, the Dashboard renderer; the sanitizer's board and t3-dashboard protocols move to markdownHast.ts. - Keep the per-attempt checkpoint capture key under upstream's capture lock (pingdotgg#31349); the fork test now models the order the lock allows. - Upstream's virtualized Markdown list (pingdotgg#40631) keeps no reading place for now: the fork's binding for it is dropped and will be rebuilt (#264). The fork's panel test follows upstream's routing of large text files. - Workflow agent links decode the run-result shape of t3_thread_send; the fork's CLI commands join upstream's feedback command list; fork tests mock upstream's new services; agent context budget 67360. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orbitingflea
added a commit
that referenced
this pull request
Nov 23, 2026
Resolve the 24 conflicts of commit A (1640512) and fix the breaks the merge brought. - Keep both sides in the server, settings, file preview and adapter conflicts; the fork's change sits on upstream's code. - Drop the fork's early port of Codex full-access approvals (#206): upstream shipped its own fix (pingdotgg#40773). - Re-port the fork's chat Markdown changes onto upstream's Words renderer (pingdotgg#27866) through apps/web/src/fork/forkMarkdown.ts and hooks in wordsHast.ts: single tilde in agent text, CJK bold, CJK link ends, board links, \eps in math, the Dashboard renderer; the sanitizer's board and t3-dashboard protocols move to markdownHast.ts. - Keep the per-attempt checkpoint capture key under upstream's capture lock (pingdotgg#31349); the fork test now models the order the lock allows. - Upstream's virtualized Markdown list (pingdotgg#40631) keeps no reading place for now: the fork's binding for it is dropped and will be rebuilt (#264). The fork's panel test follows upstream's routing of large text files. - A text file past the 1 MB read now downloads in full in the source view (pingdotgg#40631); the fork's source restore lands again when the text grows, unless the reader scrolled, so a saved line past the first megabyte is reached. - Workflow agent links decode the run-result shape of t3_thread_send; the fork's CLI commands join upstream's feedback command list; fork tests mock upstream's new services; agent context budget 67360. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orbitingflea
added a commit
that referenced
this pull request
Nov 23, 2026
Resolve the 24 conflicts of commit A (1640512) and fix the breaks the merge brought. - Keep both sides in the server, settings, file preview and adapter conflicts; the fork's change sits on upstream's code. - Drop the fork's early port of Codex full-access approvals (#206): upstream shipped its own fix (pingdotgg#40773). - Re-port the fork's chat Markdown changes onto upstream's Words renderer (pingdotgg#27866) through apps/web/src/fork/forkMarkdown.ts and hooks in wordsHast.ts: single tilde in agent text, CJK bold, CJK link ends, board links, \eps in math, the Dashboard renderer; the sanitizer's board and t3-dashboard protocols move to markdownHast.ts. - Keep the per-attempt checkpoint capture key under upstream's capture lock (pingdotgg#31349); the fork test now models the order the lock allows. - Upstream's virtualized Markdown list (pingdotgg#40631) keeps no reading place for now: the fork's binding for it is dropped and will be rebuilt (#264). The fork's panel test follows upstream's routing of large text files. - A text file past the 1 MB read now downloads in full in the source view (pingdotgg#40631); the fork's source restore lands again when the text grows, unless the reader scrolled or typed, so a saved line past the first megabyte is reached; a line link that stopped short at the end of the text so far is shown once its line arrives. - Workflow agent links decode the run-result shape of t3_thread_send; the fork's CLI commands join upstream's feedback command list; fork tests mock upstream's new services; agent context budget 67360. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orbitingflea
added a commit
that referenced
this pull request
Nov 23, 2026
Resolve the 24 conflicts of commit A (1640512) and fix the breaks the merge brought. - Keep both sides in the server, settings, file preview and adapter conflicts; the fork's change sits on upstream's code. - Drop the fork's early port of Codex full-access approvals (#206): upstream shipped its own fix (pingdotgg#40773). - Re-port the fork's chat Markdown changes onto upstream's Words renderer (pingdotgg#27866) through apps/web/src/fork/forkMarkdown.ts and hooks in wordsHast.ts: single tilde in agent text, CJK bold, CJK link ends, board links, \eps in math, the Dashboard renderer; the sanitizer's board and t3-dashboard protocols move to markdownHast.ts. - Keep the per-attempt checkpoint capture key under upstream's capture lock (pingdotgg#31349); the fork test now models the order the lock allows. - Upstream's virtualized Markdown list (pingdotgg#40631) keeps no reading place for now: the fork's binding for it is dropped and will be rebuilt (#264). The fork's panel test follows upstream's routing of large text files. - Workflow agent links decode the run-result shape of t3_thread_send; the fork's CLI commands join upstream's feedback command list; fork tests mock upstream's new services; agent context budget 67360. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
orbitingflea
added a commit
that referenced
this pull request
Nov 23, 2026
Resolve the 24 conflicts of commit A (1640512) and fix the breaks the merge brought. - Keep both sides in the server, settings, file preview and adapter conflicts; the fork's change sits on upstream's code. - Drop the fork's early port of Codex full-access approvals (#206): upstream shipped its own fix (pingdotgg#40773). - Re-port the fork's chat Markdown changes onto upstream's Words renderer (pingdotgg#27866) through apps/web/src/fork/forkMarkdown.ts and hooks in wordsHast.ts: single tilde in agent text, CJK bold, CJK link ends, board links, \eps in math, the Dashboard renderer; the sanitizer's board and t3-dashboard protocols move to markdownHast.ts. - CheckpointCaptureService takes upstream's commit id: pingdotgg#31349's lock and reread let only one attempt of a run commit a capture. Commit A keeps the per-attempt queued capture effect id; the fork steer test pins it and now models the order the lock allows. - Upstream's virtualized Markdown list (pingdotgg#40631) keeps no reading place for now: the fork's binding for it is dropped and will be rebuilt (#264). README notes this and the 1-64 MB text files loaded in parts. The fork's panel test follows upstream's routing of large text files. - Workflow agent links decode the run-result shape of t3_thread_send; the fork's CLI commands join upstream's feedback command list; fork tests mock upstream's new services; agent context budget 67360. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request makes T3 answer Codex's dangerous-command prompts itself in Full access, so threads that agents start no longer stop on an approval card.
改了什么行为
Behaviour change: yes, in a Codex thread in Full access, a command that Codex finds dangerous, such as
rm -rf, now runs without an approval card; before, the thread waited until a person approved it.Why
Full access sends Codex a granular approval policy since upstream pingdotgg#37104, and under it Codex still asks before commands it finds dangerous. So delegated Codex reviewers that clean up a temporary folder waited for a person.
This is an early port of upstream pingdotgg#37306, which the upstream maintainers keep for this bug. When upstream merges its own version, the catch-up takes upstream's code.
Checks
rm -rf "$(mktemp -d)": on main it waited for an answer; with the fix it finished with no approval request, and T3 answeredaccept.How to undo
Revert both commits. No stored data changes.