Skip to content

Commit 96a15dd

Browse files
committed
test(pairing): pin approval pass limit
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
1 parent 8611db2 commit 96a15dd

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

test/sandbox-connect-inference/auto-pair-approval.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ describe("sandbox connect auto-pair approval pass (#4263)", () => {
118118
// counter increments), so they do not consume the bounded approval
119119
// budget (#4504). They are ordered first here to prove the rejection path
120120
// runs. The initial CLI pairing and its write-scope upgrade are then both
121-
// approved, while the trailing duplicate is never reached.
121+
// approved, while the trailing distinct request proves the two-approval
122+
// cap stops the pass.
122123
const run = runApprovalPassScript(script, [
123124
{
124125
requestId: "admin-cli",
@@ -151,10 +152,10 @@ describe("sandbox connect auto-pair approval pass (#4263)", () => {
151152
scopes: ["operator.pairing", "operator.write"],
152153
},
153154
{
154-
requestId: "cli-write-upgrade",
155-
clientId: "cli",
156-
clientMode: "cli",
157-
scopes: ["operator.pairing", "operator.write"],
155+
requestId: "later-webchat-upgrade",
156+
clientId: "openclaw-control-ui",
157+
clientMode: "webchat",
158+
scopes: ["operator.read", "operator.write"],
158159
},
159160
]);
160161

0 commit comments

Comments
 (0)