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