Skip to content

プロバイダーガイドの Next.js 移植(TDD)・a11y 改善および DeepSeek / OpenAI Codex 等の仕様・コード最適化 - #133

Merged
myoshi2891 merged 54 commits into
mainfrom
dev
Jul 31, 2026
Merged

myoshi2891 merged 54 commits into
mainfrom
dev

Conversation

@myoshi2891

@myoshi2891 myoshi2891 commented Jul 29, 2026 •

Copy link
Copy Markdown
Owner

主に各種 AI プロバイダー・開発ガイドの Next.js App Router への TDD 移植・新規構築と、全ページにわたるアクセシビリティ(a11y)および JSX/Mermaid 描画の修正、さらに DeepSeek や OpenAI Codex などの技術ドキュメント・コード例の精度向上 が行われました。


主要な変更内容

1. ガイドページの Next.js App Router への移植 & 新規実装 (TDD)

  • OpenAI Codex: /codex/agent ページを OpenAI Codex マルチエージェントベストプラクティスガイドに刷新・テスト追加。
  • DeepSeek: Deepseek-llm.html を /deepseek/llm-best-practices へ移植。コードハイライト追加および Mermaid コンポーネント修正。
  • xAI Grok: grok-best-practices および grok-best-practices-intermediate ページを TDD(テスト作成 → 純粋 JSX 移植 → アーカイブ化)で新規構築。
  • Zhipu AI: zai-glm-best-practices ガイドを純粋 JSX ページへ移植。

2. アクセシビリティ (a11y) & UI・描画コンポーネントの修正

  • ARIA 属性・操作性の向上: サイドバー/ハンバーガーボタン/TOC トグルへの type="button" や aria-controls / aria-expanded 属性の付与と同期処理の改善。
  • JSX 構文 & Mermaid 描画の安全化: テンプレート文字列内の <br> を JSX の自己閉じタグ <br/> へ修正。Mermaid エラーレンダリングのフォールバック強化。

3. ドキュメント仕様のアップデート & サンプルコードの堅牢化

  • DeepSeek:
    • API キーの環境変数読み込みコードの修正。
    • tool_calls の JSON パース処理および get_weather 呼び出し前の引数検証(バリデーション)の追加。
    • 非推奨(discontinued)モデルのステータス更新。
  • OpenAI Codex:
    • 設定ファイルの階層順序を訂正(プロジェクト設定 > ユーザー設定、管理デフォルトと管理者制約の分離、MCP ドキュメント更新)。
  • 価格 & 進捗情報:
    • Grok 4.5 の価格更新、テスト数更新(1281 件パス)、検証コマンド表記を bun run へ統一。

4. コード品質・フォーマット(lint / MD022)対応

  • マークダウンの規約準拠(見出し前後の空行追加による MD022 解決)。
  • Google-sandbox-best-practices.html 等における HTML 構造・スクリプトタグ・スタイルのリファクタリング。

@netlify

netlify Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for comparison-of-llms ready!

Name Link
🔨 Latest commit dfce620
🔍 Latest deploy log https://app.netlify.com/projects/comparison-of-llms/deploys/6a6bed5a467f3c000780ea16
😎 Deploy Preview https://deploy-preview-133--comparison-of-llms.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@myoshi2891, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 32c64da7-27f4-425d-8c8a-a142ada5234f

📥 Commits

Reviewing files that changed from the base of the PR and between da46dc1 and dfce620.

📒 Files selected for processing (11)
  • web-next/app/codex/agent/SidebarToggle.tsx
  • web-next/app/codex/agent/TocObserver.tsx
  • web-next/app/codex/agent/page.tsx
  • web-next/app/deepseek/llm-best-practices/TocObserver.tsx
  • web-next/app/deepseek/llm-best-practices/page.tsx
  • web-next/app/xai/grok-best-practices-intermediate/SidebarToggle.tsx
  • web-next/app/xai/grok-best-practices-intermediate/TocObserver.tsx
  • web-next/app/xai/grok-best-practices-intermediate/page.tsx
  • web-next/app/xai/grok-best-practices/page.tsx
  • web-next/app/zhipu/zai-glm-best-practices/SidebarToggle.tsx
  • web-next/app/zhipu/zai-glm-best-practices/page.tsx
📝 Walkthrough

Summary by CodeRabbit

  • 新機能
    • AI仕様駆動開発、Googleサンドボックス、OpenAI Codex、DeepSeek、xAI、Zhipu(GLM)などの実践ガイドを追加。
  • 改善
    • 目次連動、モバイルサイドバー、進捗表示、章ハイライト、Mermaid図、コードコピー、トップへ戻る機能を強化。
    • 提供元カテゴリと関連ページの表示を拡張。
  • ドキュメント
    • ガイド内容、更新日、検証結果を更新。一部の旧ガイドを整理・削除。
  • テスト/品質
    • ページ構成、リンク、Mermaid表示、アクセシビリティ属性などのテストを追加・更新。

Walkthrough

SDD、サンドボックス、Codex、DeepSeek、xAI、Zhipu(GLM)のガイド文書と表示ページを追加・更新し、Provider登録、目次連携、Mermaid表示、レスポンシブUI、検証記録を拡張した。

Changes

AIガイドとHTMLビュー

Layer / File(s) Summary
Markdownガイド
Ai-spec-driven-development-markdown-best-practices.md, Google-sandbox-best-practices.md, Openai-codex-best-practices-2026.md, archive/md/OpenAI/*
SDD、サンドボックス、Codexの章、図、表、手順、チェックリスト、参考文献を追加した。
静的HTMLガイド
Ai-spec-driven-development-markdown-best-practices.html, Google-sandbox-best-practices.html, Openai-codex-best-practices-2026.html, archive/html/*
本文、固定サイドバー、レスポンシブ表示、Mermaid、コードハイライト、スクロールスパイ、コピー操作を実装した。

Next.js Providerページ

Layer / File(s) Summary
Providerガイドページ
web-next/app/codex/agent/*, web-next/app/deepseek/llm-best-practices/*, web-next/app/xai/*, web-next/app/zhipu/zai-glm-best-practices/*
Provider別の長文ガイド、章目次、図、コード例、外部リンク、サイドバー、レスポンシブCSSを追加・更新した。
表示・契約テスト
web-next/app/**/page.test.tsx
見出し数、メタデータ、Mermaid数、外部リンク属性、内部リンク形式を検証するテストを追加・更新した。
共有目次監視
web-next/components/docs/TocObserver.tsx, web-next/app/*/TocObserver.tsx
章セレクタ指定、IntersectionObserverによるアクティブリンク更新、モバイルサイドバー連携を追加した。

Providerナビゲーション

Layer / File(s) Summary
レジストリと分類
web-next/lib/page-registry.ts, web-next/lib/nav-taxonomy.ts, web-next/components/site/SiteHeader.test.tsx, web-next/tests/nav-derivation.test.ts
DeepSeek、xAI、Zhipu(GLM)をProvider enum、ページレジストリ、分類順序、サイトヘッダー検証へ追加した。

プロジェクト記録

Layer / File(s) Summary
更新日と検証記録
AGENTS.md, CLAUDE.md, GEMINI.md, docs/PROGRESS.md
更新日、bunコマンド表記、テスト件数を更新した。

Estimated code review effort: 5 (Critical) | ~120 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (1 warning, 2 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive プルリクエストの説明がなく、変更内容との関連性や目的を確認できません。 変更の目的、主な内容、影響範囲を簡潔に記載してください。
Title check ❓ Inconclusive 「Dev」は変更内容や主目的を示さない非常に曖昧なタイトルで、変更の概要を判断できません。 DeepSeekのget_weather引数検証やドキュメント追加など、プルリクエストの主要な変更内容を具体的に要約するタイトルへ変更してください。
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • ✅ Generated successfully - (🔄 Check to regenerate)
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Ai-spec-driven-development-markdown-best-practices.html`:
- Around line 957-959: hamburgerBtn の button 要素に type="button"
を明示的に追加し、フォーム内に配置されても送信ボタンとして扱われないようにする。

In `@Google-sandbox-best-practices.html`:
- Around line 1373-1404: Consolidate the duplicated anchor-to-H2 traversal used
by sections and hashBySection into the single navLinks.map loop. For each valid
navigation link, resolve the H2 once, add it to sections, and associate it with
the link hash in hashBySection; retain filtering of missing anchors or sections.
- Around line 762-767: この段落の「Sandboxed
API(SAPI)」と「ライブラリ単位」の強調範囲を独立させ、入れ子になっているstrongタグを修正してください。Sandboxed
API(SAPI)の直後で強調を閉じ、中間の説明文は通常表示に戻し、「C/C++のライブラリ単位」のみを別のstrong要素で強調してください。

In `@Google-sandbox-best-practices.md`:
- Around line 1-2: Update the Markdown around every heading in
Google-sandbox-best-practices.md to satisfy MD022 by adding a blank line before
and after each heading, including the adjacent H1 and H2 at the document start
and all other reported heading locations. Preserve the existing heading text and
document content.
- Around line 208-209:
手順2の「まず」と「最初は」の重複表現を解消してください。見出しの「まず動かす」と本文の「最初はライブラリを直接呼び出す」のどちらかを別の自然な表現に置き換え、アンサンドボックス版を先に実装・確認する意味は維持してください。

In `@Openai-codex-agents-multiagent-best-practices.md`:
- Line 234: 独自サブエージェントの配置先を説明する文を更新し、ユーザー単位の `~/.codex/agents/` に加えてプロジェクトルートの
`.codex/agents/`
もTOML配置先として併記してください。後者がチーム共有用の定義に使えることも明記し、名前指定やモデル割り当ての説明は維持してください。
- Around line 127-135: Update the Mermaid flowchart’s configuration resolution
order to show, from highest priority to lowest, MDM settings, system-managed
settings (managed_config.toml/requirements.toml), CLI and -c overrides, user
settings, system settings, and built-in defaults, with administrator-enforced
limits applied last. Replace the current nodes and edges around the
configuration flow so the diagram no longer presents requirements.toml as the
sole late-stage validation step.
- Line 195: Revise the MCP dependency guidance in the surrounding documentation
to state only that dependencies can be declared in agents/openai.yaml. Remove
the claims that Codex automatically installs, configures, or connects to the
server, while preserving the recommendation to declare the dependency.
- Around line 294-303: モデル選定図と直後の設定説明を、現行推奨に合わせて更新してください。曖昧・多段階・要検証の分岐は
gpt-5.6、バランス・速度重視の分岐は gpt-5.6-terra を示し、旧モデル名と Cerebras の説明を削除してください。個別設定の参照は
agents.<name>.config_file ではなく、各 config.toml の agents.default_subagent_model
を確認する内容に変更してください。
- Line 156:
設定表(Openai-codex-agents-multiagent-best-practices.md:156-156)、説明(同:246-246)、チェックリスト(同:325-325)の3箇所で、現行キーをagents.max_concurrent_threads_per_sessionとして統一し、agents.max_threadsはそのレガシー別名として明記してください。あわせてagents.max_depthはV1でのみ有効でV2では無視されることを各箇所に反映し、agents.max_threadsを現行キーとして扱う記述を修正してください。
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: cb728e55-03f4-4c1f-90df-f78abf12f7e5

📥 Commits

Reviewing files that changed from the base of the PR and between 467a7ff and f60dba2.

📒 Files selected for processing (9)
  • Ai-spec-driven-development-markdown-best-practices.html
  • Ai-spec-driven-development-markdown-best-practices.md
  • Antigravity-cli-guide.md
  • Gemini-multi-agent-best-practices.md
  • Google-sandbox-best-practices.html
  • Google-sandbox-best-practices.md
  • Harness-engineering-google-guide.md
  • Openai-codex-agents-multiagent-best-practices.md
  • docs/PROGRESS.md
💤 Files with no reviewable changes (3)
  • Harness-engineering-google-guide.md
  • Gemini-multi-agent-best-practices.md
  • Antigravity-cli-guide.md

Comment thread Ai-spec-driven-development-markdown-best-practices.html Outdated
Comment thread Google-sandbox-best-practices.html Outdated
Comment thread Google-sandbox-best-practices.html
Comment thread Google-sandbox-best-practices.md
Comment thread Google-sandbox-best-practices.md Outdated
Comment thread archive/md/OpenAI/Openai-codex-agents-multiagent-best-practices.md
Comment thread archive/md/OpenAI/Openai-codex-agents-multiagent-best-practices.md Outdated
Comment thread archive/md/OpenAI/Openai-codex-agents-multiagent-best-practices.md Outdated
Comment thread archive/md/OpenAI/Openai-codex-agents-multiagent-best-practices.md Outdated
Comment thread archive/md/OpenAI/Openai-codex-agents-multiagent-best-practices.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

♻️ Duplicate comments (1)
web-next/app/deepseek/llm-best-practices/page.tsx (1)

63-65: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

DIAGRAM_3 内で <br> と <br/> が混在しています。

64行目は <br> を2箇所使用していますが、同じダイアグラム内の65行目は <br/> です。Mermaidのバージョン依存でパース/描画結果が変わるリスクがあるため、<br/> に統一してください(DIAGRAM_4/7/8 は既に統一済みです)。

🐛 修正案
-    Start["タスクの発生"] --> Q1{"高い推論能力<br>(数学・難解なコード・論理パズル)<br>が必須?"}
+    Start["タスクの発生"] --> Q1{"高い推論能力<br/>(数学・難解なコード・論理パズル)<br/>が必須?"}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web-next/app/deepseek/llm-best-practices/page.tsx` around lines 63 - 65,
Update the DIAGRAM_3 template string so every HTML line break uses the
self-closing <br/> form, replacing the two <br> occurrences while preserving the
diagram text and structure.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Google-sandbox-best-practices.html`:
- Line 636: Update the sidebar toggle button identified by sidebarToggle to
explicitly use type="button", and add aria-controls referencing the existing
sidebar element ID; ensure the referenced sidebar has a matching id if needed.

In `@Openai-codex-best-practices-2026.html`:
- Line 793: Update the navToggle button element to explicitly set type="button",
preserving its existing id, aria-label, and displayed text while preventing
default form submission behavior.
- Around line 2340-2345: Update the Mermaid render error handling in the catch
block to insert the user-visible error message through textContent rather than
concatenating err.message into target.innerHTML. Preserve the existing Japanese
prefix and fallback from err.message to err, while keeping the console.error
call unchanged.
- Around line 2364-2370: Update the mobile TOC toggle logic around navToggle and
tocNav so each open-state change synchronizes navToggle’s aria-expanded and
state-dependent aria-label, including resetting both when a TOC link closes the
menu; track the resulting isOpen state consistently. Also update nav.toc styles
at Openai-codex-best-practices-2026.html lines 760-765 to use visibility:hidden
and pointer-events:none when closed, restoring visibility:visible and
pointer-events:auto under nav.toc.open.

In `@Openai-codex-best-practices-2026.md`:
- Around line 194-214: 設定デフォルト階層の図と表を修正し、`.codex/config.toml`(プロジェクト設定)を
`~/.codex/config.toml`(ユーザー設定)より上位に並べ、続けてシステム設定を配置してください。あわせて、フローの矢印が優先度の低下または後続レイヤーによる上書きを示すことを本文で明記し、CLI設定や管理設定との説明もこの順序と矛盾しないよう更新してください。

In `@web-next/app/claude/skill-guide-intermediate/page.tsx`:
- Around line 188-189: Update the h2 content containing “Progressive Disclosure
— Skillのアーキテクチャ” to use an explicit JSX line break, such as br, between the
intended lines so the heading reliably renders on two lines without relying on
source formatting.

---

Duplicate comments:
In `@web-next/app/deepseek/llm-best-practices/page.tsx`:
- Around line 63-65: Update the DIAGRAM_3 template string so every HTML line
break uses the self-closing <br/> form, replacing the two <br> occurrences while
preserving the diagram text and structure.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 135f5f09-8439-434b-9409-f8b5755e495f

📥 Commits

Reviewing files that changed from the base of the PR and between 7609e8c and a3e7bcc.

📒 Files selected for processing (22)
  • Ai-spec-driven-development-markdown-best-practices.html
  • Google-sandbox-best-practices.html
  • Openai-codex-best-practices-2026.html
  • Openai-codex-best-practices-2026.md
  • archive/html/OpenAI/Openai-codex-agents-multiagent-best-practices.html
  • archive/html/xAI/Xai-grok-best-practices-intermediate.html
  • web-next/app/claude/skill-guide-intermediate/page.tsx
  • web-next/app/codex/agent/SidebarToggle.tsx
  • web-next/app/codex/agent/TocObserver.tsx
  • web-next/app/codex/agent/page.module.css
  • web-next/app/deepseek/llm-best-practices/TocObserver.tsx
  • web-next/app/deepseek/llm-best-practices/page.module.css
  • web-next/app/deepseek/llm-best-practices/page.tsx
  • web-next/app/xai/grok-best-practices-intermediate/SidebarToggle.tsx
  • web-next/app/xai/grok-best-practices-intermediate/page.module.css
  • web-next/app/xai/grok-best-practices-intermediate/page.tsx
  • web-next/app/xai/grok-best-practices/page.test.tsx
  • web-next/app/xai/grok-best-practices/page.tsx
  • web-next/app/zhipu/zai-glm-best-practices/page.module.css
  • web-next/app/zhipu/zai-glm-best-practices/page.test.tsx
  • web-next/app/zhipu/zai-glm-best-practices/page.tsx
  • web-next/components/docs/TocObserver.tsx

Comment thread Google-sandbox-best-practices.html Outdated
Comment thread Openai-codex-best-practices-2026.html Outdated
Comment thread Openai-codex-best-practices-2026.html
Comment thread Openai-codex-best-practices-2026.html Outdated
Comment thread Openai-codex-best-practices-2026.md Outdated
Comment thread web-next/app/claude/skill-guide-intermediate/page.tsx Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
web-next/app/deepseek/llm-best-practices/page.tsx (3)

419-425: 🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

APIキー例を環境変数から読み込む形に統一してください。

api_key="your_deepseek_api_key" は、直前の環境変数設定およびLine 466〜469のベストプラクティスと矛盾します。os.environ["DEEPSEEK_API_KEY"]を使う例に変更してください。

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web-next/app/deepseek/llm-best-practices/page.tsx` around lines 419 - 425,
OpenAI client initialization in the DeepSeek example uses a hardcoded API key;
replace the api_key value with os.environ["DEEPSEEK_API_KEY"], matching the
preceding environment-variable setup and the best-practice example around lines
466–469.

735-825: 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Tool Callsの実行・結果返却・再リクエストまで例に含めてください。

現在のコードはツール定義を送信するだけで、tool_callsの検出、許可済み関数の実行、role: "tool"の結果追加、最終回答取得の再呼び出しがありません。本文と図が説明する基本フローを実際に実装できるサンプルにしてください。

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web-next/app/deepseek/llm-best-practices/page.tsx` around lines 735 - 825,
実装例のtools定義とclient.chat.completions.create呼び出しを拡張し、初回応答のtool_callsを検出して許可済みのget_weatherを実行し、各結果をrole:
"tool"のメッセージとしてmessagesへ追加してください。その後、更新したmessagesとtoolsを使って再度client.chat.completions.createを呼び出し、最終回答を取得する一連のフローまで含めてください。

333-341: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

廃止後の文脈に合わせて、廃止済みであることを伝える案内にしてください。

2026年7月24日は廃止期限を過ぎているため、現在も「予告」「廃止前」が続く書き方は読み手を誤らせます。廃止済み扱いで「旧モデル名は既に利用できず〜」のような表現に言い換えてください。

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web-next/app/deepseek/llm-best-practices/page.tsx` around lines 333 - 341,
Update the warning callout in the llm-best-practices page to describe
deepseek-chat and deepseek-reasoner as already discontinued rather than
presenting a future deprecation notice. Replace the title and body wording with
language stating that the legacy aliases are no longer available, while
preserving the recommended deepseek-v4-flash and deepseek-v4-pro models.
♻️ Duplicate comments (1)
Openai-codex-best-practices-2026.md (1)

196-214: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Managed Defaults と通常の設定解決順を分離してください。

managed_config.toml は CLI の --config より優先する管理済み既定値ですが、現状は CLI を最優先としつつ、Managed Defaults の図へプロジェクト・ユーザー・システム設定を混在させています。通常設定は CLI → trusted project → profile → user → system → built-in、managed defaults は MDM → managed_config.toml → user base config として別表・別図にしてください。Line 231 の役割分担もこの区別に合わせて更新してください。(developers.openai.com)

Also applies to: 231-231

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Openai-codex-best-practices-2026.md` around lines 196 - 214,
設定優先順位の説明を、通常の設定解決と Managed Defaults に分離して更新してください。通常設定は CLI → trusted project →
profile → user → system → built-in、Managed Defaults は MDM → managed_config.toml
→ user base config の別図・別表で示し、managed_config.toml が CLI の --config
より優先される関係を明記してください。該当する優先順位の図表と、Line 231 の役割分担説明をこの区別に合わせて修正してください。
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@web-next/app/deepseek/llm-best-practices/page.tsx`:
- Around line 419-425: OpenAI client initialization in the DeepSeek example uses
a hardcoded API key; replace the api_key value with
os.environ["DEEPSEEK_API_KEY"], matching the preceding environment-variable
setup and the best-practice example around lines 466–469.
- Around line 735-825:
実装例のtools定義とclient.chat.completions.create呼び出しを拡張し、初回応答のtool_callsを検出して許可済みのget_weatherを実行し、各結果をrole:
"tool"のメッセージとしてmessagesへ追加してください。その後、更新したmessagesとtoolsを使って再度client.chat.completions.createを呼び出し、最終回答を取得する一連のフローまで含めてください。
- Around line 333-341: Update the warning callout in the llm-best-practices page
to describe deepseek-chat and deepseek-reasoner as already discontinued rather
than presenting a future deprecation notice. Replace the title and body wording
with language stating that the legacy aliases are no longer available, while
preserving the recommended deepseek-v4-flash and deepseek-v4-pro models.

---

Duplicate comments:
In `@Openai-codex-best-practices-2026.md`:
- Around line 196-214: 設定優先順位の説明を、通常の設定解決と Managed Defaults に分離して更新してください。通常設定は
CLI → trusted project → profile → user → system → built-in、Managed Defaults は
MDM → managed_config.toml → user base config の別図・別表で示し、managed_config.toml が CLI
の --config より優先される関係を明記してください。該当する優先順位の図表と、Line 231 の役割分担説明をこの区別に合わせて修正してください。

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: bfc65ea9-0c9e-4c33-9b27-4036fe810808

📥 Commits

Reviewing files that changed from the base of the PR and between a3e7bcc and f59578a.

📒 Files selected for processing (5)
  • Google-sandbox-best-practices.html
  • Openai-codex-best-practices-2026.html
  • Openai-codex-best-practices-2026.md
  • web-next/app/claude/skill-guide-intermediate/page.tsx
  • web-next/app/deepseek/llm-best-practices/page.tsx

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
Openai-codex-best-practices-2026.md (1)

196-214: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Managed Defaults と通常設定の優先順位を混在させないでください。

本文は CLI を最優先としていますが、図では managed_config.toml/MDM と同じ連鎖に置かれています。現行仕様では managed defaults は CLI を含む通常設定より優先されます。通常設定(CLI → project → profile → user → system → defaults)と、その上位の managed defaults(MDM → managed_config.toml → 通常設定)を分けて示してください。(developers.openai.com)

OpenAI Codex managed_config.toml の優先順位と CLI --config、.codex/config.toml、profile、requirements.toml の関係(公式ドキュメント)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Openai-codex-best-practices-2026.md` around lines 196 - 214, 設定優先順位の説明を、通常設定と
managed defaults に分離して更新してください。通常設定は CLI → project → profile → user → system →
built-in defaults の順に示し、MDM → managed_config.toml は CLI
を含むすべての通常設定より上位の制約・既定値として別系統で示してください。本文、Mermaid図、表の説明がこの優先関係と整合し、managed
defaults が通常設定の連鎖に混在しないよう修正してください。
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@Openai-codex-best-practices-2026.md`:
- Around line 196-214: 設定優先順位の説明を、通常設定と managed defaults に分離して更新してください。通常設定は CLI
→ project → profile → user → system → built-in defaults の順に示し、MDM →
managed_config.toml は CLI
を含むすべての通常設定より上位の制約・既定値として別系統で示してください。本文、Mermaid図、表の説明がこの優先関係と整合し、managed
defaults が通常設定の連鎖に混在しないよう修正してください。

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e95e735c-b294-42c3-aa71-2309ff97f444

📥 Commits

Reviewing files that changed from the base of the PR and between a3e7bcc and f59578a.

📒 Files selected for processing (5)
  • Google-sandbox-best-practices.html
  • Openai-codex-best-practices-2026.html
  • Openai-codex-best-practices-2026.md
  • web-next/app/claude/skill-guide-intermediate/page.tsx
  • web-next/app/deepseek/llm-best-practices/page.tsx

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@web-next/app/deepseek/llm-best-practices/page.tsx`:
- Around line 835-883: Update the tool-call handling around msg.tool_calls so
direct model responses are also displayed: add an else branch that prints
msg.content when no tool calls are present, while keeping the existing
final_resp creation and print flow for tool-call responses.
- Around line 334-339: ページ内の旧モデル廃止日表記を一貫させてください。calloutTitle
と同じ「2026年7月24日廃止済み」の状態に合わせ、最終更新日を2026年7月30日に更新し、タイムラインの「廃止予定」および移行チェックリストの「廃止前に検証」を廃止後の内容へ変更してください。
- Around line 845-849: Update the tool-call example around the get_weather
invocation to parse tool_call.function.arguments as JSON and pass its requested
location value to get_weather instead of the hard-coded "杭州" string. Preserve
the existing get_weather name check and displayed code formatting.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 406e563d-ad81-4ce9-bfb3-a0dfe95e5754

📥 Commits

Reviewing files that changed from the base of the PR and between f59578a and 9445782.

📒 Files selected for processing (4)
  • Google-sandbox-best-practices.md
  • Openai-codex-best-practices-2026.md
  • archive/md/OpenAI/Openai-codex-agents-multiagent-best-practices.md
  • web-next/app/deepseek/llm-best-practices/page.tsx

Comment thread web-next/app/deepseek/llm-best-practices/page.tsx
Comment thread web-next/app/deepseek/llm-best-practices/page.tsx Outdated
Comment thread web-next/app/deepseek/llm-best-practices/page.tsx Outdated
@myoshi2891

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@web-next/app/deepseek/llm-best-practices/page.tsx`:
- Around line 852-855: Validate the parsed tool arguments before invoking
get_weather: handle JSON parsing failures, reject null or array/non-object
values, and require location to be a non-empty string. Update the tool-call flow
around json.loads and get_weather to avoid exceptions or passing None, and
handle invalid arguments through the page’s existing error path.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0a09da1c-8169-4477-a9b3-879d4f839451

📥 Commits

Reviewing files that changed from the base of the PR and between 9445782 and f4dc074.

📒 Files selected for processing (1)
  • web-next/app/deepseek/llm-best-practices/page.tsx

Comment thread web-next/app/deepseek/llm-best-practices/page.tsx Outdated
@myoshi2891

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@myoshi2891 myoshi2891 changed the title Dev プロバイダーガイドの Next.js 移植(TDD)・a11y 改善および DeepSeek / OpenAI Codex 等の仕様・コード最適化 Jul 31, 2026
@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Note

Docstrings generation - SUCCESS
Generated docstrings for this pull request at #134

Docstrings generation was requested by @myoshi2891.

* #133 (comment)

The following files were modified:

* `web-next/app/codex/agent/SidebarToggle.tsx`
* `web-next/app/codex/agent/TocObserver.tsx`
* `web-next/app/codex/agent/page.tsx`
* `web-next/app/deepseek/llm-best-practices/TocObserver.tsx`
* `web-next/app/deepseek/llm-best-practices/page.tsx`
* `web-next/app/xai/grok-best-practices-intermediate/SidebarToggle.tsx`
* `web-next/app/xai/grok-best-practices-intermediate/TocObserver.tsx`
* `web-next/app/xai/grok-best-practices-intermediate/page.tsx`
* `web-next/app/xai/grok-best-practices/page.tsx`
* `web-next/app/zhipu/zai-glm-best-practices/SidebarToggle.tsx`
* `web-next/app/zhipu/zai-glm-best-practices/page.tsx`
@myoshi2891
myoshi2891 merged commit 077975b into main Jul 31, 2026
9 of 11 checks passed
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant