AstrBot-Desktop/src-tauri/src
YokiiroBW e01cb5a3ba feat(astrbot): trace sse frame shapes at debug level
Two reported defects cannot be diagnosed from the code alone. A reply
sometimes renders as two bubbles during generation, which happens when a
streaming frame carries no message_id — the client then keys it by
event_id, which is unique per event. And images sent by plugins never
appear, which happens when an image frame is not followed by the
attachment_saved frame the mapper waits for. Both depend on what the
server actually sends, and picking the wrong one would produce a fix
that looks right until another conversation path hits the other.

Log the shape of every SSE frame: its type, whether message_id and
session_id are present, the streaming flag, and the key names inside
data. No payload text is recorded, so this is safe to leave enabled in
the field. Off unless RUST_LOG selects debug, and gated on
tracing::enabled! so a disabled level costs one atomic read rather than
a JSON parse.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 00:59:31 +08:00
..
credentials feat(pet): separate remote identity and add paper pet window 2026-07-20 16:28:42 +08:00
database feat(desktop): complete Q9 chat and stability increment 2026-07-21 14:43:14 +08:00
diagnostics feat(desktop): complete Q9 chat and stability increment 2026-07-21 14:43:14 +08:00
file_transfer feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
networking feat(astrbot): trace sse frame shapes at debug level 2026-07-27 00:59:31 +08:00
secure_store feat(chat): add AstrBot dual-slot chat foundation 2026-07-20 11:31:41 +08:00
windows feat(desktop): complete Q9 chat and stability increment 2026-07-21 14:43:14 +08:00
auth.rs feat(auth): add dashboard jwt login 2026-07-20 16:12:11 +08:00
lib.rs fix(chat): prevent duplicate history on session switch 2026-07-22 02:52:31 +08:00
logging.rs feat(foundation): add persistent bootstrap safeguards 2026-07-18 22:17:29 +08:00
main.rs feat(p00): add Tauri desktop spike foundation 2026-07-18 20:34:47 +08:00
pet.rs feat(chat): add AstrBot dual-slot chat foundation 2026-07-20 11:31:41 +08:00
policy.rs feat(pet): separate remote identity and add paper pet window 2026-07-20 16:28:42 +08:00
profiles.rs feat(pet): separate remote identity and add paper pet window 2026-07-20 16:28:42 +08:00
quick_window.rs feat(window): persist quick chat geometry 2026-07-20 14:59:55 +08:00
runtime_guards.rs feat(connection): validate auto-connect and guard operations switches 2026-07-20 00:49:15 +08:00
slots.rs feat(pet): separate remote identity and add paper pet window 2026-07-20 16:28:42 +08:00