mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-03 09:37:19 +01:00
fix(runner): separate Codex approvals from questions
This commit is contained in:
1 parent
6d199c4c61
commit
2abaf1f3ad
2 files changed
+16
No files matched your search
@@ -136,6 +136,13 @@ test("the Codex patch enforces isolated instructions, tools, and skills", () =>
|
||||
}
|
||||
});
|
||||
|
||||
test("the Codex patch keeps MCP tool approvals on the governed permission channel", () => {
|
||||
assert.match(
|
||||
codexPatch,
|
||||
/!context\.isToolApproval && this\.shouldUseAcpElicitation\(params\)/,
|
||||
);
|
||||
});
|
||||
|
||||
test("the Claude patch removes ambient project and local configuration", () => {
|
||||
for (const token of [
|
||||
"PAPERCLIP_ACPX_ISOLATED_CONTEXT",
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
diff --git a/dist/index.js b/dist/index.js
|
||||
--- a/dist/index.js
|
||||
+++ b/dist/index.js
|
||||
@@ -25341,7 +25341,7 @@
|
||||
async handleElicitation(params) {
|
||||
try {
|
||||
const context = this.createMcpElicitationContext(params);
|
||||
- if (this.shouldUseAcpElicitation(params)) {
|
||||
+ if (!context.isToolApproval && this.shouldUseAcpElicitation(params)) {
|
||||
const response2 = await this.connection.request(
|
||||
methods.client.elicitation.create,
|
||||
this.buildElicitationRequest(params, context),
|
||||
@@ -25563,7 +25563,7 @@
|
||||
toolCall: {
|
||||
toolCallId: context.correlatedCallId,
|
||||
|
||||
Reference in new issue
Block a user