fix(server): Cursor threads in Auto use Cursor's Auto-review (#19712)
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
d2f2b7cdac
commit
2d94372376
2 files changed
+11
-1
No files matched your search
@@ -825,6 +825,16 @@ describe("CursorAdapterV2", () => {
|
||||
sandboxEnabled: true,
|
||||
},
|
||||
);
|
||||
assert.deepEqual(
|
||||
cursorRuntimeAgentPolicy({
|
||||
...base,
|
||||
runtimeMode: "auto",
|
||||
}),
|
||||
{
|
||||
autoReview: true,
|
||||
sandboxEnabled: true,
|
||||
},
|
||||
);
|
||||
assert.deepEqual(
|
||||
cursorRuntimeAgentPolicy({
|
||||
...base,
|
||||
|
||||
@@ -192,7 +192,7 @@ export function cursorRuntimeAgentPolicy(
|
||||
return {
|
||||
autoReview:
|
||||
runtimePolicy.approvalPolicy === undefined
|
||||
? runtimePolicy.runtimeMode === "approval-required"
|
||||
? runtimePolicy.runtimeMode === "approval-required" || runtimePolicy.runtimeMode === "auto"
|
||||
: runtimePolicy.approvalPolicy !== "never",
|
||||
sandboxEnabled:
|
||||
runtimePolicy.sandboxPolicy === undefined
|
||||
|
||||
Reference in new issue
Block a user