Repository navigation
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title "fix(mobile): correct text and layout scaling in Samsung DeX" matches the main change. The PR backports per-view display-density frame conversion from react-native-screens 4.24.0 to fix clip… | |
| Description check | The description follows the template well. It has ELI5, What Changed, Why, Linked Issue (Fixes #18841), Visual Proof, Testing, Risk (Level: Medium, with rollback), AI Disclosure, Review, Agent skill u… |
|
| Linked Issues check | Issue #18841 reports incorrect Orca Mobile rendering on Samsung DeX and has no specific acceptance criteria. The PR adds per-view density conversion in [email protected] and registers the … |
|
| Out of Scope Changes check | The reviewed changes are limited to the Android screens patch, its pnpm patch registration, and related mobile documentation/configuration. The density conversion and configuration support issue #18… |
|
| Docstring Coverage | No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… |
Full details: Title check
-
Explanation
The title "fix(mobile): correct text and layout scaling in Samsung DeX" matches the main change. The PR backports per-view display-density frame conversion from react-native-screens 4.24.0 to fix clipped text and wrongly sized navigation content in Samsung DeX. The title names the right area (mobile), the problem (text and layout scaling), and the context (Samsung DeX). It does not name the specific mechanism, but it is specific enough for a teammate to identify the change.
Full details: Description check
-
Explanation
The description follows the template well. It has ELI5, What Changed, Why, Linked Issue (Fixes
#18841), Visual Proof, Testing, Risk (Level: Medium, with rollback), AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. The Visual Proof section gives before and after images for the emulator and the Fold8, and it notes that the evidence predates this refresh. The Testing section is mostly complete, but the 'Manually tested the refreshed integration on a device' box is unchecked and the author says Android compilation is unverified. The Linked Issue section uses 'Fixes#18841', which is correct. The description is mostly complete, so it passes. The author should state the open verification gaps clearly before merge.
Full details: Linked Issues check
-
Explanation
Issue
#18841reports incorrect Orca Mobile rendering on Samsung DeX and has no specific acceptance criteria. The PR adds per-view density conversion in[email protected]and registers the patch for the mobile dependency. The PR also reuses the existing Android window-density handling described in the current summary. These changes directly address display-density and layout scaling on external displays.
Full details: Out of Scope Changes check
-
Explanation
The reviewed changes are limited to the Android screens patch, its
pnpmpatch registration, and related mobile documentation/configuration. The density conversion and configuration support issue#18841. No unrelated product area or protocol change is established. The excludedmobile/pnpm-lock.yamlis intentionally unavailable and is not evidence of an out-of-scope change.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)
- 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.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 8bbb84df-ecfe-4505-af1b-dd0e0dc67c5d
⛔ Files ignored due to path filters (1)
mobile/pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (6)
mobile/app.jsonmobile/patches/android-display-density.mdmobile/patches/[email protected]mobile/plugins/android-display-density.jsmobile/pnpm-workspace.yamlmobile/src/platform/android-display-density-plugin.test.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This PR fixes Samsung DeX text clipping and undersized content by synchronizing React Native's display metrics with the Activity hosting the app, plus a backport of the react-native-screens per-view frame conversion.
- Activity display-density config plugin — new
mobile/plugins/android-display-density.js(withMainActivity) injectsDisplayMetricsHolder.initDisplayMetrics(this)beforesuper.onCreate(null), re-syncs and emitsdidUpdateDimensionsafter creation, and re-syncs ononResume/onConfigurationChanged; registered inmobile/app.json. Fails loudly on non-Kotlin or drifted templates, and is MARKER-guarded for idempotency. react-native-screens4.24.0 patch — divides frame px by the view'sresources.displayMetrics.density(fallbackPixelUtil.getDisplayMetricDensity()), matching upstream #4160'spxToDpbehavior for the pinned 4.24.0 that predates the fix.- Tests and docs — transform tests for lifecycle insertion, LF/CRLF idempotency, incompatible-template rejection, and changed-anchor failure;
mobile/patches/android-display-density.md; lockfile/workspacepatchedDependencieswiring.
I verified during review that the screens patch context matches the published [email protected] source exactly (so it applies cleanly), that PixelUtil.getDisplayMetricDensity() and DisplayMetricsHolder.getDisplayMetricsWritableMap(Double) are public in RN 0.83.10, that the lockfile patch hash equals the patch file's sha256, and that the new files pass oxfmt --check and oxlint. The documented limitations (process-global metrics holder, un-isolated screens patch necessity, Activity recreation on density transitions, and #16018 coordination) are accurate and appropriately scoped.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the delta since the prior pullfrog review at e6cc4471be (which found no issues): the follow-up commit d62f6ab3f3 that makes the config plugin preserve the MainActivity template's line endings.
- Preserved template EOL in every plugin insertion —
applyActivityDisplayDensitynow detects\r\nvs\nonce and applies it to the injectedMETHODSblock, theDisplayMetricsHolderimport, and theonCreateanchor replacement, so a CRLF template no longer gains bare-LF lines. - Hardened the CRLF test — the lifecycle test now strips the detected
eolfrom the result and asserts no residual\r/\nremain, and its exact-content assertions areeol-parameterized.
I verified the extracted transform stays idempotent, adds the import, and produces no lone line endings for both \n and \r\n inputs; the strengthened assertions would fail against the pre-fix code (bare LFs leak into the CRLF result). This cleanly closes the line-ending concern raised by CodeRabbit.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
I'd like to help unblock DeX support, since it has been stalled for a while. The triage note on #8592 says reproduction is blocked because there is no DeX-capable device. That's completely understandable, since no team can own every device. So let me fill that gap: I have a Galaxy Z Fold8 (Android 17 / One UI 9.0), and I'm happy to verify this PR, or any other DeX-related PR, on real hardware and post screenshots or recordings. I can keep doing this for future DeX changes too. I don't think this is a niche edge case. DeX + Orca Mobile is one of the most natural ways to use Orca remotely: a phone you already carry, plugged into a monitor and keyboard, gives you a full desktop view of your remote host's worktrees and agents. Right now that setup is unusable. There are two open issues (#8592, #18841) and independent reproductions from several people on different devices. For reference, here are the three open PRs touching this area:
Whichever direction you choose, I'll verify the relevant PRs on the device. Just tell me what you'd like checked. cc @nwparker |
# Conflicts: # mobile/pnpm-lock.yaml
|
I tested the latest Orca Mobile release in Samsung DeX and can confirm that the rendering problem is now fixed on my setup. Closing this PR because I no longer have a remaining issue that requires its patch. Thanks for the Android window-density fix in #36977 and the related work! I will also update #18841 with this confirmation. |

ELI5
Samsung DeX can show clipped text and navigation content at the wrong size. This change makes navigation frames use the density of their own display, alongside the Activity density handling now included in main.
What Changed
Backport per-view frame conversion in react-native-screens 4.24.0 and register its pnpm patch. Merge main at
2b21c904a85band reuse its Android window-density plugin (#36977), removing this PR's duplicate lifecycle plugin and its obsolete transform tests. The remaining diff is four mobile patch/configuration/documentation files.Why
The Activity metrics fix is now upstream. Keeping a second plugin would generate duplicate lifecycle overrides and fail prebuild. Retaining only the screens conversion patch avoids that conflict without upgrading the React Native stack.
Linked Issue
Fixes #18841
Visual Proof
Current implementation — Android emulator, 1920×1080 external display at 160dpi
The screens patch is present in both images. Disabling Activity synchronization reproduces clipped text; enabling it restores readable text.
Activity synchronization disabled
Activity synchronization enabled
Physical Fold8 — Android 17 / One UI 9.0
Before
After
The evidence above predates this refresh; the integration with #36977 has not been revalidated on a physical device.
Testing
On macOS: frozen-lockfile mobile install passed with scripts disabled; the installed Kotlin source contains the per-view density conversion. Expo config introspection passed with the existing rotation-lock and window-density plugins. The changed-code quality gate passed against main. No new TypeScript implementation remains. Android compilation and phone/DeX transitions are still unverified on this revision.
Risk
Level: Medium. Android navigation frames may scale incorrectly during display transitions. The patch changes conversion only when screens updates its state; it does not add an update trigger. Revert the patch registration, patch file, and lockfile changes to back it out. No persisted data or remote protocol changes.
AI Disclosure
Refreshed with OpenAI Codex (GPT-6).
Review
Checked overlap with upstream Android lifecycle handling and confirmed the frozen installation applies the patch. Physical DeX, split-screen, folding, keyboard, and touch-alignment checks remain necessary.
Agent skill upstream boundary
Notes
Android rendering only; no SSH routing, git-provider, folder-workspace, or wire-format changes. iOS and desktop behavior are unchanged.
Checklist