Chat composer: one draft is shared by every conversation #1879

Closed
opened 2026-11-12 10:31:54 +00:00 by sam · 1 comment
Owner

composerText in ui/src/chat/state.ts is one module-level value, so a half-written message follows the operator into another session and can be sent to the wrong conversation.

Wanted: keep the draft per session (in memory is enough).

Done when switching sessions shows each session's own draft, and sending clears only that session's draft.

`composerText` in `ui/src/chat/state.ts` is one module-level value, so a half-written message follows the operator into another session and can be sent to the wrong conversation. Wanted: keep the draft per session (in memory is enough). Done when switching sessions shows each session's own draft, and sending clears only that session's draft.
sam added the bugmedium labels 2026-11-12 10:31:54 +00:00
Author
Owner

Fixed by 5a98c313 (per-session drafts). composerText in ui/src/chat/state.ts reads and writes drafts[currentSession], so each conversation keeps its own draft and clearing after send empties only the open conversation's. Checked against HEAD by reading; no further change.

Fixed by 5a98c313 (per-session drafts). composerText in ui/src/chat/state.ts reads and writes drafts[currentSession], so each conversation keeps its own draft and clearing after send empties only the open conversation's. Checked against HEAD by reading; no further change.
sam closed this issue 2026-11-13 13:05:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1879