fluxer-api: soundboard sound upload body (the audio file) reaches the --record observer #398

Open
opened 2026-11-13 02:36:17 +00:00 by charles · 0 comments
Owner

ApiClient::create_soundboard_sound (crates/fluxer-api/src/soundboard.rs) sends the sound file as a base64 data: URI in the JSON body through the observed client, so with --record the whole audio file lands in the recording. The text chat Global Constraints say no file content in logs or --record output; uploads, stream previews, group DM icons and (since Text chat 55) entrance-sound uploads all go through self.unobserved().

Steps: run the app with --record, upload a soundboard sound; the recorded POST /guilds/{id}/soundboard-sounds exchange contains the sound field with the file.

Fix: self.unobserved().execute_json(...) in create_soundboard_sound, plus a test like entrance_upload_is_not_shown_to_the_observer in crates/fluxer-api/tests/voice.rs.

Seen on origin/textchat 6113a8e (found while doing Text chat 55, #384).

`ApiClient::create_soundboard_sound` (`crates/fluxer-api/src/soundboard.rs`) sends the sound file as a base64 `data:` URI in the JSON body through the observed client, so with `--record` the whole audio file lands in the recording. The text chat Global Constraints say no file content in logs or `--record` output; uploads, stream previews, group DM icons and (since Text chat 55) entrance-sound uploads all go through `self.unobserved()`. Steps: run the app with `--record`, upload a soundboard sound; the recorded `POST /guilds/{id}/soundboard-sounds` exchange contains the `sound` field with the file. Fix: `self.unobserved().execute_json(...)` in `create_soundboard_sound`, plus a test like `entrance_upload_is_not_shown_to_the_observer` in `crates/fluxer-api/tests/voice.rs`. Seen on origin/textchat 6113a8e (found while doing Text chat 55, #384).
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#398
No description provided.