Repository navigation
Fix desktop explicit web search intent routing - #9384
Merged
Merged
Conversation
Git-on-my-level
force-pushed
the
codex/fix-explicit-web-intent
branch
from
July 10, 2026 08:30
5b51f93 to
576ba45
Compare
Member
Author
|
Monitor follow-up for PR #9384:
Verification:
|
This was referenced Jul 15, 2026
Git-on-my-level
added a commit
that referenced
this pull request
Jul 15, 2026
## Summary - Add a diff-scoped 1,500-line ratchet for Python, Swift, and Rust product sources. - Seed the committed snapshot with the 47 currently oversized files and provide a downward-only updater for splits. - Fold `RealtimeHubController.swift`'s overlapping size guard into the shared ratchet; its extracted-type ownership guard remains. ## Root cause and durable guard Oversized product files repeatedly concentrate collisions and costly navigation (#9838; notably #9836 and #9384/#9638/#9692). The new shared boundary freezes further growth, rejects smaller files that cross the threshold, and makes any exceptional raise exact-count, source-diff-bound, and one-line-justified. ## Verification - `python3 .github/scripts/test_check_product_file_line_count_ratchet.py` - `python3 desktop/macos/scripts/check-hub-controller-ratchet.py --self-test` - `make preflight` (rerun after applying the internal-only `no-changelog-needed` label) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/9851?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…#9851) ## Summary - Add a diff-scoped 1,500-line ratchet for Python, Swift, and Rust product sources. - Seed the committed snapshot with the 47 currently oversized files and provide a downward-only updater for splits. - Fold `RealtimeHubController.swift`'s overlapping size guard into the shared ratchet; its extracted-type ownership guard remains. ## Root cause and durable guard Oversized product files repeatedly concentrate collisions and costly navigation (BasedHardware#9838; notably BasedHardware#9836 and BasedHardware#9384/BasedHardware#9638/BasedHardware#9692). The new shared boundary freezes further growth, rejects smaller files that cross the threshold, and makes any exceptional raise exact-count, source-diff-bound, and one-line-justified. ## Verification - `python3 .github/scripts/test_check_product_file_line_count_ratchet.py` - `python3 desktop/macos/scripts/check-hub-controller-ratchet.py --self-test` - `make preflight` (rerun after applying the internal-only `no-changelog-needed` label) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/9851?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
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.
Summary
Why
The desktop proxy previously exposed server-side web search only when the client already supplied tools, then left selection on automatic. At the same time, the desktop prompt strongly emphasized private Omi sources. A short follow-up such as “look it up” could therefore be interpreted as a private-history lookup and incorrectly report that nothing was found without ever searching the public internet.
This PR turns high-confidence retrieval intent into an enforceable pre-generation contract while preserving automatic behavior for ordinary questions and respecting an explicit tool_choice=none.
Verification
A signed-in live chat E2E was not completed: this worktree had no seeded Omi Dev session, and the local harness was unavailable without Docker and provider credentials. The routing and translation boundary is covered by deterministic regression tests.
Product invariants affected