server auth stuff, prooompt engineering

This commit is contained in:
2026-03-31 15:29:47 +02:00
parent c5b3ee3875
commit ead9548744
6 changed files with 29 additions and 28 deletions

View File

@@ -59,7 +59,7 @@ export default function ChatInterface({ sessionId }: ChatInterfaceProps) {
})
const handleSend = () => {
const text = input.trim()
if (!text || status != 'ready') return
if (!text || status != 'ready' || sessionId == undefined) return
setInput('')
sendMessage({ text })
addMessage({
@@ -140,7 +140,7 @@ export default function ChatInterface({ sessionId }: ChatInterfaceProps) {
<div className='flex flex-col gap-2'>
<Button
onClick={handleSend}
disabled={status != "ready" || !input.trim()}
disabled={status != "ready" || !input.trim() || sessionId == undefined}
>
Send
</Button>