PasteLongText should carry the pasted text, not file the whole draft #335

Closed
opened 2026-11-12 18:25:42 +00:00 by charles · 1 comment
Owner

Found in review of PR #311 (Text chat 12).

UserAction::PasteLongText { channel_id } carries no text, so fluxer-core moves the whole draft text into message.txt. The original client converts only the pasted part and leaves what was already typed in the composer. No text is lost (it ends up in the file), but the behaviour differs.

Fix: give PasteLongText the pasted text (a Task 10 port change), and have the UI (Text chat 25/26) emit it instead of letting the paste land in the draft.

Seen on commit 4705987 (textchat-12-core-uploads).

Found in review of PR #311 (Text chat 12). `UserAction::PasteLongText { channel_id }` carries no text, so `fluxer-core` moves the whole draft text into `message.txt`. The original client converts only the pasted part and leaves what was already typed in the composer. No text is lost (it ends up in the file), but the behaviour differs. Fix: give `PasteLongText` the pasted text (a Task 10 port change), and have the UI (Text chat 25/26) emit it instead of letting the paste land in the draft. Seen on commit 4705987 (`textchat-12-core-uploads`).
Author
Owner

Done on textchat (c24495a): the UI now turns only the pasted text into message.txt through AddFiles with FileSource::Text, and "the draft stays as it was" (composer/mod.rs:16-19). The PasteLongText variant is left over (event.rs:722)

Closed during the 2026-11-14 issue triage.

🤖 Generated with Claude Code

Done on `textchat` (c24495a): the UI now turns only the pasted text into `message.txt` through `AddFiles` with `FileSource::Text`, and "the draft stays as it was" (`composer/mod.rs:16-19`). The `PasteLongText` variant is left over (`event.rs:722`) Closed during the 2026-11-14 issue triage. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#335
No description provided.