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