Skip to content

Keep phone fork pull requests on their selected repository - #36762

Merged
brennanb2025 merged 126 commits into
mainfrom
brennanb2025/sta-12585-phone-pr-identity
Nov 3, 2026
Merged

brennanb2025 merged 126 commits into
mainfrom
brennanb2025/sta-12585-phone-pr-identity

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 47 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8235 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1735 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6500
Prod 200 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​35489 $\color{#cf222e}{\Huge{\mathbf{−}}}$​21679 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13810

A fork and its upstream can have different pull requests with the same number. On a phone, opening the fork’s pull request could load upstream’s details or people, or send an action using a different repository from the one displayed. This PR keeps the selected GitHub host, repository and pull request together through the native and hosted phone experience, using the desktop and shared-server fix tracked in #36172.

The change covers Tasks pull-request details, the pull-request sidebar reached from Source Control and Diff Review, reviewer selection, metadata loading and actions. Accepted repository and item IDs stay attached to their originating request. Results from an earlier selection or detail revision cannot replace the current selection, and finishing an action releases that action’s pending state and file ownership without releasing a newer action. Hidden controls do not start metadata requests just to populate options that are not displayed; this does not expose new editors.

The native client, hosted page and phone shell move together. Requests retain the selected target through the native connection wait and the shell’s receipt and forwarding steps, then use the shared server’s final-connection check. This includes the tests, recording inputs and shared action owners needed by those callers; it is not a shell-only change. Execution host and credentials remain separate from the GitHub resource being viewed.

Full path: this changes request identity and ownership, pending-result acceptance, concurrent actions and independently versioned phone, page and server programs. It retains the plan and full review obligations of the original change.

Differences from the common pattern:

  • Intended: retain separate resource, execution-host and account identities for local, paired, SSH, WSL and GitHub Enterprise routes. Selecting a repository does not select different credentials or broaden access.
  • Intended: preserve independently updated phone apps, hosted pages and servers. An older installed phone shell can still Close/Reopen through a checked capable endpoint without an update-phone requirement. Its accepted narrow race between the authenticated capability check and sending on a changed connection remains; the newer shell and native checks do not establish that every older shell has the same protection.
  • Intended: preserve existing exact PR-body, Project, repository-option and accepted node/SHA/path operations and matching older-server reads. Unsupported generic operations produce the existing server-update error rather than falling back to a repository rediscovered from the clone. There is no new permission, saved field, RPC method or minimum server version.
  • Intended: retain the existing visible controls and load metadata only for their actual consumers. Shared action owners also preserve their existing non-GitHub callers.
  • Intended: reviewer search on an older desktop or executing server asks the user to update the participant that lacks support, instead of listing people from the clone's default repository. Existing addressed reads and writes remain supported.
  • Intended: after a refresh fails, loaded pull-request content stays usable, including Merge; each action still performs its own target and connection checks. Loaded reviewer rows and search stay visible without a connection line; an empty offline sheet shows the existing connection verdict.
  • Temporary: the inherited Viewed reconciliation race remains tracked in STA-12937. A background details read can leave Viewed unchecked after GitHub accepted the mark. This PR preserves accepted item identity; it does not repair that chronology issue or separate inherited transport lifetime and recovery defects.

Validation: all CI checks passed on 608a03f69149776dc47a2e1625230f7cf626f69c, including Mobile app and test types, runtime tests, static analysis, Windows compiler diagnostics, the web bundle, relay integration and all test shards. Independent review accepted the final changes. The queued-reply regression failed on the earlier detail owner and passed after the repair; the focused run also passed all 1,627 affected tests. The iOS simulator run exercised the Diff Review overlay: reviewer rows and search stayed through a host stop and restart, an empty offline search showed “Can't connect” and recovered, and an unsent comment draft survived a restart. Later state and request-handling repairs retain those screens. The review status comment contains the screenshots and inherited issues outside this change.

Test-size cleanup: duplicate cases and repeated standalone stream preludes were removed. Recording observations now focus on relevant identity, errors, busy settlement, drafts and file contracts while retaining real production-hook owners and setters. The real recorder regenerated 49 goldens, removing 27,284 net lines across 65 test/support/recording files without changing shipping code. The 22 named files passed all 1,684 tests, including fault and mutant checks; three deliberate observation omissions still failed as intended. Core repository, stale-reply, reconnect, migration, compatibility, queued-revision and bridge coverage remains.

The desktop and shared-server change tracked in #36172 has merged. This PR targets main and retains that contract, including ordinary versus explicit Refresh reads, the integrated repository-account wrapper from #35023, and #34245’s issue-only refresh and pending-fetch settlement.

Tracked in #36172. Tracked in STA-12585.

@brennanb2025
brennanb2025 marked this pull request as ready for review November 1, 2026 00:07
A disconnect or session change while the reviewer list loaded left the drawer showing an empty list until it was reopened. The drawer now shows its loading state while disconnected and fetches the same repository again once connected, still ignoring the cancelled load's result. Also merges a duplicate type import that failed mobile lint.
The reviewer picker now owns one query per open visit of a client, worktree and repository. A connection or session change retires the in-flight request at once but keeps the people already loaded; reconnecting refreshes them in the background. Without loaded people the drawer shows its spinner, or the existing connection explanation once an outage is revealed, and never a false empty list. Closing, retargeting or reopening starts a fresh visit that no earlier reply can paint. Also wraps the synchronous bridge teardown steps so the cleanup loop awaits only promises.
A relay/direct switch or reconnect selected a fresh, hidden PR observation in Source Control and Diff Review, so the next render unmounted the PR, closed the reviewer picker and erased an unsent comment. The PR observation is now scoped to the client, worktree and branch. One connection listener retires the in-flight reads when the connection changes and repeats the query the screen already asked for once connected, so accepted content stays mounted and refreshes in place. A failed background refresh keeps the accepted result. Task PR files likewise keep their loaded contents and expansion across a connection loss and read an interrupted file again on reconnect.
…ry connection change

A failed refresh of an accepted PR (or no-PR) result now keeps the content and shows the existing "Failed to refresh pull request." line with Retry above it, whoever started the read, until the next good read. Task PR file reads are retired and re-read from the task selection's own connection listener, so a reconnect batched into one render or a connection switch at the same state also recovers an interrupted file. The reviewer-picker contract test leaves the React Native test program for now; its checked owner follows.
@brennanb2025
brennanb2025 changed the base branch from brennanb2025/sta-12585-fork-pr-identity to main November 3, 2026 00:09
The desktop fork pull request is on main, so this branch follows it. A write reread keeps the shown pull request and its checks, and replaces a details read the write retired.
The sheet fixture omitted the required reread, so the phone typecheck failed. Desktop settlement tests that main already removed were still on this branch and pulled telemetry into the web typecheck.
Main removed another batch of low-value workspace tests. This branch follows that tree.
The sidebar already shows this sentence when a refresh fails. The English catalog omitted it, and the boot bundle still carried two strings no startup call needs.
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Walkthrough

[!NOTE]
Walkthrough couldn't be generated for this run and will be retried on the next review.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Description check Warning The description supplies substantive content: it explains the problem (fork and upstream PRs sharing a number), the scope of the change (Tasks details, PR sidebar, reviewer selection, metadata, action… Add or complete the following template sections: (1) an ELI5 summary in plain language; (2) explicit 'What Changed' and 'Why' sections (the current prose covers both but is not labeled); (3) a 'Fixes #' or actual linked issue for the Linked…
Docstring Coverage Inconclusive Docstring coverage is 45.76% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: preserving the selected repository for phone fork pull requests.
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.
Full details: Description check

Explanation

The description supplies substantive content: it explains the problem (fork and upstream PRs sharing a number), the scope of the change (Tasks details, PR sidebar, reviewer selection, metadata, actions), the design intent, risk-related differences from the common pattern, validation status, and a linked dependency (#36172). It also contains the LoC summary block. However, several template sections are missing or incomplete: the ELI5 section is absent; the 'What Changed' and 'Why' headings are not used as such; the 'Linked Issue' section has only 'Tracked in #36172' and 'Tracked in STA-12585' rather than a 'Fixes #' issue link, which the template says must be an actual issue for outside contributors; 'Visual Proof' is not provided as a before/after, though the description mentions a screenshot in a review comment rather than attaching it; the 'Testing' checklist items are not ticked; the 'Risk' section has no explicit 'Level' value; the 'AI Disclosure' section is absent; the 'Review' and 'Agent skill upstream boundary' sections are absent; and the 'Checklist' is not marked. The author also states that validation is incomplete and that some checks remain outstanding.

Resolution

Add or complete the following template sections: (1) an ELI5 summary in plain language; (2) explicit 'What Changed' and 'Why' sections (the current prose covers both but is not labeled); (3) a 'Fixes #' or actual linked issue for the Linked Issue section, since the current references are to #36172 and STA-12585 and the template requires an actual issue link for outside contributors; (4) Visual Proof with before and after screenshots or videos for the UI behavior change, or N/A with a reason; (5) Testing steps a reviewer can follow, with the platforms actually tested, and ticked checkboxes for manual and automated testing; (6) a Risk section with a stated Level (Low, Medium, or High), the riskiest part, and a back-out plan; (7) the AI Disclosure section if applicable; (8) the Agent skill upstream boundary checkbox; (9) the Checklist items completed. Also state which outstanding validation items (assembled-code checks, recording and replay checks, and the focused native sidebar screenshot) are still pending and when they will be completed.

Full details: Docstring Coverage

Explanation

Docstring coverage is 45.76% which is insufficient. The required threshold is 80.00%. 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 59 functions across 50 files. (166 skipped: 61 unsupported, 105 over the file limit.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Review coverage is incomplete: 28 files could not be fully reviewed. Findings from completed review steps are included; see review info for details.

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9b7fa2f1-c49a-4cc9-a7cf-b695a95c7c7b
Commits

Reviewing files that changed from the base of the PR and between 40b6603 and 170fc2d.

Files selected for processing: 252
  • .github/workflows/mobile.yml
  • config/mobile-ci.vitest.config.mjs
  • config/scripts/run-mobile-ci-tests.mjs
  • config/tsconfig.test.mobile-host-declarations.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.listassignableusers-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.prcheckdetails-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.prchecks-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.prforbranch-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.reposlug-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.workitemdetails-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-hostedreview.forbranch-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-status.get-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.addprreviewcomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.prfilecontents-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.rerunprchecks-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.resolvereviewthread-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.setprfileviewed-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-comment-github-github.addissuecomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-comment-gitlab-gitlab.addissuecomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-comment-gitlab-mr-gitlab.addmrcomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-github-github.workitemdetails-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-github-status.get-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-gitlab-gitlab.workitemdetails-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-gitlab-gitlab.workitemdetails-2.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-linear-linear.getissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-linear-linear.issuecomments-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-metadata-github.listassignableusers-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-detail-metadata-github.listlabels-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-merge-gitlab-gitlab.mergemr-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-metadata-github-github.updatepr-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-metadata-gitlab-gitlab.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-metadata-gitlab-mr-gitlab.updatemr-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-github.addissuecomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-github.addprreviewcommentreply-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-github.mergepr-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-linear.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-review-github-github.prchecks-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-review-github-github.requestprreviewers-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-status-gitlab-github.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-status-gitlab-gitlab.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-status-gitlab-mr-gitlab.updatemrstate-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-status-gitlab-status.get-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-item-linear.addissuecomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-item-linear.createissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-item-linear.getissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-team-context-linear.listteams-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-team-context-linear.teamstates-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-detail-github.project.workitemdetailsbyslug-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.addprreviewcomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.mergepr-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.prfilecontents-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.updateprstate-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-status.get-1.json
  • mobile/rpc-foundation/goldens/pr-read-surface.json
  • mobile/rpc-foundation/goldens/tk-item-checks-files.json
  • mobile/rpc-foundation/goldens/tk-item-comment-github.json
  • mobile/rpc-foundation/goldens/tk-item-comment-gitlab-mr.json
  • mobile/rpc-foundation/goldens/tk-item-comment-gitlab.json
  • mobile/rpc-foundation/goldens/tk-item-detail-github-reactions.json
  • mobile/rpc-foundation/goldens/tk-item-detail-github.json
  • mobile/rpc-foundation/goldens/tk-item-detail-gitlab-reactions.json
  • mobile/rpc-foundation/goldens/tk-item-detail-gitlab.json
  • mobile/rpc-foundation/goldens/tk-item-detail-linear.json
  • mobile/rpc-foundation/goldens/tk-item-detail-metadata.json
  • mobile/rpc-foundation/goldens/tk-item-merge-gitlab.json
  • mobile/rpc-foundation/goldens/tk-item-metadata-github.json
  • mobile/rpc-foundation/goldens/tk-item-metadata-gitlab-mr.json
  • mobile/rpc-foundation/goldens/tk-item-metadata-gitlab.json
  • mobile/rpc-foundation/goldens/tk-item-reply-merge.json
  • mobile/rpc-foundation/goldens/tk-item-review-github.json
  • mobile/rpc-foundation/goldens/tk-item-status-gitlab-mr.json
  • mobile/rpc-foundation/goldens/tk-item-status-gitlab.json
  • mobile/rpc-foundation/goldens/tk-linear-item.json
  • mobile/rpc-foundation/goldens/tk-linear-team-context.json
  • mobile/rpc-foundation/goldens/tk-project-row-detail.json
  • mobile/rpc-foundation/goldens/tk-project-row-files-merge.json
  • mobile/rpc-foundation/pilot-scenarios.json
  • mobile/scripts/check-node-tests-typecheck.mjs
  • mobile/scripts/check-tests-typecheck-ratchet.mjs
  • mobile/scripts/check-tests-typecheck-ratchet.test.ts
  • mobile/src/components/MobileDiffReviewScreenView.tsx
  • mobile/src/components/MobilePRSidebar.tsx
  • mobile/src/components/pr-sidebar/MobilePrTabSheets.tsx
  • mobile/src/components/pr-sidebar/PrReviewersSheet.tsx
  • mobile/src/components/pr-sidebar/mobile-pr-sidebar-styles.ts
  • mobile/src/components/pr-sidebar/pr-tab-requests.ts
  • mobile/src/components/pr-sidebar/reviewer-picker.target-contract.test.tsx
  • mobile/src/components/pr-sidebar/use-mobile-pr-polling.test.tsx
  • mobile/src/components/pr-sidebar/use-mobile-pr-polling.ts
  • mobile/src/components/pr-sidebar/use-mobile-pr-tab.ts
  • mobile/src/components/pr-sidebar/use-reviewer-people.ts
  • mobile/src/i18n/locales/de.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/i18n/locales/es.json
  • mobile/src/i18n/locales/fr.json
  • mobile/src/i18n/locales/ja.json
  • mobile/src/i18n/locales/ko.json
  • mobile/src/i18n/locales/pt.json
  • mobile/src/i18n/locales/ru.json
  • mobile/src/i18n/locales/tr.json
  • mobile/src/i18n/locales/zh-Hant.json
  • mobile/src/i18n/locales/zh.json
  • mobile/src/i18n/mobile-i18n.ts
  • mobile/src/mobile-web-shell/bridge-host-github-requests.test.ts
  • mobile/src/mobile-web-shell/bridge-host-requests.legacy.test-fixture.ts
  • mobile/src/mobile-web-shell/bridge-host-requests.ts
  • mobile/src/mobile-web-shell/bridge-old-shell-github.test.ts
  • mobile/src/mobile-web-shell/bridge/bridge-client-rpc-envelope.ts
  • mobile/src/mobile-web-shell/bridge/bridge-port-lane.ts
  • mobile/src/mobile-web-shell/bridge/bridge-port-pair-contract.ts
  • mobile/src/mobile-web-shell/bridge/bridge-port-pair-lifecycle.ts
  • mobile/src/mobile-web-shell/bridge/bridge-port-pair-test-harness.test.ts
  • mobile/src/mobile-web-shell/bridge/bridge-port-pair-test-harness.ts
  • mobile/src/mobile-web-shell/bridge/bridge-rpc-client.ts
  • mobile/src/session/MobileDiffReviewRouteScreen.tsx
  • mobile/src/session/github-pr-read-reply-schema.ts
  • mobile/src/session/github-pr-rpc.test.ts
  • mobile/src/session/github-pr-rpc.ts
  • mobile/src/session/mobile-pr-sidebar-observation.ts
  • mobile/src/session/mobile-pr-sidebar-state.ts
  • mobile/src/session/pr-sidebar-load-result.ts
  • mobile/src/session/use-mobile-diff-review-controller.test.ts
  • mobile/src/session/use-mobile-pr-sidebar-controller-probe.test.ts
  • mobile/src/session/use-mobile-pr-sidebar-controller.identity.test.tsx
  • mobile/src/session/use-mobile-pr-sidebar-controller.test.ts
  • mobile/src/session/use-mobile-pr-sidebar-controller.ts
  • mobile/src/source-control/MobileSourceControlPanel.tsx
  • mobile/src/source-control/source-control-status-retry.test.tsx
  • mobile/src/source-control/use-mobile-source-control-pr-tab.ts
  • mobile/src/tasks/github-task-actions.identity.test.tsx
  • mobile/src/tasks/github-task-identity.test-fixture.ts
  • mobile/src/tasks/github-task-identity.ts
  • mobile/src/tasks/github-work-item-operation.test.ts
  • mobile/src/tasks/github-work-item-operation.ts
  • mobile/src/tasks/mobile-task-detail-hydration.test-fixture.tsx
  • mobile/src/tasks/mobile-tasks-item-detail-drawer.tsx
  • mobile/src/tasks/mobile-tasks-provider-detail-types.ts
  • mobile/src/tasks/task-item-detail-reply-schema.test.ts
  • mobile/src/tasks/task-item-detail-reply-schema.ts
  • mobile/src/tasks/use-mobile-tasks-github-check-file-actions.tsx
  • mobile/src/tasks/use-mobile-tasks-github-reply-merge-actions.tsx
  • mobile/src/tasks/use-mobile-tasks-gitlab-github-status-actions.tsx
  • mobile/src/tasks/use-mobile-tasks-hosted-comment-review-actions.tsx
  • mobile/src/tasks/use-mobile-tasks-hosted-metadata-actions.tsx
  • mobile/src/tasks/use-mobile-tasks-item-detail-lifecycle.test.tsx
  • mobile/src/tasks/use-mobile-tasks-item-detail-loading.test.tsx
  • mobile/src/tasks/use-mobile-tasks-item-detail-loading.tsx
  • mobile/src/tasks/use-mobile-tasks-item-detail-metadata-effects.tsx
  • mobile/src/tasks/use-mobile-tasks-item-state.tsx
  • mobile/src/tasks/use-mobile-tasks-jira-direct-entry.test.ts
  • mobile/src/tasks/use-mobile-tasks-linear-item-actions.tsx
  • mobile/src/tasks/use-mobile-tasks-list-and-detail-effects.tsx
  • mobile/src/tasks/use-mobile-tasks-project-detail-loading.tsx
  • mobile/src/tasks/use-mobile-tasks-project-file-merge-actions.tsx
  • mobile/src/tasks/use-mobile-tasks-route-and-item-state.tsx
  • mobile/src/tasks/use-mobile-tasks-task-list-loading.tsx
  • mobile/src/tasks/use-mobile-tasks-workspace-and-project-state.tsx
  • mobile/src/terminal/use-buffered-terminal-drafts.ts
  • mobile/src/test-support/bridged-parity/absent-result-evidence.ts
  • mobile/src/test-support/bridged-parity/c1-page-closure.test.ts
  • mobile/src/test-support/bridged-parity/c2-task-source-closure-families.ts
  • mobile/src/test-support/bridged-parity/c2-work-item-closure-families.ts
  • mobile/src/test-support/bridged-parity/c5-page-closure.test.ts
  • mobile/src/test-support/bridged-parity/c6-browser-closure-families.test.ts
  • mobile/src/test-support/bridged-parity/causal-bridge-evidence.test.ts
  • mobile/src/test-support/bridged-parity/causal-bridge-stage-collection.test.ts
  • mobile/src/test-support/bridged-parity/divergence-classes.test.ts
  • mobile/src/test-support/bridged-parity/divergence-evidence.test.ts
  • mobile/src/test-support/bridged-parity/divergence-evidence.ts
  • mobile/src/test-support/bridged-parity/page-closure-pin-source.ts
  • mobile/src/test-support/bridged-parity/page-closure.ts
  • mobile/src/test-support/bridged-parity/replay-verdict.ts
  • mobile/src/test-support/rpc-recording/adapter-seam.test.ts
  • mobile/src/test-support/rpc-recording/adapters/client-event-stream-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/github-pr-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/session-terminal-create-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-item-checks-status-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-item-conversation-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-item-detail-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-item-hosted-metadata-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-item-metadata-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-project-row-merge-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/task-project-row-read-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/adapters/worktree-catalog-mount-adapters.ts
  • mobile/src/test-support/rpc-recording/bridged-recording-corpus.test.ts
  • mobile/src/test-support/rpc-recording/bridged-replay-comparison.ts
  • mobile/src/test-support/rpc-recording/changed-bridge-outcomes.ts
  • mobile/src/test-support/rpc-recording/changed-page-item-refusals.ts
  • mobile/src/test-support/rpc-recording/changed-page-outcomes.ts
  • mobile/src/test-support/rpc-recording/changed-page-refusals.ts
  • mobile/src/test-support/rpc-recording/derived-goldens.ts
  • mobile/src/test-support/rpc-recording/family-recordings.test.ts
  • mobile/src/test-support/rpc-recording/mounted-screen-tree.test.ts
  • mobile/src/test-support/rpc-recording/mutants/pilot-mutants.test.ts
  • mobile/src/test-support/rpc-recording/mutants/probe-hole-witness.test.ts
  • mobile/src/test-support/rpc-recording/observable-model.ts
  • mobile/src/test-support/rpc-recording/operation-module-loader.ts
  • mobile/src/test-support/rpc-recording/pilot-recordings.test.ts
  • mobile/src/test-support/rpc-recording/prelude-checkpoints.ts
  • mobile/src/test-support/rpc-recording/recorded-request-params.test.ts
  • mobile/src/test-support/rpc-recording/recording-bridge-observation.ts
  • mobile/src/test-support/rpc-recording/recording-causality-contract.ts
  • mobile/src/test-support/rpc-recording/recording-causality.ts
  • mobile/src/test-support/rpc-recording/recording-fault.ts
  • mobile/src/test-support/rpc-recording/recording-mismatch.ts
  • mobile/src/test-support/rpc-recording/recording-port-message.ts
  • mobile/src/test-support/rpc-recording/recording-runner.test.ts
  • mobile/src/test-support/rpc-recording/recording-scenario.ts
  • mobile/src/test-support/rpc-recording/recording-step.ts
  • mobile/src/test-support/rpc-recording/recording-values.ts
  • mobile/src/test-support/rpc-recording/reply-matrix.ts
  • mobile/src/test-support/rpc-recording/rpc-recording-through-bridge.test.ts
  • mobile/src/test-support/rpc-recording/run-recording-mutant.ts
  • mobile/src/test-support/rpc-recording/run-recording.ts
  • mobile/src/test-support/rpc-recording/scenario-execution-mode.ts
  • mobile/src/test-support/rpc-recording/scenario-input.ts
  • mobile/src/test-support/rpc-recording/schedule-driver.ts
  • mobile/src/test-support/rpc-recording/scripted-client-wrapper.test.ts
  • mobile/src/test-support/rpc-recording/scripted-native-request.ts
  • mobile/src/test-support/rpc-recording/scripted-native-session.ts
  • mobile/src/test-support/rpc-recording/scripted-request-tracker.ts
  • mobile/src/test-support/rpc-recording/scripted-response-delivery.ts
  • mobile/src/test-support/rpc-recording/scripted-rpc-device.ts
  • mobile/src/test-support/rpc-recording/scripted-rpc-transport.ts
  • mobile/src/test-support/rpc-recording/subscription-recording.test.ts
  • mobile/src/test-support/rpc-recording/task-action-mount-owners.ts
  • mobile/src/test-support/rpc-recording/task-owner-recording.test.ts
  • mobile/src/test-support/rpc-recording/unhandled-recording.test.ts
  • mobile/src/test-support/rpc-recording/unhandled-recording.ts
  • mobile/src/test-support/rpc-recording/vitest-recording-scheduler.ts
  • mobile/src/transport/client-context-connection-metrics.ts
  • mobile/src/transport/execution-host-scoped-rpc-client.ts
  • mobile/src/transport/github-target-invocation.ts
  • mobile/src/transport/mobile-e2ee-v2-physical-channel.test.ts
  • mobile/src/transport/mobile-relay-rpc-session.test.ts
  • mobile/src/transport/mobile-relay-rpc-session.ts
  • mobile/src/transport/rpc-client-connect-wait-replay.test.ts
  • mobile/src/transport/rpc-client-request-tracker.ts
  • mobile/src/transport/rpc-client.ts
  • mobile/src/transport/unvalidated-rpc-request-port.ts
  • mobile/tsconfig.json
  • mobile/tsconfig.test.json
  • mobile/tsconfig.test.mobile-declarations.json
  • mobile/tsconfig.test.node.json
  • mobile/vitest.config.ts
  • src/renderer/src/components/github-item-dialog/load-item-details/work-item-details-provider.test-fixture.ts
  • src/renderer/src/components/github-item-dialog/load-item-details/work-item-details-settlement.test.tsx
  • src/renderer/src/components/github-item-dialog/load-item-details/work-item-details-target-isolation.test.tsx
  • src/renderer/src/hooks/github-metadata-registered-repos.test-fixture.ts
  • src/renderer/src/hooks/useGitHubRepoMetadata.target-sharing.test.tsx
Files not fully reviewed because their changes were unavailable: 28
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.prcheckdetails-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.prchecks-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.prforbranch-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-hostedreview.forbranch-1.json
  • mobile/rpc-foundation/goldens/matrix-github.pr-read-github.reposlug-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.addprreviewcomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.prfilecontents-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.rerunprchecks-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.setprfileviewed-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-checks-files-github.resolvereviewthread-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-github.addissuecomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-github.addprreviewcommentreply-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-status-gitlab-gitlab.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-status-gitlab-github.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-linear.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-review-github-github.prchecks-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-review-github-github.requestprreviewers-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.item-reply-merge-github.mergepr-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-team-context-linear.listteams-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-item-linear.createissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-item-linear.getissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.linear-item-linear.addissuecomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.updateissue-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.updateprstate-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.addprreviewcomment-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.mergepr-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-github.prfilecontents-1.json
  • mobile/rpc-foundation/goldens/matrix-tasks.project-row-files-merge-status.get-1.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

The sidebar records the client's connection before it loads a pull request. These tests drive that through the screen's connection prop, so the stand-in client only has to accept the subscription.
The changed-code check rejects a new cast unless the line says why it is sound. These tests still only subscribe and read connection state.
A same-numbered pull request in another repository is not this one. The loaded body has to name the repository the test selected.
@brennanb2025

brennanb2025 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor Author

A fork and upstream can have different pull requests with the same number. The phone could display one repository's details or reviewers while an action used the other. This change keeps the selected host, owner, repository and number together, keeps the phone's observation owner, and retains loaded details during the read after a write. When a newer detail revision is accepted, earlier thread, checks and file replies cannot replace its checks, errors or files, or delete its draft, even before the screen renders.

Independent review finished on 608a03f69149776dc47a2e1625230f7cf626f69c, including the authorized test-size cleanup. All current-head CI checks passed, including Mobile app types, the test-typecheck gate and runtime tests, static analysis, Windows compiler diagnostics, the web bundle, relay integration and all 12 test shards. There are no unresolved review threads or merge conflicts. The queued thread regression failed on the pre-repair owner specifically because old feedback reached the newer revision. The repaired owner passed 8 publication tests and 1,627 affected tests, covering fresh actions, terminal release, identity, recording cleanup and bridge/native admission. The actual loader trace committed null before the new revision; the separate same-act regression proves queued-revision ownership. The production recorder regenerated the affected GitLab recordings. Normal commit hooks passed. Local pre-push checks passed 17/18; the known missing local mobile renderer types prevented one type-aware check, while the complete CI environment checks that contract.

The existing iOS simulator run used 4f072773a70454a6695d0042d828be1453491f4d (ticket 4110). D1, D3, D4 and D5 passed. D2 retained the sheet, rows and search without flicker; a connection line appears only when there are no loaded rows. The unsent draft survived a host restart. Configuration hashes were unchanged. The retained screenshots cover these unchanged screens; no new emulator run was needed.

Changes after the screenshot head: a2bae30 and fda3f9c repair review-action publication; 70b74f8 gives detail acceptance one synchronous owner and keeps one final native-send assertion. The action, identity, recording, bridge and tracker tests above verify these state and request-handling changes. Main merges 0b0ba46 and 07cac41 retain phone observation/write-reread and validated matching relay-probe behavior; narrow independent checks and CI cover the integrations. 42b1f06, 39ab223, 266e3ce, 98f139d and 44d8220 align recording/fixture/type/lint contracts; the last also restores the relay's equivalent type alias and unchanged 4-second probe timeout. No screen, layout or interaction changed in these later repairs.

The test-only cleanup in f149d6d removes duplicate cases and repeated standalone stream preludes, keeps real production-hook owners and setters, and records the relevant identity, payload, busy, error, draft and file contracts for each operation. It replaces brittle absolute error-event indices with unique exact name/value matches. Forty-nine recordings were regenerated by the real recorder. The cleanup removes 27,284 net lines across 65 files; the full PR has 28,107 fewer added lines against the same merge base. All 1,684 tests in 22 named files passed, including the bridge, fidelity, fault and mutant cases. Deliberately omitting busy, file-loading or comment-draft observations caused the intended failures; the restored tests passed. Decoded recordings preserve exact requests, payloads, state, settlements and retained effects with their relative order. This cleanup commit changes no shipping code, screen, layout or interaction. Merge 608a03f brings in current main after GitHub reported a conflict; it retains the settled deletion of an obsolete classifier test, main’s Source Control changes and terminal fixture inputs. The cleanup’s 49 regenerated recordings are unchanged by the integration. Narrow independent integration review and current-head CI cover the merge; the existing simulator evidence carries.

For Brennan's review

D1 — Reviewers search lists people for the selected repository.

(screenshot removed: contained real product data)

D2 — Stopping the host keeps the open sheet, search and rows steady.

(screenshot removed: contained real product data)

D3 — Restarting the host reconnects with the same search and rows.

(screenshot removed: contained real product data)

D4 — An empty offline search says “Can't connect”; the same search recovered after the host returned.

(screenshot removed: contained real product data)

D5 — The unsent draft remains after the host restarts. QA did not send it.

(screenshot removed: contained real product data)

Inherited issues listed for follow-up, outside this change: with several threads the overlay's comment box is at the end of the scroll; the Source Control route unmounts PR content on a full host drop; first-load content can shift and Merge can enable before details are known; Comments can show loading or no connection cue while offline; the generated description's wide table can clip. Earlier review also noted raw transport copy in existing phone flows. Main’s single GitLab details fetch is retained by this integration. The separate Viewed reconciliation race remains tracked in STA-12937.

CI note: the unchanged WebKit Link/Image render test initially timed out waiting for its local image to load. One retry of that failed job passed all 481 render tests, including the exact WebKit case; successful jobs were retained. Independent tracing found an inherited malformed PNG test fixture on main, but did not prove it caused the timeout. That fixture is listed outside this change and remains unchanged.

@brennanb2025
brennanb2025 merged commit a56e6de into main Nov 3, 2026
76 of 78 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/sta-12585-phone-pr-identity branch November 3, 2026 22:34
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