@khalilgharbaoui/opencode-claude-code-plugin 0.4.6 → 0.4.7

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
@@ -1502,6 +1502,15 @@ function hasNewUserContent(prompt) {
1502
1502
  for (let i = prompt.length - 1; i >= 0; i--) {
1503
1503
  const msg = prompt[i];
1504
1504
  if (msg.role === "assistant") return false;
1505
+ if (msg.role === "tool") {
1506
+ const content2 = msg.content;
1507
+ if (Array.isArray(content2)) {
1508
+ for (const part of content2) {
1509
+ if (part?.type === "tool-result") return true;
1510
+ }
1511
+ }
1512
+ continue;
1513
+ }
1505
1514
  if (msg.role !== "user") continue;
1506
1515
  const content = msg.content;
1507
1516
  if (typeof content === "string") {