Chat: the two-command limit counts loops and chains, and incomplete tools get error results when a reply stops #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "t3/stop-task-incomplete-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MAX_CHAT_CHANGEStoMAX_CHAT_COMMANDSand updated the limit logic to count individual commands within chained callscommandsproperty toPluginToolto allow plugins to declare how many commands a single tool invocation runs (chains count per part, loops count as infinity)commandCount()in ssh policy to analyze shell commands: splits on;,&&,||; returns infinity for loops (for/while/until),xargs,parallel, orfind -execanswered()function to fill missing tool results when a reply stops mid-execution: unanswered tool calls get error results with message "Stopped before this finished; it may or may not have run."Testing
commandCount()covering pipes, chains, and loops