Files
OmniRoute/tests/unit/compression
Diego Rodrigues de Sa e Souza 7552f50b91 fix(compression): keep a retrievable preamble instead of a bare CCR marker (#7746) (#7827)
The CCR (Content-Compression-Retrieve) engine treated an entire message's
content as one candidate block with no sub-scanning, so a large first-turn
prompt above minChars (default 600) could be replaced ENTIRELY by a bare
[CCR retrieve hash=... chars=N] marker. The omniroute_ccr_retrieve MCP tool
that could resolve that marker is only ever exposed by OmniRoute's own MCP
server -- never injected into a plain /v1/chat/completions tools array --
so for any non-MCP client (OpenCode, Claude Code in OpenAI-compatible mode,
generic proxy clients) the original prompt became permanently unreachable
once compressed.

maybeCcrReplace now always keeps a short leading preamble of the original
text alongside the marker, so a caller that cannot resolve the marker still
sees the start of the user's intent instead of losing the prompt entirely.
The full text remains stored and verbatim-retrievable by hash for MCP-
capable callers, unchanged.
2026-07-20 01:43:52 -03:00
..
2026-06-30 06:54:29 -03:00
2026-06-15 03:32:11 -03:00
2026-06-20 07:09:43 -03:00
2026-06-09 22:57:12 -03:00
2026-06-28 06:58:29 -03:00
2026-06-28 06:58:29 -03:00
2026-06-27 09:07:12 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-21 08:56:51 -03:00
2026-06-23 17:06:18 -03:00
2026-06-23 17:06:18 -03:00
2026-06-23 17:06:18 -03:00
2026-06-23 17:06:18 -03:00
2026-06-23 17:06:18 -03:00
2026-06-23 17:06:18 -03:00
2026-06-23 17:06:18 -03:00
2026-06-23 17:06:18 -03:00
2026-06-27 09:07:12 -03:00
2026-06-27 09:07:12 -03:00
2026-06-27 09:07:12 -03:00
2026-06-19 06:49:01 -03:00
2026-06-29 08:40:06 -03:00
2026-06-19 06:49:01 -03:00
2026-06-29 08:40:06 -03:00
2026-06-27 09:07:12 -03:00
2026-06-27 09:07:12 -03:00
2026-06-07 07:20:02 -03:00
2026-06-09 15:56:24 -03:00
2026-07-02 10:47:13 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-07-02 10:47:13 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-27 09:07:12 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-20 07:09:43 -03:00
2026-07-02 10:47:13 -03:00
2026-06-19 06:49:01 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-19 06:49:01 -03:00
2026-06-29 08:40:06 -03:00
2026-06-30 06:54:29 -03:00
2026-06-28 06:58:29 -03:00
2026-06-23 17:06:18 -03:00
2026-06-19 06:49:01 -03:00