Skip to content

feat(desktop): browse repository files and open where tools worked - #637

Merged
jcarver989 merged 16 commits into
mainfrom
feat/desktop-file-viewer
Nov 2, 2026
Merged

jcarver989 merged 16 commits into
mainfrom
feat/desktop-file-viewer

Conversation

@jcarver989

Copy link
Copy Markdown
Contributor

Turns the desktop Changes tab into a Files tab that browses every file in the thread's repository, not just the changed ones. Two new ways to open a file:

  • ⌘P file picker: fuzzy-find any repository file and open it in the Files tab. It opens in the diff if the file changed, read-only otherwise.
  • Tool location links: a tool card's summary links to the file and line the tool read or edited.

Because the file list comes from the diff server and not this machine's filesystem, cloud threads get the same features. @-mentions in wisp and desktop now use the same list.

Commits

Each commit passes the tests on its own, so you can review them one at a time:

  1. chore(deps): bump clankerdiff to 0.8.2: also renames AcpTransport → Channel. 0.8.2 lists the worktree's files and opens a clean repo in browse mode.
  2. feat: report the file and line each file tool works on: read_file, write_file and edit_file attach locations, and the ACP bridge forwards them.
  3. feat(client-core): list the repository's files from the git review: adds SessionCore::files. FakeGit's diff server now publishes file lists and answers source lookups.
  4. refactor(wisp): complete @-mentions from the git review's file listing
  5. refactor(desktop): complete @-mentions from the git review's file listing: drops both working-tree walkers and the ignore dependency.
  6. refactor(desktop): rename the Changes tab to Files
  7. refactor(desktop): show one modal at a time
  8. feat(desktop): open any repository file with secondary-p
  9. feat(desktop): open the file and line a tool worked on from the transcript
  10. feat: link a remote agent's own files in @-mentions: a remote agent gets a file:// resource link to a file in its own checkout. Its contents are not read on this machine.
  11. feat: review a remote's diff over its diff command's stdio or WebSocket: for remotes whose agent doesn't serve its own diff, e.g. remote exec ${ID} clankerdiff serve --stdio.

Testing

  • just lint is clean.
  • cargo nextest run passes for desktop, client-core, wisp, utils, acp-utils, aether-cli and mcp-servers: 1,559 tests.

Pinning sidebar threads isn't needed. Dropping it removes the saved pinned set, the Pin/Unpin row actions, and the special cases that kept pinned threads at the top of their project, listed past the one-week cutoff, and exempt from archive inactive.
Its model has no credentials in desktop Docker containers, so every new
session there failed with `Invalid params`.
0.8.2 renames remote `AcpTransport` to `Channel`, lists the worktree's
files after a diff is opened, and starts a clean repository in browse
mode, so the clean-tree test switches to the diff before asserting.
read_file, write_file and edit_file attach `locations` to their display
meta (an edit starts at its first changed line), and the ACP bridge
forwards them as tool call locations so clients can link to them.
`SessionCore::files` exposes the worktree listing the diff server
publishes, so clients complete and browse the files of whichever
repository the review reads, local or not. `ensure_git_review` opens a
review on demand for clients that only want the listing.

FakeGit's diff server now publishes listings as the worktree changes
and answers source lookups, mirroring the real server.
The file picker reads the listing the diff server publishes instead of
walking the working tree on the host, so the TUI no longer needs its
own `IndexFiles` host command.
…ting

The composer reads the thread's listing instead of a global FileIndex
that walked the working tree, which drops the last user of
`client_core::composer::file_index` and the `ignore` dependency.
With 0.8.2 the viewer browses every repository file, not only the
changed ones, so the tab, its action and its menu item follow. The tab
keeps counting changed files, and its empty state now explains why the
listing isn't available yet.
The switcher and settings share a single modal slot with one close
path, so opening one while another is up is a no-op and every modal
returns focus to the selected thread the same way.
A file picker over the thread's listing opens the chosen file in the
Files tab: in the diff when it changed, read-only otherwise. It works
for cloud threads too, since the listing comes from the diff server
rather than this machine's filesystem.
…cript

A tool card's summary links to its first location. Clicking it opens
that line in the Files tab, in the diff when the file changed, without
unfolding the card. A location outside the thread's repository reports
why it can't be opened instead.
Now that the listing comes from the agent's checkout, a cloud thread
can mention its files, but they aren't on this machine to read.
Attachments now record whether they came from this machine or from the
agent's workspace, and a remote agent gets a `file://` resource link to
its own file instead of contents read here.

A static remote whose `acp.cwd` names its checkout is now opened as a
remote workspace, and wisp no longer blocks @-completion there.
Remotes can declare a `diff` channel for agents that don't serve their
own diff, e.g. `remote exec ${ID} clankerdiff serve --stdio`. A stdio
channel runs the command and speaks the diff protocol over its
stdin/stdout; a WebSocket channel runs it for an endpoint to connect to.
The connector now resolves a thread's whole `ReviewSource` rather than
only an agent's WebSocket endpoint.
@jcarver989
jcarver989 force-pushed the feat/desktop-file-viewer branch from ab4b161 to 2b8f76d Compare October 31, 2026 05:43
@jcarver989
jcarver989 marked this pull request as draft October 31, 2026 05:59
The stdio review's `tokio::process::Child` is larger on Linux, pushing
`Review::Open` past clippy's `large_enum_variant` threshold there.
@jcarver989
jcarver989 marked this pull request as ready for review October 31, 2026 06:03
@jcarver989
jcarver989 marked this pull request as draft November 1, 2026 11:55
@jcarver989
jcarver989 marked this pull request as ready for review November 1, 2026 11:55
@jcarver989
jcarver989 marked this pull request as draft November 1, 2026 13:39
@jcarver989
jcarver989 marked this pull request as ready for review November 1, 2026 13:39
@jcarver989
jcarver989 marked this pull request as draft November 2, 2026 18:47
@jcarver989
jcarver989 marked this pull request as ready for review November 2, 2026 18:47
The file picker lists one thread's files, but opened the chosen path in
whichever thread was selected on click. Switching threads with
secondary-] while the picker was open opened the path in the wrong
repository. The picker now opens the file in its own thread and selects
that thread.
@contextbridge contextbridge deleted a comment from clankerboi Bot Nov 2, 2026
@jcarver989
jcarver989 marked this pull request as draft November 2, 2026 20:53
@jcarver989
jcarver989 marked this pull request as ready for review November 2, 2026 20:53

@clankerboi clankerboi Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approve: no obvious bugs found in the reviewed diff. The file browsing, tool-location links, remote attachments, and stdio diff transport changes have regression coverage, and all CI checks passed (2,559 Rust tests). No AWS infrastructure, database schema, or HTTP endpoint changes are included.

@jcarver989
jcarver989 merged commit 10cfdec into main Nov 2, 2026
16 checks passed
@jcarver989
jcarver989 deleted the feat/desktop-file-viewer branch November 2, 2026 22:42
jcarver989 pushed a commit that referenced this pull request Nov 3, 2026
## 🤖 New release

* `aether-utils`: 0.3.0 -> 0.3.1
* `aether-llm-codegen`: 0.2.34 -> 0.2.35
* `aether-llm`: 0.9.18 -> 0.9.19
* `aether-acp-utils`: 0.5.18 -> 0.5.19
* `aether-agent-core`: 0.9.9 -> 0.9.10
* `aether-project`: 0.5.63 -> 0.5.64
* `aether-sessions`: 0.3.18 -> 0.3.19
* `aether-mcp-servers`: 0.8.9 -> 0.8.10
* `aether-client-core`: 0.0.1 -> 0.1.0
* `aether-wisp`: 0.7.19 -> 0.7.20
* `aether-agent-cli`: 0.9.20 -> 0.9.21
* `aether-schemas`: 0.3.0 -> 0.3.1
* `aether-auth`: 0.1.20 -> 0.1.21
* `aether-mcp-utils`: 0.7.16 -> 0.7.17
* `aether-telemetry`: 0.3.18 -> 0.3.19
* `aether-evals`: 0.5.0 -> 0.5.1

<details><summary><i><b>Changelog</b></i></summary><p>

## `aether-utils`

<blockquote>

##
[0.3.1](aether-utils-v0.3.0...aether-utils-v0.3.1)
- 2026-11-03

### Added

- *(desktop)* browse repository files and open where tools worked
([#637](#637))
- add aether-desktop gpui client
([#635](#635))
</blockquote>

## `aether-llm-codegen`

<blockquote>

##
[0.2.35](aether-llm-codegen-v0.2.34...aether-llm-codegen-v0.2.35)
- 2026-11-03

### Added

- add gpt-6.1-terra to codex subscription models
([#642](#642))
</blockquote>

## `aether-llm`

<blockquote>

##
[0.9.19](aether-llm-v0.9.18...aether-llm-v0.9.19)
- 2026-11-03

### Added

- add gpt-6.1-terra to codex subscription models
([#642](#642))
- ACP native subagents
([#627](#627))

### Other

- Update models
([#638](#638))
- Update models
([#628](#628))
</blockquote>

## `aether-acp-utils`

<blockquote>

##
[0.5.19](aether-acp-utils-v0.5.18...aether-acp-utils-v0.5.19)
- 2026-11-03

### Added

- *(desktop)* browse repository files and open where tools worked
([#637](#637))
- ACP native subagents
([#627](#627))

### Other

- extract aether-client-core from wisp
([#634](#634))
</blockquote>

## `aether-agent-core`

<blockquote>

##
[0.9.10](aether-agent-core-v0.9.9...aether-agent-core-v0.9.10)
- 2026-11-03

### Added

- ACP native subagents
([#627](#627))
</blockquote>

## `aether-project`

<blockquote>

##
[0.5.64](aether-project-v0.5.63...aether-project-v0.5.64)
- 2026-11-03

### Other

- update Cargo.toml dependencies
</blockquote>

## `aether-sessions`

<blockquote>

##
[0.3.19](aether-sessions-v0.3.18...aether-sessions-v0.3.19)
- 2026-11-03

### Added

- add aether-desktop gpui client
([#635](#635))
- ACP native subagents
([#627](#627))
</blockquote>

## `aether-mcp-servers`

<blockquote>

##
[0.8.10](aether-mcp-servers-v0.8.9...aether-mcp-servers-v0.8.10)
- 2026-11-03

### Added

- add gpt-6.1-terra to codex subscription models
([#642](#642))
- *(desktop)* browse repository files and open where tools worked
([#637](#637))
- ACP native subagents
([#627](#627))

### Other

- replace aether-lspd with clankerdiff-lspd
([#633](#633))
</blockquote>

## `aether-client-core`

<blockquote>

##
[0.1.0](aether-client-core-v0.0.1...aether-client-core-v0.1.0)
- 2026-11-03

### Added

- *(desktop)* browse repository files and open where tools worked
([#637](#637))

### Other

- extract aether-client-core from wisp
([#634](#634))
</blockquote>

## `aether-wisp`

<blockquote>

##
[0.7.20](aether-wisp-v0.7.19...aether-wisp-v0.7.20)
- 2026-11-03

### Added

- *(desktop)* browse repository files and open where tools worked
([#637](#637))
- ACP native subagents
([#627](#627))

### Other

- extract aether-client-core from wisp
([#634](#634))
</blockquote>

## `aether-agent-cli`

<blockquote>

##
[0.9.21](aether-agent-cli-v0.9.20...aether-agent-cli-v0.9.21)
- 2026-11-03

### Added

- add gpt-6.1-terra to codex subscription models
([#642](#642))
- *(desktop)* browse repository files and open where tools worked
([#637](#637))
- ACP native subagents
([#627](#627))

### Other

- extract aether-client-core from wisp
([#634](#634))
- replace aether-lspd with clankerdiff-lspd
([#633](#633))
</blockquote>

## `aether-schemas`

<blockquote>

##
[0.3.1](aether-schemas-v0.3.0...aether-schemas-v0.3.1)
- 2026-11-03

### Other

- update Cargo.lock dependencies
</blockquote>

## `aether-auth`

<blockquote>

##
[0.1.21](aether-auth-v0.1.20...aether-auth-v0.1.21)
- 2026-11-03

### Other

- updated the following local packages: aether-utils
</blockquote>

## `aether-mcp-utils`

<blockquote>

##
[0.7.17](aether-mcp-utils-v0.7.16...aether-mcp-utils-v0.7.17)
- 2026-11-03

### Other

- updated the following local packages: aether-utils, aether-auth
</blockquote>

## `aether-telemetry`

<blockquote>

##
[0.3.19](aether-telemetry-v0.3.18...aether-telemetry-v0.3.19)
- 2026-11-03

### Other

- updated the following local packages: aether-utils, aether-llm,
aether-agent-core
</blockquote>

## `aether-evals`

<blockquote>

##
[0.5.1](aether-evals-v0.5.0...aether-evals-v0.5.1)
- 2026-11-03

### Other

- updated the following local packages: aether-utils, aether-llm,
aether-agent-core
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: contextbridge-pr-automation[bot] <259134118+contextbridge-pr-automation[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant