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