Skip to content

Fix paired remote terminal browser link creation - #14363

Merged
OrcaWin merged 2 commits into
mainfrom
jinjing/sta-4181-release-blocking-paired-remote-terminal-browser-link-does
Aug 13, 2026
Merged

OrcaWin merged 2 commits into
mainfrom
jinjing/sta-4181-release-blocking-paired-remote-terminal-browser-link-does

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Aug 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes STA-4181.

The release failure surfaced after #14194, but the failing path is an ordering interaction with #14100 strict browser-materialization cleanup: a renderer-backed host can return browser.tabCreate before its webview registers, the paired client immediately lists tabs, does not see the unregistered page, and closes it as unreconciled.

Fix:

  • For owner-pinned runtime link opens, wait for host browser registration before client reconciliation.
  • Preserve the existing non-blocking behavior for ordinary, unpinned browser opens.
  • Keep headless/offscreen hosts unchanged; their registration is synchronous and this flag is ignored on that path.

The existing optional browser.tabCreate.waitForRegistration field is used, so there is no new wire shape.

Validation

  • Exact renderer-backed paired remote terminal E2E
  • 83 focused unit tests
  • oxlint
  • typecheck:web
  • git diff --check

@coderabbitai

coderabbitai Bot commented Aug 13, 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: e02ecb54-872b-4043-ba72-9019ffb892b6

📥 Commits

Reviewing files that changed from the base of the PR and between 73eb1b8 and 9c782be.

📒 Files selected for processing (3)
  • src/renderer/src/lib/workspace-browser-tab-open.test.ts
  • src/renderer/src/lib/workspace-browser-tab-open.ts
  • src/renderer/src/runtime/web-runtime-session.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/renderer/src/runtime/web-runtime-session.ts
  • src/renderer/src/lib/workspace-browser-tab-open.ts
  • src/renderer/src/lib/workspace-browser-tab-open.test.ts

📝 Walkthrough

Walkthrough

Runtime-pinned browser links now bypass local-client handling when they include a runtime environment assertion. Runtime-pinned tab creation waits for host-tab registration, while unpinned creation keeps the previous default. Tests cover runtime creation, environment selection, registration waiting, and prevention of local browser-tab creation.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

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.
Description check ⚠️ Warning The description explains the bug, fix, linked issue, and validation, but it omits several required template sections and testing details. Add ELI5, What Changed, Visual Proof or N/A with a reason, Testing details and platforms, Review, and Checklist sections.
✅ Passed checks (3 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly identifies the primary fix for paired remote terminal browser link creation.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

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