cliclaw 1.0.40 → 1.0.41
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 +2 -1
package/package.json
CHANGED
package/src/agents/codex.ts
CHANGED
|
@@ -138,7 +138,8 @@ function handleProtoEvent(ps: ProtoSession, obj: any) {
|
|
|
138
138
|
|
|
139
139
|
const respond = (decision: string) => {
|
|
140
140
|
if (decision === 'approved_for_session') ps.sessionApproved = true
|
|
141
|
-
|
|
141
|
+
// Codex looks up pending approvals by op.sub_id; op.id is the outer correlation UUID
|
|
142
|
+
const op: Record<string, unknown> = { type: 'exec_approval', id: msgId, sub_id: approvalId, decision }
|
|
142
143
|
if (turnId) op.turn_id = turnId
|
|
143
144
|
console.log(`[Codex approval] enviando: ${JSON.stringify({ id: '...', op })}`)
|
|
144
145
|
try {
|