sususu
f0034ca663
fix(claude): restore cloaked prompt-cache ownership and native shape
...
Cloaked Responses/Chat/Gemini→Claude traffic was skipping ensureCacheControl
once the first-user cloak marker existed, freezing multi-turn cache hits.
Always ensure section-independent system and rolling-message breakpoints for
non-native callers, keep confirmed Claude Code placement intact, and leave
tools unstamped when a usable system prompt already covers the prefix.
Align the wire shape with the Claude Code 2.1.220/2.1.221/2.1.227 cache-control
constructor: the default is {"type":"ephemeral"} with no ttl. A 1h body ttl is
applied only after placement, only for OAuth credentials, and only onto blocks
that already carry cache_control, so it stays strictly paired with
extended-cache-ttl-2025-04-11. Explicit caller-owned 5m choices survive.
Match the native rolling selector (skip thinking-like assistant tails; final
system string special case), fall back to a tools breakpoint when system is
absent or blank, and leave empty/whitespace string systems unconverted so they
cannot double-stamp tools plus a useless system host.
2026-08-11 19:33:40 +08:00
..
2026-08-11 18:33:50 +08:00
2026-07-30 23:26:20 +08:00
2026-07-31 12:45:13 +08:00
2026-07-26 14:31:45 +08:00
2026-07-26 03:07:21 +08:00
2026-08-11 09:57:15 +08:00
2026-07-26 14:31:45 +08:00
2026-08-11 16:07:42 +08:00
2026-07-07 02:39:13 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-05 00:27:32 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 18:33:50 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 16:07:42 +08:00
2026-07-25 14:07:31 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 09:57:15 +08:00
2026-08-11 16:07:42 +08:00
2026-08-11 18:33:50 +08:00
2026-08-03 16:09:22 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 15:44:44 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 15:44:44 +08:00
2026-08-03 14:47:26 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-10 04:32:28 +08:00
2026-08-11 19:33:40 +08:00
2026-08-11 19:33:40 +08:00
2026-08-11 19:33:40 +08:00
2026-08-03 14:47:26 +08:00
2026-08-06 17:19:24 +08:00
2026-08-03 14:47:26 +08:00
2026-08-06 17:19:24 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-09 04:36:39 +08:00
2026-08-09 04:36:39 +08:00
2026-07-26 14:31:45 +08:00
2026-07-26 03:07:21 +08:00
2026-07-11 11:42:51 +08:00
2026-08-06 17:19:24 +08:00
2026-07-18 03:58:03 +08:00
2026-08-03 02:45:49 +08:00
2026-05-08 11:46:46 +08:00
2026-07-18 03:58:03 +08:00
2026-07-24 11:10:58 -07:00
2026-07-26 19:11:32 +08:00
2026-08-06 17:19:24 +08:00
2026-06-17 07:19:02 +08:00
2026-07-14 00:35:48 +08:00
2026-08-06 04:49:28 +08:00
2026-08-09 18:01:28 +08:00
2026-08-09 18:01:28 +08:00
2026-08-06 20:49:23 +08:00
2026-08-06 17:19:24 +08:00
2026-05-31 14:38:54 +08:00
2026-07-26 14:31:45 +08:00
2026-06-08 15:47:14 +00:00
2026-07-30 16:37:40 +08:00
2026-07-31 12:45:13 +08:00
2026-08-07 19:16:06 +08:00
2026-07-26 14:31:45 +08:00
2026-08-06 04:49:28 +08:00
2026-07-23 13:42:08 +08:00
2026-08-07 19:16:06 +08:00
2026-07-26 14:31:45 +08:00
2026-08-01 13:01:33 +08:00
2026-07-26 14:31:45 +08:00
2026-07-25 00:32:37 +08:00
2026-08-06 04:49:28 +08:00
2026-07-20 13:57:14 +08:00
2026-07-30 21:53:30 +08:00
2026-08-06 17:19:24 +08:00
2026-07-29 14:14:18 +08:00
2026-07-23 13:42:08 +08:00
2026-08-10 05:13:24 +08:00
2026-08-08 05:08:42 +08:00
2026-08-08 05:08:42 +08:00
2026-08-09 04:36:39 +08:00
2026-08-05 05:13:09 +08:00
2026-08-07 06:26:33 +08:00
2026-08-03 03:37:24 +08:00
2026-08-08 06:08:23 +08:00
2026-08-07 19:16:06 +08:00
2026-08-07 19:16:06 +08:00
2026-07-23 13:42:08 +08:00
2026-07-23 13:42:08 +08:00
2026-07-26 14:31:45 +08:00
2026-08-04 18:37:01 +08:00
2026-07-27 00:01:49 +08:00
2026-08-09 23:15:46 +08:00
2026-08-07 06:48:09 +08:00
2026-07-26 14:31:45 +08:00
2026-08-09 23:15:46 +08:00
2026-07-26 14:31:45 +08:00
2026-08-05 07:28:55 +08:00
2026-07-12 23:59:39 +08:00
2026-08-07 06:48:09 +08:00
2026-08-07 06:48:09 +08:00
2026-08-07 06:48:09 +08:00