AstrBot-Desktop/src-tauri/src
YokiiroBW 03b99efda8
一些检测仍在等待运行
ci / Portable quality checks (push) Waiting to run
ci / Windows Tauri build (push) Waiting to run
feat(astrbot): summarise how stream blocks relate to the final text
The first capture identified the real cause of a reply appearing twice,
and it was neither candidate. All 524 frames carried a message_id and
each reply used exactly one, so the event_id fallback is not involved
and neither is the history session fallback.

AstrBot interleaves two kinds of plain frame in one reply. Frames with
streaming true are incremental deltas whose total matches the complete
frame exactly. Frames with streaming false carry whole finished blocks —
one reply had five of them totalling 915 characters against 173
streamed. map_plain appends both, so the blocks show up inline during
generation, and map_complete then replaces the accumulation with the
streamed text alone, discarding them. That is the reply appearing twice
and then collapsing, and the collapse loses content.

One thing lengths cannot settle: whether a block repeats streamed text
or carries its own. One reply had 133 block characters against 142
streamed, which looks like a repeat; another had 915 against 173, which
cannot be. The two need opposite fixes, so this adds a per-stream
summary reporting how many blocks appear in the final text and in the
streamed text, as counts and lengths only.

Also records that plugin images were never sent: no media or attachment
frame appeared in any capture, and no plain frame carried a message
chain array. The attachment path has still never received data.

Refs: N-9 (new), N-4 (root cause found), N-6 (not a client defect).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 02:08:36 +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): summarise how stream blocks relate to the final text 2026-07-27 02:08:36 +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