Skip to content

AIエージェントを本番ビルドで有効化 - #6531

Merged
TinyKitten merged 1 commit into
devfrom
feature/enable-ai-agent-in-production
Aug 4, 2026
Merged

TinyKitten merged 1 commit into
devfrom
feature/enable-ai-agent-in-production

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

概要

AIエージェントの表示条件から開発ビルド判定を除去し、本番ビルドでも Remote Config によって公開できるようにします。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • useAIAgentFeatureEnabled から isDevApp ゲートを除去
  • 全ビルドで ai_agent_enabled の値だけを表示条件として使用
  • Remote Config の true / false をそのまま返すことを確認するテストを追加
  • UI・アーキテクチャ仕様書を本番開放後の状態に更新

Remote Config が未設定または取得できない場合は、既存のフォールバック値 false により引き続き非表示になります。そのため、公開範囲は本番環境の Remote Config で即時に制御できます。

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

追加で git diff --check と npm test -- --runInBand src/hooks/useAIAgentFeatureEnabled.test.tsx が通ることを確認しました。

関連Issue

なし

スクリーンショット(任意)

Argent MCP がこのセッションでは利用できなかったため、端末でのスクリーンショットは未取得です。

Summary by CodeRabbit

  • 新機能

    • Remote Config の設定により、本番環境でも AI エージェントの表示を制御できるようになりました。
    • 設定が有効な場合にのみ、AI エージェントのエントリポイントが表示されます。
  • テスト

    • AI エージェントの表示設定が正しく反映されることを確認するテストを追加しました。
  • ドキュメント

    • AI エージェントの段階的リリース計画を更新しました。

@TinyKitten TinyKitten self-assigned this Aug 4, 2026
@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 39694afc-79bd-442f-a88f-52fcc186bb32

📥 Commits

Reviewing files that changed from the base of the PR and between d7dedea and 72f2aeb.

📒 Files selected for processing (4)
  • docs/spec/ai-agent/architecture.md
  • docs/spec/ai-agent/ui.md
  • src/hooks/useAIAgentFeatureEnabled.test.tsx
  • src/hooks/useAIAgentFeatureEnabled.ts

📝 Walkthrough

Walkthrough

AIエージェントの表示制御からisDevAppゲートを削除しました。全ビルドでRemote Configのai_agent_enabledだけを使用します。フックのテストと仕様書を更新しました。

Changes

AIエージェントRemote Config制御

Layer / File(s) Summary
Remote Config判定とテスト
src/hooks/useAIAgentFeatureEnabled.ts, src/hooks/useAIAgentFeatureEnabled.test.tsx
useAIAgentFeatureEnabledはRemote Config値を直接返します。trueとfalseの動作をテストします。
表示条件とリリース計画の仕様更新
docs/spec/ai-agent/ui.md, docs/spec/ai-agent/architecture.md
表示条件からisDevAppを削除します。Phase 2を本番公開済みとして記載します。

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Poem

うさぎが旗をぴょんと立て
Remote Configを読みました
開発ゲートは消えました
本番画面も跳ねて出る
AIエージェント、こんにちは!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed タイトルは本番ビルドでAIエージェントを有効化する主要な変更を簡潔かつ明確に示しています。
Description check ✅ Passed 概要、変更内容、テスト結果、関連Issue、任意のスクリーンショット欄を含み、変更目的と検証内容を十分に説明しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/enable-ai-agent-in-production

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

@github-actions github-actions Bot added the react label Aug 4, 2026
@TinyKitten

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 4, 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.

@TinyKitten
TinyKitten merged commit e784ab1 into dev Aug 4, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the feature/enable-ai-agent-in-production branch August 4, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant