vg-coder-cli 2.0.55 → 2.0.57

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/bugs/bug1.md CHANGED
@@ -368,3 +368,37 @@ For the AI agent fixing this bug:
368
368
  - Adding model selection per-task (current architecture is per-worker; this bug only addresses
369
369
  per-worker model selection accuracy)
370
370
  - Quota management / fallback strategy when preview models hit limits
371
+
372
+ ---
373
+
374
+ ## Update 2026-05-10 — Deep root cause discovered
375
+
376
+ Sau khi ship v2.0.55 (`_pinnedModelByEmail`), test với account ULTRA có Pro
377
+ access vẫn cho `actualModel: gemini-3-flash-preview`. Debug DOM trong khi task
378
+ đang chạy phát hiện:
379
+
380
+ ```
381
+ URL during task: https://aistudio.google.com/prompts/new_chat ← KHÔNG có ?model=
382
+ DOM ms-model-selector: "gemini-3-flash-preview"
383
+ ```
384
+
385
+ **AI Studio strip `?model=` query khỏi URL sau khi user/script trigger run.**
386
+ URL pin model chỉ work cho **initial load** — sau khi prompt submit, AI Studio
387
+ clean URL → model selector revert về default Flash → task chạy thực sự trên
388
+ Flash bất kể request gì.
389
+
390
+ ### Real fix cần thiết (ngoài scope hôm nay)
391
+
392
+ 1. Worker phải **click model dropdown UI + select model** trước khi submit prompt
393
+ (không thể chỉ rely vào URL param)
394
+ 2. Hoặc: dùng AI Studio **Run settings panel** → model picker thay vì URL trick
395
+
396
+ Cả 2 cách yêu cầu DOM scripting thêm trong `task-worker.js` `handleTaskExecute`,
397
+ prerun step "ensureModel(targetModel)". Phức tạp hơn fix hiện tại.
398
+
399
+ ### Tạm thời (workaround)
400
+
401
+ - `actualModel` field vẫn correct — phản ánh model THỰC SỰ chạy (không phải
402
+ request). Client dùng để fail-fast: `if (actualModel !== expected) abort`.
403
+ - Default model `gemini-3-flash-preview` chấp nhận được cho most use cases.
404
+ - Nếu cần Pro: manual select via noVNC trước khi run task pipeline.