Commit Graph
4 Commits
Author SHA1 Message Date
Alessandro Frau be1e3afca2 Guide new users to model setup in the welcome composer
Show "Ask anything to set up your models, or click Settings" when Welcome reports missing API credentials. Reuse the existing banner state so the hint updates after setup without adding a readiness request.

Preserve the usual welcome, chat and queue placeholders. Add regression coverage for missing credentials and the return to the normal placeholder, and document the behavior.

Validation: 20 focused tests passed. Visual verification was blocked by browser-tool errors; the full suite was not run.
2026-11-16 19:37:55 +01:00
Alessandro b03ecc0846 Serialize Welcome chat creation and first send
Latch composer sends before creating the first chat so rapid Enter presses or Send clicks cannot create multiple contexts or dispatch the same prompt repeatedly. Keep the latch through dispatch, suppress repeated primary-button actions, and release it after success or failure.

Validation: 11 focused composer and model-gate tests passed. Live Docker WebUI stress checks produced one chat and one dispatch for six Welcome Enter presses and six Send clicks; eight Enter presses in an existing chat produced one dispatch.
2026-10-13 23:31:05 +02:00
Alessandro 7533d35e4f Fix mobile composer and welcome sizing
Let the contenteditable composer grow within its CSS bounds instead of
retaining measured pixel heights. Keep welcome controls on one row, reduce
the mobile placeholder font while preserving 16px input text, and use flex
layout for welcome action buttons.

Extend the draft regression to cover natural editor sizing and document
the layout contracts. Seven focused tests pass; browser checks cover
320px through desktop widths, multiline input, code blocks, and the
full-screen editor round trip.
2026-09-23 14:07:35 +02:00
Alessandro 7eb819731c Preserve per-chat composer drafts
Store unsent composer text per chat in session storage and restore it when switching contexts or refreshing the page.

Keep the Welcome composer prompt intact when its first send creates a chat, and cover the behavior with a focused Node regression.
2026-08-19 12:28:42 +02:00