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