@anthonyhaussman/opencode-agy-auth 1.2.16 → 1.2.17

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/dist/index.js CHANGED
@@ -268,7 +268,7 @@ function createAgyActivityRequestId() {
268
268
  import os from "os";
269
269
 
270
270
  // src/sdk/agy-cli-version.ts
271
- var AGY_CLI_VERSION = "1.2.16";
271
+ var AGY_CLI_VERSION = "1.2.17";
272
272
 
273
273
  // src/sdk/user-agent.ts
274
274
  var cachedUserAgent = null;
@@ -16146,7 +16146,7 @@ var models_default = {
16146
16146
  modelProvider: "MODEL_PROVIDER_ANTHROPIC",
16147
16147
  quotaInfo: {
16148
16148
  remainingFraction: 1,
16149
- resetTime: "2026-10-03T18:28:29Z"
16149
+ resetTime: "2026-10-06T00:32:08Z"
16150
16150
  },
16151
16151
  recommended: true,
16152
16152
  supportedMimeTypes: {
@@ -16184,7 +16184,7 @@ var models_default = {
16184
16184
  modelProvider: "MODEL_PROVIDER_ANTHROPIC",
16185
16185
  quotaInfo: {
16186
16186
  remainingFraction: 1,
16187
- resetTime: "2026-10-03T18:28:29Z"
16187
+ resetTime: "2026-10-06T00:32:08Z"
16188
16188
  },
16189
16189
  recommended: true,
16190
16190
  supportedMimeTypes: {
@@ -16222,7 +16222,7 @@ var models_default = {
16222
16222
  modelProvider: "MODEL_PROVIDER_ANTHROPIC",
16223
16223
  quotaInfo: {
16224
16224
  remainingFraction: 1,
16225
- resetTime: "2026-10-03T18:28:29Z"
16225
+ resetTime: "2026-10-06T00:32:08Z"
16226
16226
  },
16227
16227
  recommended: true,
16228
16228
  supportedMimeTypes: {
@@ -16260,7 +16260,7 @@ var models_default = {
16260
16260
  modelProvider: "MODEL_PROVIDER_ANTHROPIC",
16261
16261
  quotaInfo: {
16262
16262
  remainingFraction: 1,
16263
- resetTime: "2026-10-03T18:28:29Z"
16263
+ resetTime: "2026-10-06T00:32:08Z"
16264
16264
  },
16265
16265
  recommended: true,
16266
16266
  supportedMimeTypes: {
@@ -16298,7 +16298,7 @@ var models_default = {
16298
16298
  modelProvider: "MODEL_PROVIDER_ANTHROPIC",
16299
16299
  quotaInfo: {
16300
16300
  remainingFraction: 1,
16301
- resetTime: "2026-10-03T18:28:29Z"
16301
+ resetTime: "2026-10-06T00:32:08Z"
16302
16302
  },
16303
16303
  recommended: true,
16304
16304
  supportedMimeTypes: {
@@ -16336,7 +16336,7 @@ var models_default = {
16336
16336
  modelProvider: "MODEL_PROVIDER_ANTHROPIC",
16337
16337
  quotaInfo: {
16338
16338
  remainingFraction: 1,
16339
- resetTime: "2026-10-03T18:28:29Z"
16339
+ resetTime: "2026-10-06T00:32:08Z"
16340
16340
  },
16341
16341
  recommended: true,
16342
16342
  supportedMimeTypes: {
@@ -16374,8 +16374,8 @@ var models_default = {
16374
16374
  },
16375
16375
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16376
16376
  quotaInfo: {
16377
- remainingFraction: 0.9911344,
16378
- resetTime: "2026-10-03T16:28:30Z"
16377
+ remainingFraction: 0.9418832,
16378
+ resetTime: "2026-10-05T19:38:35Z"
16379
16379
  },
16380
16380
  recommended: true,
16381
16381
  supportedMimeTypes: {
@@ -16457,8 +16457,8 @@ var models_default = {
16457
16457
  },
16458
16458
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16459
16459
  quotaInfo: {
16460
- remainingFraction: 0.9911344,
16461
- resetTime: "2026-10-03T16:28:30Z"
16460
+ remainingFraction: 0.9418832,
16461
+ resetTime: "2026-10-05T19:38:35Z"
16462
16462
  },
16463
16463
  recommended: true,
16464
16464
  supportedMimeTypes: {
@@ -16540,8 +16540,8 @@ var models_default = {
16540
16540
  },
16541
16541
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16542
16542
  quotaInfo: {
16543
- remainingFraction: 0.9911344,
16544
- resetTime: "2026-10-03T16:28:30Z"
16543
+ remainingFraction: 0.9418832,
16544
+ resetTime: "2026-10-05T19:38:35Z"
16545
16545
  },
16546
16546
  recommended: true,
16547
16547
  supportedMimeTypes: {
@@ -16620,8 +16620,8 @@ var models_default = {
16620
16620
  },
16621
16621
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16622
16622
  quotaInfo: {
16623
- remainingFraction: 0.9911344,
16624
- resetTime: "2026-10-03T16:28:30Z"
16623
+ remainingFraction: 0.9418832,
16624
+ resetTime: "2026-10-05T19:38:35Z"
16625
16625
  },
16626
16626
  recommended: true,
16627
16627
  requiresImageOutputOutsideFunctionResponses: true,
@@ -16701,8 +16701,8 @@ var models_default = {
16701
16701
  },
16702
16702
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16703
16703
  quotaInfo: {
16704
- remainingFraction: 0.9911344,
16705
- resetTime: "2026-10-03T16:28:30Z"
16704
+ remainingFraction: 0.9418832,
16705
+ resetTime: "2026-10-05T19:38:35Z"
16706
16706
  },
16707
16707
  recommended: true,
16708
16708
  supportedMimeTypes: {
@@ -16806,8 +16806,8 @@ var models_default = {
16806
16806
  },
16807
16807
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16808
16808
  quotaInfo: {
16809
- remainingFraction: 0.9911344,
16810
- resetTime: "2026-10-03T16:28:30Z"
16809
+ remainingFraction: 0.9418832,
16810
+ resetTime: "2026-10-05T19:38:35Z"
16811
16811
  },
16812
16812
  recommended: true,
16813
16813
  supportedMimeTypes: {
@@ -16866,8 +16866,6 @@ var models_default = {
16866
16866
  supportsImages: true,
16867
16867
  supportsThinking: true,
16868
16868
  supportsVideo: true,
16869
- tagDescription: "Limited time",
16870
- tagTitle: "Fast",
16871
16869
  thinkingBudget: -1
16872
16870
  },
16873
16871
  "gemini-3.1-flash-image": {
@@ -16876,8 +16874,8 @@ var models_default = {
16876
16874
  model: "MODEL_PLACEHOLDER_M21",
16877
16875
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16878
16876
  quotaInfo: {
16879
- remainingFraction: 0.9911344,
16880
- resetTime: "2026-10-03T16:28:30Z"
16877
+ remainingFraction: 0.9418832,
16878
+ resetTime: "2026-10-05T19:38:35Z"
16881
16879
  }
16882
16880
  },
16883
16881
  "gemini-3.1-flash-lite": {
@@ -16895,8 +16893,8 @@ var models_default = {
16895
16893
  },
16896
16894
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16897
16895
  quotaInfo: {
16898
- remainingFraction: 0.9911344,
16899
- resetTime: "2026-10-03T16:28:30Z"
16896
+ remainingFraction: 0.9418832,
16897
+ resetTime: "2026-10-05T19:38:35Z"
16900
16898
  }
16901
16899
  },
16902
16900
  "gemini-3.1-pro-high": {
@@ -16927,8 +16925,8 @@ var models_default = {
16927
16925
  },
16928
16926
  modelProvider: "MODEL_PROVIDER_GOOGLE",
16929
16927
  quotaInfo: {
16930
- remainingFraction: 0.9911344,
16931
- resetTime: "2026-10-03T16:28:30Z"
16928
+ remainingFraction: 0.9418832,
16929
+ resetTime: "2026-10-05T19:38:35Z"
16932
16930
  },
16933
16931
  recommended: true,
16934
16932
  supportedMimeTypes: {
@@ -17018,8 +17016,8 @@ var models_default = {
17018
17016
  },
17019
17017
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17020
17018
  quotaInfo: {
17021
- remainingFraction: 0.9911344,
17022
- resetTime: "2026-10-03T16:28:30Z"
17019
+ remainingFraction: 0.9418832,
17020
+ resetTime: "2026-10-05T19:38:35Z"
17023
17021
  },
17024
17022
  recommended: true,
17025
17023
  supportedMimeTypes: {
@@ -17123,8 +17121,8 @@ var models_default = {
17123
17121
  },
17124
17122
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17125
17123
  quotaInfo: {
17126
- remainingFraction: 0.9911344,
17127
- resetTime: "2026-10-03T16:28:30Z"
17124
+ remainingFraction: 0.9418832,
17125
+ resetTime: "2026-10-05T19:38:35Z"
17128
17126
  },
17129
17127
  recommended: true,
17130
17128
  supportedMimeTypes: {
@@ -17183,8 +17181,6 @@ var models_default = {
17183
17181
  supportsImages: true,
17184
17182
  supportsThinking: true,
17185
17183
  supportsVideo: true,
17186
- tagDescription: "Limited time",
17187
- tagTitle: "Fast",
17188
17184
  thinkingBudget: 1e3
17189
17185
  },
17190
17186
  "gemini-3.5-flash-lite": {
@@ -17206,8 +17202,8 @@ var models_default = {
17206
17202
  },
17207
17203
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17208
17204
  quotaInfo: {
17209
- remainingFraction: 0.9911344,
17210
- resetTime: "2026-10-03T16:28:30Z"
17205
+ remainingFraction: 0.9418832,
17206
+ resetTime: "2026-10-05T19:38:35Z"
17211
17207
  },
17212
17208
  recommended: true,
17213
17209
  supportedMimeTypes: {
@@ -17313,8 +17309,8 @@ var models_default = {
17313
17309
  },
17314
17310
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17315
17311
  quotaInfo: {
17316
- remainingFraction: 0.9911344,
17317
- resetTime: "2026-10-03T16:28:30Z"
17312
+ remainingFraction: 0.9418832,
17313
+ resetTime: "2026-10-05T19:38:35Z"
17318
17314
  },
17319
17315
  recommended: true,
17320
17316
  supportedMimeTypes: {
@@ -17373,8 +17369,6 @@ var models_default = {
17373
17369
  supportsImages: true,
17374
17370
  supportsThinking: true,
17375
17371
  supportsVideo: true,
17376
- tagDescription: "Limited time",
17377
- tagTitle: "Fast",
17378
17372
  thinkingBudget: 4e3
17379
17373
  },
17380
17374
  "gemini-3.6-flash-high": {
@@ -17432,8 +17426,8 @@ var models_default = {
17432
17426
  },
17433
17427
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17434
17428
  quotaInfo: {
17435
- remainingFraction: 0.9911344,
17436
- resetTime: "2026-10-03T16:28:30Z"
17429
+ remainingFraction: 0.9418832,
17430
+ resetTime: "2026-10-05T19:38:35Z"
17437
17431
  },
17438
17432
  recommended: true,
17439
17433
  supportedMimeTypes: {
@@ -17492,8 +17486,6 @@ var models_default = {
17492
17486
  supportsImages: true,
17493
17487
  supportsThinking: true,
17494
17488
  supportsVideo: true,
17495
- tagDescription: "Limited time",
17496
- tagTitle: "Fast",
17497
17489
  thinkingBudget: -1
17498
17490
  },
17499
17491
  "gemini-3.6-flash-low": {
@@ -17551,8 +17543,8 @@ var models_default = {
17551
17543
  },
17552
17544
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17553
17545
  quotaInfo: {
17554
- remainingFraction: 0.9911344,
17555
- resetTime: "2026-10-03T16:28:30Z"
17546
+ remainingFraction: 0.9418832,
17547
+ resetTime: "2026-10-05T19:38:35Z"
17556
17548
  },
17557
17549
  recommended: true,
17558
17550
  supportedMimeTypes: {
@@ -17611,8 +17603,6 @@ var models_default = {
17611
17603
  supportsImages: true,
17612
17604
  supportsThinking: true,
17613
17605
  supportsVideo: true,
17614
- tagDescription: "Limited time",
17615
- tagTitle: "Fast",
17616
17606
  thinkingBudget: 1e3
17617
17607
  },
17618
17608
  "gemini-3.6-flash-medium": {
@@ -17670,8 +17660,8 @@ var models_default = {
17670
17660
  },
17671
17661
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17672
17662
  quotaInfo: {
17673
- remainingFraction: 0.9911344,
17674
- resetTime: "2026-10-03T16:28:30Z"
17663
+ remainingFraction: 0.9418832,
17664
+ resetTime: "2026-10-05T19:38:35Z"
17675
17665
  },
17676
17666
  recommended: true,
17677
17667
  supportedMimeTypes: {
@@ -17730,8 +17720,6 @@ var models_default = {
17730
17720
  supportsImages: true,
17731
17721
  supportsThinking: true,
17732
17722
  supportsVideo: true,
17733
- tagDescription: "Limited time",
17734
- tagTitle: "Fast",
17735
17723
  thinkingBudget: 4e3
17736
17724
  },
17737
17725
  "gemini-3.6-flash-tiered": {
@@ -17788,8 +17776,8 @@ var models_default = {
17788
17776
  },
17789
17777
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17790
17778
  quotaInfo: {
17791
- remainingFraction: 0.9911344,
17792
- resetTime: "2026-10-03T16:28:30Z"
17779
+ remainingFraction: 0.9418832,
17780
+ resetTime: "2026-10-05T19:38:35Z"
17793
17781
  },
17794
17782
  recommended: true,
17795
17783
  supportedMimeTypes: {
@@ -17899,8 +17887,8 @@ var models_default = {
17899
17887
  },
17900
17888
  modelProvider: "MODEL_PROVIDER_GOOGLE",
17901
17889
  quotaInfo: {
17902
- remainingFraction: 0.9911344,
17903
- resetTime: "2026-10-03T16:28:30Z"
17890
+ remainingFraction: 0.9418832,
17891
+ resetTime: "2026-10-05T19:38:35Z"
17904
17892
  },
17905
17893
  recommended: true,
17906
17894
  supportedMimeTypes: {
@@ -17959,8 +17947,6 @@ var models_default = {
17959
17947
  supportsImages: true,
17960
17948
  supportsThinking: true,
17961
17949
  supportsVideo: true,
17962
- tagDescription: "Limited time",
17963
- tagTitle: "Fast",
17964
17950
  thinkingBudget: -1
17965
17951
  },
17966
17952
  "gemini-3.7-flash-low": {
@@ -18012,8 +17998,8 @@ var models_default = {
18012
17998
  },
18013
17999
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18014
18000
  quotaInfo: {
18015
- remainingFraction: 0.9911344,
18016
- resetTime: "2026-10-03T16:28:30Z"
18001
+ remainingFraction: 0.9418832,
18002
+ resetTime: "2026-10-05T19:38:35Z"
18017
18003
  },
18018
18004
  recommended: true,
18019
18005
  supportedMimeTypes: {
@@ -18072,8 +18058,6 @@ var models_default = {
18072
18058
  supportsImages: true,
18073
18059
  supportsThinking: true,
18074
18060
  supportsVideo: true,
18075
- tagDescription: "Limited time",
18076
- tagTitle: "Fast",
18077
18061
  thinkingBudget: 1e3
18078
18062
  },
18079
18063
  "gemini-3.7-flash-medium": {
@@ -18125,8 +18109,8 @@ var models_default = {
18125
18109
  },
18126
18110
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18127
18111
  quotaInfo: {
18128
- remainingFraction: 0.9911344,
18129
- resetTime: "2026-10-03T16:28:30Z"
18112
+ remainingFraction: 0.9418832,
18113
+ resetTime: "2026-10-05T19:38:35Z"
18130
18114
  },
18131
18115
  recommended: true,
18132
18116
  supportedMimeTypes: {
@@ -18185,8 +18169,6 @@ var models_default = {
18185
18169
  supportsImages: true,
18186
18170
  supportsThinking: true,
18187
18171
  supportsVideo: true,
18188
- tagDescription: "Limited time",
18189
- tagTitle: "Fast",
18190
18172
  thinkingBudget: 4e3
18191
18173
  },
18192
18174
  "gemini-3.7-flash-tiered": {
@@ -18237,8 +18219,8 @@ var models_default = {
18237
18219
  },
18238
18220
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18239
18221
  quotaInfo: {
18240
- remainingFraction: 0.9911344,
18241
- resetTime: "2026-10-03T16:28:30Z"
18222
+ remainingFraction: 0.9418832,
18223
+ resetTime: "2026-10-05T19:38:35Z"
18242
18224
  },
18243
18225
  recommended: true,
18244
18226
  supportedMimeTypes: {
@@ -18348,8 +18330,8 @@ var models_default = {
18348
18330
  },
18349
18331
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18350
18332
  quotaInfo: {
18351
- remainingFraction: 0.9911344,
18352
- resetTime: "2026-10-03T16:28:30Z"
18333
+ remainingFraction: 0.9418832,
18334
+ resetTime: "2026-10-05T19:38:35Z"
18353
18335
  },
18354
18336
  recommended: true,
18355
18337
  supportedMimeTypes: {
@@ -18408,8 +18390,6 @@ var models_default = {
18408
18390
  supportsImages: true,
18409
18391
  supportsThinking: true,
18410
18392
  supportsVideo: true,
18411
- tagDescription: "Limited time",
18412
- tagTitle: "Fast",
18413
18393
  thinkingBudget: -1
18414
18394
  },
18415
18395
  "gemini-3.8-flash-low": {
@@ -18461,8 +18441,8 @@ var models_default = {
18461
18441
  },
18462
18442
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18463
18443
  quotaInfo: {
18464
- remainingFraction: 0.9911344,
18465
- resetTime: "2026-10-03T16:28:30Z"
18444
+ remainingFraction: 0.9418832,
18445
+ resetTime: "2026-10-05T19:38:35Z"
18466
18446
  },
18467
18447
  recommended: true,
18468
18448
  supportedMimeTypes: {
@@ -18521,8 +18501,6 @@ var models_default = {
18521
18501
  supportsImages: true,
18522
18502
  supportsThinking: true,
18523
18503
  supportsVideo: true,
18524
- tagDescription: "Limited time",
18525
- tagTitle: "Fast",
18526
18504
  thinkingBudget: 1e3
18527
18505
  },
18528
18506
  "gemini-3.8-flash-medium": {
@@ -18574,8 +18552,8 @@ var models_default = {
18574
18552
  },
18575
18553
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18576
18554
  quotaInfo: {
18577
- remainingFraction: 0.9911344,
18578
- resetTime: "2026-10-03T16:28:30Z"
18555
+ remainingFraction: 0.9418832,
18556
+ resetTime: "2026-10-05T19:38:35Z"
18579
18557
  },
18580
18558
  recommended: true,
18581
18559
  supportedMimeTypes: {
@@ -18634,8 +18612,6 @@ var models_default = {
18634
18612
  supportsImages: true,
18635
18613
  supportsThinking: true,
18636
18614
  supportsVideo: true,
18637
- tagDescription: "Limited time",
18638
- tagTitle: "Fast",
18639
18615
  thinkingBudget: 4e3
18640
18616
  },
18641
18617
  "gemini-3.8-flash-tiered": {
@@ -18686,8 +18662,8 @@ var models_default = {
18686
18662
  },
18687
18663
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18688
18664
  quotaInfo: {
18689
- remainingFraction: 0.9911344,
18690
- resetTime: "2026-10-03T16:28:30Z"
18665
+ remainingFraction: 0.9418832,
18666
+ resetTime: "2026-10-05T19:38:35Z"
18691
18667
  },
18692
18668
  recommended: true,
18693
18669
  supportedMimeTypes: {
@@ -18776,8 +18752,8 @@ var models_default = {
18776
18752
  },
18777
18753
  modelProvider: "MODEL_PROVIDER_GOOGLE",
18778
18754
  quotaInfo: {
18779
- remainingFraction: 0.9911344,
18780
- resetTime: "2026-10-03T16:28:30Z"
18755
+ remainingFraction: 0.9418832,
18756
+ resetTime: "2026-10-05T19:38:35Z"
18781
18757
  },
18782
18758
  recommended: true,
18783
18759
  supportedMimeTypes: {
@@ -18854,7 +18830,7 @@ var models_default = {
18854
18830
  modelProvider: "MODEL_PROVIDER_OPENAI",
18855
18831
  quotaInfo: {
18856
18832
  remainingFraction: 1,
18857
- resetTime: "2026-10-03T18:28:29Z"
18833
+ resetTime: "2026-10-06T00:32:08Z"
18858
18834
  },
18859
18835
  recommended: true,
18860
18836
  supportsThinking: true,
@@ -19656,6 +19632,34 @@ function getModelEnum(modelName) {
19656
19632
  }
19657
19633
  return "MODEL_PLACEHOLDER_M16";
19658
19634
  }
19635
+ function isClaudeModel(model) {
19636
+ return model.toLowerCase().includes("claude");
19637
+ }
19638
+ function sanitizeClaudeThinkingParts(contents, model) {
19639
+ if (!isClaudeModel(model) || !Array.isArray(contents)) {
19640
+ return;
19641
+ }
19642
+ for (const turn of contents) {
19643
+ if (!turn || typeof turn !== "object") continue;
19644
+ if (turn.role !== "model" && turn.role !== "assistant") continue;
19645
+ if (!Array.isArray(turn.parts)) continue;
19646
+ const filteredParts = turn.parts.filter((part) => {
19647
+ if (!part || typeof part !== "object") return true;
19648
+ const isThinking = part.thought === true || part.type === "thinking" || typeof part.thinking === "string";
19649
+ if (!isThinking) {
19650
+ return true;
19651
+ }
19652
+ const sig = typeof part.signature === "string" ? part.signature : typeof part.thoughtSignature === "string" ? part.thoughtSignature : void 0;
19653
+ const isValidSig = typeof sig === "string" && sig.length > 0 && sig !== "skip_thought_signature_validator";
19654
+ return isValidSig;
19655
+ });
19656
+ if (filteredParts.length === 0) {
19657
+ turn.parts = [{ text: "" }];
19658
+ } else {
19659
+ turn.parts = filteredParts;
19660
+ }
19661
+ }
19662
+ }
19659
19663
  function transformRequestBody(body, projectId, effectiveModel, requestedModel, thinkingConfigDefaults) {
19660
19664
  const fallbackId = randomUUID3();
19661
19665
  try {
@@ -19689,7 +19693,7 @@ function transformRequestBody(body, projectId, effectiveModel, requestedModel, t
19689
19693
  last_step_index: "0",
19690
19694
  model_enum: getModelEnum(effectiveModel),
19691
19695
  trajectory_id: randomUUID3(),
19692
- used_claude: "false",
19696
+ used_claude: isClaudeModel(effectiveModel) || isClaudeModel(requestedModel) ? "true" : "false",
19693
19697
  used_claude_conservative: "false"
19694
19698
  };
19695
19699
  }
@@ -19717,6 +19721,7 @@ function transformRequestBody(body, projectId, effectiveModel, requestedModel, t
19717
19721
  contents2 = ensureTrailingUserTurn(contents2);
19718
19722
  const latestSig = getLatestSignature(sessionId2);
19719
19723
  applyLatestSignature(contents2, latestSig);
19724
+ sanitizeClaudeThinkingParts(contents2, effectiveModel || requestedModel);
19720
19725
  requestPayloadInside.contents = contents2;
19721
19726
  }
19722
19727
  return { body: JSON.stringify(wrappedBody2), userPromptId: userPromptId2, sessionId: sessionId2 };
@@ -19758,6 +19763,7 @@ function transformRequestBody(body, projectId, effectiveModel, requestedModel, t
19758
19763
  contents = ensureTrailingUserTurn(contents);
19759
19764
  const latestSig = getLatestSignature(sessionId);
19760
19765
  applyLatestSignature(contents, latestSig);
19766
+ sanitizeClaudeThinkingParts(contents, effectiveModel || requestedModel);
19761
19767
  requestPayload.contents = contents;
19762
19768
  }
19763
19769
  if ("model" in requestPayload) {
@@ -19769,7 +19775,7 @@ function transformRequestBody(body, projectId, effectiveModel, requestedModel, t
19769
19775
  last_step_index: "0",
19770
19776
  model_enum: getModelEnum(effectiveModel),
19771
19777
  trajectory_id: randomUUID3(),
19772
- used_claude: "false",
19778
+ used_claude: isClaudeModel(effectiveModel) || isClaudeModel(requestedModel) ? "true" : "false",
19773
19779
  used_claude_conservative: "false"
19774
19780
  };
19775
19781
  }