You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Dynamic continuation tail sized to remaining context (500-3000 chars)
- Cap effectiveMaxTokens on continuation passes (70% of remaining)
- Overlap de-duplication when stitching continuations
- Fix sanitizeJson: escape literal newlines instead of keeping them raw
- Cap IPC paramsText to 4000 chars for UI display
- Frontend: show 'Generating...' spinner instead of raw JSON fallback
? `[Files already written this turn: ${writtenPaths.join(', ')}. Do NOT write to these files again. Use append_to_file or edit_file if changes needed.]\n`
1171
1187
: '';
1188
+
// Dynamic tail size: scale with remaining context, clamped to [500, 3000] chars
continuationMsg=`${taskHint}${fileManifest}[Continue the tool call JSON from exactly where it was cut. Output ONLY the JSON continuation. Do NOT restart the tool call. Continue from:\n${partialFence}]`;
1192
+
_pendingPartialBlock=partialFence;// keep FULL text for stitching
continuationMsg=`${taskHint}${fileManifest}[Continue the tool call JSON from exactly where it was cut. Output ONLY the JSON continuation. Do NOT restart the tool call. Continue from:\n${tailForModel}]`;
1176
1195
}else{
1177
-
continuationMsg=`${taskHint}${fileManifest}[Continue your response exactly where you left off. Do not restart or repeat content. Here is the end of what you wrote:\n${responseText}]`;
continuationMsg=`${taskHint}${fileManifest}[Continue your response exactly where you left off. Do not restart or repeat content. Here is the end of what you wrote:\n${tailForModel}]`;
0 commit comments