vg-coder-cli 2.0.57 → 2.0.59

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": "vg-coder-cli",
3
- "version": "2.0.57",
3
+ "version": "2.0.59",
4
4
  "description": "🚀 CLI tool to analyze projects, concatenate source files, count tokens, and export HTML with syntax highlighting and copy functionality",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -284,8 +284,10 @@ async function handleTaskExecute(payload) {
284
284
  // 5. Re-check after turn renders — error turns count as turns too.
285
285
  throwIfRateLimited('post_turn');
286
286
 
287
- // 6. Extra settle so streaming finalizes before we trigger Copy-as-markdown
288
- await new Promise(r => setTimeout(r, 1500));
287
+ // Settle hardcoded 1.5s đã được thay thế: AIChat.send clickRunAndWait
288
+ // (trong main.js v2.0.59+) có post-render buffer scale theo render time
289
+ // (10% elapsed, floor 2s, cap 30s) — đủ cho task PDF lớn 5-10p tránh
290
+ // copy thiếu text streaming chunks cuối.
289
291
 
290
292
  if (cancelFlags.has(taskId)) {
291
293
  cancelFlags.delete(taskId);