Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: add rtc feature-flag in Labs UI (#4867)

Myles Scolnick808446ff460b
diff --git a/frontend/src/components/app-config/user-config-form.tsx b/frontend/src/components/app-config/user-config-form.tsx
index 4e8ecf9b61..3ecb0ec73c 100644
--- a/frontend/src/components/app-config/user-config-form.tsx
+++ b/frontend/src/components/app-config/user-config-form.tsx
@@ -1314,6 +1314,30 @@ export const UserConfigForm: React.FC = () => {
</div>
)}
/>
+ <FormField
+ control={form.control}
+ name="experimental.rtc_v2"
+ render={({ field }) => (
+ <div className="flex flex-col gap-y-1">
+ <FormItem className={formItemClasses}>
+ <FormLabel className="font-normal">
+ Real-Time Collaboration
+ </FormLabel>
+ <FormControl>
+ <Checkbox
+ data-testid="rtc-checkbox"
+ checked={field.value === true}
+ onCheckedChange={field.onChange}
+ />
+ </FormControl>
+ </FormItem>
+ <FormDescription>
+ Enable experimental real-time collaboration. This change
+ requires a page refresh to take effect.
+ </FormDescription>
+ </div>
+ )}
+ />
</SettingGroup>
);
}