{/* Chevron at top - the "handle" for the drawer */}
showHistory.get())}
loading={omnibot.pending}
onct-toggle={toggle({ value: showHistory })}
/>
{
const show = showHistory.get();
return `flex: ${
show ? "1" : "0"
}; min-height: 0; display: flex; flex-direction: column; opacity: ${
show ? "1" : "0"
}; max-height: ${
show ? "480px" : "0"
}; overflow: hidden; transition: opacity 300ms ease, max-height 400ms cubic-bezier(0.34, 1.56, 0.64, 1), flex 400ms cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: ${
show ? "auto" : "none"
};`;
})}
>
{omnibot.ui.attachmentsAndTools}
{omnibot.ui.chatLog}
{ifElse(
computed(() => {
const show = showHistory.get();
const dismissedIdx = peekDismissedIndex.get();
return !show && latestAssistantMessage &&
assistantMessageCount !== dismissedIdx;
}),
,
null,
)}
{/* Prompt input - always at bottom */}
{omnibot.ui.promptInput}