Skip to content

[Feature]: Desktop: an IDE-grade project tree, worktree manager and git history #186

Backlog

Description

@magicprinc

Problem The Desktop app is good at holding a conversation and poor at holding a project. Three surfaces are missing that every IDE treats as table stakes, and they are missing together, which is why the app cannot replace one for reading and navigating a codebase: 1. A project tree. The Files pane is tied to an active session and its workspace; there is no persistent tree for the project itself, independent of any conversation. 2. A worktree manager. Worktrees exist as a session detail (a session can be started in an isolated worktree), but there is no list where they are seen, created, removed or opened. 3. Git history. There is no commit log in the app: no graph, no per-commit file list, no way to open a commit's diff or act on it (checkout, branch from here, cherry-pick, revert). The only way to see history is to leave the app for a terminal. Checked against the shipped 0.1.63 bundle: no git log, commitGraph or commit-history view exists. For clarity about two near-misses: the gitlens.* strings in the bundle are colour keys inside a bundled VS Code theme (gruvbox-light-soft-*.js), and the gitGraph code is Mermaid's gitGraph diagram renderer (gitGraphDiagram-*.js, detected by /^\s*gitGraph/). Neither is a history surface, and no GitLens extension is present. ### Proposal — with IntelliJ IDEA Community as the reference - Project tool window: a persistent tree of the whole project, independent of any session; expand/collapse with remembered state; file icons by type; multi-select; a context menu with New file/folder, Rename, Delete, Copy path, Reveal, Open in editor/terminal, Compare with…; a filter box; and a visible link to "the file the agent just touched", so the tree follows the conversation instead of ignoring it. - Git tool window / log: commits newest first with a lane graph, branch and tag badges, the changed files of the selected commit, and the diff inline or in an external tool. Recent actions: checkout, new branch here, cherry-pick, revert, copy hash, and "open the pull request" when a remote is configured. - Worktrees as first-class objects: a list with path, branch, dirty state and the sessions running in each; create (from a branch, a PR, or a new branch), remove with a guard when dirty, prune merged ones; and "open a session here" as one click. ### Why one issue The three are one experience: a file is found in the tree, its history is read in the log, and the worktree where the work happens is one click away. Shipping them as three unrelated panes with three different mental models would reproduce the current problem — each exists, none of them adds up to a project. If it is easier to review, split it into three deliverables; the acceptance criteria below are already written per surface. ### Acceptance criteria Project tree - The tree shows the project even with no session open, and survives a restart with expansion state. - Right-click offers copy path, reveal and open-in-terminal, and the reveal selects the file in Explorer. - Manual refresh picks up files created by the agent. Git log - The log lists commits with a graph, shows the changed files of the selected commit, and opens its diff. - Copy hash, checkout and branch-from-here work on the selected commit. Worktrees - The list shows path, branch and dirty state; create and remove work, and remove refuses on a dirty worktree unless forced. - "Open a session here" starts a session in that worktree. ### Environment Command Code Desktop 0.1.63, Windows 10 (build 19045) x64.

Activity

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