fix(chat): hide raw permission metadata
Agent CI/CD / docker-image (push) Successful in 2m38s
Agent CI/CD / deploy-fallback-log (push) Has been skipped

This commit is contained in:
2026-06-08 20:12:08 +08:00
parent 60b9080c47
commit 8ed73b1da6
4 changed files with 20 additions and 6 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ describe("streamPromptResponse", () => {
request_id: "perm-1",
permission: "bash",
patterns: ["rm *"],
metadata: { command: "rm tmp.txt" },
target: "rm tmp.txt",
always: ["rm *"],
} satisfies Partial<PermissionRequestPayload>);
});
@@ -157,7 +157,7 @@ describe("streamPromptResponse", () => {
request_id: "perm-v2-1",
permission: "external_directory",
patterns: ["/tmp"],
metadata: { path: "/tmp" },
target: "/tmp",
always: ["/tmp"],
} satisfies Partial<PermissionRequestPayload>);
});