Skip to content

Avoid deprecated Android tag lookup for chart commands (PRO-4970) - #20

Merged
furkando merged 1 commit into
mainfrom
codex/pro-4970-ref-commands
Sep 18, 2026
Merged

furkando merged 1 commit into
mainfrom
codex/pro-4970-ref-commands

Conversation

@furkando

@furkando furkando commented Sep 17, 2026 •

Copy link
Copy Markdown

Summary

Android KLine commands currently convert the native ref to a numeric tag. On Fabric, UIManager.dispatchViewManagerCommand calls findShadowNodeByTag_DEPRECATED, the recursive lookup found in the reported baseline SIGSEGV. React Native 0.85.3 keeps its tree-lifetime fix disabled by default.

Use React Native's codegenNativeCommands with the current host ref on Android, bypassing that lookup for all chart commands. Keep iOS's numeric command mapping and the existing command names/payloads. Detached refs are ignored. This removes the chart's exposure to the suspect lookup; it does not establish that every occurrence of the intermittent native crash has this cause.

Linear ticket: PRO-4970

Validation

  • 27 command-dispatch tests pass: every Android/iOS command, payload identity, ref detachment/replacement and independent charts.
  • The same tests against the previous wrapper fail 14 checks; the 11 Android commands still take the tag-lookup path.
  • Android and iOS production transforms pass using the mobile app's installed Expo Babel preset.
  • Added a dependency-free CI test job.
  • Android runtime stress/idle validation remains pending: no Android SDK/device is available on the local runner. Keep this PR draft until a mobile build with the prerelease has been exercised and native logs reviewed.

Author Checklist

  • PR tested locally
  • PR tested on preview

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

✅ PR Checklist Validation Passed

Status: All 2 checklist items completed
Linear ticket: Valid ✅

🎉 This PR meets all requirements and is ready for review!


This validation ensures all PR requirements are met before merging.

@linear

linear Bot commented Sep 17, 2026

Copy link
Copy Markdown

PRO-4970

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

🚧 Prerelease In Progress

Building and publishing prerelease version...


This comment will be updated when publishing is complete.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread tests/commands.test.cjs
@furkando
furkando merged commit 117c3e7 into main Sep 18, 2026
6 of 9 checks passed
@github-actions

Copy link
Copy Markdown

🧹 Prerelease Cleanup Complete

All prerelease versions for branch codex-pro-4970-ref-commands have been cleaned up.

The following actions were performed:

  • ✅ Unpublished all versions tagged with codex-pro-4970-ref-commands
  • ✅ Removed prerelease packages from npm registry

This cleanup was performed automatically after PR merge.

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