Skip to content

refactor: extract aether-client-core from wisp - #634

Merged
jcarver989 merged 6 commits into
refactor/clankerdiff-lspdfrom
refactor/client-core
Oct 29, 2026
Merged

jcarver989 merged 6 commits into
refactor/clankerdiff-lspdfrom
refactor/client-core

Conversation

@jcarver989

@jcarver989 jcarver989 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR moves the ACP session logic out of wisp into a new UI-agnostic crate, aether-client-core. A second frontend (the desktop app, in the next PR) can then reuse it instead of copying wisp's internals.

Second of three stacked PRs. It is based on #633.

Changes

  • clankerdiff 0.8. Diff scopes are now diff targets, and the review state gains LSP-backed lookups. The acp_git_diff test is updated for the protocol rename.
  • acp-utils additions for frontends.
    • Notices carry an info/error level.
    • Compaction is reported as Activity::Compacting instead of a separate is_compacting() flag.
    • ToolCall gains headline() and changed_paths().
    • websocket::connect maps a 409 handshake to ConnectError::Occupied.
    • Agents advertise AetherCapabilities::git_diff.
  • FakeAgent holds any request type. hold::<T>() and held::<T>() replace the per-request hold_config / hold_list_sessions flags and channels.
  • aether-client-core. It holds the connection, the ACP event reducer, the session config and model views, the git review runtime, the composer (attachments, file index, completion tokens, prompt history and search, submission) and elicitation forms. It also has its own test suite, including the real-vs-fake git contract tests that used to live in wisp.
  • wisp runs on client-core. Wisp's UI reads session state from client-core instead of owning it, and wisp hosts the clankerdiff LSP daemon so diff review lookups work. The internal modules are now plain pub modules instead of being gated behind the testing feature with a macro. The TUI test suite drives wisp through client-core's fakes.

Breaking changes

  • acp-utils: ConversationContent::Notice holds a Notice { level, text }, and Conversation::append_notice takes a NoticeLevel. Conversation::is_compacting() is replaced by Activity::Compacting.
  • acp-utils testing: the FakeAgent hold flags and their request channels are replaced by hold::<T>() and held::<T>().
  • Browser package: conversation snapshots no longer include compacting, and a notice's content is an object with level and text.
  • wisp::Session and wisp::run_with_session are removed. Use client_core::connection::Connection instead.

0.8 replaces diff scopes with diff targets and adds LSP-backed lookups
to the review state, which the client-core extraction builds on.
- Notices carry an info/error level
- Compaction is reported as `Activity::Compacting` instead of a
  separate flag
- ToolCall exposes its headline and changed paths
- `websocket::connect` maps a 409 handshake to `ConnectError::Occupied`
- Agents advertise git diff support via `AetherCapabilities::git_diff`
- FakeAgent holds any request type with `hold::<T>()` instead of
  per-request flags
Introduces aether-client-core, a UI-agnostic home for the ACP session
state that wisp owned: connecting to an agent, reducing ACP events into
session state, session config and model views, and the git review
runtime. This lets a second frontend (the desktop app) share it.
Moves prompt composition (attachments, file index, completion tokens,
prompt history and search, submission) and elicitation form state out
of wisp so both frontends compose prompts and answer elicitations the
same way.
Wisp now drives its UI from client-core's session state and runtime
instead of owning them, and hosts the clankerdiff LSP daemon so diff
review lookups work. The internal modules are public rather than
gated behind the `testing` feature.
Session, runtime and git contract tests now live in client-core; the
TUI suite drives wisp through client-core's fakes.
@jcarver989
jcarver989 force-pushed the refactor/client-core branch from ed83438 to a0c0efc Compare October 29, 2026 23:38
@jcarver989
jcarver989 enabled stacked auto-merge (squash) October 29, 2026 23:39
stacked auto-merge was automatically disabled October 29, 2026 23:46

Replaced by a newer auto-merge request

@jcarver989
jcarver989 enabled stacked auto-merge (squash) October 29, 2026 23:46
@jcarver989
jcarver989 merged commit e46a118 into main Oct 29, 2026
23 of 25 checks passed
@jcarver989
jcarver989 deleted the refactor/client-core branch October 29, 2026 23:51
jcarver989 added a commit that referenced this pull request Nov 2, 2026
## Why

The `Wasm` check has been failing (shown as **Cancelled**) on `main` and
every open PR since #634.

The `FakeAgent` rewrite in #634 changed two behaviors the browser wasm
tests depend on:

1. **User message ids are numbered per prompt** (`user-message-1`,
`user-message-2`, ...). The tests still expected a fixed
`"user-message"`, and every elicitation test asserts on it through
`expect_turn_start()`, so 6 tests failed.
2. **Prompts sent mid-turn wait until the turn ends.**
`a_prompt_during_a_turn_is_sent_to_the_agent` sent a second prompt while
an elicitation was still unanswered. That prompt never resolved, and
wasm-bindgen-test has no per-test timeout, so the runner hung until the
job's 20-minute `timeout-minutes` cancelled it. The hang also stopped
the failure details from ever printing.

## Changes

- Expect the numbered message ids in
`packages/aether-browser/tests/client.rs`.
- In the mid-turn prompt test, answer the elicitation so the turn ends,
then assert that the waiting prompt resolves as `user-message-2`.
- Give the `Check and test wasm` CI step its own `timeout-minutes: 10`,
so a hung test should fail that step instead of cancelling the job.

## Testing

- `just wasm-check wasm-test` passes locally: 27 passed, 0 failed
(0.19s).
- The step-timeout behavior hasn't been tested yet.
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