Skip to content

fix(native-chat): show the model picker in a new OMP or Antigravity chat - #30713

Merged
AmoabaKelvin merged 2 commits into
mainfrom
list-omp-models-before-first-message
Oct 19, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
list-omp-models-before-first-message

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​82 $\color{#cf222e}{\Huge{\mathbf{−}}}$​5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​77
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​103 $\color{#cf222e}{\Huge{\mathbf{−}}}$​37 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​66

ELI5

A new OMP or Antigravity chat now shows the model picker straight away. Before, it only appeared after you sent the first message.

What Changed

Before: a fresh OMP chat showed only the permission pill. The picker turned up once the first message started OMP. Every later OMP chat on that machine had it, because Orca saved the list from that first chat.

After: when an OMP chat opens, Orca asks OMP for its models, and the picker is there before you type anything. A model picked at that point is the one the first turn runs on.

Orca now fetches OMP's models the way it already does for OpenCode 2. It opens a session in the chat's folder and reads the model list OMP returns. omp acp can't delete a session, and an empty one would show up in OMP's resume list, in other editors and in Orca's Session History. So the fetch starts OMP with --session-dir pointed at a throwaway folder in Orca's data folder. Orca deletes that folder as soon as OMP exits. Anything a crash leaves behind is cleared the next time Orca fetches.

The per-run folder handling already existed for agents that need their own temp folder. It is now one small helper (acpRunFolder) that both use. Agents that can't delete a session still aren't asked unless their spec opts in, and only OMP does.

Antigravity had the same gap: it lists models only inside a signed-in session, so its first chat had no picker. Its chats always sign in through Orca first, and that sign-in already opens a session to confirm it worked, then deletes its files. That session's model list is now saved the way a running chat saves its own, under the same account key a new chat reads, so the first chat after signing in has the picker. Nothing new is launched.

Why

omp models --json doesn't apply OMP's enabledModels setting, so it can list models a chat then refuses. A session lists exactly what a chat in that folder offers.

bb (get-bb/bb) does the same session fetch for OMP but leaves the empty session in OMP's store. That works for bb because it never reads OMP's sessions. Orca's Session History does, so the session has to stay out of OMP's store. Hiding empty sessions in Session History was the other option, but it would still leave them in OMP's own session list.

For Antigravity, a fetch like OMP's would need its whole launch path (installed-runtime check, sign-in lock, private temp folder, authentication) on every refresh. Reusing the sign-in session needs none of that. A host that signed in before this change and never opened a chat still gets the picker only after its first message.

Linked Issue

N/A. No open issue covers this.

Visual Proof

No screenshots attached. In a hidden dev build, a fresh OMP chat showed the picker 1.5s after opening, with nothing sent, listing every configured model.

Testing

  • OMP 17.0.5 (oldest supported) and 18.12.2: omp acp --session-dir <dir> writes the session only to <dir> and lists the same models as without the flag.

  • Dev build on macOS: Orca's fetch ran omp acp --session-dir <Orca data>/acp-listing-sessions/omp/run-…. Afterwards OMP's sessions folder had no session files and the run folder was gone. Picking a model before the first message switched the chat's session to it before the first turn.

  • Probe test covers the arguments, the folder location and its removal; it fails with either removed.

  • Sign-in test, using the model option from a recorded Antigravity 1.3.0 session/new, checks the list lands in the catalog a new chat reads; it fails without the save. Not run against a real Google sign-in.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

The fetch runs on whichever host runs OMP, so SSH hosts behave the same once they run this build. On Windows a file still held open after OMP exits can block the delete; the next fetch clears it.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

A fresh OMP chat had no model picker until its first message. omp acp
cannot delete a session, so the listing one goes to a throwaway --session-dir.
Antigravity lists models only in a session, so its first chat had no picker.
@AmoabaKelvin
AmoabaKelvin force-pushed the list-omp-models-before-first-message branch from 9dc83a3 to c76b754 Compare October 19, 2026 11:25
@AmoabaKelvin AmoabaKelvin changed the title fix(native-chat): list OMP models before the first message fix(native-chat): show the model picker in a new OMP or Antigravity chat Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d7a35565-2277-491d-bc98-a5d7c0134e02
📥 Commits

Reviewing files that changed from the base of the PR and between 25e53f4 and c76b754.

📒 Files selected for processing: 8
  • src/main/acp/acp-launch-specs.ts
  • src/main/acp/acp-model-catalog-probe.test.ts
  • src/main/acp/acp-model-catalog-probe.ts
  • src/main/acp/acp-private-temp.ts
  • src/main/antigravity/antigravity-chat-sign-in.test.ts
  • src/main/antigravity/antigravity-chat-sign-in.ts
  • src/main/antigravity/antigravity-sign-in-models.ts
  • src/main/runtime/structured-agent-model-catalog-discovery.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

OMP model discovery now uses a session launched in the chat folder, with a temporary listing folder removed after probing. ACP session listings support configured folder arguments. Antigravity sign-in reads models from the started session and records a successful catalog result when the list is nonempty.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to c76b7

No actionable issue with model discovery or sign-in catalog behavior remains; the PR is mergeable after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description is detailed, relevant, and covers the user impact, implementation, rationale, testing, and compatibility considerations. However, it omits the required linked issue and does not provid… Add a valid linked issue under "Linked Issue". Attach before/after screenshots or a video under "Visual Proof" and mark the corresponding checklist item complete. If visual proof is genuinely not applicable, use the exact required N/A forma…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main user-facing change: showing the model picker in new OMP or Antigravity chats.
Docstring Coverage Passed Docstring coverage is 87.50% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 8 files.
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.
Full details: Description check

Explanation

The description is detailed, relevant, and covers the user impact, implementation, rationale, testing, and compatibility considerations. However, it omits the required linked issue and does not provide the required before/after visual proof for a UI behavior change.

Resolution

Add a valid linked issue under "Linked Issue". Attach before/after screenshots or a video under "Visual Proof" and mark the corresponding checklist item complete. If visual proof is genuinely not applicable, use the exact required N/A format with a reason, although this change appears to affect user-visible behavior and should include proof.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@AmoabaKelvin
AmoabaKelvin merged commit 2b60778 into main Oct 19, 2026
43 checks passed
@AmoabaKelvin
AmoabaKelvin deleted the list-omp-models-before-first-message branch October 19, 2026 12:32
brennanb2025 added a commit that referenced this pull request Oct 19, 2026
#30713's OMP listing session uses the shared version check this branch already
calls; its test reads the version through the reader signature.
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