Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(server): Codex full access no longer asks before dangerous commands
#37306
Send to my agent
Closed
juliusmarminge
wants to merge 3 commits into
main
from
refs/pull/37306/head
·
opened
2 weeks ago
View on GitHub
Conversation
10
Commits
3
Files changed
2
Impact
Showing
2 changed files
with
85 additions
and
0 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
76 additions and 0 deletions
+76
-0
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts
View file
Expand up
Show all 1,744 lines
@@ -1745,6 +1745,82 @@
1745
1745
),
1746
1746
);
1747
1747
1748
+
it.
effect
(
"accepts dangerous-command approvals in full-access without asking"
, () =>
1749
+
Effect
.
gen
(
function
* () {
1750
+
const
nativeThreadId =
"command-approval-thread"
;
1751
+
const
nativeTurnId =
"command-approval-turn"
;
1752
+
const
prompt =
"Clean node_modules."
;
1753
+
const
pending =
yield
*
Queue
.
unbounded
<
OrchestrationV2RuntimeRequest
>();
1754
+
const
harness =
yield
*
makeCodexReplayHarness
(
1755
+
makeCodexReplayTranscript
({
1756
+
scenario
:
"full-access-command-approval"
,
1757
+
entries
: [
1758
+
...codexReplayPreamble({ nativeThreadId, nativeTurnId, prompt }),
1759
+
{
1760
+
type
:
"emit_inbound"
,
1761
+
frame
: {
1762
+
id
:
0
,
1763
+
method
:
"item/commandExecution/requestApproval"
,
1764
+
params
: {
1765
+
threadId
: nativeThreadId,
1766
+
turnId
: nativeTurnId,
1767
+
itemId
:
"exec-rm"
,
1768
+
command
:
"/bin/bash -lc 'rm -rf ./node_modules'"
,
1769
+
startedAtMs
:
0
,
1770
+
},
1771
+
},
1772
+
},
1773
+
{
type
:
"expect_outbound"
,
frame
: {
id
:
0
,
result
: {
decision
:
"accept"
} } },
Home
Search
Explore
Menu