Skip to content

[Feature Request] Refresh the same browser tab when iterating on a plan instead of opening new ones #636

Closed as not planned

Description

@AtefBadreddine

Problem

Every time I deny a plan with feedback and the agent sends a revised version, Plannotator opens a brand new browser tab. After a few iterations I have 5+ tabs and I have to close them all manually.

Proposed solution

Track active sessions and when a new plan iteration arrives for the same session, instead of starting a fresh server on a new port:

  1. Kill the old server, restart on the same port — the browser tab stays on the same URL and auto-refetches /api/plan
  2. Or add a /api/plan/refresh endpoint so the new invocation can push updated content to the running server

The openBrowser() call in packages/server/browser.ts should first check for an active session — if found, skip openBrowser() entirely and let the existing tab handle the refresh. The UI side in packages/editor/App.tsx would need an SSE listener or simple polling to detect when new plan content is available.

Fall back to current behavior (new tab) when no active session is found.

Activity

  1. backnotprop commented on Apr 30, 2026

    @backnotprop
    Owner

    I'm actively working on some session stuff and think I can get what you want. I did have a couple questions:

    1. would you be against a desktop app?

    2. Have you tried the autoclose feature?

    Image
  2. AtefBadreddine commented on May 1, 2026

    @AtefBadreddine
    Author

    1. Desktop App
    I think it's overkill for now. The current browser-based approach is more practical. That said, I can see a desktop app making sense down the line as Plannotator grows and adds more functionality. For now I'd prefer keeping things simple.

    2. Auto close
    I've tried it, and while it helps clean up old tabs, it doesn't solve the core problem. Every iteration still opens a new tab and I have to wait for it to load. The flow I'd love is: submit feedback → switch back to terminal → agent revises → glance back at the same tab and the new plan is already there.

    On that note, there's another thing worth considering: when running multiple agents in parallel, it's easy to lose track of which session and which plan belongs to which agent. So alongside the same-tab refresh, including a session title and/or model name in the tab or page header would be really helpful for keeping things straight.

  3. backnotprop commented on May 2, 2026

    @backnotprop
    Owner

    Thanks! Great feedback

  4. AtefBadreddine commented on May 3, 2026

    @AtefBadreddine
    Author

    I would like to work on this if possible

  5. ALenfant commented on May 12, 2026

    @ALenfant

    Agreed that this is a very frustrating issue. I iterate both with Plannotator and the CLI and having a new tab open every time I edit the exact same plan is pretty messy. Maybe we could enforce using the same port when editing the same plan? That could help deduplicating tabs on the browser side.

  6. backnotprop commented on May 16, 2026

    @backnotprop
    Owner

    will be completed with #733 and #734

  7. backnotprop commented on May 16, 2026

    @backnotprop
    Owner

    This was a fairly big lift. I'm having to iterate on a ton just due to how the current ephemeral nature of it works. I appreciate the asks to support. We'll be in good shape by end of this weekend.

  8. backnotprop commented on Aug 8, 2026

    @backnotprop
    Owner

    Closing with an honest status instead of leaving this hanging. The original plan was to ship tab reuse via #733 and #734. #734 landed, but the #733 daemon branch was abandoned and reverted, so the promise made here quietly died. Sorry about that.

    The approach we have since settled on depends on a new MCP spec capability expected to be released in the coming months, so rather than hold this open against an external timeline we are closing it until that lands. The port-stability half (same port across resubmissions) is tracked in #1134 and stays open. We will revisit tab reuse once the spec ships.

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