Skip to content

canary - #6673

Merged
TinyKitten merged 3 commits into
canaryfrom
dev
Aug 12, 2026
Merged

canary#6673
TinyKitten merged 3 commits into
canaryfrom
dev

Conversation

@TinyKitten

Copy link
Copy Markdown
Member

概要

変更の種類

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

変更内容

dev に取り込み済みの以下の変更を canary へ反映する。

  • AIチャットの提案から同一駅の重複を除外 (AIチャットの提案から同一駅の重複を除外 #6671)
    • dedupeAgentSuggestions() を src/hooks/useDestinationAgent.ts に追加し、SSE 応答の suggestions から同じ stationId を指す提案を最初の 1 件だけ残して間引く。再取得 ID とスケルトンの React key の重複を解消する
    • dedupeStationsByGroupId() を src/utils/station.ts に追加し、src/screens/DestinationAgent/index.tsx で GET_STATIONS_BY_IDS の結果に適用。熱海駅(東海道線 / 東海道本線 / 伊東線)のように 1 つの物理駅が路線ごとに別 id を持つケースで同じ駅のカードが並ぶのを防ぐ
    • 提案側の stationGroupId はサーバ検証が stationId 突合のみで untrusted なため、groupId による間引きは取得前ではなく API 応答に対して行う。設計判断は docs/spec/ai-agent/architecture.md に追記済み
  • App Clipが起動直後に白画面のまま固まる問題を修正 (App Clipが起動直後に白画面のまま固まる問題を修正 #6672)
    • ProdAppClip / CanaryAppClip の AppDelegate を Objective-C(AppDelegate.h / AppDelegate.m / main.m)から Swift(AppDelegate.swift)へ移し、本体アプリと同じ Expo のブートストラップ(ExpoAppDelegate + ExpoReactNativeFactory + ExpoReactNativeFactoryDelegate)に揃えた
    • 素の RCTAppDelegate は RCTReactNativeFactory しか生成せず、EXAppContext を作って registerNativeModules() を呼ぶ経路(ExpoReactNativeFactory の host:didInitializeRuntime:)を通らないため、Expo モジュールが 1 つも登録されず JS 評価時にバンドルごと落ちていた。Release ビルドには redbox が無く、ルートビューだけが残って白画面で固まったように見えていた
    • delegate.dependencyProvider = RCTAppDependencyProvider() を設定し、New Architecture の autolink 済みネイティブコンポーネントが登録されるようにした
    • application(_:continue:restorationHandler:) で super を呼び、App Clip Invocation URL を expo-linking の LinkingAppDelegateSubscriber へ転送してディープリンクを維持
    • 経緯と禁止事項を docs/ios-app-clip.md に新規ドキュメント化し、docs/README.md から参照

テスト

各変更は dev へのマージ前に PR #6671 / #6672 でレビュー済み・CI 通過済み。

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

回帰リスクは iOS App Clip のブートストラップ経路が Objective-C から Swift へ全面的に入れ替わる点に集中している。本体アプリのターゲットには変更が無く、App Clip の実機挙動はまさにこの canary ビルドが最初の検証機会となる。JS 側の重複除去は純粋関数として切り出したうえでユニットテスト(src/hooks/useDestinationAgent.test.ts / src/utils/station.test.ts)を追加済みで、影響範囲は AIチャットの提案カード表示に限定される。

関連Issue

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


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7f7fcfcc-8dd8-498a-8b9f-f46f9524aeb8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

@TinyKitten TinyKitten self-assigned this Aug 12, 2026
@TinyKitten
TinyKitten merged commit c9be8c4 into canary Aug 12, 2026
3 checks passed
@TinyKitten TinyKitten mentioned this pull request Aug 12, 2026
4 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant