[{"data":1,"prerenderedAt":3487},["ShallowReactive",2],{"article-/topics/ai/ai-agent-spend-reservation-final-reconciliation":3,"related-ai":413,"content-query-fF0zvPS4vf":3184},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":12,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":22,"_type":407,"_id":408,"_source":409,"_file":410,"_stem":411,"_extension":412},"/topics/ai/ai-agent-spend-reservation-final-reconciliation","ai",false,"","AI agent Spend Reservation 与 Final Reconciliation：长任务开始前怎么预留额度，结束后怎么对账","很多 AI agent 不是花不起，而是扣费时机和实际消耗完全错位。本文讲清 spend reservation、budget hold、release policy 与 final reconciliation，避免长任务跑到一半才发现预算不够。","2026-05-15","HTMLPAGE 团队",[13,14,15,16],"AI agent","Spend Reservation","Reconciliation","工程实践","/images/articles/ai-agent-spend-reservation-final-reconciliation-featured.jpg","budget planning laptop office desk",7054403,"https://www.pexels.com/photo/monthly-budget-summary-7054403/",16,{"type":23,"children":24,"toc":397},"root",[25,33,38,43,80,87,192,197,203,208,233,238,244,249,267,272,278,283,301,306,312,317,340,345,351,356,361,366],{"type":26,"tag":27,"props":28,"children":29},"element","p",{},[30],{"type":31,"value":32},"text","很多 AI agent 团队第一次把预算治理做进系统时，默认都会从“任务结束后再结算”开始。这个思路在短请求场景里没太大问题，但只要任务开始变长、步骤开始变多、外部工具开始收费，它就会迅速暴露出两个尴尬：第一，任务已经跑了很久才发现预算不够；第二，平台根本说不清本次 run 到底该按初始估算、实际消耗，还是补偿后的净成本来扣费。",{"type":26,"tag":27,"props":34,"children":35},{},[36],{"type":31,"value":37},"这类问题最容易在企业客户和高风险自动化场景里炸出来。比如一个跨系统的数据同步 run，先做检索，再跑浏览器，再走人工 review，最后还要调用第三方 API。你如果不在开始前做任何 spend reservation，系统就可能在第 80% 时因为额度耗尽停下；可你如果粗暴地一开始就把最大估算全扣掉，客户又会觉得平台像在先斩后奏。",{"type":26,"tag":27,"props":39,"children":40},{},[41],{"type":31,"value":42},"所以 AI agent 里的 budget hold 不是支付系统的小技巧，而是执行控制的一部分。它决定了系统能不能在任务开始前就知道“这件事大概配不配得上现在的预算”，也决定了任务完成后能不能把预留、释放和最终结算说清楚。",{"type":26,"tag":27,"props":44,"children":45},{},[46,48,55,57,63,64,70,72,78],{"type":31,"value":47},"建议配合 ",{"type":26,"tag":49,"props":50,"children":52},"a",{"href":51},"/topics/ai/ai-agent-cost-control-budgeting",[53],{"type":31,"value":54},"AI agent 成本控制与预算治理",{"type":31,"value":56},"、",{"type":26,"tag":49,"props":58,"children":60},{"href":59},"/topics/ai/ai-agent-metering-chargeback-attribution",[61],{"type":31,"value":62},"AI agent Metering 与 Chargeback",{"type":31,"value":56},{"type":26,"tag":49,"props":65,"children":67},{"href":66},"/topics/ai/ai-agent-deadline-timeout-budget-design",[68],{"type":31,"value":69},"AI agent Deadline 与超时预算",{"type":31,"value":71}," 和 ",{"type":26,"tag":49,"props":73,"children":75},{"href":74},"/topics/ai/ai-agent-admission-control-quota-gating",[76],{"type":31,"value":77},"AI agent 准入控制与配额闸门",{"type":31,"value":79}," 一起看。",{"type":26,"tag":81,"props":82,"children":84},"h2",{"id":83},"先分清预留不是扣费释放也不是退款",[85],{"type":31,"value":86},"先分清：预留不是扣费，释放也不是退款",{"type":26,"tag":88,"props":89,"children":90},"table",{},[91,115],{"type":26,"tag":92,"props":93,"children":94},"thead",{},[95],{"type":26,"tag":96,"props":97,"children":98},"tr",{},[99,105,110],{"type":26,"tag":100,"props":101,"children":102},"th",{},[103],{"type":31,"value":104},"动作",{"type":26,"tag":100,"props":106,"children":107},{},[108],{"type":31,"value":109},"真正含义",{"type":26,"tag":100,"props":111,"children":112},{},[113],{"type":31,"value":114},"最常见误解",{"type":26,"tag":116,"props":117,"children":118},"tbody",{},[119,138,156,174],{"type":26,"tag":96,"props":120,"children":121},{},[122,128,133],{"type":26,"tag":123,"props":124,"children":125},"td",{},[126],{"type":31,"value":127},"Reservation",{"type":26,"tag":123,"props":129,"children":130},{},[131],{"type":31,"value":132},"预留一段可用预算，保证任务有资格启动",{"type":26,"tag":123,"props":134,"children":135},{},[136],{"type":31,"value":137},"以为这已经是最终扣费",{"type":26,"tag":96,"props":139,"children":140},{},[141,146,151],{"type":26,"tag":123,"props":142,"children":143},{},[144],{"type":31,"value":145},"Incremental Hold",{"type":26,"tag":123,"props":147,"children":148},{},[149],{"type":31,"value":150},"执行中扩充预留上限",{"type":26,"tag":123,"props":152,"children":153},{},[154],{"type":31,"value":155},"以为是系统在偷偷多收费",{"type":26,"tag":96,"props":157,"children":158},{},[159,164,169],{"type":26,"tag":123,"props":160,"children":161},{},[162],{"type":31,"value":163},"Release",{"type":26,"tag":123,"props":165,"children":166},{},[167],{"type":31,"value":168},"没用掉的预留额度回收",{"type":26,"tag":123,"props":170,"children":171},{},[172],{"type":31,"value":173},"以为这是退款逻辑",{"type":26,"tag":96,"props":175,"children":176},{},[177,182,187],{"type":26,"tag":123,"props":178,"children":179},{},[180],{"type":31,"value":181},"Final Reconciliation",{"type":26,"tag":123,"props":183,"children":184},{},[185],{"type":31,"value":186},"根据实际消耗和平台政策形成最终账单",{"type":26,"tag":123,"props":188,"children":189},{},[190],{"type":31,"value":191},"以为和初始预留一定完全相等",{"type":26,"tag":27,"props":193,"children":194},{},[195],{"type":31,"value":196},"只要这四个动作在产品和账务语义上没分开，客户端看到的“额度变化”就很容易像一团雾。",{"type":26,"tag":81,"props":198,"children":200},{"id":199},"真正麻烦的是长任务的不确定性不是预算本身",[201],{"type":31,"value":202},"真正麻烦的是长任务的不确定性，不是预算本身",{"type":26,"tag":27,"props":204,"children":205},{},[206],{"type":31,"value":207},"短任务通常可以粗略估算一次就完事，但长任务不一样。因为它的成本并不是一次性决定，而是随着路径变化不断展开：",{"type":26,"tag":209,"props":210,"children":211},"ul",{},[212,218,223,228],{"type":26,"tag":213,"props":214,"children":215},"li",{},[216],{"type":31,"value":217},"模型可能触发 fallback",{"type":26,"tag":213,"props":219,"children":220},{},[221],{"type":31,"value":222},"工具调用可能因为失败重试多走两轮",{"type":26,"tag":213,"props":224,"children":225},{},[226],{"type":31,"value":227},"浏览器 runner 可能从轻模式升级到重模式",{"type":26,"tag":213,"props":229,"children":230},{},[231],{"type":31,"value":232},"人工 review 可能把本次 run 拉进更长处理链",{"type":26,"tag":27,"props":234,"children":235},{},[236],{"type":31,"value":237},"也就是说，reservation 真正要处理的不是一个静态总价，而是一条仍在变化的成本路径。系统如果还只会“开始时估一个固定上限”，要么预留过大，让客户体验很差；要么预留过小，到中途又必须停下来补额度。",{"type":26,"tag":81,"props":239,"children":241},{"id":240},"更稳的做法是把预算预留做成阶段控制",[242],{"type":31,"value":243},"更稳的做法，是把预算预留做成阶段控制",{"type":26,"tag":27,"props":245,"children":246},{},[247],{"type":31,"value":248},"对大部分 AI agent 长任务来说，更靠谱的方式不是一次性冻结全部预算，而是按阶段做 hold：",{"type":26,"tag":209,"props":250,"children":251},{},[252,257,262],{"type":26,"tag":213,"props":253,"children":254},{},[255],{"type":31,"value":256},"启动前预留基础执行成本",{"type":26,"tag":213,"props":258,"children":259},{},[260],{"type":31,"value":261},"进入高成本工具前追加一段工具预算",{"type":26,"tag":213,"props":263,"children":264},{},[265],{"type":31,"value":266},"进入人工 review 或高风险副作用前再次确认剩余预算是否允许继续",{"type":26,"tag":27,"props":268,"children":269},{},[270],{"type":31,"value":271},"这种设计的价值不只是更公平，也更接近任务真实展开方式。因为系统终于可以在关键节点问一句：接下来这一步还值得继续吗？这比任务跑到底后再告诉客户“本次比想象中贵很多”更像一个负责任的平台。",{"type":26,"tag":81,"props":273,"children":275},{"id":274},"reconciliation-必须把系统吸收和客户承担分开",[276],{"type":31,"value":277},"Reconciliation 必须把“系统吸收”和“客户承担”分开",{"type":26,"tag":27,"props":279,"children":280},{},[281],{"type":31,"value":282},"final reconciliation 最容易被做错的地方，是把所有实际消耗都默认记给客户。可 AI agent 平台里，很多成本其实不该直接转嫁：",{"type":26,"tag":209,"props":284,"children":285},{},[286,291,296],{"type":26,"tag":213,"props":287,"children":288},{},[289],{"type":31,"value":290},"因平台 bug 导致的无意义重试",{"type":26,"tag":213,"props":292,"children":293},{},[294],{"type":31,"value":295},"因连接器漂移导致的异常浏览器回放",{"type":26,"tag":213,"props":297,"children":298},{},[299],{"type":31,"value":300},"因实验性模型切换导致的额外 fallback",{"type":26,"tag":27,"props":302,"children":303},{},[304],{"type":31,"value":305},"如果这些成本也直接写进最终账单，系统短期看确实省事，长期看却会把平台质量问题伪装成客户用量问题。更合理的方式是让 reconciliation 至少区分三类事实：实际消耗、平台吸收、客户承担。只有这样，账务、工程和客户成功团队才不会永远在同一笔费用上各说各话。",{"type":26,"tag":81,"props":307,"children":309},{"id":308},"一个典型事故预算在末尾才检查导致系统只会白跑",[310],{"type":31,"value":311},"一个典型事故：预算在末尾才检查，导致系统只会“白跑”",{"type":26,"tag":27,"props":313,"children":314},{},[315],{"type":31,"value":316},"某团队的合规审查 agent 要读取文档、抽取证据、跑对比模型，再生成外发报告。他们一开始只在任务结束时检查租户预算是否超限。结果某次月末高峰期，大量企业租户集中触发长任务，平台在最后一步才发现部分账户剩余额度不够。于是出现了很糟糕的局面：",{"type":26,"tag":209,"props":318,"children":319},{},[320,325,330,335],{"type":26,"tag":213,"props":321,"children":322},{},[323],{"type":31,"value":324},"前 90% 的计算和工具调用都已经发生",{"type":26,"tag":213,"props":326,"children":327},{},[328],{"type":31,"value":329},"任务最后不能交付结果",{"type":26,"tag":213,"props":331,"children":332},{},[333],{"type":31,"value":334},"平台又不敢全额向客户收费",{"type":26,"tag":213,"props":336,"children":337},{},[338],{"type":31,"value":339},"工程团队只能把大量成本记到“系统吸收”里",{"type":26,"tag":27,"props":341,"children":342},{},[343],{"type":31,"value":344},"修复并不是“预算不足就直接拒绝全部任务”，而是把 spend reservation 前移到执行开始前，并在进入高成本阶段前再次校验。这个改动听起来像财务问题，实际上直接改变了系统对资源的尊重程度。",{"type":26,"tag":81,"props":346,"children":348},{"id":347},"真正该先补的是预算状态对执行层可见",[349],{"type":31,"value":350},"真正该先补的，是预算状态对执行层可见",{"type":26,"tag":27,"props":352,"children":353},{},[354],{"type":31,"value":355},"如果你现在只能先做一层，优先别去设计更复杂的账单页面，而是让执行层真正看到预算状态：当前已预留多少、已消耗多少、剩余允许继续到哪一步、如果继续会不会越过套餐或租户边界。只要预算还只活在账务系统里，调度器就很难在正确的时间点做正确的停与放。",{"type":26,"tag":27,"props":357,"children":358},{},[359],{"type":31,"value":360},"AI agent 的预算治理，最怕的不是“算得不够精”，而是预算判断永远发生在太晚的地方。任务开始前不看资格，执行中不看阶段，结束后才发现不该跑，这种系统最后只会越来越会白跑。",{"type":26,"tag":27,"props":362,"children":363},{},[364],{"type":31,"value":365},"延伸阅读：",{"type":26,"tag":209,"props":367,"children":368},{},[369,376,383,390],{"type":26,"tag":213,"props":370,"children":371},{},[372],{"type":26,"tag":49,"props":373,"children":374},{"href":51},[375],{"type":31,"value":54},{"type":26,"tag":213,"props":377,"children":378},{},[379],{"type":26,"tag":49,"props":380,"children":381},{"href":59},[382],{"type":31,"value":62},{"type":26,"tag":213,"props":384,"children":385},{},[386],{"type":26,"tag":49,"props":387,"children":388},{"href":66},[389],{"type":31,"value":69},{"type":26,"tag":213,"props":391,"children":392},{},[393],{"type":26,"tag":49,"props":394,"children":395},{"href":74},[396],{"type":31,"value":77},{"title":7,"searchDepth":398,"depth":398,"links":399},3,[400,402,403,404,405,406],{"id":83,"depth":401,"text":86},2,{"id":199,"depth":401,"text":202},{"id":240,"depth":401,"text":243},{"id":274,"depth":401,"text":277},{"id":308,"depth":401,"text":311},{"id":347,"depth":401,"text":350},"markdown","content:topics:ai:ai-agent-spend-reservation-final-reconciliation.md","content","topics/ai/ai-agent-spend-reservation-final-reconciliation.md","topics/ai/ai-agent-spend-reservation-final-reconciliation","md",[414,1570,2520],{"_path":415,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":416,"description":417,"date":418,"topic":5,"author":11,"tags":419,"image":425,"imageAlt":426,"pexelsPhotoId":427,"pexelsUrl":428,"readingTime":429,"body":430,"_type":407,"_id":1567,"_source":409,"_file":1568,"_stem":1569,"_extension":412},"/topics/ai/cursor-keyboard-shortcuts-cheatsheet","Cursor 快捷键速查表（macOS/Windows）：从“会用”到“能提效”的 10 个工作流","把 Cursor 常用快捷键按任务分组（查代码、改代码、多文件、对话、审查与回滚），给出可直接照抄的工作流与最小回归清单，避免“快捷键背了也没变快”。","2026-03-02",[420,421,422,423,424],"Cursor","快捷键","AI IDE","VS Code","开发效率","/images/topics/ai/cursor-keyboard-shortcuts-cheatsheet.jpg","彩色机械键盘与鼠标的工作台面",34563105,"https://www.pexels.com/photo/colorful-mechanical-keyboard-and-mouse-setup-34563105/",12,{"type":23,"children":431,"toc":1541},[432,437,455,460,489,494,530,534,540,545,578,583,606,609,615,620,839,848,851,857,864,883,891,912,917,923,938,969,974,987,993,1012,1030,1038,1043,1049,1054,1075,1083,1089,1094,1117,1122,1128,1141,1147,1165,1183,1189,1200,1218,1224,1235,1241,1246,1289,1292,1298,1306,1359,1362,1368,1374,1379,1384,1407,1425,1430,1455,1458,1464,1470,1475,1481,1486,1492,1497,1500,1506],{"type":26,"tag":27,"props":433,"children":434},{},[435],{"type":31,"value":436},"如果你在搜“Cursor 快捷键”，你大概率不是想背一张表，而是想解决这类问题：",{"type":26,"tag":209,"props":438,"children":439},{},[440,445,450],{"type":26,"tag":213,"props":441,"children":442},{},[443],{"type":31,"value":444},"为什么我用了 AI，还是很慢？（对话来回太多、改动不可控）",{"type":26,"tag":213,"props":446,"children":447},{},[448],{"type":31,"value":449},"为什么它“看起来懂了”，却改错文件/改出回归？（上下文与范围没锁住）",{"type":26,"tag":213,"props":451,"children":452},{},[453],{"type":31,"value":454},"多文件改动怎么做得安全？（验收、回滚、最小回归集）",{"type":26,"tag":27,"props":456,"children":457},{},[458],{"type":31,"value":459},"这篇文章给你两份东西：",{"type":26,"tag":461,"props":462,"children":463},"ol",{},[464,477],{"type":26,"tag":213,"props":465,"children":466},{},[467,469,475],{"type":31,"value":468},"一张",{"type":26,"tag":470,"props":471,"children":472},"strong",{},[473],{"type":31,"value":474},"按任务分组",{"type":31,"value":476},"的快捷键表（不是按功能堆在一起）",{"type":26,"tag":213,"props":478,"children":479},{},[480,482,487],{"type":31,"value":481},"一套“从需求到落地”的",{"type":26,"tag":470,"props":483,"children":484},{},[485],{"type":31,"value":486},"最小闭环工作流",{"type":31,"value":488},"（每一步都有快捷键）",{"type":26,"tag":27,"props":490,"children":491},{},[492],{"type":31,"value":493},"想看系统玩法：",{"type":26,"tag":209,"props":495,"children":496},{},[497,508,519],{"type":26,"tag":213,"props":498,"children":499},{},[500,502],{"type":31,"value":501},"入门教程看：",{"type":26,"tag":49,"props":503,"children":505},{"href":504},"/topics/ai/cursor-tutorial",[506],{"type":31,"value":507},"Cursor 使用教程（2026）",{"type":26,"tag":213,"props":509,"children":510},{},[511,513],{"type":31,"value":512},"进阶玩法看：",{"type":26,"tag":49,"props":514,"children":516},{"href":515},"/topics/ai/cursor-editor-guide",[517],{"type":31,"value":518},"Cursor 编辑器深度玩法",{"type":26,"tag":213,"props":520,"children":521},{},[522,524],{"type":31,"value":523},"规则与忽略看：",{"type":26,"tag":49,"props":525,"children":527},{"href":526},"/topics/ai/cursor-rules-cursorrules",[528],{"type":31,"value":529},"Cursor Rules 与 .cursorrules",{"type":26,"tag":531,"props":532,"children":533},"hr",{},[],{"type":26,"tag":81,"props":535,"children":537},{"id":536},"先给结论提效不是按得快而是闭环更短",[538],{"type":31,"value":539},"先给结论：提效不是“按得快”，而是“闭环更短”",{"type":26,"tag":27,"props":541,"children":542},{},[543],{"type":31,"value":544},"你可以把 Cursor 的快捷键理解为 3 条流水线：",{"type":26,"tag":209,"props":546,"children":547},{},[548,558,568],{"type":26,"tag":213,"props":549,"children":550},{},[551,556],{"type":26,"tag":470,"props":552,"children":553},{},[554],{"type":31,"value":555},"改一小段",{"type":31,"value":557},"（内联编辑）：把改动限制在一个函数/一段样式",{"type":26,"tag":213,"props":559,"children":560},{},[561,566],{"type":26,"tag":470,"props":562,"children":563},{},[564],{"type":31,"value":565},"改一组文件",{"type":31,"value":567},"（Composer）：把改动限制在一组明确文件，并要求输出 diff + 验收点",{"type":26,"tag":213,"props":569,"children":570},{},[571,576],{"type":26,"tag":470,"props":572,"children":573},{},[574],{"type":31,"value":575},"聊清楚再动手",{"type":31,"value":577},"（侧边对话）：先对齐目标、范围、验收、回滚",{"type":26,"tag":27,"props":579,"children":580},{},[581],{"type":31,"value":582},"当你觉得“它乱改/改太大”时，往往不是快捷键没记住，而是缺了两件事：",{"type":26,"tag":209,"props":584,"children":585},{},[586,596],{"type":26,"tag":213,"props":587,"children":588},{},[589,591],{"type":31,"value":590},"没有在动手前锁定",{"type":26,"tag":470,"props":592,"children":593},{},[594],{"type":31,"value":595},"范围",{"type":26,"tag":213,"props":597,"children":598},{},[599,601],{"type":31,"value":600},"没有在接受改动前准备",{"type":26,"tag":470,"props":602,"children":603},{},[604],{"type":31,"value":605},"验收/回滚",{"type":26,"tag":531,"props":607,"children":608},{},[],{"type":26,"tag":81,"props":610,"children":612},{"id":611},"快捷键速查表按任务分组",[613],{"type":31,"value":614},"快捷键速查表（按任务分组）",{"type":26,"tag":27,"props":616,"children":617},{},[618],{"type":31,"value":619},"说明：下表按“你正在做什么”组织，而不是按“功能名字”组织。不同版本快捷键可能略有差异，但核心逻辑一致。",{"type":26,"tag":88,"props":621,"children":622},{},[623,649],{"type":26,"tag":92,"props":624,"children":625},{},[626],{"type":26,"tag":96,"props":627,"children":628},{},[629,634,639,644],{"type":26,"tag":100,"props":630,"children":631},{},[632],{"type":31,"value":633},"任务",{"type":26,"tag":100,"props":635,"children":636},{},[637],{"type":31,"value":638},"macOS",{"type":26,"tag":100,"props":640,"children":641},{},[642],{"type":31,"value":643},"Windows",{"type":26,"tag":100,"props":645,"children":646},{},[647],{"type":31,"value":648},"你该在什么时候用",{"type":26,"tag":116,"props":650,"children":651},{},[652,684,715,746,777,808],{"type":26,"tag":96,"props":653,"children":654},{},[655,660,670,679],{"type":26,"tag":123,"props":656,"children":657},{},[658],{"type":31,"value":659},"改一小段（最安全）",{"type":26,"tag":123,"props":661,"children":662},{},[663],{"type":26,"tag":664,"props":665,"children":667},"code",{"className":666},[],[668],{"type":31,"value":669},"Cmd + K",{"type":26,"tag":123,"props":671,"children":672},{},[673],{"type":26,"tag":664,"props":674,"children":676},{"className":675},[],[677],{"type":31,"value":678},"Ctrl + K",{"type":26,"tag":123,"props":680,"children":681},{},[682],{"type":31,"value":683},"只想改一个函数/一段 CSS，不想动别的",{"type":26,"tag":96,"props":685,"children":686},{},[687,692,701,710],{"type":26,"tag":123,"props":688,"children":689},{},[690],{"type":31,"value":691},"打开 AI 对话（先对齐再动手）",{"type":26,"tag":123,"props":693,"children":694},{},[695],{"type":26,"tag":664,"props":696,"children":698},{"className":697},[],[699],{"type":31,"value":700},"Cmd + L",{"type":26,"tag":123,"props":702,"children":703},{},[704],{"type":26,"tag":664,"props":705,"children":707},{"className":706},[],[708],{"type":31,"value":709},"Ctrl + L",{"type":26,"tag":123,"props":711,"children":712},{},[713],{"type":31,"value":714},"需要澄清目标、制定步骤、给验收点",{"type":26,"tag":96,"props":716,"children":717},{},[718,723,732,741],{"type":26,"tag":123,"props":719,"children":720},{},[721],{"type":31,"value":722},"多文件编辑（有组织地改一组文件）",{"type":26,"tag":123,"props":724,"children":725},{},[726],{"type":26,"tag":664,"props":727,"children":729},{"className":728},[],[730],{"type":31,"value":731},"Cmd + I",{"type":26,"tag":123,"props":733,"children":734},{},[735],{"type":26,"tag":664,"props":736,"children":738},{"className":737},[],[739],{"type":31,"value":740},"Ctrl + I",{"type":26,"tag":123,"props":742,"children":743},{},[744],{"type":31,"value":745},"改动涉及多个文件：组件+样式+测试",{"type":26,"tag":96,"props":747,"children":748},{},[749,754,763,772],{"type":26,"tag":123,"props":750,"children":751},{},[752],{"type":31,"value":753},"把选中代码加入对话上下文",{"type":26,"tag":123,"props":755,"children":756},{},[757],{"type":26,"tag":664,"props":758,"children":760},{"className":759},[],[761],{"type":31,"value":762},"Cmd + Shift + L",{"type":26,"tag":123,"props":764,"children":765},{},[766],{"type":26,"tag":664,"props":767,"children":769},{"className":768},[],[770],{"type":31,"value":771},"Ctrl + Shift + L",{"type":26,"tag":123,"props":773,"children":774},{},[775],{"type":31,"value":776},"让 AI 只看你选的片段（降低噪音）",{"type":26,"tag":96,"props":778,"children":779},{},[780,785,794,803],{"type":26,"tag":123,"props":781,"children":782},{},[783],{"type":31,"value":784},"接受当前建议",{"type":26,"tag":123,"props":786,"children":787},{},[788],{"type":26,"tag":664,"props":789,"children":791},{"className":790},[],[792],{"type":31,"value":793},"Cmd + Y",{"type":26,"tag":123,"props":795,"children":796},{},[797],{"type":26,"tag":664,"props":798,"children":800},{"className":799},[],[801],{"type":31,"value":802},"Ctrl + Y",{"type":26,"tag":123,"props":804,"children":805},{},[806],{"type":31,"value":807},"你已经准备好验收/回滚，并确认改动范围",{"type":26,"tag":96,"props":809,"children":810},{},[811,816,825,834],{"type":26,"tag":123,"props":812,"children":813},{},[814],{"type":31,"value":815},"拒绝当前建议",{"type":26,"tag":123,"props":817,"children":818},{},[819],{"type":26,"tag":664,"props":820,"children":822},{"className":821},[],[823],{"type":31,"value":824},"Cmd + N",{"type":26,"tag":123,"props":826,"children":827},{},[828],{"type":26,"tag":664,"props":829,"children":831},{"className":830},[],[832],{"type":31,"value":833},"Ctrl + N",{"type":26,"tag":123,"props":835,"children":836},{},[837],{"type":31,"value":838},"改得太大、改错方向，立刻收手",{"type":26,"tag":840,"props":841,"children":842},"blockquote",{},[843],{"type":26,"tag":27,"props":844,"children":845},{},[846],{"type":31,"value":847},"小技巧：把“改一小段”当默认路径。只有当你能清晰写出“会改哪几类文件、怎么验收”时再进入多文件。",{"type":26,"tag":531,"props":849,"children":850},{},[],{"type":26,"tag":81,"props":852,"children":854},{"id":853},"_10-个可直接照抄的提效工作流每个都能闭环",[855],{"type":31,"value":856},"10 个可直接照抄的提效工作流（每个都能闭环）",{"type":26,"tag":858,"props":859,"children":861},"h3",{"id":860},"工作流-1需求计划小步改新手最稳",[862],{"type":31,"value":863},"工作流 1：需求→计划→小步改（新手最稳）",{"type":26,"tag":461,"props":865,"children":866},{},[867,878],{"type":26,"tag":213,"props":868,"children":869},{},[870,876],{"type":26,"tag":664,"props":871,"children":873},{"className":872},[],[874],{"type":31,"value":875},"Cmd/Ctrl + L",{"type":31,"value":877}," 打开对话",{"type":26,"tag":213,"props":879,"children":880},{},[881],{"type":31,"value":882},"先发这段（可复制）：",{"type":26,"tag":840,"props":884,"children":885},{},[886],{"type":26,"tag":27,"props":887,"children":888},{},[889],{"type":31,"value":890},"目标：……\n范围：只修改以下文件/模块：……\n非目标：……（明确不做）\n验收：……（可测试/可手动检查）\n输出格式：先给计划，再逐步执行；每一步写出 diff 摘要。",{"type":26,"tag":461,"props":892,"children":893},{"start":398},[894,899],{"type":26,"tag":213,"props":895,"children":896},{},[897],{"type":31,"value":898},"让 AI 先给“计划（3~6 步）”，你确认后再执行",{"type":26,"tag":213,"props":900,"children":901},{},[902,904,910],{"type":31,"value":903},"任何一步涉及改代码：优先回到编辑区，选中片段用 ",{"type":26,"tag":664,"props":905,"children":907},{"className":906},[],[908],{"type":31,"value":909},"Cmd/Ctrl + K",{"type":31,"value":911}," 小步改",{"type":26,"tag":27,"props":913,"children":914},{},[915],{"type":31,"value":916},"为什么有效：你把“想法”变成了“可执行约束”，这就是 GEO（面向 AI/模型的可理解结构）。",{"type":26,"tag":858,"props":918,"children":920},{"id":919},"工作流-2只改一个函数高频低风险",[921],{"type":31,"value":922},"工作流 2：只改一个函数（高频、低风险）",{"type":26,"tag":209,"props":924,"children":925},{},[926],{"type":26,"tag":213,"props":927,"children":928},{},[929,931,936],{"type":31,"value":930},"选中函数 → ",{"type":26,"tag":664,"props":932,"children":934},{"className":933},[],[935],{"type":31,"value":909},{"type":31,"value":937}," → 输入指令：",{"type":26,"tag":840,"props":939,"children":940},{},[941,946],{"type":26,"tag":27,"props":942,"children":943},{},[944],{"type":31,"value":945},"把这段改成更可读：",{"type":26,"tag":209,"props":947,"children":948},{},[949,954,959,964],{"type":26,"tag":213,"props":950,"children":951},{},[952],{"type":31,"value":953},"用 async/await",{"type":26,"tag":213,"props":955,"children":956},{},[957],{"type":31,"value":958},"错误处理不要吞掉",{"type":26,"tag":213,"props":960,"children":961},{},[962],{"type":31,"value":963},"添加类型（若可推断）",{"type":26,"tag":213,"props":965,"children":966},{},[967],{"type":31,"value":968},"不要改函数签名",{"type":26,"tag":27,"props":970,"children":971},{},[972],{"type":31,"value":973},"验收方式（强制）：",{"type":26,"tag":209,"props":975,"children":976},{},[977,982],{"type":26,"tag":213,"props":978,"children":979},{},[980],{"type":31,"value":981},"输出前后函数行为一致（输入/输出）",{"type":26,"tag":213,"props":983,"children":984},{},[985],{"type":31,"value":986},"失败分支有可观测日志（不要悄悄 return null）",{"type":26,"tag":858,"props":988,"children":990},{"id":989},"工作流-3多文件改动先定文件清单",[991],{"type":31,"value":992},"工作流 3：多文件改动（先定“文件清单”）",{"type":26,"tag":461,"props":994,"children":995},{},[996,1007],{"type":26,"tag":213,"props":997,"children":998},{},[999,1005],{"type":26,"tag":664,"props":1000,"children":1002},{"className":1001},[],[1003],{"type":31,"value":1004},"Cmd/Ctrl + I",{"type":31,"value":1006}," 进入多文件",{"type":26,"tag":213,"props":1008,"children":1009},{},[1010],{"type":31,"value":1011},"先让 AI 输出：",{"type":26,"tag":209,"props":1013,"children":1014},{},[1015,1020,1025],{"type":26,"tag":213,"props":1016,"children":1017},{},[1018],{"type":31,"value":1019},"预计会改哪些文件（最多 5 个）",{"type":26,"tag":213,"props":1021,"children":1022},{},[1023],{"type":31,"value":1024},"每个文件改什么",{"type":26,"tag":213,"props":1026,"children":1027},{},[1028],{"type":31,"value":1029},"每一步怎么验收",{"type":26,"tag":461,"props":1031,"children":1032},{"start":398},[1033],{"type":26,"tag":213,"props":1034,"children":1035},{},[1036],{"type":31,"value":1037},"你确认文件清单后再开始生成改动",{"type":26,"tag":27,"props":1039,"children":1040},{},[1041],{"type":31,"value":1042},"关键点：多文件最容易翻车的是“它把你没想到的文件也改了”。所以文件清单是第一道闸门。",{"type":26,"tag":858,"props":1044,"children":1046},{"id":1045},"工作流-4把上下文噪音砍掉防跑偏",[1047],{"type":31,"value":1048},"工作流 4：把“上下文噪音”砍掉（防跑偏）",{"type":26,"tag":27,"props":1050,"children":1051},{},[1052],{"type":31,"value":1053},"当你怀疑它在胡说/乱改时：",{"type":26,"tag":209,"props":1055,"children":1056},{},[1057,1070],{"type":26,"tag":213,"props":1058,"children":1059},{},[1060,1062,1068],{"type":31,"value":1061},"只选择关键代码片段 → ",{"type":26,"tag":664,"props":1063,"children":1065},{"className":1064},[],[1066],{"type":31,"value":1067},"Cmd/Ctrl + Shift + L",{"type":31,"value":1069}," 加入对话",{"type":26,"tag":213,"props":1071,"children":1072},{},[1073],{"type":31,"value":1074},"然后在对话里要求：",{"type":26,"tag":840,"props":1076,"children":1077},{},[1078],{"type":26,"tag":27,"props":1079,"children":1080},{},[1081],{"type":31,"value":1082},"只基于我提供的代码片段回答，不要假设其它文件存在。",{"type":26,"tag":858,"props":1084,"children":1086},{"id":1085},"工作流-5生成变更说明让-code-review-变快",[1087],{"type":31,"value":1088},"工作流 5：生成变更说明（让 code review 变快）",{"type":26,"tag":27,"props":1090,"children":1091},{},[1092],{"type":31,"value":1093},"改完后在对话里让它输出：",{"type":26,"tag":209,"props":1095,"children":1096},{},[1097,1102,1107,1112],{"type":26,"tag":213,"props":1098,"children":1099},{},[1100],{"type":31,"value":1101},"改动摘要（3~7 条）",{"type":26,"tag":213,"props":1103,"children":1104},{},[1105],{"type":31,"value":1106},"风险点（依赖/边界条件）",{"type":26,"tag":213,"props":1108,"children":1109},{},[1110],{"type":31,"value":1111},"回滚方式",{"type":26,"tag":213,"props":1113,"children":1114},{},[1115],{"type":31,"value":1116},"验收步骤",{"type":26,"tag":27,"props":1118,"children":1119},{},[1120],{"type":31,"value":1121},"这套结构能直接贴进 PR 描述。",{"type":26,"tag":858,"props":1123,"children":1125},{"id":1124},"工作流-6写最小回归集不写回归-等事故",[1126],{"type":31,"value":1127},"工作流 6：写“最小回归集”（不写回归 = 等事故）",{"type":26,"tag":27,"props":1129,"children":1130},{},[1131,1133,1139],{"type":31,"value":1132},"每次改动都至少做 10 条最小回归（见下文清单）。你可以把它写在 ",{"type":26,"tag":664,"props":1134,"children":1136},{"className":1135},[],[1137],{"type":31,"value":1138},"README",{"type":31,"value":1140}," 或团队 wiki。",{"type":26,"tag":858,"props":1142,"children":1144},{"id":1143},"工作流-7把接受建议变成最后一步",[1145],{"type":31,"value":1146},"工作流 7：把“接受建议”变成最后一步",{"type":26,"tag":27,"props":1148,"children":1149},{},[1150,1156,1158,1163],{"type":26,"tag":664,"props":1151,"children":1153},{"className":1152},[],[1154],{"type":31,"value":1155},"Cmd/Ctrl + Y",{"type":31,"value":1157}," 应该是",{"type":26,"tag":470,"props":1159,"children":1160},{},[1161],{"type":31,"value":1162},"最后一步",{"type":31,"value":1164},"：",{"type":26,"tag":209,"props":1166,"children":1167},{},[1168,1173,1178],{"type":26,"tag":213,"props":1169,"children":1170},{},[1171],{"type":31,"value":1172},"你已经看过 diff",{"type":26,"tag":213,"props":1174,"children":1175},{},[1176],{"type":31,"value":1177},"你能说清楚“怎么验收”",{"type":26,"tag":213,"props":1179,"children":1180},{},[1181],{"type":31,"value":1182},"你知道“怎么回滚”",{"type":26,"tag":858,"props":1184,"children":1186},{"id":1185},"工作流-8拒绝建议不是失败是风控动作",[1187],{"type":31,"value":1188},"工作流 8：拒绝建议不是失败，是风控动作",{"type":26,"tag":27,"props":1190,"children":1191},{},[1192,1198],{"type":26,"tag":664,"props":1193,"children":1195},{"className":1194},[],[1196],{"type":31,"value":1197},"Cmd/Ctrl + N",{"type":31,"value":1199}," 的使用时机：",{"type":26,"tag":209,"props":1201,"children":1202},{},[1203,1208,1213],{"type":26,"tag":213,"props":1204,"children":1205},{},[1206],{"type":31,"value":1207},"它开始改你没提过的东西（范围漂移）",{"type":26,"tag":213,"props":1209,"children":1210},{},[1211],{"type":31,"value":1212},"它改了 10 个文件但你只想改 1 个",{"type":26,"tag":213,"props":1214,"children":1215},{},[1216],{"type":31,"value":1217},"它为了“更优雅”引入新依赖/新抽象",{"type":26,"tag":858,"props":1219,"children":1221},{"id":1220},"工作流-9重复任务做成模板提示词不是一次性",[1222],{"type":31,"value":1223},"工作流 9：重复任务做成模板（提示词不是一次性）",{"type":26,"tag":27,"props":1225,"children":1226},{},[1227,1229,1233],{"type":31,"value":1228},"把高频任务（比如“写组件+样式+验收”）固化成模板，放进 Rules（见：",{"type":26,"tag":49,"props":1230,"children":1231},{"href":526},[1232],{"type":31,"value":529},{"type":31,"value":1234},"）。",{"type":26,"tag":858,"props":1236,"children":1238},{"id":1237},"工作流-10把快捷键表做成你自己的任务表",[1239],{"type":31,"value":1240},"工作流 10：把“快捷键表”做成你自己的任务表",{"type":26,"tag":27,"props":1242,"children":1243},{},[1244],{"type":31,"value":1245},"你不需要记住所有快捷键，只需要记住：",{"type":26,"tag":209,"props":1247,"children":1248},{},[1249,1259,1269,1279],{"type":26,"tag":213,"props":1250,"children":1251},{},[1252,1254],{"type":31,"value":1253},"小步改：",{"type":26,"tag":664,"props":1255,"children":1257},{"className":1256},[],[1258],{"type":31,"value":909},{"type":26,"tag":213,"props":1260,"children":1261},{},[1262,1264],{"type":31,"value":1263},"先对齐：",{"type":26,"tag":664,"props":1265,"children":1267},{"className":1266},[],[1268],{"type":31,"value":875},{"type":26,"tag":213,"props":1270,"children":1271},{},[1272,1274],{"type":31,"value":1273},"多文件：",{"type":26,"tag":664,"props":1275,"children":1277},{"className":1276},[],[1278],{"type":31,"value":1004},{"type":26,"tag":213,"props":1280,"children":1281},{},[1282,1284],{"type":31,"value":1283},"上下文聚焦：",{"type":26,"tag":664,"props":1285,"children":1287},{"className":1286},[],[1288],{"type":31,"value":1067},{"type":26,"tag":531,"props":1290,"children":1291},{},[],{"type":26,"tag":81,"props":1293,"children":1295},{"id":1294},"必交付物-1最小回归任务清单10-条通用",[1296],{"type":31,"value":1297},"必交付物 1：最小回归任务清单（10 条，通用）",{"type":26,"tag":840,"props":1299,"children":1300},{},[1301],{"type":26,"tag":27,"props":1302,"children":1303},{},[1304],{"type":31,"value":1305},"这份清单的意义：让每次 AI 改动都能“被验证”。否则你只是把不可控变成了更快的不可控。",{"type":26,"tag":461,"props":1307,"children":1308},{},[1309,1314,1319,1324,1329,1334,1339,1344,1349,1354],{"type":26,"tag":213,"props":1310,"children":1311},{},[1312],{"type":31,"value":1313},"关键路径能跑通（手动点击/请求一次）",{"type":26,"tag":213,"props":1315,"children":1316},{},[1317],{"type":31,"value":1318},"错误路径能触发（模拟一次失败输入）",{"type":26,"tag":213,"props":1320,"children":1321},{},[1322],{"type":31,"value":1323},"控制台无新增错误（至少关注 1 次真实操作）",{"type":26,"tag":213,"props":1325,"children":1326},{},[1327],{"type":31,"value":1328},"关键 UI 未错位（移动端/桌面端各看一眼）",{"type":26,"tag":213,"props":1330,"children":1331},{},[1332],{"type":31,"value":1333},"刷新后状态正确（尤其是表单/列表）",{"type":26,"tag":213,"props":1335,"children":1336},{},[1337],{"type":31,"value":1338},"路由跳转没断（从入口到目标页）",{"type":26,"tag":213,"props":1340,"children":1341},{},[1342],{"type":31,"value":1343},"相关接口未改变契约（字段名/类型）",{"type":26,"tag":213,"props":1345,"children":1346},{},[1347],{"type":31,"value":1348},"性能没有明显退化（首屏、交互卡顿）",{"type":26,"tag":213,"props":1350,"children":1351},{},[1352],{"type":31,"value":1353},"回滚方案可执行（知道回滚哪几个文件/commit）",{"type":26,"tag":213,"props":1355,"children":1356},{},[1357],{"type":31,"value":1358},"写下“这次改动解决了什么、风险是什么”（可贴 PR）",{"type":26,"tag":531,"props":1360,"children":1361},{},[],{"type":26,"tag":81,"props":1363,"children":1365},{"id":1364},"必交付物-2失败案例复盘真实会发生",[1366],{"type":31,"value":1367},"必交付物 2：失败案例复盘（真实会发生）",{"type":26,"tag":858,"props":1369,"children":1371},{"id":1370},"现象快捷键用得很熟但交付还是慢",[1372],{"type":31,"value":1373},"现象：快捷键用得很熟，但交付还是慢",{"type":26,"tag":27,"props":1375,"children":1376},{},[1377],{"type":31,"value":1378},"典型原因：你把 Cursor 当成“更聪明的搜索框”，不断对话，直到它给出你想要的答案。",{"type":26,"tag":27,"props":1380,"children":1381},{},[1382],{"type":31,"value":1383},"复现路径：",{"type":26,"tag":209,"props":1385,"children":1386},{},[1387,1392,1397,1402],{"type":26,"tag":213,"props":1388,"children":1389},{},[1390],{"type":31,"value":1391},"你直接说“把页面做得更好看、更高级”",{"type":26,"tag":213,"props":1393,"children":1394},{},[1395],{"type":31,"value":1396},"AI 开始大改样式、抽象组件、甚至引入新依赖",{"type":26,"tag":213,"props":1398,"children":1399},{},[1400],{"type":31,"value":1401},"你为了省事按了“接受建议”",{"type":26,"tag":213,"props":1403,"children":1404},{},[1405],{"type":31,"value":1406},"最后发现：设计没统一、移动端崩、甚至埋了性能问题",{"type":26,"tag":27,"props":1408,"children":1409},{},[1410,1412,1416,1418,1423],{"type":31,"value":1411},"根因：缺少",{"type":26,"tag":470,"props":1413,"children":1414},{},[1415],{"type":31,"value":595},{"type":31,"value":1417},"与",{"type":26,"tag":470,"props":1419,"children":1420},{},[1421],{"type":31,"value":1422},"验收",{"type":31,"value":1424},"。",{"type":26,"tag":27,"props":1426,"children":1427},{},[1428],{"type":31,"value":1429},"修复方式（可照抄）：",{"type":26,"tag":209,"props":1431,"children":1432},{},[1433,1438,1450],{"type":26,"tag":213,"props":1434,"children":1435},{},[1436],{"type":31,"value":1437},"把需求拆成 3 个可验证目标：例如“按钮样式统一”“首屏 CTA 更明显”“移动端间距不挤”",{"type":26,"tag":213,"props":1439,"children":1440},{},[1441,1443,1448],{"type":31,"value":1442},"每个目标只用 ",{"type":26,"tag":664,"props":1444,"children":1446},{"className":1445},[],[1447],{"type":31,"value":909},{"type":31,"value":1449}," 改一个局部",{"type":26,"tag":213,"props":1451,"children":1452},{},[1453],{"type":31,"value":1454},"每次接受建议前跑一遍“最小回归集”",{"type":26,"tag":531,"props":1456,"children":1457},{},[],{"type":26,"tag":81,"props":1459,"children":1461},{"id":1460},"faq高频问题",[1462],{"type":31,"value":1463},"FAQ（高频问题）",{"type":26,"tag":858,"props":1465,"children":1467},{"id":1466},"q1我应该先记快捷键还是先学工作流",[1468],{"type":31,"value":1469},"Q1：我应该先记快捷键还是先学工作流？",{"type":26,"tag":27,"props":1471,"children":1472},{},[1473],{"type":31,"value":1474},"先学工作流。快捷键只是把工作流的步骤变短。",{"type":26,"tag":858,"props":1476,"children":1478},{"id":1477},"q2为什么我一用多文件就容易翻车",[1479],{"type":31,"value":1480},"Q2：为什么我一用多文件就容易翻车？",{"type":26,"tag":27,"props":1482,"children":1483},{},[1484],{"type":31,"value":1485},"因为多文件意味着范围更大、依赖更多、验收更难。先锁定“文件清单 + 每步验收”，再让它动手。",{"type":26,"tag":858,"props":1487,"children":1489},{"id":1488},"q3有没有万能提示词",[1490],{"type":31,"value":1491},"Q3：有没有“万能提示词”？",{"type":26,"tag":27,"props":1493,"children":1494},{},[1495],{"type":31,"value":1496},"没有，但有“万能结构”：目标、范围、非目标、验收、输出格式。",{"type":26,"tag":531,"props":1498,"children":1499},{},[],{"type":26,"tag":81,"props":1501,"children":1503},{"id":1502},"延伸阅读建议按顺序",[1504],{"type":31,"value":1505},"延伸阅读（建议按顺序）",{"type":26,"tag":209,"props":1507,"children":1508},{},[1509,1516,1523,1530],{"type":26,"tag":213,"props":1510,"children":1511},{},[1512],{"type":26,"tag":49,"props":1513,"children":1514},{"href":504},[1515],{"type":31,"value":507},{"type":26,"tag":213,"props":1517,"children":1518},{},[1519],{"type":26,"tag":49,"props":1520,"children":1521},{"href":515},[1522],{"type":31,"value":518},{"type":26,"tag":213,"props":1524,"children":1525},{},[1526],{"type":26,"tag":49,"props":1527,"children":1528},{"href":526},[1529],{"type":31,"value":529},{"type":26,"tag":213,"props":1531,"children":1532},{},[1533,1535],{"type":31,"value":1534},"如果你更关心“网页制作落地”：看这篇 ",{"type":26,"tag":49,"props":1536,"children":1538},{"href":1537},"/topics/practical-tips/htmlpage-quick-landing-page",[1539],{"type":31,"value":1540},"3 分钟用 HTMLPAGE 做落地页",{"title":7,"searchDepth":398,"depth":398,"links":1542},[1543,1544,1545,1557,1558,1561,1566],{"id":536,"depth":401,"text":539},{"id":611,"depth":401,"text":614},{"id":853,"depth":401,"text":856,"children":1546},[1547,1548,1549,1550,1551,1552,1553,1554,1555,1556],{"id":860,"depth":398,"text":863},{"id":919,"depth":398,"text":922},{"id":989,"depth":398,"text":992},{"id":1045,"depth":398,"text":1048},{"id":1085,"depth":398,"text":1088},{"id":1124,"depth":398,"text":1127},{"id":1143,"depth":398,"text":1146},{"id":1185,"depth":398,"text":1188},{"id":1220,"depth":398,"text":1223},{"id":1237,"depth":398,"text":1240},{"id":1294,"depth":401,"text":1297},{"id":1364,"depth":401,"text":1367,"children":1559},[1560],{"id":1370,"depth":398,"text":1373},{"id":1460,"depth":401,"text":1463,"children":1562},[1563,1564,1565],{"id":1466,"depth":398,"text":1469},{"id":1477,"depth":398,"text":1480},{"id":1488,"depth":398,"text":1491},{"id":1502,"depth":401,"text":1505},"content:topics:ai:cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet.md","topics/ai/cursor-keyboard-shortcuts-cheatsheet",{"_path":1571,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":1572,"description":1573,"date":1574,"topic":5,"author":11,"tags":1575,"image":1579,"imageAlt":1580,"pexelsPhotoId":1581,"pexelsUrl":1582,"readingTime":1583,"body":1584,"_type":407,"_id":2517,"_source":409,"_file":2518,"_stem":2519,"_extension":412},"/topics/ai/cursor-vs-copilot-vscode-workflow","Cursor vs GitHub Copilot vs VS Code：怎么选、怎么搭配、怎么把风险关在笼子里","用“任务类型×风险×验收成本”的选择矩阵解释 Cursor/Copilot/VS Code 的差异，并给出一套可落地的协作工作流（范围闸门、最小回归集、回滚策略）。","2026-03-01",[420,1576,423,1577,1578],"GitHub Copilot","AI 编程","工作流","/images/topics/ai/cursor-vs-copilot-vscode-workflow.jpg","团队在电脑前进行协作讨论",1181371,"https://www.pexels.com/photo/man-wearing-blue-dress-shirt-1181371/",15,{"type":23,"children":1585,"toc":2495},[1586,1591,1596,1614,1619,1637,1640,1646,1651,1682,1687,1690,1696,1704,1908,1916,1929,1932,1938,1944,1957,1962,1975,1981,1986,2019,2025,2030,2048,2051,2057,2062,2068,2073,2106,2112,2125,2130,2143,2149,2161,2167,2172,2185,2190,2193,2199,2204,2325,2328,2334,2344,2353,2371,2380,2388,2397,2415,2418,2424,2430,2435,2441,2446,2449,2454],{"type":26,"tag":27,"props":1587,"children":1588},{},[1589],{"type":31,"value":1590},"“Cursor 和 Copilot 到底有什么区别？”",{"type":26,"tag":27,"props":1592,"children":1593},{},[1594],{"type":31,"value":1595},"这个问题问得越早越好，因为你一旦把工具选错，后面所有痛苦都不是“提示词不够好”，而是：",{"type":26,"tag":209,"props":1597,"children":1598},{},[1599,1604,1609],{"type":26,"tag":213,"props":1600,"children":1601},{},[1602],{"type":31,"value":1603},"改动不可控（范围漂移、改错文件）",{"type":26,"tag":213,"props":1605,"children":1606},{},[1607],{"type":31,"value":1608},"验收成本爆炸（不知道要测什么）",{"type":26,"tag":213,"props":1610,"children":1611},{},[1612],{"type":31,"value":1613},"团队协作崩盘（没有闸门、没有回滚）",{"type":26,"tag":27,"props":1615,"children":1616},{},[1617],{"type":31,"value":1618},"这篇文章用一张选择矩阵 + 一套可执行工作流，帮你做到两件事：",{"type":26,"tag":461,"props":1620,"children":1621},{},[1622,1627],{"type":26,"tag":213,"props":1623,"children":1624},{},[1625],{"type":31,"value":1626},"知道什么时候用 Cursor、什么时候用 Copilot、什么时候“纯 VS Code 更快”",{"type":26,"tag":213,"props":1628,"children":1629},{},[1630,1632],{"type":31,"value":1631},"就算用 AI，也能把风险关在笼子里：",{"type":26,"tag":470,"props":1633,"children":1634},{},[1635],{"type":31,"value":1636},"可审查、可验证、可回滚",{"type":26,"tag":531,"props":1638,"children":1639},{},[],{"type":26,"tag":81,"props":1641,"children":1643},{"id":1642},"结论先说三者不是互斥而是分工",[1644],{"type":31,"value":1645},"结论先说：三者不是互斥，而是分工",{"type":26,"tag":27,"props":1647,"children":1648},{},[1649],{"type":31,"value":1650},"你可以把它们看成三层能力：",{"type":26,"tag":209,"props":1652,"children":1653},{},[1654,1663,1673],{"type":26,"tag":213,"props":1655,"children":1656},{},[1657,1661],{"type":26,"tag":470,"props":1658,"children":1659},{},[1660],{"type":31,"value":423},{"type":31,"value":1662},"：编辑器与生态（调试、插件、任务、终端、语言服务）",{"type":26,"tag":213,"props":1664,"children":1665},{},[1666,1671],{"type":26,"tag":470,"props":1667,"children":1668},{},[1669],{"type":31,"value":1670},"Copilot",{"type":31,"value":1672},"：代码补全与局部建议（“我正在写这一行/这一段”）",{"type":26,"tag":213,"props":1674,"children":1675},{},[1676,1680],{"type":26,"tag":470,"props":1677,"children":1678},{},[1679],{"type":31,"value":420},{"type":31,"value":1681},"：以项目为单位的 AI 协作（对话、索引、多文件编辑、规则）",{"type":26,"tag":27,"props":1683,"children":1684},{},[1685],{"type":31,"value":1686},"最常见的误区是：把“局部补全能力”当作“能做架构与多文件落地”。",{"type":26,"tag":531,"props":1688,"children":1689},{},[],{"type":26,"tag":81,"props":1691,"children":1693},{"id":1692},"选择矩阵按任务类型选工具不是按偏好",[1694],{"type":31,"value":1695},"选择矩阵：按任务类型选工具（不是按偏好）",{"type":26,"tag":840,"props":1697,"children":1698},{},[1699],{"type":26,"tag":27,"props":1700,"children":1701},{},[1702],{"type":31,"value":1703},"你只要把自己的任务放进表格，就能得到推荐路径。",{"type":26,"tag":88,"props":1705,"children":1706},{},[1707,1739],{"type":26,"tag":92,"props":1708,"children":1709},{},[1710],{"type":26,"tag":96,"props":1711,"children":1712},{},[1713,1718,1724,1729,1734],{"type":26,"tag":100,"props":1714,"children":1715},{},[1716],{"type":31,"value":1717},"任务类型",{"type":26,"tag":100,"props":1719,"children":1721},{"align":1720},"right",[1722],{"type":31,"value":1723},"风险",{"type":26,"tag":100,"props":1725,"children":1726},{"align":1720},[1727],{"type":31,"value":1728},"验收成本",{"type":26,"tag":100,"props":1730,"children":1731},{},[1732],{"type":31,"value":1733},"更推荐",{"type":26,"tag":100,"props":1735,"children":1736},{},[1737],{"type":31,"value":1738},"为什么",{"type":26,"tag":116,"props":1740,"children":1741},{},[1742,1769,1802,1828,1855,1882],{"type":26,"tag":96,"props":1743,"children":1744},{},[1745,1750,1755,1759,1764],{"type":26,"tag":123,"props":1746,"children":1747},{},[1748],{"type":31,"value":1749},"写一段代码/补一个 if",{"type":26,"tag":123,"props":1751,"children":1752},{"align":1720},[1753],{"type":31,"value":1754},"低",{"type":26,"tag":123,"props":1756,"children":1757},{"align":1720},[1758],{"type":31,"value":1754},{"type":26,"tag":123,"props":1760,"children":1761},{},[1762],{"type":31,"value":1763},"Copilot / Cursor 内联编辑",{"type":26,"tag":123,"props":1765,"children":1766},{},[1767],{"type":31,"value":1768},"局部建议足够，成本最低",{"type":26,"tag":96,"props":1770,"children":1771},{},[1772,1777,1782,1786,1797],{"type":26,"tag":123,"props":1773,"children":1774},{},[1775],{"type":31,"value":1776},"重构一个函数",{"type":26,"tag":123,"props":1778,"children":1779},{"align":1720},[1780],{"type":31,"value":1781},"中",{"type":26,"tag":123,"props":1783,"children":1784},{"align":1720},[1785],{"type":31,"value":1781},{"type":26,"tag":123,"props":1787,"children":1788},{},[1789,1791],{"type":31,"value":1790},"Cursor ",{"type":26,"tag":664,"props":1792,"children":1794},{"className":1793},[],[1795],{"type":31,"value":1796},"内联编辑",{"type":26,"tag":123,"props":1798,"children":1799},{},[1800],{"type":31,"value":1801},"需要解释、需要约束输出",{"type":26,"tag":96,"props":1803,"children":1804},{},[1805,1810,1814,1818,1823],{"type":26,"tag":123,"props":1806,"children":1807},{},[1808],{"type":31,"value":1809},"改一个组件 + 样式",{"type":26,"tag":123,"props":1811,"children":1812},{"align":1720},[1813],{"type":31,"value":1781},{"type":26,"tag":123,"props":1815,"children":1816},{"align":1720},[1817],{"type":31,"value":1781},{"type":26,"tag":123,"props":1819,"children":1820},{},[1821],{"type":31,"value":1822},"Cursor（小范围多文件）",{"type":26,"tag":123,"props":1824,"children":1825},{},[1826],{"type":31,"value":1827},"需要同时改模板与样式",{"type":26,"tag":96,"props":1829,"children":1830},{},[1831,1836,1841,1845,1850],{"type":26,"tag":123,"props":1832,"children":1833},{},[1834],{"type":31,"value":1835},"改 3~5 个文件（组件+api+测试）",{"type":26,"tag":123,"props":1837,"children":1838},{"align":1720},[1839],{"type":31,"value":1840},"高",{"type":26,"tag":123,"props":1842,"children":1843},{"align":1720},[1844],{"type":31,"value":1840},{"type":26,"tag":123,"props":1846,"children":1847},{},[1848],{"type":31,"value":1849},"Cursor Composer + 闸门",{"type":26,"tag":123,"props":1851,"children":1852},{},[1853],{"type":31,"value":1854},"需要计划、验收、回滚",{"type":26,"tag":96,"props":1856,"children":1857},{},[1858,1863,1868,1872,1877],{"type":26,"tag":123,"props":1859,"children":1860},{},[1861],{"type":31,"value":1862},"重写一段架构/引入新依赖",{"type":26,"tag":123,"props":1864,"children":1865},{"align":1720},[1866],{"type":31,"value":1867},"很高",{"type":26,"tag":123,"props":1869,"children":1870},{"align":1720},[1871],{"type":31,"value":1867},{"type":26,"tag":123,"props":1873,"children":1874},{},[1875],{"type":31,"value":1876},"先人脑设计 + VS Code 实现",{"type":26,"tag":123,"props":1878,"children":1879},{},[1880],{"type":31,"value":1881},"AI 易发散，最好先设计再执行",{"type":26,"tag":96,"props":1883,"children":1884},{},[1885,1890,1894,1898,1903],{"type":26,"tag":123,"props":1886,"children":1887},{},[1888],{"type":31,"value":1889},"排查线上问题/性能抖动",{"type":26,"tag":123,"props":1891,"children":1892},{"align":1720},[1893],{"type":31,"value":1840},{"type":26,"tag":123,"props":1895,"children":1896},{"align":1720},[1897],{"type":31,"value":1867},{"type":26,"tag":123,"props":1899,"children":1900},{},[1901],{"type":31,"value":1902},"VS Code + 工具链优先，AI 辅助归纳",{"type":26,"tag":123,"props":1904,"children":1905},{},[1906],{"type":31,"value":1907},"需要证据，不要“猜”",{"type":26,"tag":27,"props":1909,"children":1910},{},[1911],{"type":26,"tag":470,"props":1912,"children":1913},{},[1914],{"type":31,"value":1915},"一句话规则：",{"type":26,"tag":209,"props":1917,"children":1918},{},[1919,1924],{"type":26,"tag":213,"props":1920,"children":1921},{},[1922],{"type":31,"value":1923},"当你的改动可以用“10 条最小回归集”覆盖时，用 Cursor。",{"type":26,"tag":213,"props":1925,"children":1926},{},[1927],{"type":31,"value":1928},"当你的改动无法验证时，先别让 AI 动手。",{"type":26,"tag":531,"props":1930,"children":1931},{},[],{"type":26,"tag":81,"props":1933,"children":1935},{"id":1934},"差异拆解到底差在哪里",[1936],{"type":31,"value":1937},"差异拆解：到底差在哪里？",{"type":26,"tag":858,"props":1939,"children":1941},{"id":1940},"_1-上下文来源补全-vs-项目索引",[1942],{"type":31,"value":1943},"1) 上下文来源：补全 vs 项目索引",{"type":26,"tag":209,"props":1945,"children":1946},{},[1947,1952],{"type":26,"tag":213,"props":1948,"children":1949},{},[1950],{"type":31,"value":1951},"Copilot 更擅长：你正在写的这几行、当前文件的局部上下文",{"type":26,"tag":213,"props":1953,"children":1954},{},[1955],{"type":31,"value":1956},"Cursor 更擅长：项目级索引 + 多文件关联理解",{"type":26,"tag":27,"props":1958,"children":1959},{},[1960],{"type":31,"value":1961},"因此：",{"type":26,"tag":209,"props":1963,"children":1964},{},[1965,1970],{"type":26,"tag":213,"props":1966,"children":1967},{},[1968],{"type":31,"value":1969},"写代码片段：Copilot 速度更快",{"type":26,"tag":213,"props":1971,"children":1972},{},[1973],{"type":31,"value":1974},"改一坨工程：Cursor 更有胜算（但更需要闸门）",{"type":26,"tag":858,"props":1976,"children":1978},{"id":1977},"_2-交互方式你能不能控制范围",[1979],{"type":31,"value":1980},"2) 交互方式：你能不能控制范围",{"type":26,"tag":27,"props":1982,"children":1983},{},[1984],{"type":31,"value":1985},"范围控制的三个层级：",{"type":26,"tag":461,"props":1987,"children":1988},{},[1989,1999,2009],{"type":26,"tag":213,"props":1990,"children":1991},{},[1992,1994],{"type":31,"value":1993},"内联编辑（选中一段）→ ",{"type":26,"tag":470,"props":1995,"children":1996},{},[1997],{"type":31,"value":1998},"最强范围控制",{"type":26,"tag":213,"props":2000,"children":2001},{},[2002,2004],{"type":31,"value":2003},"Composer 多文件（先列文件清单）→ ",{"type":26,"tag":470,"props":2005,"children":2006},{},[2007],{"type":31,"value":2008},"可控但要闸门",{"type":26,"tag":213,"props":2010,"children":2011},{},[2012,2014],{"type":31,"value":2013},"大对话（泛目标）→ ",{"type":26,"tag":470,"props":2015,"children":2016},{},[2017],{"type":31,"value":2018},"最容易跑偏",{"type":26,"tag":858,"props":2020,"children":2022},{"id":2021},"_3-输出形态建议-vs-可审查的变更",[2023],{"type":31,"value":2024},"3) 输出形态：建议 vs 可审查的变更",{"type":26,"tag":27,"props":2026,"children":2027},{},[2028],{"type":31,"value":2029},"最好的 AI 输出不是“给我一段代码”，而是：",{"type":26,"tag":209,"props":2031,"children":2032},{},[2033,2038,2043],{"type":26,"tag":213,"props":2034,"children":2035},{},[2036],{"type":31,"value":2037},"改动摘要（做了什么）",{"type":26,"tag":213,"props":2039,"children":2040},{},[2041],{"type":31,"value":2042},"diff 级别的可审查变更",{"type":26,"tag":213,"props":2044,"children":2045},{},[2046],{"type":31,"value":2047},"验收步骤与回滚方案",{"type":26,"tag":531,"props":2049,"children":2050},{},[],{"type":26,"tag":81,"props":2052,"children":2054},{"id":2053},"一套可落地的团队工作流把风险关住",[2055],{"type":31,"value":2056},"一套可落地的团队工作流（把风险关住）",{"type":26,"tag":27,"props":2058,"children":2059},{},[2060],{"type":31,"value":2061},"下面这套流程，你可以直接写进团队规范：",{"type":26,"tag":858,"props":2063,"children":2065},{"id":2064},"step-1先写任务单geo-友好结构",[2066],{"type":31,"value":2067},"Step 1：先写任务单（GEO 友好结构）",{"type":26,"tag":27,"props":2069,"children":2070},{},[2071],{"type":31,"value":2072},"模板：",{"type":26,"tag":209,"props":2074,"children":2075},{},[2076,2081,2086,2091,2096,2101],{"type":26,"tag":213,"props":2077,"children":2078},{},[2079],{"type":31,"value":2080},"目标：……",{"type":26,"tag":213,"props":2082,"children":2083},{},[2084],{"type":31,"value":2085},"背景：……",{"type":26,"tag":213,"props":2087,"children":2088},{},[2089],{"type":31,"value":2090},"范围：只改这些文件/模块：……",{"type":26,"tag":213,"props":2092,"children":2093},{},[2094],{"type":31,"value":2095},"非目标：不做哪些事情：……",{"type":26,"tag":213,"props":2097,"children":2098},{},[2099],{"type":31,"value":2100},"验收：如何判断完成（可测试/可观察）：……",{"type":26,"tag":213,"props":2102,"children":2103},{},[2104],{"type":31,"value":2105},"回滚：如果失败怎么撤回：……",{"type":26,"tag":858,"props":2107,"children":2109},{"id":2108},"step-2用范围闸门限制-ai",[2110],{"type":31,"value":2111},"Step 2：用“范围闸门”限制 AI",{"type":26,"tag":209,"props":2113,"children":2114},{},[2115,2120],{"type":26,"tag":213,"props":2116,"children":2117},{},[2118],{"type":31,"value":2119},"单文件改动：优先 Cursor 内联编辑",{"type":26,"tag":213,"props":2121,"children":2122},{},[2123],{"type":31,"value":2124},"多文件改动：必须先让 AI 输出“文件清单（≤5）+ 每步验收”",{"type":26,"tag":27,"props":2126,"children":2127},{},[2128],{"type":31,"value":2129},"如果 AI 输出的文件清单超过 5 个：",{"type":26,"tag":209,"props":2131,"children":2132},{},[2133,2138],{"type":26,"tag":213,"props":2134,"children":2135},{},[2136],{"type":31,"value":2137},"不是它太强，是任务太大",{"type":26,"tag":213,"props":2139,"children":2140},{},[2141],{"type":31,"value":2142},"你需要拆任务，而不是继续推进",{"type":26,"tag":858,"props":2144,"children":2146},{"id":2145},"step-3最小回归集10-条",[2147],{"type":31,"value":2148},"Step 3：最小回归集（10 条）",{"type":26,"tag":27,"props":2150,"children":2151},{},[2152,2154,2159],{"type":31,"value":2153},"每次接受改动前必须跑（可参考：",{"type":26,"tag":49,"props":2155,"children":2156},{"href":415},[2157],{"type":31,"value":2158},"Cursor 快捷键速查表",{"type":31,"value":2160}," 里的清单）。",{"type":26,"tag":858,"props":2162,"children":2164},{"id":2163},"step-4回滚策略不用等事故才想",[2165],{"type":31,"value":2166},"Step 4：回滚策略（不用等事故才想）",{"type":26,"tag":27,"props":2168,"children":2169},{},[2170],{"type":31,"value":2171},"回滚最常见的两条路：",{"type":26,"tag":209,"props":2173,"children":2174},{},[2175,2180],{"type":26,"tag":213,"props":2176,"children":2177},{},[2178],{"type":31,"value":2179},"git 回滚 commit",{"type":26,"tag":213,"props":2181,"children":2182},{},[2183],{"type":31,"value":2184},"对关键文件保留前版本（至少能快速恢复）",{"type":26,"tag":27,"props":2186,"children":2187},{},[2188],{"type":31,"value":2189},"你需要做到：任何一轮 AI 改动都能在 5 分钟内撤回。",{"type":26,"tag":531,"props":2191,"children":2192},{},[],{"type":26,"tag":81,"props":2194,"children":2196},{"id":2195},"必交付物对比矩阵可复制",[2197],{"type":31,"value":2198},"必交付物：对比矩阵（可复制）",{"type":26,"tag":27,"props":2200,"children":2201},{},[2202],{"type":31,"value":2203},"下面这张表可以直接贴到你的团队 wiki：",{"type":26,"tag":88,"props":2205,"children":2206},{},[2207,2230],{"type":26,"tag":92,"props":2208,"children":2209},{},[2210],{"type":26,"tag":96,"props":2211,"children":2212},{},[2213,2218,2222,2226],{"type":26,"tag":100,"props":2214,"children":2215},{},[2216],{"type":31,"value":2217},"维度",{"type":26,"tag":100,"props":2219,"children":2220},{},[2221],{"type":31,"value":423},{"type":26,"tag":100,"props":2223,"children":2224},{},[2225],{"type":31,"value":1670},{"type":26,"tag":100,"props":2227,"children":2228},{},[2229],{"type":31,"value":420},{"type":26,"tag":116,"props":2231,"children":2232},{},[2233,2256,2279,2302],{"type":26,"tag":96,"props":2234,"children":2235},{},[2236,2241,2246,2251],{"type":26,"tag":123,"props":2237,"children":2238},{},[2239],{"type":31,"value":2240},"强项",{"type":26,"tag":123,"props":2242,"children":2243},{},[2244],{"type":31,"value":2245},"工具链、调试、生态",{"type":26,"tag":123,"props":2247,"children":2248},{},[2249],{"type":31,"value":2250},"补全与局部建议",{"type":26,"tag":123,"props":2252,"children":2253},{},[2254],{"type":31,"value":2255},"项目上下文、多文件落地",{"type":26,"tag":96,"props":2257,"children":2258},{},[2259,2264,2269,2274],{"type":26,"tag":123,"props":2260,"children":2261},{},[2262],{"type":31,"value":2263},"适合任务",{"type":26,"tag":123,"props":2265,"children":2266},{},[2267],{"type":31,"value":2268},"排查、调试、验证",{"type":26,"tag":123,"props":2270,"children":2271},{},[2272],{"type":31,"value":2273},"写一段、补一段",{"type":26,"tag":123,"props":2275,"children":2276},{},[2277],{"type":31,"value":2278},"改一段、改一组文件",{"type":26,"tag":96,"props":2280,"children":2281},{},[2282,2287,2292,2297],{"type":26,"tag":123,"props":2283,"children":2284},{},[2285],{"type":31,"value":2286},"最大风险",{"type":26,"tag":123,"props":2288,"children":2289},{},[2290],{"type":31,"value":2291},"无",{"type":26,"tag":123,"props":2293,"children":2294},{},[2295],{"type":31,"value":2296},"过度依赖建议",{"type":26,"tag":123,"props":2298,"children":2299},{},[2300],{"type":31,"value":2301},"范围漂移、多文件回归",{"type":26,"tag":96,"props":2303,"children":2304},{},[2305,2310,2315,2320],{"type":26,"tag":123,"props":2306,"children":2307},{},[2308],{"type":31,"value":2309},"必须搭配",{"type":26,"tag":123,"props":2311,"children":2312},{},[2313],{"type":31,"value":2314},"规范与检查",{"type":26,"tag":123,"props":2316,"children":2317},{},[2318],{"type":31,"value":2319},"代码评审",{"type":26,"tag":123,"props":2321,"children":2322},{},[2323],{"type":31,"value":2324},"闸门 + 最小回归集",{"type":26,"tag":531,"props":2326,"children":2327},{},[],{"type":26,"tag":81,"props":2329,"children":2331},{"id":2330},"失败案例多文件看似成功实际埋雷",[2332],{"type":31,"value":2333},"失败案例：多文件“看似成功”，实际埋雷",{"type":26,"tag":27,"props":2335,"children":2336},{},[2337,2342],{"type":26,"tag":470,"props":2338,"children":2339},{},[2340],{"type":31,"value":2341},"现象",{"type":31,"value":2343},"：AI 说“我已经把所有地方都改了”，你也接受了，结果上线后 404 或样式错位。",{"type":26,"tag":27,"props":2345,"children":2346},{},[2347,2352],{"type":26,"tag":470,"props":2348,"children":2349},{},[2350],{"type":31,"value":2351},"复现条件",{"type":31,"value":1164},{"type":26,"tag":209,"props":2354,"children":2355},{},[2356,2361,2366],{"type":26,"tag":213,"props":2357,"children":2358},{},[2359],{"type":31,"value":2360},"你给了一个大目标（例如“把所有按钮统一成主题色”）",{"type":26,"tag":213,"props":2362,"children":2363},{},[2364],{"type":31,"value":2365},"它改了组件、样式、甚至主题配置",{"type":26,"tag":213,"props":2367,"children":2368},{},[2369],{"type":31,"value":2370},"你没有按页面模块走一遍，直接合并",{"type":26,"tag":27,"props":2372,"children":2373},{},[2374,2379],{"type":26,"tag":470,"props":2375,"children":2376},{},[2377],{"type":31,"value":2378},"根因",{"type":31,"value":1164},{"type":26,"tag":209,"props":2381,"children":2382},{},[2383],{"type":26,"tag":213,"props":2384,"children":2385},{},[2386],{"type":31,"value":2387},"改动范围大，但验收仍按“小改动”的方式做（只看一处）",{"type":26,"tag":27,"props":2389,"children":2390},{},[2391,2396],{"type":26,"tag":470,"props":2392,"children":2393},{},[2394],{"type":31,"value":2395},"修复",{"type":31,"value":1164},{"type":26,"tag":209,"props":2398,"children":2399},{},[2400,2405,2410],{"type":26,"tag":213,"props":2401,"children":2402},{},[2403],{"type":31,"value":2404},"强制把任务拆成“模块级目标”：Hero、Feature、Pricing、Form",{"type":26,"tag":213,"props":2406,"children":2407},{},[2408],{"type":31,"value":2409},"每个模块改完就验收一次",{"type":26,"tag":213,"props":2411,"children":2412},{},[2413],{"type":31,"value":2414},"验收通过再进入下一个模块",{"type":26,"tag":531,"props":2416,"children":2417},{},[],{"type":26,"tag":81,"props":2419,"children":2421},{"id":2420},"faq",[2422],{"type":31,"value":2423},"FAQ",{"type":26,"tag":858,"props":2425,"children":2427},{"id":2426},"q1我已经用了-cursor为什么还要用-copilot",[2428],{"type":31,"value":2429},"Q1：我已经用了 Cursor，为什么还要用 Copilot？",{"type":26,"tag":27,"props":2431,"children":2432},{},[2433],{"type":31,"value":2434},"因为“补全”这种高频低风险任务，Copilot 的交互成本更低；Cursor 更适合需要解释与约束的改动。",{"type":26,"tag":858,"props":2436,"children":2438},{"id":2437},"q2什么时候应该完全不用-ai",[2439],{"type":31,"value":2440},"Q2：什么时候应该完全不用 AI？",{"type":26,"tag":27,"props":2442,"children":2443},{},[2444],{"type":31,"value":2445},"当你无法定义验收标准时。比如“更高级”“更好看”这种目标，先做信息结构与设计规则，再让 AI 帮你落地局部。",{"type":26,"tag":531,"props":2447,"children":2448},{},[],{"type":26,"tag":81,"props":2450,"children":2452},{"id":2451},"延伸阅读",[2453],{"type":31,"value":2451},{"type":26,"tag":209,"props":2455,"children":2456},{},[2457,2466,2475,2484],{"type":26,"tag":213,"props":2458,"children":2459},{},[2460,2462],{"type":31,"value":2461},"Cursor 入门：",{"type":26,"tag":49,"props":2463,"children":2464},{"href":504},[2465],{"type":31,"value":507},{"type":26,"tag":213,"props":2467,"children":2468},{},[2469,2471],{"type":31,"value":2470},"Cursor 进阶：",{"type":26,"tag":49,"props":2472,"children":2473},{"href":515},[2474],{"type":31,"value":518},{"type":26,"tag":213,"props":2476,"children":2477},{},[2478,2480],{"type":31,"value":2479},"规则配置：",{"type":26,"tag":49,"props":2481,"children":2482},{"href":526},[2483],{"type":31,"value":529},{"type":26,"tag":213,"props":2485,"children":2486},{},[2487,2489],{"type":31,"value":2488},"Copilot 实战：",{"type":26,"tag":49,"props":2490,"children":2492},{"href":2491},"/topics/ai/github-copilot-tips",[2493],{"type":31,"value":2494},"GitHub Copilot 实用技巧",{"title":7,"searchDepth":398,"depth":398,"links":2496},[2497,2498,2499,2504,2510,2511,2512,2516],{"id":1642,"depth":401,"text":1645},{"id":1692,"depth":401,"text":1695},{"id":1934,"depth":401,"text":1937,"children":2500},[2501,2502,2503],{"id":1940,"depth":398,"text":1943},{"id":1977,"depth":398,"text":1980},{"id":2021,"depth":398,"text":2024},{"id":2053,"depth":401,"text":2056,"children":2505},[2506,2507,2508,2509],{"id":2064,"depth":398,"text":2067},{"id":2108,"depth":398,"text":2111},{"id":2145,"depth":398,"text":2148},{"id":2163,"depth":398,"text":2166},{"id":2195,"depth":401,"text":2198},{"id":2330,"depth":401,"text":2333},{"id":2420,"depth":401,"text":2423,"children":2513},[2514,2515],{"id":2426,"depth":398,"text":2429},{"id":2437,"depth":398,"text":2440},{"id":2451,"depth":401,"text":2451},"content:topics:ai:cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow.md","topics/ai/cursor-vs-copilot-vscode-workflow",{"_path":2521,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":2522,"description":2523,"date":2524,"topic":5,"author":11,"tags":2525,"image":2530,"featured":2531,"readingTime":1583,"body":2532,"_type":407,"_id":3181,"_source":409,"_file":3182,"_stem":3183,"_extension":412},"/topics/ai/ai-debugging-troubleshooting-guide","AI 辅助调试与问题排查：让 AI 成为你的调试搭档","深入探讨如何利用 AI 工具提升调试效率，包括错误信息分析、日志解读、性能问题定位、复杂 bug 排查等实战场景，构建 AI 驱动的调试工作流。","2026-01-18",[2526,2527,2528,424,2529],"AI 调试","问题排查","Debug","错误处理","/images/topics/ai/ai-debugging-guide.jpg",true,{"type":23,"children":2533,"toc":3152},[2534,2540,2546,2551,2556,2561,2567,2573,2578,2586,2614,2622,2645,2651,2662,2671,2679,2687,2720,2728,2758,2771,2779,2784,2792,2800,2811,2817,2825,2836,2844,2853,2859,2865,2870,2879,2885,2890,2899,2905,2911,2920,2926,2935,2941,2952,2958,2964,2973,2979,2988,2994,3000,3008,3014,3023,3031,3039,3042,3048,3053,3072,3084,3087,3093,3098,3107,3112,3115,3121,3126,3144],{"type":26,"tag":81,"props":2535,"children":2537},{"id":2536},"ai-辅助调试与问题排查",[2538],{"type":31,"value":2539},"AI 辅助调试与问题排查",{"type":26,"tag":81,"props":2541,"children":2543},{"id":2542},"引言调试的痛与-ai-的解药",[2544],{"type":31,"value":2545},"引言：调试的痛与 AI 的解药",{"type":26,"tag":27,"props":2547,"children":2548},{},[2549],{"type":31,"value":2550},"调试是每个程序员的日常，也是最消耗时间和精力的工作之一。我们都有过这样的经历：盯着一个莫名其妙的错误信息，翻遍 Stack Overflow，尝试各种方案，几个小时后才发现是一个愚蠢的拼写错误。",{"type":26,"tag":27,"props":2552,"children":2553},{},[2554],{"type":31,"value":2555},"AI 工具的出现，正在改变调试的方式。不是替代你的思考，而是加速你的分析过程——帮你快速理解错误、缩小排查范围、验证假设。",{"type":26,"tag":27,"props":2557,"children":2558},{},[2559],{"type":31,"value":2560},"这篇文章分享我在实际项目中使用 AI 辅助调试的经验和方法论。",{"type":26,"tag":81,"props":2562,"children":2564},{"id":2563},"第一部分建立-ai-调试的思维模型",[2565],{"type":31,"value":2566},"第一部分：建立 AI 调试的思维模型",{"type":26,"tag":858,"props":2568,"children":2570},{"id":2569},"_11-ai-在调试中的角色",[2571],{"type":31,"value":2572},"1.1 AI 在调试中的角色",{"type":26,"tag":27,"props":2574,"children":2575},{},[2576],{"type":31,"value":2577},"把 AI 想象成一个经验丰富但不了解你项目的高级工程师。它：",{"type":26,"tag":27,"props":2579,"children":2580},{},[2581],{"type":26,"tag":470,"props":2582,"children":2583},{},[2584],{"type":31,"value":2585},"擅长的事情：",{"type":26,"tag":209,"props":2587,"children":2588},{},[2589,2594,2599,2604,2609],{"type":26,"tag":213,"props":2590,"children":2591},{},[2592],{"type":31,"value":2593},"解读错误信息的含义",{"type":26,"tag":213,"props":2595,"children":2596},{},[2597],{"type":31,"value":2598},"提供可能的原因列表",{"type":26,"tag":213,"props":2600,"children":2601},{},[2602],{"type":31,"value":2603},"给出排查方向建议",{"type":26,"tag":213,"props":2605,"children":2606},{},[2607],{"type":31,"value":2608},"解释复杂的技术概念",{"type":26,"tag":213,"props":2610,"children":2611},{},[2612],{"type":31,"value":2613},"生成调试代码片段",{"type":26,"tag":27,"props":2615,"children":2616},{},[2617],{"type":26,"tag":470,"props":2618,"children":2619},{},[2620],{"type":31,"value":2621},"不擅长的事情：",{"type":26,"tag":209,"props":2623,"children":2624},{},[2625,2630,2635,2640],{"type":26,"tag":213,"props":2626,"children":2627},{},[2628],{"type":31,"value":2629},"了解你的业务逻辑",{"type":26,"tag":213,"props":2631,"children":2632},{},[2633],{"type":31,"value":2634},"知道你的代码历史",{"type":26,"tag":213,"props":2636,"children":2637},{},[2638],{"type":31,"value":2639},"理解项目特定的约定",{"type":26,"tag":213,"props":2641,"children":2642},{},[2643],{"type":31,"value":2644},"做出架构级判断",{"type":26,"tag":858,"props":2646,"children":2648},{"id":2647},"_12-有效提问的结构",[2649],{"type":31,"value":2650},"1.2 有效提问的结构",{"type":26,"tag":2652,"props":2653,"children":2657},"pre",{"code":2654,"language":407,"meta":7,"className":2655},"## 高效的调试提问模板\n\n**问题描述**\n[简洁描述遇到的问题]\n\n**错误信息**\n",[2656],"language-markdown",[2658],{"type":26,"tag":664,"props":2659,"children":2660},{"__ignoreMap":7},[2661],{"type":31,"value":2654},{"type":26,"tag":27,"props":2663,"children":2664},{},[2665],{"type":26,"tag":2666,"props":2667,"children":2668},"span",{},[2669],{"type":31,"value":2670},"完整的错误信息，不要截断",{"type":26,"tag":2652,"props":2672,"children":2674},{"code":2673},"\n**相关代码**\n```javascript\n[精简但完整的相关代码]\n",[2675],{"type":26,"tag":664,"props":2676,"children":2677},{"__ignoreMap":7},[2678],{"type":31,"value":2673},{"type":26,"tag":27,"props":2680,"children":2681},{},[2682],{"type":26,"tag":470,"props":2683,"children":2684},{},[2685],{"type":31,"value":2686},"环境信息",{"type":26,"tag":209,"props":2688,"children":2689},{},[2690,2700,2710],{"type":26,"tag":213,"props":2691,"children":2692},{},[2693,2695],{"type":31,"value":2694},"运行环境：",{"type":26,"tag":2666,"props":2696,"children":2697},{},[2698],{"type":31,"value":2699},"Node 版本/浏览器版本",{"type":26,"tag":213,"props":2701,"children":2702},{},[2703,2705],{"type":31,"value":2704},"框架版本：",{"type":26,"tag":2666,"props":2706,"children":2707},{},[2708],{"type":31,"value":2709},"相关框架版本",{"type":26,"tag":213,"props":2711,"children":2712},{},[2713,2715],{"type":31,"value":2714},"操作系统：",{"type":26,"tag":2666,"props":2716,"children":2717},{},[2718],{"type":31,"value":2719},"如果相关",{"type":26,"tag":27,"props":2721,"children":2722},{},[2723],{"type":26,"tag":470,"props":2724,"children":2725},{},[2726],{"type":31,"value":2727},"已尝试的方案",{"type":26,"tag":209,"props":2729,"children":2730},{},[2731,2745],{"type":26,"tag":213,"props":2732,"children":2733},{},[2734,2739,2740],{"type":26,"tag":2666,"props":2735,"children":2736},{},[2737],{"type":31,"value":2738},"方案1",{"type":31,"value":1164},{"type":26,"tag":2666,"props":2741,"children":2742},{},[2743],{"type":31,"value":2744},"结果",{"type":26,"tag":213,"props":2746,"children":2747},{},[2748,2753,2754],{"type":26,"tag":2666,"props":2749,"children":2750},{},[2751],{"type":31,"value":2752},"方案2",{"type":31,"value":1164},{"type":26,"tag":2666,"props":2755,"children":2756},{},[2757],{"type":31,"value":2744},{"type":26,"tag":27,"props":2759,"children":2760},{},[2761,2766],{"type":26,"tag":470,"props":2762,"children":2763},{},[2764],{"type":31,"value":2765},"期望的结果",{"type":26,"tag":2666,"props":2767,"children":2768},{},[2769],{"type":31,"value":2770},"描述期望的行为",{"type":26,"tag":2652,"props":2772,"children":2774},{"code":2773},"\n### 1.3 分级调试策略\n\n",[2775],{"type":26,"tag":664,"props":2776,"children":2777},{"__ignoreMap":7},[2778],{"type":31,"value":2773},{"type":26,"tag":27,"props":2780,"children":2781},{},[2782],{"type":31,"value":2783},"┌───────────────────────────────────────────────────────────┐\n│                    AI 辅助调试决策树                        │\n├───────────────────────────────────────────────────────────┤\n│                                                           │\n│  Level 1：简单错误（5分钟内解决）                           │\n│  ├── 语法错误、拼写错误                                    │\n│  ├── 方法：直接复制错误信息给 AI                           │\n│  └── 工具：Copilot Chat / ChatGPT                        │\n│                                                           │\n│  Level 2：中等复杂度（30分钟内解决）                        │\n│  ├── 类型错误、逻辑错误、API 使用错误                      │\n│  ├── 方法：提供错误信息 + 相关代码 + 上下文                 │\n│  └── 工具：Cursor Chat / Claude                          │\n│                                                           │\n│  Level 3：复杂问题（需要深入分析）                          │\n│  ├── 竞态条件、内存泄漏、性能问题                          │\n│  ├── 方法：详细描述场景 + 提供多个文件 + 讨论               │\n│  └── 工具：Cursor Composer / 专门的 AI 会话                │\n│                                                           │\n│  Level 4：架构级问题                                       │\n│  ├── 设计缺陷、技术债务                                    │\n│  ├── 方法：AI 辅助分析 + 人工判断                          │\n│  └── 工具：与团队讨论 + AI 作为顾问                        │\n│                                                           │\n└───────────────────────────────────────────────────────────┘",{"type":26,"tag":2652,"props":2785,"children":2787},{"code":2786},"\n## 第二部分：错误信息分析\n\n### 2.1 前端错误分析\n\n**场景 1：React 错误边界触发**\n\n```typescript\n// 错误信息：\n// Error: Hydration failed because the initial UI does not match \n// what was rendered on the server.\n\n// 提问方式：\n/**\n * 我在 Next.js 14 App Router 项目中遇到这个错误：\n * \n * Error: Hydration failed because the initial UI does not match \n * what was rendered on the server.\n * \n * 相关代码：\n */\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState(false);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n\n// AI 会分析出：\n// 1. 服务端渲染时 localStorage 不可用，默认 false\n// 2. 客户端 hydration 时可能是 true\n// 3. 导致服务端和客户端渲染结果不一致\n\n// AI 建议的解决方案：\nfunction UserStatus() {\n  const [isLoggedIn, setIsLoggedIn] = useState\u003Cboolean | null>(null);\n  \n  useEffect(() => {\n    setIsLoggedIn(localStorage.getItem('token') !== null);\n  }, []);\n  \n  // 初始状态显示加载中，避免 hydration 不匹配\n  if (isLoggedIn === null) {\n    return \u003Cdiv>加载中...\u003C/div>;\n  }\n  \n  return \u003Cdiv>{isLoggedIn ? '已登录' : '未登录'}\u003C/div>;\n}\n",[2788],{"type":26,"tag":664,"props":2789,"children":2790},{"__ignoreMap":7},[2791],{"type":31,"value":2786},{"type":26,"tag":27,"props":2793,"children":2794},{},[2795],{"type":26,"tag":470,"props":2796,"children":2797},{},[2798],{"type":31,"value":2799},"场景 2：Vue 响应式警告",{"type":26,"tag":2652,"props":2801,"children":2806},{"code":2802,"language":2803,"meta":7,"className":2804},"// 警告信息：\n// [Vue warn]: Property \"xxx\" was accessed during render but is not \n// defined on instance.\n\n// 提问方式：\n/**\n * Vue 3 项目中出现这个警告：\n * [Vue warn]: Property \"userInfo\" was accessed during render \n * but is not defined on instance.\n * \n * 组件代码：\n */\n\u003Ctemplate>\n  \u003Cdiv>{{ userInfo.name }}\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo } = await useFetch('/api/user');\n\u003C/script>\n\n// AI 分析：\n// 1. useFetch 是异步的，初始渲染时 userInfo 可能是 undefined\n// 2. 直接访问 userInfo.name 会报错\n\n// AI 建议：\n\u003Ctemplate>\n  \u003Cdiv v-if=\"userInfo\">{{ userInfo.name }}\u003C/div>\n  \u003Cdiv v-else>加载中...\u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst { data: userInfo, pending } = await useFetch('/api/user');\n\u003C/script>\n","typescript",[2805],"language-typescript",[2807],{"type":26,"tag":664,"props":2808,"children":2809},{"__ignoreMap":7},[2810],{"type":31,"value":2802},{"type":26,"tag":858,"props":2812,"children":2814},{"id":2813},"_22-后端错误分析",[2815],{"type":31,"value":2816},"2.2 后端错误分析",{"type":26,"tag":27,"props":2818,"children":2819},{},[2820],{"type":26,"tag":470,"props":2821,"children":2822},{},[2823],{"type":31,"value":2824},"场景 1：Node.js 内存问题",{"type":26,"tag":2652,"props":2826,"children":2831},{"code":2827,"language":2828,"meta":7,"className":2829},"// 错误信息：\n// FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n// JavaScript heap out of memory\n\n// 提问方式（包含上下文）：\n/**\n * Node.js 服务运行几小时后崩溃，错误信息：\n * FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - \n * JavaScript heap out of memory\n * \n * 服务功能：处理 CSV 文件上传，每次约 100MB\n * \n * 处理代码：\n */\nasync function processCSV(filePath) {\n  const content = fs.readFileSync(filePath, 'utf-8');\n  const rows = content.split('\\n');\n  const results = [];\n  \n  for (const row of rows) {\n    const processed = await processRow(row);\n    results.push(processed);\n  }\n  \n  return results;\n}\n\n// AI 分析会指出：\n// 1. 一次性读取整个文件到内存\n// 2. 所有处理结果累积在 results 数组\n// 3. 建议使用流式处理\n\n// AI 提供的优化方案：\nconst { createReadStream } = require('fs');\nconst { createInterface } = require('readline');\n\nasync function processCSVStream(filePath, onRow) {\n  const fileStream = createReadStream(filePath);\n  const rl = createInterface({\n    input: fileStream,\n    crlfDelay: Infinity\n  });\n  \n  let count = 0;\n  for await (const line of rl) {\n    await onRow(line);\n    count++;\n    \n    // 每处理 1000 行，给 GC 机会运行\n    if (count % 1000 === 0) {\n      await new Promise(r => setImmediate(r));\n    }\n  }\n}\n","javascript",[2830],"language-javascript",[2832],{"type":26,"tag":664,"props":2833,"children":2834},{"__ignoreMap":7},[2835],{"type":31,"value":2827},{"type":26,"tag":27,"props":2837,"children":2838},{},[2839],{"type":26,"tag":470,"props":2840,"children":2841},{},[2842],{"type":31,"value":2843},"场景 2：数据库连接问题",{"type":26,"tag":2652,"props":2845,"children":2848},{"code":2846,"language":2803,"meta":7,"className":2847},"// 错误信息：\n// Error: Connection pool exhausted - \n// max connections (10) already in use\n\n// 提问方式：\n/**\n * PostgreSQL 连接池耗尽错误，高并发时出现：\n * Error: Connection pool exhausted\n * \n * 当前配置：\n * - max connections: 10\n * - 并发请求: 约 100/秒\n * \n * 数据库调用代码：\n */\nasync function getUserData(userId: string) {\n  const client = await pool.connect();\n  try {\n    const user = await client.query('SELECT * FROM users WHERE id = $1', [userId]);\n    const orders = await client.query('SELECT * FROM orders WHERE user_id = $1', [userId]);\n    const payments = await client.query('SELECT * FROM payments WHERE user_id = $1', [userId]);\n    return { user: user.rows[0], orders: orders.rows, payments: payments.rows };\n  } finally {\n    client.release();\n  }\n}\n\n// AI 会分析出多个可能原因并给出综合方案\n",[2805],[2849],{"type":26,"tag":664,"props":2850,"children":2851},{"__ignoreMap":7},[2852],{"type":31,"value":2846},{"type":26,"tag":81,"props":2854,"children":2856},{"id":2855},"第三部分日志分析与问题定位",[2857],{"type":31,"value":2858},"第三部分：日志分析与问题定位",{"type":26,"tag":858,"props":2860,"children":2862},{"id":2861},"_31-结构化日志分析",[2863],{"type":31,"value":2864},"3.1 结构化日志分析",{"type":26,"tag":27,"props":2866,"children":2867},{},[2868],{"type":31,"value":2869},"当面对大量日志时，让 AI 帮你快速定位问题：",{"type":26,"tag":2652,"props":2871,"children":2874},{"code":2872,"language":2828,"meta":7,"className":2873},"// 提问示例：\n/**\n * 分析以下日志，找出导致请求失败的原因：\n * \n * 日志片段：\n */\nconst logs = `\n2024-01-15 10:23:45.123 INFO  [req-abc123] 收到请求 POST /api/order\n2024-01-15 10:23:45.125 DEBUG [req-abc123] 用户认证通过 userId=u001\n2024-01-15 10:23:45.130 DEBUG [req-abc123] 开始库存检查 productId=p001\n2024-01-15 10:23:45.145 DEBUG [req-abc123] 库存检查通过 available=50\n2024-01-15 10:23:45.150 DEBUG [req-abc123] 开始创建订单\n2024-01-15 10:23:45.200 DEBUG [req-abc123] 数据库连接获取成功\n2024-01-15 10:23:45.250 ERROR [req-abc123] 订单创建失败 error=\"deadlock detected\"\n2024-01-15 10:23:45.251 WARN  [req-abc123] 事务回滚\n2024-01-15 10:23:45.255 INFO  [req-abc123] 响应 500 耗时 132ms\n`;\n\n// AI 分析结果会包括：\n// 1. 问题定位：数据库死锁\n// 2. 可能原因：并发订单创建导致锁竞争\n// 3. 排查建议：检查事务隔离级别、锁顺序\n",[2830],[2875],{"type":26,"tag":664,"props":2876,"children":2877},{"__ignoreMap":7},[2878],{"type":31,"value":2872},{"type":26,"tag":858,"props":2880,"children":2882},{"id":2881},"_32-创建调试日志",[2883],{"type":31,"value":2884},"3.2 创建调试日志",{"type":26,"tag":27,"props":2886,"children":2887},{},[2888],{"type":31,"value":2889},"让 AI 帮你生成调试用的日志代码：",{"type":26,"tag":2652,"props":2891,"children":2894},{"code":2892,"language":2803,"meta":7,"className":2893},"// 请求：\n// \"为这个函数添加详细的调试日志，包括入参、关键步骤、耗时和结果\"\n\n// 原代码：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const inventory = await checkInventory(order.items);\n  const payment = await processPayment(order.userId, order.total);\n  const result = await createOrder(order, payment.transactionId);\n  return result;\n}\n\n// AI 生成的带日志版本：\nasync function processOrder(order: Order): Promise\u003COrderResult> {\n  const requestId = generateRequestId();\n  const startTime = performance.now();\n  \n  logger.info({\n    requestId,\n    event: 'order_processing_start',\n    orderId: order.id,\n    userId: order.userId,\n    itemCount: order.items.length,\n    total: order.total\n  });\n  \n  try {\n    // 库存检查\n    const inventoryStart = performance.now();\n    const inventory = await checkInventory(order.items);\n    logger.debug({\n      requestId,\n      event: 'inventory_check_complete',\n      duration: performance.now() - inventoryStart,\n      available: inventory.allAvailable\n    });\n    \n    // 支付处理\n    const paymentStart = performance.now();\n    const payment = await processPayment(order.userId, order.total);\n    logger.debug({\n      requestId,\n      event: 'payment_complete',\n      duration: performance.now() - paymentStart,\n      transactionId: payment.transactionId\n    });\n    \n    // 创建订单\n    const createStart = performance.now();\n    const result = await createOrder(order, payment.transactionId);\n    logger.debug({\n      requestId,\n      event: 'order_created',\n      duration: performance.now() - createStart,\n      resultOrderId: result.orderId\n    });\n    \n    logger.info({\n      requestId,\n      event: 'order_processing_complete',\n      duration: performance.now() - startTime,\n      success: true\n    });\n    \n    return result;\n  } catch (error) {\n    logger.error({\n      requestId,\n      event: 'order_processing_failed',\n      duration: performance.now() - startTime,\n      error: error.message,\n      stack: error.stack\n    });\n    throw error;\n  }\n}\n",[2805],[2895],{"type":26,"tag":664,"props":2896,"children":2897},{"__ignoreMap":7},[2898],{"type":31,"value":2892},{"type":26,"tag":81,"props":2900,"children":2902},{"id":2901},"第四部分性能问题排查",[2903],{"type":31,"value":2904},"第四部分：性能问题排查",{"type":26,"tag":858,"props":2906,"children":2908},{"id":2907},"_41-前端性能分析",[2909],{"type":31,"value":2910},"4.1 前端性能分析",{"type":26,"tag":2652,"props":2912,"children":2915},{"code":2913,"language":2803,"meta":7,"className":2914},"// 场景：页面加载慢，需要分析原因\n\n// 提问方式：\n/**\n * 页面首屏加载需要 5 秒，以下是 Performance API 数据，\n * 请分析性能瓶颈：\n */\nconst performanceData = {\n  // Navigation Timing\n  dns: 50,           // DNS 查询\n  tcp: 100,          // TCP 连接\n  ttfb: 800,         // 首字节时间\n  download: 200,     // 文档下载\n  domParsing: 300,   // DOM 解析\n  domContentLoaded: 1500,\n  load: 5000,\n  \n  // Resource Timing (主要资源)\n  resources: [\n    { name: 'main.js', size: '2.5MB', duration: 1200 },\n    { name: 'vendor.js', size: '1.8MB', duration: 900 },\n    { name: 'styles.css', size: '500KB', duration: 300 },\n    { name: 'hero-image.jpg', size: '3MB', duration: 1500 },\n  ],\n  \n  // Long Tasks\n  longTasks: [\n    { startTime: 1600, duration: 800, name: 'script-evaluation' },\n    { startTime: 2500, duration: 400, name: 'layout' }\n  ]\n};\n\n// AI 会分析出：\n// 1. JS bundle 过大（4.3MB），需要代码分割\n// 2. 图片未优化（3MB 的 hero 图片）\n// 3. 存在长任务阻塞主线程\n// 并给出具体优化建议\n",[2805],[2916],{"type":26,"tag":664,"props":2917,"children":2918},{"__ignoreMap":7},[2919],{"type":31,"value":2913},{"type":26,"tag":858,"props":2921,"children":2923},{"id":2922},"_42-内存泄漏排查",[2924],{"type":31,"value":2925},"4.2 内存泄漏排查",{"type":26,"tag":2652,"props":2927,"children":2930},{"code":2928,"language":2803,"meta":7,"className":2929},"// 场景：应用运行一段时间后变卡\n\n// 提问方式：\n/**\n * React 应用运行一段时间后内存持续增长，以下是 Heap Snapshot 对比：\n * \n * 初始状态：50MB\n * 运行 1 小时后：150MB\n * 运行 2 小时后：280MB\n * \n * Retained objects 增长最快的：\n * - (closure) - 增长 50MB\n * - HTMLDivElement - 增长 30MB\n * - Array - 增长 20MB\n * \n * 可疑代码：\n */\nfunction DataDashboard() {\n  const [data, setData] = useState([]);\n  const chartRef = useRef(null);\n  \n  useEffect(() => {\n    // 每秒刷新数据\n    const interval = setInterval(async () => {\n      const newData = await fetchLatestData();\n      setData(prev => [...prev, ...newData]);  // 数据不断累积\n    }, 1000);\n    \n    // 初始化图表\n    const chart = new Chart(chartRef.current, {\n      // 配置...\n    });\n    \n    // 没有 cleanup！\n  }, []);\n  \n  return \u003Ccanvas ref={chartRef} />;\n}\n\n// AI 会指出：\n// 1. interval 没有清理\n// 2. Chart 实例没有销毁\n// 3. data 无限增长\n// 并提供修复代码\n",[2805],[2931],{"type":26,"tag":664,"props":2932,"children":2933},{"__ignoreMap":7},[2934],{"type":31,"value":2928},{"type":26,"tag":858,"props":2936,"children":2938},{"id":2937},"_43-数据库查询优化",[2939],{"type":31,"value":2940},"4.3 数据库查询优化",{"type":26,"tag":2652,"props":2942,"children":2947},{"code":2943,"language":2944,"meta":7,"className":2945},"-- 场景：查询很慢，让 AI 分析执行计划\n\n-- 提问方式：\n-- 以下查询在数据量大时很慢（orders 表 1000 万行），\n-- 执行计划如下，请分析并优化：\n\nEXPLAIN ANALYZE\nSELECT o.*, u.name, u.email\nFROM orders o\nJOIN users u ON o.user_id = u.id\nWHERE o.status = 'pending'\n  AND o.created_at > '2024-01-01'\nORDER BY o.created_at DESC\nLIMIT 20;\n\n-- 执行计划：\n/*\nSort  (cost=156847.23..157847.23 rows=400000 width=250)\n  Sort Key: o.created_at DESC\n  ->  Hash Join  (cost=1500.00..89847.23 rows=400000 width=250)\n        Hash Cond: (o.user_id = u.id)\n        ->  Seq Scan on orders o  (cost=0.00..85000.00 rows=400000)\n              Filter: ((status = 'pending') AND (created_at > '2024-01-01'))\n        ->  Hash  (cost=1000.00..1000.00 rows=50000 width=100)\n              ->  Seq Scan on users u  (cost=0.00..1000.00 rows=50000)\nPlanning Time: 0.5 ms\nExecution Time: 3500 ms\n*/\n\n-- AI 会分析出问题并建议：\n-- 1. orders 表全表扫描 - 需要复合索引\n-- 2. 建议创建索引：\nCREATE INDEX idx_orders_status_created ON orders(status, created_at DESC);\n\n-- 3. 如果 status 选择性不高，考虑部分索引：\nCREATE INDEX idx_orders_pending ON orders(created_at DESC) \nWHERE status = 'pending';\n","sql",[2946],"language-sql",[2948],{"type":26,"tag":664,"props":2949,"children":2950},{"__ignoreMap":7},[2951],{"type":31,"value":2943},{"type":26,"tag":81,"props":2953,"children":2955},{"id":2954},"第五部分复杂-bug-排查",[2956],{"type":31,"value":2957},"第五部分：复杂 Bug 排查",{"type":26,"tag":858,"props":2959,"children":2961},{"id":2960},"_51-竞态条件",[2962],{"type":31,"value":2963},"5.1 竞态条件",{"type":26,"tag":2652,"props":2965,"children":2968},{"code":2966,"language":2803,"meta":7,"className":2967},"// 场景：偶发的数据不一致问题\n\n// 提问方式：\n/**\n * 用户反馈偶尔看到错误的账户余额，但刷新后正常。\n * 怀疑是竞态条件，以下是相关代码：\n */\nasync function updateBalance(userId: string, amount: number) {\n  // 读取当前余额\n  const user = await db.users.findOne({ id: userId });\n  const newBalance = user.balance + amount;\n  \n  // 更新余额\n  await db.users.update({ id: userId }, { balance: newBalance });\n  \n  // 记录交易\n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: newBalance,\n    createdAt: new Date()\n  });\n  \n  return newBalance;\n}\n\n// 并发调用场景：\n// 用户同时发起两笔交易：+100 和 -50\n// 期望结果：原余额 1000 → 1050\n// 实际可能：原余额 1000 → 1100 或 950\n\n// AI 会分析竞态条件并提供解决方案：\nasync function updateBalanceAtomic(userId: string, amount: number) {\n  // 方案 1：使用数据库原子操作\n  const result = await db.users.findOneAndUpdate(\n    { id: userId },\n    { $inc: { balance: amount } },\n    { returnDocument: 'after' }\n  );\n  \n  await db.transactions.create({\n    userId,\n    amount,\n    balanceAfter: result.balance,\n    createdAt: new Date()\n  });\n  \n  return result.balance;\n}\n\n// 方案 2：使用乐观锁\nasync function updateBalanceOptimistic(userId: string, amount: number) {\n  const maxRetries = 3;\n  \n  for (let i = 0; i \u003C maxRetries; i++) {\n    const user = await db.users.findOne({ id: userId });\n    const newBalance = user.balance + amount;\n    \n    const updated = await db.users.updateOne(\n      { id: userId, version: user.version },\n      { balance: newBalance, version: user.version + 1 }\n    );\n    \n    if (updated.modifiedCount === 1) {\n      await db.transactions.create({...});\n      return newBalance;\n    }\n    \n    // 版本冲突，重试\n    await sleep(10 * (i + 1));\n  }\n  \n  throw new Error('Update failed after retries');\n}\n",[2805],[2969],{"type":26,"tag":664,"props":2970,"children":2971},{"__ignoreMap":7},[2972],{"type":31,"value":2966},{"type":26,"tag":858,"props":2974,"children":2976},{"id":2975},"_52-分布式系统问题",[2977],{"type":31,"value":2978},"5.2 分布式系统问题",{"type":26,"tag":2652,"props":2980,"children":2983},{"code":2981,"language":2803,"meta":7,"className":2982},"// 场景：微服务间的数据不一致\n\n// 提问方式：\n/**\n * 订单服务和库存服务偶尔出现数据不一致：\n * - 订单显示已创建\n * - 库存未扣减\n * \n * 当前流程：\n */\n// Order Service\nasync function createOrder(orderData) {\n  // 1. 调用库存服务扣减库存\n  await inventoryService.deduct(orderData.items);\n  \n  // 2. 创建订单\n  const order = await orderRepository.create(orderData);\n  \n  // 3. 发送订单创建事件\n  await eventBus.publish('order.created', order);\n  \n  return order;\n}\n\n// 问题分析：如果步骤 2 或 3 失败，库存已经扣减但订单未创建\n\n// AI 会建议使用 Saga 模式或事务发件箱模式\n",[2805],[2984],{"type":26,"tag":664,"props":2985,"children":2986},{"__ignoreMap":7},[2987],{"type":31,"value":2981},{"type":26,"tag":81,"props":2989,"children":2991},{"id":2990},"第六部分ai-调试工作流",[2992],{"type":31,"value":2993},"第六部分：AI 调试工作流",{"type":26,"tag":858,"props":2995,"children":2997},{"id":2996},"_61-我的调试流程",[2998],{"type":31,"value":2999},"6.1 我的调试流程",{"type":26,"tag":2652,"props":3001,"children":3003},{"code":3002},"┌────────────────────────────────────────────────────────────┐\n│                    AI 辅助调试工作流                         │\n├────────────────────────────────────────────────────────────┤\n│                                                            │\n│  Step 1: 问题收集                                          │\n│  ├── 复制完整错误信息                                       │\n│  ├── 截图相关日志                                          │\n│  └── 记录复现步骤                                          │\n│                                                            │\n│  Step 2: 快速分析                                          │\n│  ├── 将错误信息发给 AI                                      │\n│  ├── 获取可能原因列表                                       │\n│  └── 评估哪些最可能                                         │\n│                                                            │\n│  Step 3: 深入调查                                          │\n│  ├── 根据 AI 建议添加日志/断点                              │\n│  ├── 收集更多信息                                          │\n│  └── 再次询问 AI（带新信息）                                │\n│                                                            │\n│  Step 4: 验证修复                                          │\n│  ├── AI 生成修复代码                                        │\n│  ├── 人工审查确认                                          │\n│  └── 测试验证                                               │\n│                                                            │\n│  Step 5: 预防措施                                          │\n│  ├── AI 建议类似问题的预防方法                              │\n│  ├── 添加相关测试用例                                       │\n│  └── 更新文档/知识库                                        │\n│                                                            │\n└────────────────────────────────────────────────────────────┘\n",[3004],{"type":26,"tag":664,"props":3005,"children":3006},{"__ignoreMap":7},[3007],{"type":31,"value":3002},{"type":26,"tag":858,"props":3009,"children":3011},{"id":3010},"_62-调试对话模板",[3012],{"type":31,"value":3013},"6.2 调试对话模板",{"type":26,"tag":2652,"props":3015,"children":3018},{"code":3016,"language":407,"meta":7,"className":3017},"## 第一轮：问题描述\n\n我遇到了一个问题：[简述问题]\n\n错误信息：\n",[2656],[3019],{"type":26,"tag":664,"props":3020,"children":3021},{"__ignoreMap":7},[3022],{"type":31,"value":3016},{"type":26,"tag":27,"props":3024,"children":3025},{},[3026],{"type":26,"tag":2666,"props":3027,"children":3028},{},[3029],{"type":31,"value":3030},"粘贴完整错误",{"type":26,"tag":2652,"props":3032,"children":3034},{"code":3033},"\n相关代码：\n```javascript\n[粘贴代码]\n",[3035],{"type":26,"tag":664,"props":3036,"children":3037},{"__ignoreMap":7},[3038],{"type":31,"value":3033},{"type":26,"tag":531,"props":3040,"children":3041},{},[],{"type":26,"tag":81,"props":3043,"children":3045},{"id":3044},"第二轮补充信息",[3046],{"type":31,"value":3047},"第二轮：补充信息",{"type":26,"tag":27,"props":3049,"children":3050},{},[3051],{"type":31,"value":3052},"根据你的建议，我添加了日志，发现：",{"type":26,"tag":209,"props":3054,"children":3055},{},[3056,3064],{"type":26,"tag":213,"props":3057,"children":3058},{},[3059],{"type":26,"tag":2666,"props":3060,"children":3061},{},[3062],{"type":31,"value":3063},"发现 1",{"type":26,"tag":213,"props":3065,"children":3066},{},[3067],{"type":26,"tag":2666,"props":3068,"children":3069},{},[3070],{"type":31,"value":3071},"发现 2",{"type":26,"tag":27,"props":3073,"children":3074},{},[3075,3077,3082],{"type":31,"value":3076},"这是否说明问题出在 ",{"type":26,"tag":2666,"props":3078,"children":3079},{},[3080],{"type":31,"value":3081},"你的猜测",{"type":31,"value":3083},"？",{"type":26,"tag":531,"props":3085,"children":3086},{},[],{"type":26,"tag":81,"props":3088,"children":3090},{"id":3089},"第三轮确认修复",[3091],{"type":31,"value":3092},"第三轮：确认修复",{"type":26,"tag":27,"props":3094,"children":3095},{},[3096],{"type":31,"value":3097},"我按照你的建议修改了代码：",{"type":26,"tag":2652,"props":3099,"children":3102},{"code":3100,"language":2828,"meta":7,"className":3101},"[粘贴修改后的代码]\n",[2830],[3103],{"type":26,"tag":664,"props":3104,"children":3105},{"__ignoreMap":7},[3106],{"type":31,"value":3100},{"type":26,"tag":27,"props":3108,"children":3109},{},[3110],{"type":31,"value":3111},"请确认这个修复是否正确，以及是否有其他潜在问题。",{"type":26,"tag":531,"props":3113,"children":3114},{},[],{"type":26,"tag":81,"props":3116,"children":3118},{"id":3117},"第四轮预防",[3119],{"type":31,"value":3120},"第四轮：预防",{"type":26,"tag":27,"props":3122,"children":3123},{},[3124],{"type":31,"value":3125},"这个问题已解决。请建议：",{"type":26,"tag":461,"props":3127,"children":3128},{},[3129,3134,3139],{"type":26,"tag":213,"props":3130,"children":3131},{},[3132],{"type":31,"value":3133},"如何防止类似问题再次发生？",{"type":26,"tag":213,"props":3135,"children":3136},{},[3137],{"type":31,"value":3138},"应该添加什么测试用例？",{"type":26,"tag":213,"props":3140,"children":3141},{},[3142],{"type":31,"value":3143},"有什么最佳实践可以参考？",{"type":26,"tag":2652,"props":3145,"children":3147},{"code":3146},"\n## 结语：AI 是放大器，不是替代品\n\nAI 调试工具能够显著加速问题排查过程，但它不能替代你的思考。最有价值的能力组合是：\n\n- **你的领域知识** + **AI 的广博见识**\n- **你对项目的理解** + **AI 的分析能力**\n- **你的判断力** + **AI 的执行速度**\n\n调试的本质是假设-验证的循环。AI 帮你更快地生成假设、更高效地验证假设，但做出最终判断的还是你。\n\n学会与 AI 高效协作调试，不是依赖 AI 给你答案，而是让 AI 帮你更快地找到自己的答案。\n\n---\n\n## 参考资源\n\n- [Chrome DevTools 官方文档](https://developer.chrome.com/docs/devtools)\n- [Node.js 调试指南](https://nodejs.org/en/docs/guides/debugging-getting-started)\n- [React DevTools 使用指南](https://react.dev/learn/react-developer-tools)\n",[3148],{"type":26,"tag":664,"props":3149,"children":3150},{"__ignoreMap":7},[3151],{"type":31,"value":3146},{"title":7,"searchDepth":398,"depth":398,"links":3153},[3154,3155,3156,3161,3165,3170,3174,3178,3179,3180],{"id":2536,"depth":401,"text":2539},{"id":2542,"depth":401,"text":2545},{"id":2563,"depth":401,"text":2566,"children":3157},[3158,3159,3160],{"id":2569,"depth":398,"text":2572},{"id":2647,"depth":398,"text":2650},{"id":2813,"depth":398,"text":2816},{"id":2855,"depth":401,"text":2858,"children":3162},[3163,3164],{"id":2861,"depth":398,"text":2864},{"id":2881,"depth":398,"text":2884},{"id":2901,"depth":401,"text":2904,"children":3166},[3167,3168,3169],{"id":2907,"depth":398,"text":2910},{"id":2922,"depth":398,"text":2925},{"id":2937,"depth":398,"text":2940},{"id":2954,"depth":401,"text":2957,"children":3171},[3172,3173],{"id":2960,"depth":398,"text":2963},{"id":2975,"depth":398,"text":2978},{"id":2990,"depth":401,"text":2993,"children":3175},[3176,3177],{"id":2996,"depth":398,"text":2999},{"id":3010,"depth":398,"text":3013},{"id":3044,"depth":401,"text":3047},{"id":3089,"depth":401,"text":3092},{"id":3117,"depth":401,"text":3120},"content:topics:ai:ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide.md","topics/ai/ai-debugging-troubleshooting-guide",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"topic":5,"author":11,"tags":3185,"image":17,"imageQuery":18,"pexelsPhotoId":19,"pexelsUrl":20,"featured":6,"readingTime":21,"body":3186,"_type":407,"_id":408,"_source":409,"_file":410,"_stem":411,"_extension":412},[13,14,15,16],{"type":23,"children":3187,"toc":3479},[3188,3192,3196,3200,3224,3228,3312,3316,3320,3324,3343,3347,3351,3355,3370,3374,3378,3382,3397,3401,3405,3409,3428,3432,3436,3440,3444,3448],{"type":26,"tag":27,"props":3189,"children":3190},{},[3191],{"type":31,"value":32},{"type":26,"tag":27,"props":3193,"children":3194},{},[3195],{"type":31,"value":37},{"type":26,"tag":27,"props":3197,"children":3198},{},[3199],{"type":31,"value":42},{"type":26,"tag":27,"props":3201,"children":3202},{},[3203,3204,3208,3209,3213,3214,3218,3219,3223],{"type":31,"value":47},{"type":26,"tag":49,"props":3205,"children":3206},{"href":51},[3207],{"type":31,"value":54},{"type":31,"value":56},{"type":26,"tag":49,"props":3210,"children":3211},{"href":59},[3212],{"type":31,"value":62},{"type":31,"value":56},{"type":26,"tag":49,"props":3215,"children":3216},{"href":66},[3217],{"type":31,"value":69},{"type":31,"value":71},{"type":26,"tag":49,"props":3220,"children":3221},{"href":74},[3222],{"type":31,"value":77},{"type":31,"value":79},{"type":26,"tag":81,"props":3225,"children":3226},{"id":83},[3227],{"type":31,"value":86},{"type":26,"tag":88,"props":3229,"children":3230},{},[3231,3249],{"type":26,"tag":92,"props":3232,"children":3233},{},[3234],{"type":26,"tag":96,"props":3235,"children":3236},{},[3237,3241,3245],{"type":26,"tag":100,"props":3238,"children":3239},{},[3240],{"type":31,"value":104},{"type":26,"tag":100,"props":3242,"children":3243},{},[3244],{"type":31,"value":109},{"type":26,"tag":100,"props":3246,"children":3247},{},[3248],{"type":31,"value":114},{"type":26,"tag":116,"props":3250,"children":3251},{},[3252,3267,3282,3297],{"type":26,"tag":96,"props":3253,"children":3254},{},[3255,3259,3263],{"type":26,"tag":123,"props":3256,"children":3257},{},[3258],{"type":31,"value":127},{"type":26,"tag":123,"props":3260,"children":3261},{},[3262],{"type":31,"value":132},{"type":26,"tag":123,"props":3264,"children":3265},{},[3266],{"type":31,"value":137},{"type":26,"tag":96,"props":3268,"children":3269},{},[3270,3274,3278],{"type":26,"tag":123,"props":3271,"children":3272},{},[3273],{"type":31,"value":145},{"type":26,"tag":123,"props":3275,"children":3276},{},[3277],{"type":31,"value":150},{"type":26,"tag":123,"props":3279,"children":3280},{},[3281],{"type":31,"value":155},{"type":26,"tag":96,"props":3283,"children":3284},{},[3285,3289,3293],{"type":26,"tag":123,"props":3286,"children":3287},{},[3288],{"type":31,"value":163},{"type":26,"tag":123,"props":3290,"children":3291},{},[3292],{"type":31,"value":168},{"type":26,"tag":123,"props":3294,"children":3295},{},[3296],{"type":31,"value":173},{"type":26,"tag":96,"props":3298,"children":3299},{},[3300,3304,3308],{"type":26,"tag":123,"props":3301,"children":3302},{},[3303],{"type":31,"value":181},{"type":26,"tag":123,"props":3305,"children":3306},{},[3307],{"type":31,"value":186},{"type":26,"tag":123,"props":3309,"children":3310},{},[3311],{"type":31,"value":191},{"type":26,"tag":27,"props":3313,"children":3314},{},[3315],{"type":31,"value":196},{"type":26,"tag":81,"props":3317,"children":3318},{"id":199},[3319],{"type":31,"value":202},{"type":26,"tag":27,"props":3321,"children":3322},{},[3323],{"type":31,"value":207},{"type":26,"tag":209,"props":3325,"children":3326},{},[3327,3331,3335,3339],{"type":26,"tag":213,"props":3328,"children":3329},{},[3330],{"type":31,"value":217},{"type":26,"tag":213,"props":3332,"children":3333},{},[3334],{"type":31,"value":222},{"type":26,"tag":213,"props":3336,"children":3337},{},[3338],{"type":31,"value":227},{"type":26,"tag":213,"props":3340,"children":3341},{},[3342],{"type":31,"value":232},{"type":26,"tag":27,"props":3344,"children":3345},{},[3346],{"type":31,"value":237},{"type":26,"tag":81,"props":3348,"children":3349},{"id":240},[3350],{"type":31,"value":243},{"type":26,"tag":27,"props":3352,"children":3353},{},[3354],{"type":31,"value":248},{"type":26,"tag":209,"props":3356,"children":3357},{},[3358,3362,3366],{"type":26,"tag":213,"props":3359,"children":3360},{},[3361],{"type":31,"value":256},{"type":26,"tag":213,"props":3363,"children":3364},{},[3365],{"type":31,"value":261},{"type":26,"tag":213,"props":3367,"children":3368},{},[3369],{"type":31,"value":266},{"type":26,"tag":27,"props":3371,"children":3372},{},[3373],{"type":31,"value":271},{"type":26,"tag":81,"props":3375,"children":3376},{"id":274},[3377],{"type":31,"value":277},{"type":26,"tag":27,"props":3379,"children":3380},{},[3381],{"type":31,"value":282},{"type":26,"tag":209,"props":3383,"children":3384},{},[3385,3389,3393],{"type":26,"tag":213,"props":3386,"children":3387},{},[3388],{"type":31,"value":290},{"type":26,"tag":213,"props":3390,"children":3391},{},[3392],{"type":31,"value":295},{"type":26,"tag":213,"props":3394,"children":3395},{},[3396],{"type":31,"value":300},{"type":26,"tag":27,"props":3398,"children":3399},{},[3400],{"type":31,"value":305},{"type":26,"tag":81,"props":3402,"children":3403},{"id":308},[3404],{"type":31,"value":311},{"type":26,"tag":27,"props":3406,"children":3407},{},[3408],{"type":31,"value":316},{"type":26,"tag":209,"props":3410,"children":3411},{},[3412,3416,3420,3424],{"type":26,"tag":213,"props":3413,"children":3414},{},[3415],{"type":31,"value":324},{"type":26,"tag":213,"props":3417,"children":3418},{},[3419],{"type":31,"value":329},{"type":26,"tag":213,"props":3421,"children":3422},{},[3423],{"type":31,"value":334},{"type":26,"tag":213,"props":3425,"children":3426},{},[3427],{"type":31,"value":339},{"type":26,"tag":27,"props":3429,"children":3430},{},[3431],{"type":31,"value":344},{"type":26,"tag":81,"props":3433,"children":3434},{"id":347},[3435],{"type":31,"value":350},{"type":26,"tag":27,"props":3437,"children":3438},{},[3439],{"type":31,"value":355},{"type":26,"tag":27,"props":3441,"children":3442},{},[3443],{"type":31,"value":360},{"type":26,"tag":27,"props":3445,"children":3446},{},[3447],{"type":31,"value":365},{"type":26,"tag":209,"props":3449,"children":3450},{},[3451,3458,3465,3472],{"type":26,"tag":213,"props":3452,"children":3453},{},[3454],{"type":26,"tag":49,"props":3455,"children":3456},{"href":51},[3457],{"type":31,"value":54},{"type":26,"tag":213,"props":3459,"children":3460},{},[3461],{"type":26,"tag":49,"props":3462,"children":3463},{"href":59},[3464],{"type":31,"value":62},{"type":26,"tag":213,"props":3466,"children":3467},{},[3468],{"type":26,"tag":49,"props":3469,"children":3470},{"href":66},[3471],{"type":31,"value":69},{"type":26,"tag":213,"props":3473,"children":3474},{},[3475],{"type":26,"tag":49,"props":3476,"children":3477},{"href":74},[3478],{"type":31,"value":77},{"title":7,"searchDepth":398,"depth":398,"links":3480},[3481,3482,3483,3484,3485,3486],{"id":83,"depth":401,"text":86},{"id":199,"depth":401,"text":202},{"id":240,"depth":401,"text":243},{"id":274,"depth":401,"text":277},{"id":308,"depth":401,"text":311},{"id":347,"depth":401,"text":350},1778886908388]