@vtstech/pi-react-fallback 1.1.8 → 1.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtstech/pi-react-fallback",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "ReAct fallback extension for Pi Coding Agent",
5
5
  "main": "react-fallback.js",
6
6
  "keywords": ["pi-extensions"],
@@ -14,7 +14,7 @@
14
14
  "url": "https://github.com/VTSTech/pi-coding-agent"
15
15
  },
16
16
  "dependencies": {
17
- "@vtstech/pi-shared": "1.1.8"
17
+ "@vtstech/pi-shared": "1.1.9"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@mariozechner/pi-coding-agent": ">=0.66"
package/react-fallback.js CHANGED
@@ -93,6 +93,13 @@ The bridge will match your tool name (fuzzy matching supported) and normalize ar
93
93
  isError: true
94
94
  };
95
95
  }
96
+ if (targetToolName === "tool_call") {
97
+ stats.parseFailures++;
98
+ return {
99
+ content: [{ type: "text", text: `Error: The tool_call bridge cannot call itself \u2014 this would create an infinite loop. Please call the real tool directly with these arguments: ${argsJson}` }],
100
+ isError: true
101
+ };
102
+ }
96
103
  const normalizedArgs = Object.keys(args).length > 0 ? args : {};
97
104
  stats.argNormalizations++;
98
105
  const argsJson = JSON.stringify(normalizedArgs);