# NousResearch/hermes-agent · Desktop /worktree runs in wrong directory bug

## Open now

- 1 issue, 1 PR open on GitHub.
- #102268: \[Bug\]: Desktop offers /worktree but it runs in the gateway's cwd — no-op or creates the worktree in the wrong repo; session never moves
- PR #129959: fix(tui_gateway): run the slash worker in the session's cwd so /worktree works from Desktop

A bug where the /worktree command issued from Desktop executes in the gateway's working directory rather than the session's project directory. The members cover the bug report and two candidate fixes targeting different layers of the stack.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #102268: \[Bug\]: Desktop offers /worktree but it runs in the gateway's cwd — no-op or creates the worktree in the wrong repo; session never moves

## Prior & competing PRs

- **#102379: fix(desktop): run /worktree in the session project cwd**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#129959`
- **#129959: fix(tui_gateway): run the slash worker in the session's cwd so /worktree works from Desktop**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `af92ea8e5b852518c523c3e8b2cbd95f0f3d79dc`, `bf68919dca876c221d2113f904847a2cb3abc533`, `e27448b231498e79ade668d68c0b6c6206951206`, `#129959`
  - files: `tests/tui_gateway/test_slash_worker_provider.py`, `tests/tui_gateway/test_slash_worktree_session_cwd.py`, `tui_gateway/methods_slash.py`, `tui_gateway/methods_tools.py`, `tui_gateway/server.py`

## Fix status

- No merged fix on record.
- Subsystem: `apps/desktop`
