cliclaw 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/agents/codex.ts +1 -8
package/package.json
CHANGED
package/src/agents/codex.ts
CHANGED
|
@@ -121,13 +121,6 @@ function handleProtoEvent(ps: ProtoSession, obj: any) {
|
|
|
121
121
|
|
|
122
122
|
if (msg?.type === 'session_configured') {
|
|
123
123
|
ps.sessionId = msg.session_id ?? ''
|
|
124
|
-
// Ask codex to route exec approvals to us instead of auto-approving
|
|
125
|
-
try {
|
|
126
|
-
ps.proc.stdin!.write(JSON.stringify({
|
|
127
|
-
id: 'cfg-approval',
|
|
128
|
-
op: { type: 'configure', config: { approval_policy: 'user_approval' } },
|
|
129
|
-
}) + '\n')
|
|
130
|
-
} catch {}
|
|
131
124
|
return
|
|
132
125
|
}
|
|
133
126
|
|
|
@@ -139,7 +132,7 @@ function handleProtoEvent(ps: ProtoSession, obj: any) {
|
|
|
139
132
|
try {
|
|
140
133
|
ps.proc.stdin!.write(JSON.stringify({
|
|
141
134
|
id: randomUUID(),
|
|
142
|
-
op: { type: '
|
|
135
|
+
op: { type: 'exec_approval', call_id: callId, approved },
|
|
143
136
|
}) + '\n')
|
|
144
137
|
} catch {}
|
|
145
138
|
}
|