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