Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(grok): Supervised asks and Always allow works #6626

Closedmbrow190(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/6626/headopened View on GitHub

Showing 6 changed files with 169 additions and 30 deletions (loading 4).

x
0 of 6 viewed, 6 left
46 additions and 29 deletionsapps/server/scripts/acp-mock-agent.tsModified
View file
@@ -45,6 +45,11 @@
allowAlways: process.env.T3_ACP_ALLOW_ALWAYS_OPTION_ID ?? "allow-always",
rejectOnce: process.env.T3_ACP_REJECT_ONCE_OPTION_ID ?? "reject-once",
};
+const omitAllowAlways = process.env.T3_ACP_OMIT_ALLOW_ALWAYS === "1";
+const permissionRequestCount = Math.max(
+ 1,
+ Number(process.env.T3_ACP_PERMISSION_REQUEST_COUNT ?? "1") || 1,
+);
const sessionId = "mock-session-1";
​
let currentModeId = "ask";
@@ -656,37 +661,49 @@
});
​
- const permission = yield* agent.client.requestPermission({
- sessionId: requestedSessionId,
- toolCall: {
- toolCallId,
- title: "`cat server/package.json`",
- kind: "execute",
- status: "pending",
- content: [
- {
- type: "content",
- content: {
- type: "text",
- text: "Not in allowlist: cat server/package.json",