fix(server): enable the Cursor provider by default like every other provider (#7089)

This commit is contained in:
Rishet11 authored and GitHub committed 2026-08-20 17:13:22 -04:00
1 parent 5ff5f735e5
commit 730ce9edd9
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -136,6 +136,14 @@ describe("ServerSettings.providerInstances (slice-2 invariant)", () => {
expect(decoded.providers.codex.enabled).toBe(true);
});
it("enables every built-in provider by default", () => {
const decoded = decodeServerSettings({});
expect(decoded.providers.cursor.enabled).toBe(true);
expect(decoded.providers.claudeAgent.enabled).toBe(true);
expect(decoded.providers.grok.enabled).toBe(true);
expect(decoded.providers.opencode.enabled).toBe(true);
});
it("decodes a multi-instance map mixing first-party and fork drivers", () => {
const decoded = decodeServerSettings({
providerInstances: {
+1 -1
View File
@@ -410,7 +410,7 @@ export const CursorSettings = makeProviderSettingsSchema(
// Off by default (like Grok and OpenCode): the binding is not yet
// stable enough to probe on every install. Users opt in from Settings.
enabled: Schema.Boolean.pipe(
Schema.withDecodingDefault(Effect.succeed(false)),
Schema.withDecodingDefault(Effect.succeed(true)),
Schema.annotateKey({ providerSettingsForm: { hidden: true } }),
),
binaryPath: makeBinaryPathSetting("cursor-agent").pipe(