wizardchen
9ad8e7ca78
fix(agent): replay attachments in multi-turn history
...
Agent mode does not persist `rendered_content` for user messages, so
when the next turn's history was rebuilt from DB, attachments uploaded
in prior turns disappeared — the model only saw the raw query plus the
prior assistant reply, breaking follow-up questions that referenced
the file (e.g. "what is in there?").
Reconstruct the attachment prompt from the stored `Attachments` column
when `RenderedContent` is empty, mirroring how image captions are
already replayed. KnowledgeQA turns (which do persist
`RenderedContent`) are unaffected and won't get attachments injected
twice.
Refs #1237
2026-05-12 14:46:57 +08:00
..
2026-05-07 15:40:19 +08:00
2026-05-05 00:22:27 +08:00
2026-02-25 14:29:54 +08:00
2026-04-22 21:17:29 +08:00
2026-05-06 17:17:07 +08:00
2026-05-12 14:46:57 +08:00
2026-05-12 14:46:57 +08:00
2026-05-12 12:26:24 +08:00
2026-04-24 10:21:05 +08:00
2026-03-02 21:21:49 +08:00
2026-04-22 21:18:20 +08:00
2025-08-05 15:08:07 +08:00
2026-04-24 13:16:47 +08:00
2026-03-25 22:08:29 +08:00
2026-04-27 13:18:08 +08:00
2026-03-25 22:08:29 +08:00
2026-04-24 13:16:47 +08:00
2026-02-09 11:40:25 +08:00
2026-05-06 17:40:10 +08:00
2026-05-06 17:40:10 +08:00
2026-05-10 00:01:06 +08:00
2026-05-06 17:40:10 +08:00
2026-05-06 17:40:10 +08:00
2026-04-02 12:04:04 +08:00
2026-03-16 18:18:23 +08:00
2026-05-10 00:01:06 +08:00
2026-05-06 17:40:10 +08:00
2026-05-05 01:04:49 +08:00
2026-05-06 17:09:42 +08:00
2026-05-06 11:23:32 +08:00
2026-05-06 17:40:10 +08:00
2026-05-10 00:01:06 +08:00
2026-03-16 02:26:47 +08:00
2026-05-06 17:17:07 +08:00
2026-04-16 23:15:02 +08:00
2026-03-16 02:26:47 +08:00
2026-05-06 17:17:07 +08:00
2026-04-24 13:16:47 +08:00
2026-03-05 21:57:01 +08:00
2026-05-10 22:57:12 +08:00
2026-03-26 18:57:12 +08:00
2025-11-28 16:10:37 +08:00
2026-04-23 23:36:40 +08:00
2026-03-02 21:21:49 +08:00
2026-03-06 21:08:12 +08:00
2026-02-09 11:40:25 +08:00
2026-05-12 12:26:24 +08:00
2026-05-04 23:24:21 +08:00
2026-05-04 23:24:21 +08:00
2026-04-11 18:51:16 +08:00
2026-05-12 12:26:24 +08:00
2026-02-04 20:08:49 +08:00
2026-05-10 00:01:06 +08:00
2026-05-10 00:01:06 +08:00
2026-04-24 13:16:47 +08:00
2026-04-29 19:46:21 +08:00
2026-04-01 20:47:18 +08:00
2026-05-09 13:14:01 +08:00
2026-05-08 21:59:35 +08:00
2026-05-09 13:14:01 +08:00
2026-05-11 16:53:47 +08:00
2026-04-11 18:51:16 +08:00
2026-04-17 16:38:02 +08:00
2026-04-15 11:37:24 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:32 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:32 +08:00
2026-04-22 21:18:32 +08:00
2026-05-08 21:48:52 +08:00
2026-05-06 11:23:32 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:09 +08:00
2026-04-22 21:18:09 +08:00
2026-05-10 00:01:06 +08:00
2026-05-08 21:48:52 +08:00
2026-05-08 13:32:54 +08:00
2026-05-10 00:01:06 +08:00