fix(tui): key form prompt by id

This commit is contained in:
Aiden Cline 2026-07-03 18:01:25 -05:00
commit 4346bde102

View file

@ -950,7 +950,10 @@ export function Session() {
</Match> </Match>
<Match when={forms().length > 0}> <Match when={forms().length > 0}>
<Show when={forms()[0]?.id} keyed> <Show when={forms()[0]?.id} keyed>
{() => <Show when={forms()[0]}>{(form) => <FormPrompt form={form()} />}</Show>} {(_) => {
const form = forms()[0]
return form ? <FormPrompt form={form} /> : null
}}
</Show> </Show>
</Match> </Match>
<Match when={composer.open || !!session()?.parentID}>{null}</Match> <Match when={composer.open || !!session()?.parentID}>{null}</Match>