Files
zed/crates/git_ui/Cargo.toml
T
이대희 1043f4a86a git_ui: Add commit message model picker (#50674)
## Summary

Reworked per review to reuse the shared `LanguageModelSelector` instead
of a custom dropdown.

- The generate-commit-message button is now a split button: the primary
click generates, the chevron opens the same picker the Agent Panel uses
and saves to `agent.commit_message_model`.
- The picker lives in a new `language_model_selector` crate, moved out
of `agent_ui`, so `git_ui` can use it without a feature-crate dependency
the workspace forbids. `agent_ui` re-exports the moved items.
- The chevron stays enabled with no model configured, so a model can be
picked from there.

## Verification

- `cargo test` and `./script/clippy` pass for `language_model_selector`,
`agent_ui`, `git_ui`, `settings_content`, and `xtask`, including the
workspace dependency-direction test.
- Clicked through a debug build on Linux (NVIDIA GPU) with a real model
behind an OpenAI-compatible endpoint: the picker opens, searches, and
persists the selection; generating streams a message into the commit
editor in both the Git Panel and the commit modal; with no provider
configured, generate is disabled and the chevron still opens the picker.

### Showcase


https://github.com/user-attachments/assets/23812839-6d95-4167-b437-af7976655423

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

Release Notes:

- Improved the Git Panel's commit editor with a picker that allows
selecting the model to be used for commit message generation.

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: dino <dinojoaocosta@gmail.com>
2026-11-18 13:23:57 +00:00

102 lines
2.7 KiB
TOML

[package]
name = "git_ui"
version = "0.1.0"
edition.workspace = true
publish.workspace = true
license = "GPL-3.0-or-later"
[lints]
workspace = true
[lib]
name = "git_ui"
path = "src/git_ui.rs"
doctest = false
[features]
test-support = ["multi_buffer/test-support", "remote_connection/test-support"]
call = ["dep:call"]
[dependencies]
agent_settings.workspace = true
anyhow.workspace = true
askpass.workspace = true
async-channel.workspace = true
buffer_diff.workspace = true
call = { workspace = true, optional = true }
client.workspace = true
collections.workspace = true
component.workspace = true
db.workspace = true
editor.workspace = true
file_icons.workspace = true
futures-lite.workspace = true
futures.workspace = true
fuzzy.workspace = true
fuzzy_nucleo.workspace = true
git.workspace = true
gpui.workspace = true
itertools.workspace = true
language.workspace = true
language_model.workspace = true
language_model_selector.workspace = true
log.workspace = true
markdown.workspace = true
menu.workspace = true
multi_buffer.workspace = true
notifications.workspace = true
picker.workspace = true
project.workspace = true
prompt_store.workspace = true
rand.workspace = true
release_channel.workspace = true
remote_connection.workspace = true
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
settings.workspace = true
smallvec.workspace = true
strum.workspace = true
sysinfo.workspace = true
task.workspace = true
telemetry.workspace = true
terminal.workspace = true
theme.workspace = true
theme_settings.workspace = true
time.workspace = true
time_format.workspace = true
tracing.workspace = true
ui.workspace = true
ui_input.workspace = true
unicode-width.workspace = true
util.workspace = true
watch.workspace = true
workspace.workspace = true
git_ui_core.workspace = true
zed_actions.workspace = true
ztracing.workspace = true
[dev-dependencies]
ctor.workspace = true
db = { workspace = true, features = ["test-support"] }
editor = { workspace = true, features = ["test-support"] }
fs = { workspace = true, features = ["test-support"] }
git = { workspace = true, features = ["test-support"] }
gpui = { workspace = true, features = ["test-support"] }
indoc.workspace = true
language = { workspace = true, features = ["test-support"] }
pretty_assertions.workspace = true
project = { workspace = true, features = ["test-support"] }
rand.workspace = true
remote_connection = { workspace = true, features = ["test-support"] }
search.workspace = true
settings = { workspace = true, features = ["test-support"] }
task.workspace = true
tree-sitter-md.workspace = true
unindent.workspace = true
workspace = { workspace = true, features = ["test-support"] }
zlog.workspace = true
[package.metadata.cargo-shear]
ignored = ["component", "remote_connection", "tracing"]