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