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