Fix looping on regen tool call
| @@ -4485,7 +4485,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | |||
| 4485 | 4485 | ||
| 4486 | streamingProcessor = null; | 4486 | streamingProcessor = null; |
| 4487 | await ToolManager.saveFunctionToolInvocations(invocationResult.invocations); | 4487 | await ToolManager.saveFunctionToolInvocations(invocationResult.invocations); |
| 4488 | return Generate(type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); | 4488 | return Generate('normal', { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); |
| 4489 | } | 4489 | } |
| 4490 | } | 4490 | } |
| 4491 | 4491 | ||
| @@ -4577,7 +4577,7 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro | |||
| 4577 | } | 4577 | } |
| 4578 | 4578 | ||
| 4579 | await ToolManager.saveFunctionToolInvocations(invocationResult.invocations); | 4579 | await ToolManager.saveFunctionToolInvocations(invocationResult.invocations); |
| 4580 | return Generate(type, { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); | 4580 | return Generate('normal', { automatic_trigger, force_name2, quiet_prompt, quietToLoud, skipWIAN, force_chid, signal, quietImage, quietName }, dryRun); |
| 4581 | } | 4581 | } |
| 4582 | } | 4582 | } |
| 4583 | 4583 | ||