{"id":95169,"date":"2026-08-16T12:17:07","date_gmt":"2026-08-16T04:17:07","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/95169.html"},"modified":"2026-08-16T12:17:07","modified_gmt":"2026-08-16T04:17:07","slug":"codex-cli-%e6%94%b9%e4%bb%a3%e7%a0%81%e5%89%8d%e8%a6%81%e5%81%9a%e4%bb%80%e4%b9%88%ef%bc%9f%e7%94%a8%e6%b5%8b%e8%af%95%e5%92%8c-git-diff-%e9%aa%8c%e6%94%b6%e4%b8%80%e4%b8%aa%e5%b0%8f-bug","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/95169.html","title":{"rendered":"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug"},"content":{"rendered":"<h2>Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48&#xff1f;\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug<\/h2>\n<p>\u4e0a\u4e00\u7bc7\u53ea\u8bfb\u5206\u6790\u53d1\u73b0&#xff1a;\u670d\u52a1\u7aef\u7cbe\u786e\u5339\u914d\u5b8c\u6574 URL&#xff0c;\u6240\u4ee5 \/api\/books?limit&#061;1 \u4f1a\u8fd4\u56de 404\u3002<\/p>\n<p>\u8fd9\u6b21\u6211\u5148\u5199\u5931\u8d25\u6d4b\u8bd5&#xff0c;\u518d\u9650\u5b9a\u5141\u8bb8\u4fee\u6539\u7684\u6587\u4ef6&#xff0c;\u6700\u540e\u68c0\u67e5 diff \u548c\u6d4b\u8bd5\u7ed3\u679c\u3002\u771f\u5b9e\u7ed3\u679c\u662f&#xff1a;\u4fee\u6539\u524d 2 \u9879\u901a\u8fc7\u30011 \u9879\u5931\u8d25&#xff1b;Codex CLI 0.145.0 \u542f\u52a8\u4fee\u6539\u4efb\u52a1\u65f6\u8fd4\u56de\u6743\u9650\u521d\u59cb\u5316\u9519\u8bef&#xff0c;\u6ca1\u6709\u8fdb\u5165\u4ee3\u7801\u4fee\u6539&#xff1b;\u4eba\u5de5\u5b8c\u6210\u6700\u5c0f\u4fee\u590d\u540e&#xff0c;3 \u9879\u6d4b\u8bd5\u5168\u90e8\u901a\u8fc7\u3002 \u4e0d\u4f1a\u5b89\u88c5 Codex CLI \u7684\u8bdd&#xff0c;\u53ef\u4ee5\u5148\u53c2\u8003\u7b2c\u4e00\u7bc7&#xff1a;Windows \u4e00\u952e\u5b89\u88c5 Codex CLI&#xff1a;Node.js \u4e00\u8d77\u88c5\u597d\u3002<\/p>\n<h3>1. \u5199\u6e05\u9700\u6c42\u548c\u8fb9\u754c<\/h3>\n<p>\u76ee\u6807&#xff1a;GET \/api\/books?limit&#061;1 \u8fd4\u56de\u524d 1 \u672c\u4e66\u3002<br \/>\n\u5141\u8bb8\u4fee\u6539&#xff1a;src\/server.js<br \/>\n\u7981\u6b62\u4fee\u6539&#xff1a;\u6d4b\u8bd5\u3001README\u3001package.json<br \/>\n\u7981\u6b62\u65b0\u589e&#xff1a;\u7b2c\u4e09\u65b9\u4f9d\u8d56\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u73af\u5883\u53d8\u91cf\u6587\u4ef6<\/p>\n<p>\u4e0d\u4f20 limit \u65f6\u8fd4\u56de\u5168\u90e8&#xff0c;limit \u4e0d\u662f\u6b63\u6574\u6570\u65f6\u8fd4\u56de 400\u3002<\/p>\n<h3>2. \u5148\u8ba9\u6d4b\u8bd5\u5931\u8d25<\/h3>\n<p><span class=\"token keyword\">const<\/span> response <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> <span class=\"token function\">fetch<\/span><span class=\"token punctuation\">(<\/span>baseUrl <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;\/api\/books?limit&#061;1&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">const<\/span> payload <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> response<span class=\"token punctuation\">.<\/span><span class=\"token function\">json<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\nassert<span class=\"token punctuation\">.<\/span><span class=\"token function\">equal<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>status<span class=\"token punctuation\">,<\/span> <span class=\"token number\">200<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\nassert<span class=\"token punctuation\">.<\/span><span class=\"token function\">equal<\/span><span class=\"token punctuation\">(<\/span>payload<span class=\"token punctuation\">.<\/span>books<span class=\"token punctuation\">.<\/span>length<span class=\"token punctuation\">,<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fd0\u884c npm test&#xff0c;\u771f\u5b9e\u7ed3\u679c\u662f 2 \u9879\u901a\u8fc7\u30011 \u9879\u5931\u8d25&#xff0c;\u65ad\u8a00\u4e3a 404 !&#061;&#061; 200\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260816041704-6a8139c0bc947.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>3. \u7ed9 Codex \u4e00\u6761\u80fd\u68c0\u67e5\u7684\u4efb\u52a1<\/h3>\n<p>\u53ea\u5904\u7406 GET \/api\/books?limit&#061;1\u3002<br \/>\n\u53ea\u5141\u8bb8\u4fee\u6539 src\/server.js\u3002<br \/>\n\u4e0d\u8981\u4fee\u6539\u6d4b\u8bd5\u3001README\u3001package.json\u3002<br \/>\n\u4f7f\u7528 Node.js \u5185\u7f6e URL&#xff0c;\u4e0d\u589e\u52a0\u7b2c\u4e09\u65b9\u4f9d\u8d56\u3002<br \/>\n\u5b8c\u6210\u540e\u8fd0\u884c npm test\u3002<\/p>\n<p>codex exec <span class=\"token operator\">&#8212;<\/span>sandbox workspace-<span class=\"token function\">write<\/span> <span class=\"token operator\">&#8212;<\/span>ephemeral <span class=\"token operator\">&#8212;<\/span>cd <span class=\"token punctuation\">.<\/span>\\\\example-project <span class=\"token string\">&#034;&lt;\u4efb\u52a1\u5185\u5bb9&gt;&#034;<\/span><\/p>\n<p>workspace-write \u4f1a\u53d7 Codex \u7248\u672c\u548c\u914d\u7f6e\u5f71\u54cd&#xff0c;\u4f7f\u7528\u524d\u5148\u8fd0\u884c codex exec &#8211;help\u3002\u5b98\u65b9\u6c99\u7bb1\u8bf4\u660e&#xff1a;https:\/\/learn.chatgpt.com\/docs\/sandboxing\u3002<\/p>\n<h3>4. Codex \u8fd9\u6b21\u6ca1\u6709\u6539\u6210\u529f<\/h3>\n<p>codex-cli 0.145.0<br \/>\nError: failed to initialize in-process app-server client:<br \/>\n\u62d2\u7edd\u8bbf\u95ee\u3002 (os error 5)<br \/>\nCODEX_EXIT&#061;1<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260816041705-6a8139c152c7c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6ca1\u6709\u6a21\u578b\u8f93\u51fa&#xff0c;\u4e5f\u6ca1\u6709\u9879\u76ee\u6539\u52a8\u3002\u6211\u5148\u68c0\u67e5&#xff1a;<\/p>\n<p>where<span class=\"token punctuation\">.<\/span>exe codex<br \/>\ncodex <span class=\"token operator\">&#8212;<\/span>version<br \/>\ngit status <span class=\"token operator\">&#8212;<\/span>short<\/p>\n<p>\u4e0d\u8981\u56e0\u4e3a\u542f\u52a8\u5931\u8d25\u5c31\u6539\u7528\u5371\u9669\u53c2\u6570\u91cd\u8dd1\u3002<\/p>\n<h3>5. \u4eba\u5de5\u5b8c\u6210\u6700\u5c0f\u4fee\u590d<\/h3>\n<p>\u8fd9\u91cc\u660e\u786e\u5199\u201c\u4eba\u5de5\u4fee\u590d\u201d&#xff0c;\u4e0d\u628a\u5b83\u7b97\u6210 Codex \u7684\u7ed3\u679c\u3002<\/p>\n<p><span class=\"token keyword\">const<\/span> requestUrl <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">URL<\/span><span class=\"token punctuation\">(<\/span>request<span class=\"token punctuation\">.<\/span>url <span class=\"token operator\">||<\/span> <span class=\"token string\">&#034;\/&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;http:\/\/127.0.0.1&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">const<\/span> limitParam <span class=\"token operator\">&#061;<\/span> requestUrl<span class=\"token punctuation\">.<\/span>searchParams<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;limit&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">let<\/span> result <span class=\"token operator\">&#061;<\/span> books<span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>limitParam <span class=\"token operator\">!&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> limit <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">Number<\/span><span class=\"token punctuation\">(<\/span>limitParam<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span>Number<span class=\"token punctuation\">.<\/span><span class=\"token function\">isInteger<\/span><span class=\"token punctuation\">(<\/span>limit<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">||<\/span> limit <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    response<span class=\"token punctuation\">.<\/span>statusCode <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">400<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">else<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    result <span class=\"token operator\">&#061;<\/span> books<span class=\"token punctuation\">.<\/span><span class=\"token function\">slice<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span> limit<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6838\u5fc3\u53d8\u5316\u662f\u62c6\u5206 pathname \u548c\u67e5\u8be2\u53c2\u6570\u3001\u6821\u9a8c limit\u3001\u622a\u53d6\u7ed3\u679c\u3002<\/p>\n<h3>6. \u5148\u770b git diff<\/h3>\n<p>git status <span class=\"token operator\">&#8212;<\/span>short<br \/>\ngit <span class=\"token function\">diff<\/span> <span class=\"token operator\">&#8212;<\/span>name-only<br \/>\ngit <span class=\"token function\">diff<\/span> <span class=\"token operator\">&#8212;<\/span>stat<br \/>\ngit <span class=\"token function\">diff<\/span> <span class=\"token operator\">&#8212;<\/span> src\/server<span class=\"token punctuation\">.<\/span>js test\/server<span class=\"token punctuation\">.<\/span>test<span class=\"token punctuation\">.<\/span>js<br \/>\ngit <span class=\"token function\">diff<\/span> <span class=\"token operator\">&#8212;<\/span>check<\/p>\n<p>\u91cd\u70b9\u68c0\u67e5\u5141\u8bb8\u6587\u4ef6\u3001\u6d4b\u8bd5\u6587\u4ef6\u3001\u4f9d\u8d56\u3001\u65e0\u5173\u8def\u7531\u548c\u975e\u6cd5\u53c2\u6570\u5904\u7406\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260816041705-6a8139c19b06e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>7. \u6700\u540e\u518d\u8dd1\u6d4b\u8bd5<\/h3>\n<p>\u6700\u7ec8 3 \u9879\u5168\u90e8\u901a\u8fc7\u30010 \u5931\u8d25&#xff0c;\u9000\u51fa\u7801\u4e3a 0\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260816041705-6a8139c1e4cf2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5f53\u524d\u8fd8\u6ca1\u6709\u4e3a limit&#061;0\u3001\u8d1f\u6570\u3001\u975e\u6570\u5b57\u3001\u5c0f\u6570\u548c\u8d85\u5927\u503c\u5206\u522b\u8865\u6d4b\u8bd5&#xff0c;\u4e0b\u4e00\u8f6e\u5e94\u8be5\u5148\u8865\u6d4b\u8bd5\u3002<\/p>\n<h3>llapi.org \u7684\u4f4d\u7f6e<\/h3>\n<p>\u793a\u4f8b\u9879\u76ee\u4e0d\u9700\u8981 API Key\u3002Codex \u8c03\u7528\u6a21\u578b\u65f6\u624d\u9700\u8981\u8ba4\u8bc1\u548c\u670d\u52a1\u5165\u53e3\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528 llapi.org&#xff0c;\u53ef\u4ee5\u5230 https:\/\/llapi.org \u521b\u5efa\u8d26\u53f7\u5e76\u7533\u8bf7\u81ea\u5df1\u7684 API Key\u3002\u6a21\u578b\u3001\u4ef7\u683c\u548c\u670d\u52a1\u89c4\u5219\u4ee5\u5b98\u7f51\u5f53\u524d\u9875\u9762\u4e3a\u51c6\u3002\u771f\u5b9e Key\u3001Authorization \u5934\u548c\u540e\u53f0\u622a\u56fe\u4e0d\u8981\u8fdb\u5165\u6587\u7ae0\u3001\u56fe\u7247\u6216 Git\u3002<\/p>\n<p>\u5b9e\u6d4b\u65f6\u95f4&#xff1a;2026-08-16\u3002CLI \u53c2\u6570\u8bf7\u4ee5\u672c\u673a codex exec &#8211;help \u4e3a\u51c6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48&#xff1f;\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug<br \/>\n\u4e0a\u4e00\u7bc7\u53ea\u8bfb\u5206\u6790\u53d1\u73b0&#xff1a;\u670d\u52a1\u7aef\u7cbe\u786e\u5339\u914d\u5b8c\u6574 URL&#xff0c;\u6240\u4ee5 \/api\/books?limit1 \u4f1a\u8fd4\u56de 404\u3002<br \/>\n\u8fd9\u6b21\u6211\u5148\u5199\u5931\u8d25\u6d4b\u8bd5&#xff0c;\u518d\u9650\u5b9a\u5141\u8bb8\u4fee\u6539\u7684\u6587\u4ef6&#xff0c;\u6700\u540e\u68c0\u67e5 diff \u548c\u6d4b\u8bd5\u7ed3\u679c\u3002\u771f\u5b9e\u7ed3\u679c\u662f&#xff1a;\u4fee\u6539\u524d 2 \u9879\u901a\u8fc7\u30011 \u9879\u5931\u8d25&#xff1b;Codex CLI 0.145.0 \u542f\u52a8\u4fee\u6539\u4efb\u52a1\u65f6\u8fd4\u56de\u6743\u9650\u521d\u59cb\u5316\u9519<\/p>\n","protected":false},"author":2,"featured_media":95165,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10187,66,53,175,567,50],"topic":[],"class_list":["post-95169","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-codingplan","tag-ai","tag-chatgpt","tag-html","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/95169.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48&#xff1f;\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug \u4e0a\u4e00\u7bc7\u53ea\u8bfb\u5206\u6790\u53d1\u73b0&#xff1a;\u670d\u52a1\u7aef\u7cbe\u786e\u5339\u914d\u5b8c\u6574 URL&#xff0c;\u6240\u4ee5 \/api\/books?limit1 \u4f1a\u8fd4\u56de 404\u3002 \u8fd9\u6b21\u6211\u5148\u5199\u5931\u8d25\u6d4b\u8bd5&#xff0c;\u518d\u9650\u5b9a\u5141\u8bb8\u4fee\u6539\u7684\u6587\u4ef6&#xff0c;\u6700\u540e\u68c0\u67e5 diff \u548c\u6d4b\u8bd5\u7ed3\u679c\u3002\u771f\u5b9e\u7ed3\u679c\u662f&#xff1a;\u4fee\u6539\u524d 2 \u9879\u901a\u8fc7\u30011 \u9879\u5931\u8d25&#xff1b;Codex CLI 0.145.0 \u542f\u52a8\u4fee\u6539\u4efb\u52a1\u65f6\u8fd4\u56de\u6743\u9650\u521d\u59cb\u5316\u9519\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/95169.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-16T04:17:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260816041704-6a8139c0bc947.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/95169.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/95169.html\",\"name\":\"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-16T04:17:07+00:00\",\"dateModified\":\"2026-08-16T04:17:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/95169.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/95169.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/95169.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/95169.html","og_locale":"zh_CN","og_type":"article","og_title":"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48&#xff1f;\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug \u4e0a\u4e00\u7bc7\u53ea\u8bfb\u5206\u6790\u53d1\u73b0&#xff1a;\u670d\u52a1\u7aef\u7cbe\u786e\u5339\u914d\u5b8c\u6574 URL&#xff0c;\u6240\u4ee5 \/api\/books?limit1 \u4f1a\u8fd4\u56de 404\u3002 \u8fd9\u6b21\u6211\u5148\u5199\u5931\u8d25\u6d4b\u8bd5&#xff0c;\u518d\u9650\u5b9a\u5141\u8bb8\u4fee\u6539\u7684\u6587\u4ef6&#xff0c;\u6700\u540e\u68c0\u67e5 diff \u548c\u6d4b\u8bd5\u7ed3\u679c\u3002\u771f\u5b9e\u7ed3\u679c\u662f&#xff1a;\u4fee\u6539\u524d 2 \u9879\u901a\u8fc7\u30011 \u9879\u5931\u8d25&#xff1b;Codex CLI 0.145.0 \u542f\u52a8\u4fee\u6539\u4efb\u52a1\u65f6\u8fd4\u56de\u6743\u9650\u521d\u59cb\u5316\u9519","og_url":"https:\/\/www.wsisp.com\/helps\/95169.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-16T04:17:07+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260816041704-6a8139c0bc947.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/95169.html","url":"https:\/\/www.wsisp.com\/helps\/95169.html","name":"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-16T04:17:07+00:00","dateModified":"2026-08-16T04:17:07+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/95169.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/95169.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/95169.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Codex CLI \u6539\u4ee3\u7801\u524d\u8981\u505a\u4ec0\u4e48\uff1f\u7528\u6d4b\u8bd5\u548c git diff \u9a8c\u6536\u4e00\u4e2a\u5c0f Bug"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/95169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=95169"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/95169\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/95165"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=95169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=95169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=95169"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=95169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}