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