{
const el = scroller.current;
if (!el) return;
stickToBottom.current = el.scrollHeight - el.scrollTop - el.clientHeight < 96;
}}
>
{active && transcript.length === 0 && !typing ? (
{format("startWorkWith", { name: active.name })}
{active.description || t.startWorkHint}
) : null}
{working && active ? (
{activityState === "queued" ? t.queuedWork : format("workingWith", { name: active.name })}
{liveStep ? {liveStep} : null}
) : null}
{error ?
{error}
: null}
{activityState === "unknown" ?
{t.activityUnknown}
: null}
{handover && question ? (
{t.handoverTitle}
{question.prompt}
{question.site_url ? {question.site_url}
: null}
{t.handoverHint}
{question.surface === "local_browser" ? {t.handoverLocal}
: !overlayOpen ? {frame}
: null}
{computerStatus && !computerReady ? {computerStatus}
: null}
{question.surface !== "local_browser" ? : null}
{question.task_id && question.question_id
?
: }
) : question ? (
{question.prompt}
{question.options.map((option) => (
))}
) : null}
{executionDetails.length ?
{t.executionDetails}
{executionDetails.join("\n")} : null}