opencode-anthropic-fix 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +6 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2913,8 +2913,12 @@ export async function AnthropicAuthPlugin({ client, project, directory, worktree
|
|
|
2913
2913
|
_adaptiveOverride,
|
|
2914
2914
|
_tokenEconomy,
|
|
2915
2915
|
);
|
|
2916
|
-
//
|
|
2917
|
-
|
|
2916
|
+
// cch stays as the static "00000" placeholder — cc-107 and cc-108
|
|
2917
|
+
// JS bundles both emit `cch=00000;` unconditionally in the billing
|
|
2918
|
+
// header. The Bun-binary Attestation.zig xxHash64 mechanism lives in
|
|
2919
|
+
// a SEPARATE header path, not in this body field. Re-hashing here
|
|
2920
|
+
// mutates system[0] each turn, invalidating the prompt cache.
|
|
2921
|
+
const finalBody = body;
|
|
2918
2922
|
|
|
2919
2923
|
// Opt-in: dump the OUTGOING body (post-cch) so diagnostics reflect
|
|
2920
2924
|
// exactly what went on the wire. Previously dumped `body` which
|