Skip to content

Worktree creation browse submenu closes when the prompt re-renders #771

Description

@QiushiZhao

What happened?

While creating a new worktree, opening the "Base ref" or "Upstream" browse menu and drilling into a nested submenu (e.g. remote → namespace → branch) closes the submenu whenever the prompt's ancestors re-evaluate. I expected the open submenu to stay open until I dismiss it.

Steps to reproduce

  1. Open the worktree creation prompt.
  2. In the "Base ref" or "Upstream" field, click the browse menu and drill into a nested submenu.
  3. While a submenu is open, trigger a sheet re-render — an agent-presence update, or typing in the branch-name field.
  4. The open submenu closes immediately.

Supacode version and build: Local dev build (current main, past v0.10.8)

macOS version: 26.6

System locale: en_SG

Mac hardware: Apple M5 Max (arm64)

Relevant logs or screenshots: n/a

  • I intend to open a pull request once this is confirmed and marked ready.
  • I searched existing issues and this is not a duplicate.
  • I am on the latest available version of Supacode.
  • I understand pull requests are closed until the issue is marked ready.
  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreadyApproved for a pull request. Added by a maintainer once an issue is triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions