Text chat 12: fluxer-core attachments and uploads #262

Closed
opened 2026-11-12 11:07:38 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 12". Spec: docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md.

Task 12: fluxer-core attachments and uploads

Issue: #TBD

Files:

  • Modify: crates/fluxer-core/src/chat/uploads.rs, crates/fluxer-core/src/chat/composer.rs (send path with files; coordinate with Text chat 11 by touching only the send_with_files function it leaves as a stub)
  • Test: crates/fluxer-core/tests/chat_uploads.rs

Interfaces:

  • Produces: spec §6.2 "Uploads"; UploadRefusal::{TooLarge { max }, TooMany { max }, NoPermission} in app.chat.uploads.refusal for the modals; selectors::upload_tray(&App, channel) -> Vec<TrayItem { name, size, kind: FileKind, spoiler, description }>; selectors::upload_progress(&App, nonce) -> Option<f32>; the pending message carries its job's progress; UploadPath from WellKnown.features.presigned_attachment_uploads; long pasted text → FileSource::Text named message.txt; "Upload your message as a file" makes the draft a .txt; spoiler = SPOILER_ prefix + flag 8; failure keeps the files for "Try again"; cancel emits UploadCommand::Cancel.

  • Step 1: Write failing tests: size_limit_from_resolved_limits_and_premium, eleventh_file_refused, no_attach_permission_refused, spoiler_prefix_and_flag, tray_order_is_send_order, send_with_files_emits_upload_job_multipart, presigned_when_instance_says_so, progress_updates_pending_message, done_replaces_pending, failure_keeps_files_for_retry, cancel_emits_cancel_and_restores_draft, long_paste_becomes_message_txt, message_as_file.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): attachments and uploads.

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 12". Spec: `docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md`. ### Task 12: `fluxer-core` attachments and uploads **Issue:** #TBD **Files:** - Modify: `crates/fluxer-core/src/chat/uploads.rs`, `crates/fluxer-core/src/chat/composer.rs` (send path with files; coordinate with Text chat 11 by touching only the `send_with_files` function it leaves as a stub) - Test: `crates/fluxer-core/tests/chat_uploads.rs` **Interfaces:** - Produces: spec §6.2 "Uploads"; `UploadRefusal::{TooLarge { max }, TooMany { max }, NoPermission}` in `app.chat.uploads.refusal` for the modals; `selectors::upload_tray(&App, channel) -> Vec<TrayItem { name, size, kind: FileKind, spoiler, description }>`; `selectors::upload_progress(&App, nonce) -> Option<f32>`; the pending message carries its job's progress; `UploadPath` from `WellKnown.features.presigned_attachment_uploads`; long pasted text → `FileSource::Text` named `message.txt`; "Upload your message as a file" makes the draft a `.txt`; spoiler = `SPOILER_` prefix + flag 8; failure keeps the files for "Try again"; cancel emits `UploadCommand::Cancel`. - [ ] **Step 1: Write failing tests**: `size_limit_from_resolved_limits_and_premium`, `eleventh_file_refused`, `no_attach_permission_refused`, `spoiler_prefix_and_flag`, `tray_order_is_send_order`, `send_with_files_emits_upload_job_multipart`, `presigned_when_instance_says_so`, `progress_updates_pending_message`, `done_replaces_pending`, `failure_keeps_files_for_retry`, `cancel_emits_cancel_and_restores_draft`, `long_paste_becomes_message_txt`, `message_as_file`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): attachments and uploads`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-12 11:07:38 +00:00
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#262
No description provided.