teknium1
5311d9959e
refactor(run_agent): extract context compression to agent/conversation_compression.py
Move four compression-related methods to a dedicated module:
* check_compression_model_feasibility — startup probe + auto-lowered threshold + hard floor
* replay_compression_warning — re-emit stored warning through gateway status_callback
* compress_context — run compressor, split SQLite session, notify plugins+memory
* try_shrink_image_parts_in_messages — image-too-large recovery via re-encode
AIAgent keeps thin forwarder methods so existing call sites and tests
that patch run_agent.AIAgent methods keep working.
tests/run_agent/ + tests/agent/: 4313 passed (same pre-existing
test_auxiliary_client failure as before).
run_agent.py: 15013 -> 14535 lines (-478).
2026-05-16 18:09:33 -07:00
..
2026-05-14 15:56:07 -07:00
2026-05-14 14:55:23 -07:00
2026-05-12 20:46:04 -07:00
2026-05-14 20:15:29 -07:00
2026-05-16 18:05:01 -07:00
2026-05-14 14:28:14 -07:00
2026-05-13 22:25:16 -07:00
2026-05-16 18:09:33 -07:00
2026-05-15 10:36:38 +05:30
2026-05-14 08:03:56 -07:00
2026-05-13 22:31:28 -07:00
2026-05-16 17:59:32 -07:00
2026-05-11 16:49:13 -07:00
2026-05-16 17:41:09 -07:00
2026-05-13 23:51:15 -07:00
2026-05-13 23:51:15 -07:00
2026-05-12 20:49:20 -07:00
2026-05-16 17:59:32 -07:00
2026-05-12 18:46:28 -07:00
2026-05-12 20:46:04 -07:00
2026-05-16 17:54:26 -07:00
2026-05-13 06:46:23 -07:00
2026-05-13 06:46:23 -07:00
2026-05-12 16:32:57 -07:00
2026-05-13 16:39:41 -07:00
2026-05-13 16:39:41 -07:00
2026-05-13 22:31:28 -07:00
2026-05-13 22:31:28 -07:00