Files
DeepTutor/tests/api
ZQR1101 7b863c8b1d fix(turns): keep prior conversation images readable on later turns (#1438) (#1443)
* fix(turns): keep prior conversation images readable on later turns (#1438)

* fix(sources): surface an attachment whose extraction produced nothing (#1438)

* review: make the re-inject cap a setting, not a constant

Every later turn re-sends what this collector returns, so how many images
ride along is deployment policy — bandwidth and the model's own image
handling decide it, not the codebase. `chat_prior_image_reinject_max` joins
the chat-attachment policy it belongs to in system settings: read at call
time like its neighbours, clamped to 0..20, and 0 turns the behaviour off
for a deployment that cannot afford the re-send.

Resolved through `.get()` with the seeded default, not by subscript. A
system.json written before this key existed is the normal state of every
upgraded install, and this collector runs inside turn setup — a KeyError
here does not fail one feature, it fails the turn.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: ZQR1101 <278034003+ZQR1101@users.noreply.github.com>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 01:43:31 +08:00
..
2026-06-11 20:03:34 +08:00
2026-09-02 04:09:11 +08:00
2026-08-30 12:10:26 -04:00
2026-06-17 10:50:44 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-09-02 04:09:11 +08:00
2026-06-21 14:43:41 +08:00
2026-09-06 13:46:29 +08:00
2026-08-02 13:07:32 +08:00
2026-09-06 13:46:29 +08:00