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