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. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 9a288ec0b4968ba08362461e0dbc00c102a7bb7e and d88b35d786bf233e0318b5f7c2bcfe301c0447e8. 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe mobile app adds Android desktop-mode configuration and display metric refreshes. It measures root window bounds and uses them across layouts, drawers, previews, and terminal refitting. Terminal WebView readiness now validates terminal availability, probes after load, suppresses duplicate notifications, and invalidates stale watchdogs. Large writes use bounded UTF-16-safe chunks. Tests and workspace configuration were updated. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to No actionable current-head defect or merge-blocking risk is established by the reviewed evidence. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 28 files. (1 skipped: 1 unsupported.)
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. Comment |
There was a problem hiding this comment.
ℹ️ No critical issues — one minor consistency suggestion inline, plus two nitpicks.
Reviewed changes
Full 32-file diff for the initial review; the readiness state machine, write-queue slicing, window-bounds context flow, and the Android density plugin were traced against the pinned RN 0.83.10 sources.
- WebView readiness recovery:
onLoadEndsends a recovery ping; a pong is only accepted whenterminalAvailable === true;onWebReadyis deduped per document viawebReadyNotifiedRef; the watchdog gets a generation guard so a cleared timer can't fire. - Write-queue slicing: writes over 4 KiB are split into 4 KiB chunks without cutting a surrogate pair; status-dot normalization still runs on the whole string before splitting, so chunking can't corrupt it.
- Window bounds: new
WindowBoundsProvidermeasures the root View anduseWindowBounds()prefers measured bounds overuseWindowDimensions(), with a fallback that preserves old behavior. All responsive/drawer/onboarding/file-preview/terminal-refit consumers migrated; context reachesModalsubtrees. - Android density/windowing: config plugin syncs
DisplayMetricsHolderto the Activity display and emitsdidUpdateDimensions;[email protected]patch converts frames with the view's display density. - Removed behavior:
measureViewportOncedeleted; cold-start measurement now relies on the boundedrunTerminalViewportFitPassresubscribe after init. Path verified present and tested.
Technical details
# Review notes
## Verified
- `reactHost?.currentReactContext?.emitDeviceEvent(...)` and `DisplayMetricsHolder.setWindowDisplayMetrics/setScreenDisplayMetrics/getDisplayMetricsWritableMap` exist on the pinned RN 0.83.10 sources and are reachable from a `ReactActivity` subclass.
- `useWindowBounds` falls back to `useWindowDimensions()` when the provider has not measured, so consumers rendered outside the provider behave exactly as before.
- The slicing loop guards `end < normalized.length` before reading `charCodeAt(end)`, so the trailing `NaN` case cannot run.
## Not verified by CI
- The generated Kotlin is not compiled by any PR check; the author documents an unrelated Android release-build blocker.
## Nitpicks (no action required)
- `mobile/src/session/mobile-terminal-diagnostics.ts:79` `viewportMeasured()` now has no callers — its only caller was the deleted `measureViewportOnce`.
- `mobile/src/layout/window-bounds.tsx:34` `useMemo(() => measured, [measured])` is a no-op; `measured` can be passed directly.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the 8cba333..dddb4cbe delta — one follow-up commit touching 3 files. It closes out the prior review's handleReload suggestion and both nitpicks, and adds no new behavior surface.
- Reload now resets readiness:
handleReloadclearsisWebReadyRef/webReadyNotifiedRef/pendingPingIdRefand re-arms the watchdog beforereload(), matchinghandleContentProcessDidTerminate. - Removed dead diagnostics method:
MobileTerminalDiagnostics.viewportMeasured()deleted;DiagnosticDimensionsis still used bystreamArmed, so no unused type is left behind. - Dropped no-op memo:
WindowBoundsProvidernow passesmeasureddirectly instead of wrapping it inuseMemo.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
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: 4e8e1d02-5704-45eb-bb25-1f07fa55313b
📥 Commits
Reviewing files that changed from the base of the PR and between 8cba333a8154736b87bd0c2ebd5e7a27f45336ad and dddb4cbe102d807c97cf314d1514530777efe340.
📒 Files selected for processing (3)
mobile/src/layout/window-bounds.tsxmobile/src/session/mobile-terminal-diagnostics.tsmobile/src/terminal/TerminalWebView.tsx
💤 Files with no reviewable changes (1)
- mobile/src/session/mobile-terminal-diagnostics.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
Re-reviewed the dddb4cbe..2fdda2b delta — a single follow-up commit touching only TerminalWebView.tsx, closing the remaining gap in the error-overlay reload path. Prior review feedback was already addressed in dddb4cbe and both threads are resolved.
- Cleared stale queues on overlay reload:
handleReloadnow callspendingMessages.clear()andwriteCoalescer.clear()beforereload(), so a reload that skipsonLoadStartcannot replay commands queued for the dead document. This matcheshandleLoadStartandhandleContentProcessDidTerminate, and bothclear()implementations cancel their own pending timers/state, so the call is safe.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
2fdda2b to
9a288ec
Compare
9a288ec to
d88b35d
Compare
d88b35d to
8b95809
Compare
8b95809 to
70667cd
Compare
70667cd to
00c1e62
Compare
There was a problem hiding this comment.
Important
The rebase conflict resolution in mobile/app/mobile-onboarding.tsx left three imports with no remaining users, and pnpm exec oxlint reports no-unused-vars errors on lines 1-2 — the Lint CI job will fail.
Reviewed changes
Re-reviewed the delta since the prior pullfrog review: the branch was rebased a fifth time (onto c33a4461) and the net change is confined to the import block at the top of mobile/app/mobile-onboarding.tsx.
- Rebased onto a newer
main: main extracted the localuseReducedMotionEnabledhook into../src/onboarding/use-reduced-motion, so the rebased file imports the shared hook instead of defining it locally. - Unused imports carried through the conflict:
useEffectandAccessibilityInfo(only the deleted local hook used them) plususeWindowDimensions(superseded byuseWindowBounds()) survive in the file, andoxlintfails on all three. - Route-parity pins still valid: commits 2-4 are byte-identical to the prior revision, and the new base's only
mobile/src/sessionchange is a doc comment in a file outside the pinned source family.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
b7480b7 to
59fae1f
Compare
59fae1f to
cc03250
Compare
75a59f1 to
98e4f04
Compare
98e4f04 to
d071ce4
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the rewrite since the prior pullfrog review. The branch is now one squashed commit (d071ce4a) rebased onto main@27b823f934, which had moved far ahead and rewritten the terminal WebView into typed document modules plus a shared controller. All four Android/mobile fixes were rebuilt inside that structure, and the readiness announcement rule changed: only a pong is gated on "not yet announced", so a repeated web-ready still reaches the session to resubscribe.
- Readiness handshake rebuilt in the shared controller:
probeWebReadypings the document on nativeonLoadEndwhen nothing is ready and no ping is outstanding; a pong counts only whenterminalAvailable === true;web-readyalways announces, while a pong announces only until some document has announced.handleReloadandhandleContentProcessDidTerminateboth callresetReadiness(), and the pong path stays silent for an already-announced document during foreground recovery. - Write-queue slicing:
enqueueWriteslices writes over 4 KiB after status-dot normalization and never ends a slice on a high surrogate, preserving character integrity and FIFO order. - Measured window bounds: the new
WindowBoundsProvider/useWindowBounds()resolve to the measured root bounds and fall back touseWindowDimensions()outside the provider; responsive layout, both drawers, onboarding, file preview and terminal refit were migrated. - Android density/windowing: the
android-desktop-modeconfig plugin and the[email protected]patch are re-registered against the new lockfile; the command dock gains thecolors.bgPanelbackground.
I ran the targeted mobile tests for the changed areas (readiness, write-queue, window-bounds, viewport refit, plugin) — all green — and traced the readiness/pong/probe state machine and the config-plugin injection against the pinned RN 0.83.10 sources. Could not construct a reachable double-announce or missed-announce on the named paths.
ℹ️ The Android native half is not verified on this head
mobile/plugins/android-desktop-mode.js generates Kotlin at prebuild time and no PR check compiles it; the react-native-screens patch is a native frame-density change. This same rebased commit was not rebuilt into an APK or device-tested, so the Android rendering behavior here rests on the pre-rebase device evidence.
Technical details
# Android native verification gap
## Affected sites
- mobile/plugins/android-desktop-mode.js — injected `MainActivity.kt` (applyActivityDisplayMetrics / onConfigurationChanged / onResume / emitActivityDimensions) is never compiled by a PR check.
- mobile/patches/react-[email protected] — native FabricEnabledViewGroup frame density.
## Required outcome
- Prebuild + `:app:compileDebugKotlin` (or a device run) for `d071ce4a` before merge, so the generated Kotlin is compiled at least once against the RN 0.83.10 / Expo 55 toolchain.
## Open questions for the human
- Was the Android build re-run for this rebased head, or is the pre-rebase Fold7 evidence still the only validation?DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
On the pullfrog note about the Android native half: I ran |
4444eab to
7c705d4
Compare
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Re-reviewed the 7c705d4c..eb034f2e delta — a single follow-up commit that closes the cell-box gap in the readiness-recovery path. All prior pullfrog threads are resolved.
- Recovery pong carries the cell box:
document/host-message-router.tsnow answers a ping withcellBox: laidOutCellBox(scope)?.cellBox ?? nullalongsideterminalAvailable, so a pong that stands in for a droppedweb-readyreports the box xterm laid out. - Controller stores it before announcing: the accepted-pong branch of
use-terminal-webview-controller.tssetscellBoxRef.current = readTerminalCellBox(msg)beforeconfirmWebReady(...), so the recovered subscribe is fitted from the phone box rather than going out unmeasured and coming back at host size. - Tests pin both ends:
host-seams.test.tsgives the terminal double a laid-out render service and asserts the box on the pong;native-document-bundle.test.tspinscellBox: nullwhen unmeasured; a newterminal-webview-cell-box.test.tscase drives post-load ping → pong →fitDimensions.
I ran the four affected mobile suites (46 tests) green, and confirmed the new cell-box case fails without the controller line, so it is real coverage rather than a snapshot of the current output.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
eb034f2 to
849648b
Compare
Recover a missed terminal web-ready with a post-load ping whose pong must report a loaded xterm engine. That pong announces the document only when no web-ready has, so a foreground-recovery pong never re-announces it, while every real web-ready still reaches the session. The error overlay's reload now resets readiness. Slice document writes larger than 4 KiB so one PTY burst or replay no longer holds the WebView thread, without splitting surrogate pairs. Measure the root view for responsive layout, drawers, onboarding, file preview and terminal refits, keep React Native's display metrics on the Activity's display in Android freeform/DeX windows, backport react-native-screens' per-view density conversion, and paint the command dock with the panel token.
web-ready가 유실돼 post-load pong이 준비 신호를 대신할 때 셀 박스가 빠져, 프레임이 이미 측정된 상태면 첫 구독이 뷰포트 없이 나가 초기 스크롤백 스냅샷이 호스트 크기로 직렬화됐다. web-ready와 같은 박스를 pong에 실어 복구 경로의 첫 구독도 폰 크기로 맞춘다.
upstream main의 의존성 갱신(76b1a90)과 리베이스 충돌을 해소하면서 lockfile이 patchedDependencies 선언과 어긋났다. pin된 pnpm 12.8.1로 --lockfile-only 재생성. Tested: pnpm install --lockfile-only (supply-chain 정책 통과)
849648b to
c2a9767
Compare
terminal-viewport-refit.ts가 모바일 max-lines 예산(빈 줄과 주석을 뺀 300줄)에 이미 붙어 있어서, 이 PR이 더한 import 한 줄 때문에 oxlint가 실패했다. 이 PR도 #23419도 건드리지 않는 iOS 복귀와 재연결의 강제 refit effect 두 개를 동작 변경 없이 terminal-viewport-reassertion.ts로 옮겼다. AGENTS.md가 max-lines 예외를 금지하므로 예외는 추가하지 않았다. Constraint: 모바일 oxlint max-lines 300(빈 줄·주석 제외)이며 파일별 예외 추가는 금지된다 Rejected: 코드 줄 합치기 | oxfmt가 되돌리고 의미 없는 변경만 남는다 Directive: #23419에도 같은 내용의 같은 파일을 넣었으므로 먼저 머지되는 쪽의 변경과 동일하게 맞춘다 Tested: oxlint, tsc --noEmit, vitest src/terminal과 키보드 상태 테스트 654개 통과
There was a problem hiding this comment.
ℹ️ No critical issues — one documentation nitpick.
Reviewed changes
Incremental re-review of the c2a9767552..afce2f8c2e delta: a single refactor commit that moves the iOS-resume and reconnect viewport-refit effects out of terminal-viewport-refit.ts into a new module.
- Split out
useTerminalViewportReassertion: the iOSAppStateresume refit and the reconnectconnStaterefit effects moved verbatim intoterminal-viewport-reassertion.tsand are invoked unconditionally fromuseTerminalViewportRefit. The moved code is byte-identical and both effects keep equivalent dependency sets, so there is no behavioral change; the split brings the refit file back under themax-linescap after theuseWindowBoundsimport was added.
ℹ️ Nitpicks
config/scripts/mobile-web-app-session-terminal-closure.test.mjs:469: the recorded session-route closure total (4,251 -> 4,253modules,1,049 -> 1,051local) predatesterminal-viewport-reassertion.ts. That module is value-imported byterminal-viewport-refit.ts, which is in the session route's closure (MobileSessionRouteScreen.tsx→useMobileSessionController→useMobileSessionKeyboardState→useTerminalViewportRefit), so the head now measures4,254 / 1,052. Worth re-recording the extra module beside the window-bounds addition so the paragraph stays the durable count it is meant to be.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Closing this in favor of smaller PRs, as the "small and focused" checklist item asks:
I'm not refiling the measured-window layout or the command-dock background for now. All of my device evidence for them was gathered together with the density part, so I can't show what they fix on their own. If Fold pop-up windows still lay out at the old size once #20198 lands, I'll open a separate issue with new evidence. |

ELI5
On Android, Orca could miss the terminal's startup signal, freeze while parsing a large burst of output, or keep drawing into the old phone-sized area after a Fold/freeform-window resize. This change makes startup recoverable, feeds large output to xterm in bounded slices, and sizes the UI from the Activity's actual window.
What Changed
use-terminal-webview-controller.ts, shared by the native WebView and the page):onLoadEnd), the controller sends one readiness ping, unless the document is already ready or a ping is already waiting for an answer. A missedweb-readyno longer leaves the pane stuck until the 15 s watchdog reportsno ready signal.terminalAvailable: true. The document fills that flag from its existinghasEngine()seam, so a document whose xterm script failed to load is not treated as ready.web-readystill reaches the session, exactly as onmain, so the session resubscribes whenever a new document announces itself. A pong announces the document only when nothing has announced it yet, which is the case of the post-load ping standing in for a droppedweb-ready. A foreground-recovery pong for a document that was already announced stays silent, as it does onmain.resetReadiness()clears that record for the next document.resetReadiness()beforereload(), as the page's Reload already did. The dead document's queued commands and readiness therefore do not carry over into the next document, even ifonLoadStartdoes not fire.document/write-queue.tssplits any write over 4,096 UTF-16 code units into ordered slices and never cuts a surrogate pair. Shorter writes are pushed unchanged. Both paths still receive the status-dot-normalized text.android-desktop-modeExpo config plugin makes the Activity handledensityandsmallestScreenSizechanges, marks it resizeable, and adds the Samsung multi-display metadata.DisplayMetricsHolderon the Activity's display and re-emitsdidUpdateDimensionson configuration change and resume.react-native-screens4.24.0 is patched with the 4.26 per-view density conversion.WindowBoundsProvidermeasures the root view. Responsive layout, both drawers, onboarding, file preview and the terminal refit readuseWindowBounds()instead ofuseWindowDimensions(). The page mounts no provider, so there it returns React Native's window dimensions exactly as before.colors.bgPaneltoken, so the unfolded bottom area no longer shows the white root background.Rebase onto current main
This PR was squashed to one commit and rebased onto
main, which had moved 773 commits and rewritten the terminal WebView into typed document modules plus a shared controller. Every fix above was rebuilt inside that new structure. Scope was dropped wheremainnow covers it or already does it:armWebReadyWatchdogalready clears the previous timer and only one timer is ever live, so the counter guarded no reachable path.mainalready replaces an unanswered foreground ping on each attempt.main. Only the slicing is new here.mainremoved the payload hash test. The route-parity test passes without changes because no route JSX changes remain.The announcement rule also changed during review. The earlier branch announced each document at most once, which also dropped a real repeated
web-ready. Only the pong is checked now, as described above.Why
web-readyis a one-shot bridge event and can arrive before React Native attaches its message callback. The watchdog then reportedno ready signaleven though the document had loaded. A ping sent after the load makes that state recoverable, and requiring the engine flag keeps a document whose xterm failed to load from passing as ready.Only the pong needs the "already announced" check. The document posts
web-readyonce, at startup, straight to the bridge without buffering, so it can never arrive after that document's pong. A repeatedweb-readytherefore always means a new document, and the session relies on it to resubscribe, for example after a reload that skippedonLoadStart. Deduplicatingweb-readyitself would have lost that resubscribe.Large PTY bursts and scrollback replays were each submitted to
xterm.write()as a single parse job. Slicing only the oversized writes keeps ordering and write boundaries, and the queue waits for xterm's write callback between slices, so no single burst holds the WebView thread.On Samsung Fold freeform windows and in DeX, React Native 0.83 can mix the phone's display density with the Activity's, and
useWindowDimensions()may keep reporting the display instead of the resizable root. Two layers need fixing:react-native-screensbackport fix the density;Linked Issue
Refs #18841. Closed in favor of #25502, #25503 and #20198; see the closing comment.
Related: #8592 (issue), #16018, #20198 (both still open). The Android density and windowing part overlaps those PRs. Terminal readiness, output slicing and the command-dock background are independent fixes, verified in the same Fold7 reproduction.
Visual Proof
Before, on a physical Galaxy Z Fold7 in a freeform window, the terminal left an unpainted black region after the window was resized:
After, on the pre-rebase build, repeated changes to the freeform window's width left the terminal filling the resized window with no black region. No After capture is attached, and the rebased commit has no capture of its own.
Testing
Device evidence, pre-rebase commit:
timezone-catand Codex.no ready signalormeasure-failevent.Device evidence, commit d071ce4a (the same code as 4444eabbfb, which was rebased onto
main21f8e0f; the only conflict was an import line inmounted-bottom-drawer.tsx, wheremainswitched tohostOs()):mobile/scripts/mock-server.tsoveradb reverse. The phone was folded, so this ran on the cover screen.no ready signalormeasure-failline.am task resizechanged the window four times (620, 1000, 600 and 1080 px wide, with different heights). Threewm sizechanges of the whole display were done before that. Each time the terminal refilled the window and rewrapped to the new width with no unpainted region, and the phone re-subscribed the terminal after each change (7terminal.subscribecalls in the mock log; the mock does not log their size parameters).npx expo prebuild --platform android --no-installand./gradlew --no-daemon :app:compileDebugKotlinalso passed.Automated checks on this rebased commit:
main21f8e0f: mobiletsc --noEmit,check:tests-typecheck, the full mobile test suite, and the four mobile web closure suites (20 tests) pass. Ten suites first hit the 5 s timeout while the machine was heavily loaded; eight passed on a plain rerun and the other two with a longer timeout.main31012ae (commit7c705d4c7f): upstream's test: remove junk tests that assert source text instead of behavior #23815/test: remove assertion-free probes, copied inventories and export-shape checks #23816 junk-test cleanup deleted the source-text assertions this PR had updated (terminal-viewport-refit.test.ts,terminal-webview-text-zoom.test.ts), so the resolution keepsmain's side there;_layout.tsxneeded only the import block kept on both sides. Mobiletsc --noEmit,check:tests-typecheck,pnpm test(9659 passed, 6 skipped), andcheck:code-quality:changedpass.eb034f2e94): the document's pong now carries the samecellBoxweb-readysends, and the controller stores it before announcing readiness, so a subscribe recovered through the post-load ping is viewport-fitted like the normal path.host-seams.test.tspins the box on the wire andterminal-webview-cell-box.test.tspinsfitDimensionsafter a pong. Mobiletsc --noEmit,check:tests-typecheck, the terminal and session suites (259 files, 2492 tests), andcheck:code-quality:changedpass.afce2f8c2e:terminal-viewport-refit.tswas already at the mobilemax-linesbudget (300 lines, blanks and comments excluded), so this PR's one extra import failedoxlint. The iOS-resume and reconnect refit effects, which neither this PR nor feat(mobile): add Android opt-in to resize the terminal for the keyboard #23419 changes, moved unchanged intoterminal-viewport-reassertion.ts; feat(mobile): add Android opt-in to resize the terminal for the keyboard #23419 adds the identical file. With the branch merged into currentmain(752871bd67), mobileoxlint,oxfmt --check,tsc --noEmit,check:tests-typecheck, the session-terminal closure test andpnpm test(9874 passed, 6 skipped) pass. The only failures are two tests insrc/tasks/mobile-agent-launch-architecture.test.ts, which fail the same way on plainmainlocally.pnpm --dir mobile exec tsc --noEmit: passed.pnpm --dir mobile check:tests-typecheck: passed.pnpm --dir mobile test: 893 files; 9,640 tests passed, 6 skipped.pnpm --dir mobile lintandpnpm --dir mobile format:check: passed.pnpm run check:code-quality:changed: 0 new findings across 25 files.config/scripts/mobile-web-app-session-terminal-closure,page-closure-families,mobile-web-terminal-engine-closure,push-subsystem-closure): 21 passed. The session route gains the two window-bounds modules (4,251 → 4,253), recorded in that test's docstring.New or updated tests:
web-readyrecovered through the post-load ping, and an engine-less pong rejected;web-readyreaching the session each time, and a new document announced afteronLoadStart;web-readyor the post-load pong announced it;mobile/pnpm-lock.yamlwas regenerated with pnpm 10.24.0, which keeps the formatmainuses. Its diff is only thereact-native-screenspatch hash and the dependency keys derived from it. pnpm 12 would rewritepatchedDependenciesand addsupports-colorpeer suffixes across the whole file, so a reviewer on pnpm 12 should expect that churn if they regenerate.AI Disclosure
OpenAI Codex (GPT-5.6 Sol and GPT-5.6 Luna) assisted with the original investigation, implementation and tests. The rebase onto current
mainand the review fixes were developed with Claude Code (Claude Opus 5.5). The author verified the original behavior on physical devices.Review
TerminalWebView.tsxandTerminalWebView.web.tsx, so the page gets the same engine-checked pong. The page has noonLoadEndand never pings on foreground, so it never receives a pong and its announcements are unchanged.resetReadiness()to the overlay Reload and the post-load ping are native-only changes inTerminalWebView.tsx; the page's Reload already reset readiness.pong.terminalAvailabletravels between React Native and the document bundled with the same app build. It does not cross the host–client wire, so there is no mixed-version concern. Terminal RPCs and execution ownership are unchanged.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
react-native-screenspatch can replace the overlapping native part here. The measured-window and terminal fixes are still needed.Author
X (Twitter): @kargnas
Checklist
N/Awith reason (Before is attached; After is described but not attached)pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (mobile typecheck, tests-typecheck, tests, lint and format pass;:app:assembleReleasewas built for arm64 only, for the device run)