Skip to content

[leas code] Remove mobile native-chat re-export facades - #13436

Merged
nwparker merged 1 commit into
stablyai:mainfrom
nwparker:nwparker/leas-code-mobile-native-chat-facades
Aug 10, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
nwparker:nwparker/leas-code-mobile-native-chat-facades

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

Delete six side-effect-free mobile native-chat re-export modules and point their 22 consumers/tests at the canonical shared owners. Existing local aliases such as ToolPair and DiffLine remain intact at their consumers, while stale parity/re-export wording is removed.

Net reduction: 43 lines and six modules.

Screenshots

No visual change.

Testing

  • pnpm lint
  • pnpm --dir mobile typecheck
  • Mobile focused Vitest suite: 13 files, 153 tests
  • Shared native-chat Vitest suite: 2 files, 40 tests
  • pnpm test
  • pnpm build
  • Added or updated high-quality tests that would catch regressions, or explained why tests were not needed
  • pnpm run check:code-quality:changed
  • Focused oxlint, oxfmt, and git diff --check

AI Review Report

The review inventoried all 25 former import sites across 22 consumers, mapped every exported value and type to its canonical shared owner, checked type-only usage, and searched imports, mocks, dynamic imports, configs, and barrels for deleted paths. It found no correctness issues or missed consumers. NativeChatToolPair as ToolPair, NativeChatDiffLine as DiffLine, and ReturnType<typeof parseAskFromStatus> remain compatible.

Cross-platform review explicitly covered macOS, Linux, Windows, iOS, and Android. The removed modules only re-exported the same files Metro already loaded, src/shared is already watched by the mobile bundler, and no shortcuts, labels, paths, OS APIs, shell behavior, Electron boundary, SSH execution, folder-workspace assumption, Git command, or platform-specific branch changed.

Security Audit

No runtime implementation, input validation, command execution, path handling, authentication, secrets, dependencies, IPC, or remote wire content changed. The patch only removes internal import indirection.

Notes

Independent cleanup based on current main. orca-mobile is private, so the deleted deep-import paths are not a public package API.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ce6dfa1d-8634-4c49-ae9a-46c0359ce28e

📥 Commits

Reviewing files that changed from the base of the PR and between f3ea376 and 625180a.

📒 Files selected for processing (28)
  • mobile/src/session/MobileNativeChatAsk.tsx
  • mobile/src/session/MobileNativeChatMessage.test.ts
  • mobile/src/session/MobileNativeChatMessage.tsx
  • mobile/src/session/MobileNativeChatView.tsx
  • mobile/src/session/mobile-native-chat-ask.test.ts
  • mobile/src/session/mobile-native-chat-ask.ts
  • mobile/src/session/mobile-native-chat-blocks.test.ts
  • mobile/src/session/mobile-native-chat-blocks.ts
  • mobile/src/session/mobile-native-chat-controller-contract.ts
  • mobile/src/session/mobile-native-chat-diff.test.ts
  • mobile/src/session/mobile-native-chat-diff.ts
  • mobile/src/session/mobile-native-chat-merge.test.ts
  • mobile/src/session/mobile-native-chat-merge.ts
  • mobile/src/session/mobile-native-chat-merger-oracle.test.ts
  • mobile/src/session/mobile-native-chat-message-text.ts
  • mobile/src/session/mobile-native-chat-noise.test.ts
  • mobile/src/session/mobile-native-chat-noise.ts
  • mobile/src/session/mobile-native-chat-render-data.ts
  • mobile/src/session/mobile-native-chat-stream-frame.test.ts
  • mobile/src/session/mobile-native-chat-stream-frame.ts
  • mobile/src/session/mobile-native-chat-tool-summary.test.ts
  • mobile/src/session/mobile-native-chat-tool-summary.ts
  • mobile/src/session/use-mobile-native-chat-answer-send.test.ts
  • mobile/src/session/use-mobile-native-chat-answer-send.ts
  • mobile/src/session/use-mobile-native-chat-ask-dismiss.test.ts
  • mobile/src/session/use-mobile-native-chat-ask-dismiss.ts
  • mobile/src/session/use-mobile-native-chat-prompts.ts
  • mobile/src/session/use-mobile-native-chat-session.ts
💤 Files with no reviewable changes (6)
  • mobile/src/session/mobile-native-chat-ask.ts
  • mobile/src/session/mobile-native-chat-tool-summary.ts
  • mobile/src/session/mobile-native-chat-diff.ts
  • mobile/src/session/mobile-native-chat-noise.ts
  • mobile/src/session/mobile-native-chat-merge.ts
  • mobile/src/session/mobile-native-chat-blocks.ts

📝 Walkthrough

Walkthrough

Mobile native chat consumers and tests now import ask, block, diff, noise, tool-summary, and merge utilities from shared native-chat modules. Mobile-local re-export modules no longer provide these utilities. Tests retain their existing behavioral coverage, with obsolete re-export assertions and a parity-guard comment removed. Runtime behavior remains unchanged.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states that the PR removes mobile native-chat re-export facades, which is the main change.
Description check ✅ Passed The description covers the required summary, screenshots, testing status, AI review, security audit, and notes.
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.

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.

@nwparker
nwparker merged commit 6c765d5 into stablyai:main Aug 10, 2026
46 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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