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