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