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