Skip to content

Git worktrees can't be created, opened or removed from the app #142

Closed

Description

@devswha

Problem

herdr 0.9.0 has worktree.create, worktree.list, worktree.open and worktree.remove (and worktree.* events), but the app calls none of them (herdr/client.ts). Starting a parallel task on a new branch from the phone isn't possible.

Proposal

  • Show linked worktrees under their repository's workspace in the sidebar.
  • Create a branch-backed worktree in herdr's configured worktree directory, and open an existing one as a workspace.
  • Remove: refuse a checkout with uncommitted changes first; offer a forced remove only after that refusal, with a second confirmation; keep the branch.
  • Keep "close workspace" and "remove checkout" as separate actions.

Reference

herdr-mobile-relay users asked for this (#14); the removal rules above follow its docs/mobile-app.md. It is AGPL-3.0: reimplement the behavior, don't copy code.

Size: medium.

Activity

  1. devswha commented on Oct 3, 2026

    @devswha
    OwnerAuthor

    Shipped in v0.3.46.

    Remote PCs get these with their next bridge update.

  2. devswha commented on Nov 27, 2026

    @devswha
    OwnerAuthor

    Reposted with a private address removed; originally posted by @devswha on 2026-09-29.

    UI direction — backlog proposal

    Keep this issue as a future web UI enhancement; implementation is deferred for now.

    Confirmed that herdr 0.9.0 already exposes worktree listing, creation, opening and removal through its CLI and socket API. The proposed UI would call those existing operations.

    The interactive mockup explores the following flow:

    • Group branch-backed workspaces under their source repository in the existing sidebar. Selecting one opens its task session.
    • New Worktree asks for a branch name and base branch, previews the configured destination, then creates and opens a terminal workspace.
    • Show existing, closed worktrees separately with an Open action.
    • Keep Close workspace and Delete worktree as distinct menu actions. Closing preserves the checkout and branch; deleting removes the checkout while keeping the branch.
    • If ordinary removal is refused because of uncommitted changes, offer a separate force-removal confirmation with an explicit acknowledgement of discarding those changes.
    • On phones, use the existing workspace drawer and a responsive creation dialog.

    Interactive mockup — temporary preview, accessible from the same Tailscale network. All actions operate on sample state.

    The mockup was checked in Chromium at desktop and 320 px widths, with light and dark themes, including creation, reopening, closing, branch validation and the two-stage dirty-checkout deletion flow.

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