commit 502368c69ccfcc127307099ec726a6b3fcdc6221
parent 2196cb4745938cc7525bf3bbb6e46394c7f459a0
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 3 Nov 2026 01:24:04 -0500
umtool: the recording session keeps its 'kept' line after the take is made (the parts are the script's, not the post's recorded state)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/umtool/components/projects/RecordSession.tsx b/umtool/components/projects/RecordSession.tsx
@@ -53,7 +53,9 @@ export default function RecordSession({ project, items: initial, start, box }: {
const parts: Part[] = useMemo(() => {
const ph = item.placeholder?.parts ?? [];
return ph.length ? ph : scriptParts(item.script).map((p) => ({ n: p.n, para: p.para, text: p.text }));
- }, [item]);
+ // The post's script and placeholder, not its recorded state: a take made does not re-split it (nor clear the status).
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [item.id, item.placeholder, item.script]);
const [session, setSession] = useState<Session>({ count: null, parts: {} });
const [cur, setCur] = useState(0);
const [phase, setPhase] = useState<"idle" | "count" | "recording" | "saving" | "finishing">("idle");