@khalilgharbaoui/opencode-claude-code-plugin 0.8.1 → 0.8.2

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
@@ -3378,11 +3378,13 @@ ${plan}
3378
3378
  }
3379
3379
  if (block.type === "tool_use" && block.id && block.name) {
3380
3380
  noteToolActivity();
3381
- toolCallMap.set(idx, {
3381
+ const entry = {
3382
3382
  id: block.id,
3383
3383
  name: block.name,
3384
- inputJson: ""
3385
- });
3384
+ inputJson: "",
3385
+ started: false
3386
+ };
3387
+ toolCallMap.set(idx, entry);
3386
3388
  if (block.name !== "AskUserQuestion" && block.name !== "ask_user_question" && block.name !== "ExitPlanMode" && !block.name.startsWith(PROXY_TOOL_PREFIX)) {
3387
3389
  const { name: mappedName, skip, executed } = mapTool(
3388
3390
  block.name,
@@ -3394,6 +3396,7 @@ ${plan}
3394
3396
  }
3395
3397
  );
3396
3398
  if (!skip) {
3399
+ entry.started = true;
3397
3400
  controller.enqueue({
3398
3401
  type: "tool-input-start",
3399
3402
  id: block.id,
@@ -3445,11 +3448,13 @@ ${plan}
3445
3448
  const tc = toolCallMap.get(idx);
3446
3449
  if (tc) {
3447
3450
  tc.inputJson += delta.partial_json;
3448
- controller.enqueue({
3449
- type: "tool-input-delta",
3450
- id: tc.id,
3451
- delta: delta.partial_json
3452
- });
3451
+ if (tc.started) {
3452
+ controller.enqueue({
3453
+ type: "tool-input-delta",
3454
+ id: tc.id,
3455
+ delta: delta.partial_json
3456
+ });
3457
+ }
3453
3458
  }
3454
3459
  }
3455
3460
  if (!KNOWN_DELTA_TYPES.has(delta.type)) {