Skip to content

kit: Update GPUI to gpui-pre 0.3.6 - #3147

Merged
huacnlee merged 2 commits into
mainfrom
gpui-pre-0.3.6
Sep 21, 2026
Merged

huacnlee merged 2 commits into
mainfrom
gpui-pre-0.3.6

Conversation

@huacnlee

Copy link
Copy Markdown
Member

Summary

  • Bumps the gpui-pre-* dependencies from 0.3.5 to 0.3.6, published from Zed 395def7a067b32ed598fcb3f048969ada9b54942 by the Release GPUI workflow on 2026-09-21 (first run after gpui-pre: Inject staged crates as git dependencies in the kit check #3146 fixed the kit check).
  • Adapts crates/component/src/inspector.rs to Zed's new App::register_inspector_element, which now takes a per-window factory that returns the renderer. The DivInspector is created inside that factory instead of being cached in a OnceCell, following Zed's own inspector_ui.

The Release GPUI workflow ran on this branch with the inspector commit and published 0.3.6, so the repository is known to build and pass its tests against the snapshot.

Test Plan

  • Release GPUI kit check on this branch: cargo check --workspace --all-targets, Clippy and the full test suite against staged 0.3.6 (the run that published it).
  • Locally against the published crates: RUSTFLAGS=-D warnings cargo clippy --workspace --exclude gpui-shell --locked -- --deny warnings (the CI lint command).
  • cargo fmt --check.

Public API

No public API changes.

🤖 Generated with Claude Code

huacnlee and others added 2 commits September 21, 2026 10:49
…ctory

Zed changed `App::register_inspector_element` to take a factory that runs
per window and returns the renderer, so the inspector builds its
`DivInspector` there instead of caching one in a `OnceCell`. This is the
adaptation gpui-pre 0.3.6 needs; the version bump follows once the
snapshot is published.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Zed 395def7a, published by the Release GPUI workflow on 2026-09-21. The
inspector change on this branch is the one adaptation the snapshot needs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@huacnlee
huacnlee merged commit 3f43c80 into main Sep 21, 2026
11 checks passed
@huacnlee
huacnlee deleted the gpui-pre-0.3.6 branch September 21, 2026 03:27
huacnlee added a commit that referenced this pull request Sep 21, 2026
…#3163)

## Summary

gpui-kit 0.6.4 on crates.io declares `gpui-pre ^0.3.5`. The weekly
Release GPUI run published 0.3.6 this morning with a changed
`register_inspector_element` signature, so every fresh build of 0.6.4
now resolves 0.3.6 and fails with E0593 in gpui-component's
`inspector.rs` (#3156). Main was already adapted to 0.3.6 in #3147; only
the published crates are broken, because they carry the workspace
requirement to crates.io verbatim.

- Pin every `gpui-pre-*` snapshot crate (and the hand-published
`gpui-pre-reqwest`) with `=x.y.z` in the workspace `Cargo.toml`, so a
gpui-kit release keeps resolving the snapshot it was tested with and a
new snapshot only reaches applications through a release that bumps the
pin.
- Add `script/check-gpui-pin.ts` (Bun), run in the CI `checks` job. It
fails on a requirement that is not exact, on snapshot crates pinned to
more than one version, and on a manifest with no snapshot dependency at
all.
- Teach `bump-gpui.ts`'s kit check to move the workspace pins onto the
staged version for the duration of the check, since a `[patch]` only
applies to a source that satisfies the requirement, and to restore
`Cargo.toml` afterwards. The rewrite is covered by `--self-test`.
- Document the pin policy and the bump procedure in `CONTRIBUTING.md`,
which still described publication as paused on an incompatible snapshot
(it publishes either way since #3148).

`Cargo.lock` is unchanged: it already resolves 0.3.6.

A 0.6.5 release from `main` is what fixes crates.io users; until then
0.6.4 builds with `cargo update -p gpui-pre -p gpui-pre-platform -p
gpui-pre-web -p gpui-pre-macros -p gpui-pre-sum-tree -p
gpui-pre-reqwest-client --precise 0.3.5`.

Closes #3156

## Test Plan

- `bun script/check-gpui-pin.ts` passes on the repository manifest and
fails on fixtures with caret requirements, mixed snapshot versions, and
no snapshot dependency
- `bun script/bump-gpui.ts --self-test`
- `cargo metadata --locked` and `cargo check -p gpui-kit --locked`
(lockfile unchanged)
- `typos`, `git diff --check`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.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