fix(remote): notify URL in remote mode for OpenCode and Pi#663
Merged
backnotprop merged 2 commits intomainfrom May 5, 2026
Merged
fix(remote): notify URL in remote mode for OpenCode and Pi#663backnotprop merged 2 commits intomainfrom
backnotprop merged 2 commits intomainfrom
Conversation
PR #440 removed writeRemoteShareLink from OpenCode because the base64 share URL flooded the TUI — but no replacement was added. Remote users got zero feedback about where the server was listening. OpenCode: log the short localhost URL via client.app.log() in all onReady callbacks (submit_plan, review, annotate, annotate-last, archive). Pi: check isRemoteSession() directly instead of relying on the openBrowser return value, which only sets isRemote when BROWSER env is unset. Users running via Cursor (which sets BROWSER) now get the notification.
The previous wording ("Remote session. Open manually:") implied the
browser failed even when BROWSER env successfully opened it via port
forwarding. Use a neutral informational message instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
writeRemoteShareLinkbecause the base64 share URL flooded the TUI, but no replacement was added. Remote users got zero feedback. Now logs the short localhost URL viaclient.app.log()in allonReadycallbacks (submit_plan, review, annotate, annotate-last, archive).openBrowserForServerrelied on theopenBrowserreturn value to detect remote mode, butisRemotewas only set whenBROWSERenv was unset. Users running via Cursor (which setsBROWSER) never got the URL notification. Now checksisRemoteSession()directly.Closes #551
Closes #574
Related: #601, #192, #435
Test plan
PLANNOTATOR_REMOTE=1, callsubmit_plan→ confirm[Plannotator] Open in browser: http://...appears in TUI logPLANNOTATOR_REMOTE=1, run/plannotator-review→ sameBROWSERset: setPLANNOTATOR_REMOTE=1andBROWSER=some-browser, trigger plan review → confirmctx.ui.notifyfires with URL