Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1.7 KiB
name, description, metadata
| name | description | metadata | ||||||
|---|---|---|---|---|---|---|---|---|
| feedback_stale_diagnostic_background_agent | IDE diagnostics during a background agent/workflow are stale mid-edit snapshots — trust only the final clean build, not mid-flight × errors |
|
Khi một agent/workflow chạy NỀN (background) ghi file, harness bắn <new-diagnostics> từ IDE TypeScript language-server theo TỪNG lần save dở-dang của agent — KHÔNG phản ánh trạng-thái-cuối nhất-quán nào. Với nhiều agent ghi SONG SONG (workflow fan-out), các snapshot này càng nhiễu (vd "X declared but never read" vì agent vừa thêm import TRƯỚC khi render JSX dùng nó; "Element not assignable" vì sửa giữa chừng).
Why: S69 bị 2× — re-skin 7-designer workflow + PE-FE agent đều bắn loạt × unused/Element, em suýt sửa theo (suýt cp đè file vốn đã hoàn chỉnh). Build npm run build/tsc chạy SAU khi agent xong → exit 0 cả 2 app, mọi × đều false-alarm. Cùng họ gotcha #53 (agent return truncated): disk + build = source-of-truth, KHÔNG tin return/diagnostic suông. Project gotcha #68.
How to apply: (1) Agent/workflow NỀN → bỏ qua diagnostic giữa-chừng, tín hiệu thật = 1 lần build SẠCH chạy SAU agent hoàn-tất (lý do em main build-tập-trung sau fan-out). (2) Phân biệt ai-edit: em main edit real-time ở turn mình → diagnostic TIN được; agent nền edit → verify build TRƯỚC khi sửa/cp-đè. (3) Đừng phản xạ "thấy × thì fix" — verify build trước, tránh redundant fix + suýt clobber file đúng. Link feedback_workflow_fanout_reliability feedback_agent_kill_recovery.