Skip to content

Web UI does not open automatically when Plannotator Code Review is triggered #551

Closed

Description

@ZoeImport

Description

When triggering the Plannotator Code Review, the console shows:

The Plannotator Code Review has been triggered. Opening the review UI...
Acknowledge "Opening code review..." and wait for the user's feedback.

However, the web UI browser does not open automatically.

Environment

  • OS: Linux
  • Node version: v22.14.0
  • npm version: 10.9.2
  • open-plan-annotator version: 1.2.1
  • opencode: installed globally

Steps to reproduce

  1. Install: curl -fsSL https://plannotator.ai/install.sh | bash
  2. Add to opencode.json config: "plugin": ["@plannotator/opencode@latest"]
  3. Restart opencode and trigger Plannotator Code Review

Expected behavior

Web UI browser should open automatically.

Actual behavior

Message appears in console but browser does not open.

Additional context

The plugin seems to trigger correctly but the URL opening mechanism may not be working on Linux environments.

Activity

  1. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    https://github.com/ndom91/open-plan-annotator

    This is a different plugin?

  2. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    Still, im checking linux.

  3. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    https://github.com/ndom91/open-plan-annotator

    This is a different plugin?

    sry, type error

  4. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    @ZoeImport can you help me debug:

    1. in a seperate terminal, after running /plannotator-review, can you run:
    plannotator sessions # (outside of opencode)

    Do you see the url here?

    1. Separately - just run isolated in terminal:
    plannotator review

    I want to see if there is an error?

  5. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    plannotator sessions

    cmd running image
    Image

    console image

    ➜ ~ plannotator sessions
    No active Plannotator sessions.
    ➜ ~ plannotator sessions
    No active Plannotator sessions.
    ➜ ~

    wait, it happens when i type plannotator review

    Image
  6. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    OK - something is wrong with the /slash-command inside of opencode on linux... I need to evaluate

  7. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    but this page has nothing, because of i run it outside?

  8. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    @ZoeImport

    Change the dropdown:

    Image
  9. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    @ZoeImport

    Change the dropdown:

    Image

    I try every item and also has nothing, but it's truely has diff

    Image
  10. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    you are in ~/zoe

    You on the discord? Can screen share/video english?

  11. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    you are in ~/zoe

    You on the discord? Can screen share/video english?

    solve, not in work dir, but why opencode could' open it

    Image
  12. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    idk i will try to debug in linux

  13. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    Does plugin use xdg-open? I have try

    ➜ ~ xdg-open "https://google.com"

    Opening in existing browser session.

    ➜ ~ echo $DISPLAY

    :1

    ➜ ~ xdg-settings get default-web-browser

    google-chrome.desktop

    ➜ ~ xdg-mime query default x-scheme-handler/http

    google-chrome.desktop

    ➜ ~ xdg-mime query default x-scheme-handler/https

    google-chrome.desktop

    ➜ ~

  14. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    OpenCode spawns the plugin in a child process context where those env vars may not propagate, so xdg-open fails silently

    (i think)

  15. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    OpenCode spawns the plugin in a child process context where those env vars may not propagate, so xdg-open fails silently

    (i think)

    gemini3.1 also told me that

  16. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    Related: #292

    I'm going to fix now.

  17. ZoeImport commented on Apr 13, 2026

    @ZoeImport
    Author

    Does this issue fixed?

  18. backnotprop commented on Apr 13, 2026

    @backnotprop
    Owner

    I'm struggling to reproduce. Can you update the binary, by the way? It looks like you have an old version.

    curl -fsSL https://plannotator.ai/install.sh | bash
    

    This will clear out OpenCode cache.

  19. ZoeImport commented on Apr 14, 2026

    @ZoeImport
    Author
    Image Image

    still

  20. backnotprop commented on Apr 14, 2026

    @backnotprop
    Owner

    @ZoeImport — can you try setting this env var before starting OpenCode:

    export PLANNOTATOR_BROWSER=google-chrome

    This bypasses xdg-open entirely and launches Chrome directly. If the browser opens after this, the problem is xdg-open in the plugin subprocess context. If it still doesn't open, the issue is earlier in the chain.

    One env var, zero code changes — just want to narrow this down.

  21. ZoeImport commented on Apr 14, 2026

    @ZoeImport
    Author

    Still, I have tried these env to test if error comes from xdg yesterday like:

    9965 xdg-open "https://google.com"
    9966 echo $DISPLAY
    9967 xdg-settings get default-web-browser
    9968 xdg-mime query default x-scheme-handler/http
    9969 xdg-mime query default x-scheme-handler/https
    9970 DISPLAY=:1 WAYLAND_DISPLAY=$WAYLAND_DISPLAY opencode
    idk why my os can't

  22. backnotprop commented on Apr 14, 2026

    @backnotprop
    Owner

    you tried this:

    PLANNOTATOR_BROWSER=google-chrome opencode
    

    ?

  23. ZoeImport commented on Apr 14, 2026

    @ZoeImport
    Author

    you tried this:

    PLANNOTATOR_BROWSER=google-chrome opencode
    

    ?

    yes, still nothing happen

    and

    export PLANNOTATOR_BROWSER=google-chrome
    opencode

    and type /plannotator-review no browser open automatic

  24. ZoeImport commented on Apr 17, 2026

    @ZoeImport
    Author

    Any result?

  25. AnToHu0 commented on Apr 17, 2026

    @AnToHu0

    I have the same issue inside both web ui and desktop version on my mac m4. Tried to open url directly but it looks like plannotator session hasn't run at all. Everything works fine from TUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions