Repository navigation
canary - #6673
Merged
Merged
canary#6673
Conversation
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
変更の種類
変更内容
devに取り込み済みの以下の変更をcanaryへ反映する。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に追記済み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