Skip to content

Follow refreshed chat models unless the phone has an explicit pick - #716

Merged
sambitcreate merged 1 commit into
mainfrom
feature/mobile-chat-model-authority
Nov 3, 2026
Merged

sambitcreate merged 1 commit into
mainfrom
feature/mobile-chat-model-authority

Conversation

@sambitcreate

Copy link
Copy Markdown
Owner

A phone with no remembered new-chat default could open a cached chat on model A, accept refreshed desktop metadata for model B, and still send its next turn with A (finding 6.3). This was confirmed current on main 9b2875d: the real iOS view-model regression retained OpenAI instead of refreshed Google, and Android's authority regression retained Google instead of refreshed OpenAI.

Both native authorities now receive the view model's explicit-choice flag. A populated chat follows its refreshed host pair unless the person has made or restored an unsent per-chat choice; absence of a remembered default no longer stands for a user pick. The host pair also survives optional catalog delay/failure, without carrying a thinking level from a different cached model. Bot pinning, unsent-choice persistence, new-chat defaults and per-host scope remain unchanged. No Remote wire or preference-file format changes.

Validation:

  • iOS: six focused XCTest methods pass on isolated iPhone 17 Pro / iOS 26.5 simulator 98F582CA-1127-46C2-9CEC-9FB4AB4D7197. Covers real cached-refresh handoff plus explicit unsent choice, hidden models, absent/delayed/failed catalog, removed models, remembered defaults and relaunch.
  • Android: all 16 AidenModelPreferenceTest tests pass, including the new original-failure regression and existing real-view-model persistence/per-chat controls; :app:lintDebug passes.
  • Native compilation and git diff --check pass. Docs and project memory updated; plan status and protocol revision do not change.

The expected pre-fix iOS 27.1 assertion failure subsequently triggered Xcode's diagnostic collection timeout (600 seconds). Its xcresult records the actual stale-provider assertion; the post-fix iOS 26.5 run passes all six tests with no timeout/retry changes. Physical devices and full native suites were not run. Existing open native PRs were checked for overlapping ownership; this change is separate from network recovery, spending, media and phone worktree work. Leave this PR OPEN; coordinator owns hosted CI/review polling.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes Reviewed all nine changed files at f6710cb, tracing model resolution through both native view models and their existing preference persistence paths.

  • Explicit choice authority: iOS and Android distinguish cache-seeded selections from user picks, allowing populated chats to adopt refreshed host models without requiring a remembered phone default.
  • Optional catalogs: Without a catalog, refreshed host pairs remain authoritative and thinking levels are retained only for a matching pair; existing Bot pinning and catalog fallbacks remain intact.
  • Regression coverage and documentation: New tests cover refreshed visible/hidden models, absent catalogs, and the real iOS cached-chat handoff while preserving an explicit unsent choice. Documentation describes the updated ownership rule.
  • Validation: All 16 Android model-preference tests pass with in-process Kotlin compilation. Swift syntax checks and test:ios-release also pass. Native iOS XCTest could not run on this Linux runner; hosted native CI was not yet complete when inspected.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@sambitcreate
sambitcreate merged commit 430a8b7 into main Nov 3, 2026
20 checks passed
@sambitcreate
sambitcreate deleted the feature/mobile-chat-model-authority branch November 3, 2026 15:50
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