Skip to content

fix(opencode): remove verbose logs that flood the TUI - #440

Merged
backnotprop merged 1 commit into
mainfrom
fix/opencode-logs
Mar 30, 2026
Merged

backnotprop merged 1 commit into
mainfrom
fix/opencode-logs

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Summary

  • Remove writeRemoteShareLink stderr output from the OpenCode plugin — the base64-encoded share URL was flooding the TUI on remote sessions
  • Strip leftover console.log debug statements from the PR viewed files feature in the review server

Closes #435

Test plan

  • Run OpenCode with PLANNOTATOR_REMOTE=1 and PLANNOTATOR_PORT=9999, call submit_plan — confirm no share URL floods the TUI
  • PR review with GitHub viewed files — confirm viewed state still syncs correctly without debug logs

Remove writeRemoteShareLink stderr output from the OpenCode plugin —
the base64 share URL was flooding the TUI on remote sessions. Also
strip leftover console.log debug statements from the PR viewed files
feature in the review server.

Closes #435

For provenance purposes, this commit was AI assisted.
@backnotprop
backnotprop merged commit b0980ef into main Mar 30, 2026
5 checks passed
stk-code pushed a commit to stk-code/plannotator that referenced this pull request Mar 31, 2026
Remove writeRemoteShareLink stderr output from the OpenCode plugin —
the base64 share URL was flooding the TUI on remote sessions. Also
strip leftover console.log debug statements from the PR viewed files
feature in the review server.

Closes backnotprop#435

For provenance purposes, this commit was AI assisted.
backnotprop added a commit that referenced this pull request May 5, 2026
* fix(remote): notify URL in remote mode for OpenCode and Pi (#551, #574)

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.

* fix(pi): use neutral URL notification for remote sessions

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.
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.

OpenCode TUI crashes after submit_plan

1 participant