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