Skip to content

Commit f032a42

Browse files
committed
fix: set default sparkEnabled to false for unknown accounts
The fallback default account in session context had sparkEnabled: true, which contradicts the new whitelist-only-for-pro policy introduced in readCodexAccountSnapshot. When account/read fails during session startup, the stale default would incorrectly allow spark model access for users without a confirmed pro plan.
1 parent eb08936 commit f032a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/codexAppServerManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ export class CodexAppServerManager extends EventEmitter<CodexAppServerManagerEve
480480
account: {
481481
type: "unknown",
482482
planType: null,
483-
sparkEnabled: true,
483+
sparkEnabled: false,
484484
},
485485
child,
486486
output,

0 commit comments

Comments
 (0)