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