create-loopengine 0.1.70 → 0.1.71
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
CHANGED
|
@@ -135,6 +135,7 @@ import {
|
|
|
135
135
|
type DecisionOutcome,
|
|
136
136
|
type MessagingDeps,
|
|
137
137
|
handleMessagingAction,
|
|
138
|
+
describeChange,
|
|
138
139
|
openSlackAnswerModal,
|
|
139
140
|
parseSlackInteraction,
|
|
140
141
|
replyInSlack,
|
|
@@ -2296,8 +2297,10 @@ async function resolvePendingApproval(res: ServerResponse, pendingId: string, bo
|
|
|
2296
2297
|
// The agent's own history still shows the arguments it asked
|
|
2297
2298
|
// for, so say when the approver changed them; otherwise its
|
|
2298
2299
|
// reply describes what it asked for, not what ran.
|
|
2299
|
-
const
|
|
2300
|
-
const content =
|
|
2300
|
+
const changes = editedArgs ? describeChange(item.args, editedArgs) : []
|
|
2301
|
+
const content = changes.length
|
|
2302
|
+
? `A person approved this call after changing its arguments (${changes.join('; ')}). It ran with ${JSON.stringify(editedArgs)}. Result: ${JSON.stringify(output)}`
|
|
2303
|
+
: JSON.stringify(output)
|
|
2301
2304
|
resultBlock = { type: 'tool_result', tool_use_id: item.toolUseId, content, is_error: false }
|
|
2302
2305
|
} catch (err) {
|
|
2303
2306
|
resultBlock = { type: 'tool_result', tool_use_id: item.toolUseId, content: `ERROR: ${err}`, is_error: true }
|