commit 87c352d979b0979e168bf68944383f7c8b060ff8
parent 91525981661484ea71ae0ebeaacde3bd8bd153e1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 2 Nov 2026 00:52:27 -0500
editor ChannelForm: the two Rumble-defaults Fragments get keys of their own (args-, cookies-) -- two siblings sharing one key left a stale Extra yt-dlp args box behind when a new channel turned Rumble (forms-keep-input.spec:239)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/editor/app/channels/components/ChannelForm.tsx b/editor/app/channels/components/ChannelForm.tsx
@@ -231,7 +231,8 @@ export function ChannelForm({
const isWaybackPages = isEdit ? c?.platform === "webpage" : platform === "webpage";
// A new Rumble channel shows Rumble's cookie and impersonation defaults
// (lib/rumbleDefaults.ts) pre-filled; the fields below are remounted when
- // this flips so the box shows what it would save. Edit mode shows the stored
+ // this flips so the box shows what it would save (each Fragment its own key:
+ // two siblings sharing one leave a stale copy behind). Edit mode shows the stored
// config as it is.
const isRumbleNew = !isEdit && (platform === "rumble" || (platform === "" && detectPlatform(url) === "rumble"));
const rumbleKey = isRumbleNew ? "rumble-defaults" : "plain";
@@ -955,7 +956,7 @@ export function ChannelForm({
</>
)}
<CollapsibleSection title="Advanced">
- <Fragment key={rumbleKey}>
+ <Fragment key={`args-${rumbleKey}`}>
<label className="flex flex-col gap-1 text-sm">
<span className="font-medium">
Extra yt-dlp args
@@ -1090,7 +1091,7 @@ export function ChannelForm({
placeholder="(not a mirror)"
hint="For a channel that copies another creator's streams: the creator's channels here, by slug, separated by commas. The channel page then has a Mirror stage, where a scan pairs each video with the creator's and says which are the only copy left."
/>
- <Fragment key={rumbleKey}>
+ <Fragment key={`cookies-${rumbleKey}`}>
<Field
label="Cookies from browser"
name="cookiesFromBrowser"