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.

Disable RTC experimental flag (#3942)

Akshay Agrawale4e20fb78004
diff --git a/frontend/src/components/app-config/user-config-form.tsx b/frontend/src/components/app-config/user-config-form.tsx
index bc44a7174a..a579723927 100644
--- a/frontend/src/components/app-config/user-config-form.tsx
+++ b/frontend/src/components/app-config/user-config-form.tsx
@@ -1092,34 +1092,6 @@ export const UserConfigForm: React.FC = () => {
</div>
)}
/>
- {!isWasm() && (
- <FormField
- control={form.control}
- name="experimental.rtc"
- 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 to allow
- editing cell inputs by multiple users. This experimental
- feature has known issues, including duplication of code.
- Requires refreshing the page to take effect.
- </FormDescription>{" "}
- </div>
- )}
- />
- )}
</SettingGroup>
);
}
diff --git a/frontend/src/core/config/feature-flag.tsx b/frontend/src/core/config/feature-flag.tsx
index 525967c994..ff3af7d933 100644
--- a/frontend/src/core/config/feature-flag.tsx
+++ b/frontend/src/core/config/feature-flag.tsx
@@ -26,6 +26,11 @@ const defaultValues: ExperimentalFeatures = {
export function getFeatureFlag<T extends keyof ExperimentalFeatures>(
feature: T,
): ExperimentalFeatures[T] {
+ // Disable "rtc", regardless of the user's configuration, until
+ // it is more stable.
+ if (feature === "rtc") {
+ return false;
+ }
return (
(getResolvedMarimoConfig().experimental?.[
feature