为gpui-kit打分
给出您宝贵的评分:
手机端可长按图片保存,分享到朋友圈 / 社群
使用 gpui-kit,你可以:
基于 Rust 与 GPUI 的 GUI 组件库,用于开发体验出色的跨平台桌面客户端程序。
用户评论 (0)
2025年11月15日
2026年09月08日
2026年05月03日
2026年01月04日
2026年01月02日
2025年03月26日
2026年11月06日
2026年10月24日
2026年10月16日
2026年10月16日
2026年09月27日
v0.11.0
2026年11月23日
GPUI Kit v0.11.0
GPUI Kit 0.11.0 is a minor release. It moves to gpui-pre 0.3.14 and GPUI Fast 0.1.19, makes the Linux X11 backend an optional default feature, replaces chrono with jiff in the date and time components, and brings a long run of editor, Markdown, diff and accessibility work. The X11 feature, the jiff types and the upstream GPUI API changes are breaking, so this is a minor release.
Breaking Changes
- Linux X11 is a feature:
gpui-kit/x11is now a default feature. Apps that turn off the defaults and still run on X11 must ask for it; Wayland-only apps no longer linklibxkbcommon-x11. (#4060)- gpui-kit = { version = "0.10", default-features = false } + gpui-kit = { version = "0.11", default-features = false, features = ["x11"] }
- Calendar, DatePicker, TimeField use jiff:
Date,Matcher,CalendarStateandTimeFieldStatetakejiff::civil::Date/Timeinstead of chrono types, socargo denyno longer flags the unmaintainedchrono(RUSTSEC-2026-0543). Format strings are unchanged. (#4015) - Upstream GPUI: gpui-pre now also gives every
Elementa blanketIntoElement, so drop your ownimpl IntoElementon element types on both backends.Pathis no longer generic,WindowBounds::centeredtakesOption<DisplayId>, andFillOptions::toleranceis gone. (#4092)
New APIs
- Input: a suggestion list under the field like
<input list>; publicfold_all,unfold_all,fold_at_levelandset_folded. (#3785, #4028) - Editor:
GutterStylefor the line-number gap, color and font; show the active line only while focused. (#3737, #4067) - Diff:
span_highlightsfor character spans, the character under the pointer for hosting links, and partial files at their own line numbers. (#4011, #4042, #4043) - Components: resizable handle drag state,
SelectableTextrange reveal, a left-side vertical scrollbar, and aDockSkinoption to hide the resting split divider. (#4039, #4052, #4078, #4084) - Shell:
PluginManager::with_host_module. (#3948)
Editor and text input
- Faster soft wrap for large and non-ASCII documents; f64 vertical coordinates past 2^24 px and 9-digit line numbers; clip text to its side of the gutter. (#3974, #4022, #4077)
- End IME composition on blur, redact IME surrounding text in masked inputs, report the document length so the iOS keyboard shows. (#4032, #4059, #4082)
- Ctrl+Delete stops at white space and line breaks; a single-line input drops tabs like newlines; each paragraph of a text area starts at the edge it reads from; the input text takes the theme foreground. (#4034, #4071, #4016, #4051)
- Less accessibility text-run memory on large documents. (#4090)
Markdown and text rendering
- Inline flows lay out once in a shrinking bubble and wrap without rescanning the paragraph; inline-code paragraphs keep their text between frames; closing marks stay on the word's line. (#4029, #4058, #4063, #4087)
- Show Markdown as plain text if the parser panics; stop sweeping retained layouts that are all alive; select a wrapped row's first character; share linked-image clicks; expose the rendered body to the accessibility tree. (#4013, #4000, #4012, #4053, #4056, #4054)
- Highlighter injection layers follow the caller's parse timeout. (#4074)
Components
- Diff: file headers and annotation cards stay in the viewport while scrolling horizontally. (#3996, #4009)
- Dialog, Notification, Popover, Root: the backdrop stays inside the client frame; notifications sit above modal layers; a controlled popover moves focus after the frame; Tab works before anything is focused. (#4049, #3577, #4023, #4017)
- Menu, Scrollbar, Table, Tabs, Resizable: no scrollbar on a menu that fits; only the primary button drags the track;
set_selected_*no longer scrolls; Tabs focus on pointer down; resizing skips hidden panels. (#4014, #4038, #4046, #4002, #4064) - Title bar, Kbd, Motion, Icon, Button: follow Linux window button layouts; shifted-symbol shortcuts on Windows; a closed
Presencereports Absent; warn once for a missing icon path; expose the expanded state. (#4018, #3993, #4062, #4075, #4035) - WebView: no gaps at fractional sizes on macOS, clip partly visible WebViews on Windows. (#4065, #4066)
Docs and tooling
- A Claude Code plugin for the GPUI Kit skills, fixed guide links in the standalone skills, a fuller zh-CN List guide, and the right canvas size for web examples in Firefox. (#4089, #4088, #4030, #4045, #4048, #4047)
Dependencies
- gpui-pre 0.3.14 and GPUI Fast 0.1.19 (via 0.1.17);
chronoreplaced byjiff1.0; Cargo.lock updated for 8 RustSec advisories; unusedanyhowremoved. (#4027, #4092, #4015, #4080, #4081)
Contributors
Thank you to everyone who contributed to this release
@huacnlee, @dux-web, @lurenjia534, @sassman, @bcl-dev, @hlcfan, @iam4x, @ylinwind, @ketansingrole, @ManasDasri, @Abdulrahman-AlGhamdi, @HappyFox001, @madcodelife, @jeeeeetshahhhhh, @byht1, @TheVSAKeeper, @yuluod, @costajohnt, @leonmarq, @sator-imaging, @bhavishyasharma, @iamichi, @subhdotsol, @wangdiandao, @superoskin, @peterdpong, @wyattjoh, @mwatts, @PeatBoy, @erenatas, @webmalex, @jowch, @glani, @HarpeLm.
What's Changed
- notification: Keep notifications above modal layers by @dux-web in #3577
- text: Stop sweeping retained layouts that are all alive by @lurenjia534 in #4000
- diff: Keep file headers inside the viewport under horizontal scrolling by @sassman in #3996
- kbd: Show a shifted-symbol shortcut as bound on Windows by @bcl-dev in #3993
- diff: Keep line annotation cards inside the viewport under horizontal scrolling by @sassman in #4009
- shell: Fix command_host second-draw test by @huacnlee in #4003
- diff: Add
span_highlightsto emphasize character spans such as search matches by @sassman in #4011 - editor: Speed up soft wrap for large and non-ASCII documents by @hlcfan in #3974
- tabs: Focus the roving handle on pointer down by @huacnlee in #4002
- text: Select a wrapped row's first character by @iam4x in #4012
- menu: Stop a scrollable menu that fits from showing a scrollbar by @ylinwind in #4014
- text: Show Markdown as plain text when the parser panics by @huacnlee in #4013
- calendar: Replace chrono with jiff by @ketansingrole in #4015
- titlebar: Follow Linux window button layouts by @ManasDasri in #4018
- input: Start each paragraph of a text area at the edge it reads from by @Abdulrahman-AlGhamdi in #4016
- root: Make Tab work before anything is focused by @HappyFox001 in #4017
- popover: Move focus after the frame when a controlled popover syncs open by @HappyFox001 in #4023
- docs: Use ListState in the zh-CN List guide's delegate examples by @lurenjia534 in #4030
- gpui: Upgrade to gpui-fast 0.1.17 by @madcodelife in #4027
- text: Lay an inline flow out once in a bubble that shrinks to its text by @lurenjia534 in #4029
- fix(input): end IME composition on blur by @jeeeeetshahhhhh in #4032
- input: public fold_all, unfold_all, fold_at_level and set_folded by @byht1 in #4028
- editor: Preserve f64 vertical coordinates past 2^24 px and allow 9-digit line numbers by @TheVSAKeeper in #4022
- test: Resolve test images synchronously for deterministic layout by @yuluod in #3952
- input: Stop Ctrl+Delete at whitespace and line breaks by @huacnlee in #4034
- button: expose expanded accessibility state by @jeeeeetshahhhhh in #4035
- scrollbar: Only drag or jump the track on the primary button by @costajohnt in #4038
- docs: Translate the missing sections of the zh-CN List guide by @lurenjia534 in #4045
- table: Stop set_selected_* from scrolling the selection into view by @huacnlee in #4046
- website: Correct Firefox canvas size in web examples by @huacnlee in #4047
- docs: Say the List search input needs searchable(true) by @lurenjia534 in #4048
- dialog: Keep the backdrop inside the client frame by @leonmarq in #4049
- editor: Add GutterStyle for line-number gap, color and font by @sator-imaging in #3737
- input: Offer a List under the field, like by @bhavishyasharma in #3785
- resizable: Expose whether a handle is being dragged by @costajohnt in #4039
- text_selection: Reveal the line of a SelectableText range by @iamichi in #4052
- text_view: Share linked image click handling by @iamichi in #4053
- text_view: Expose the rendered body to the accessibility tree by @subhdotsol in #4056
- diff: Report the character under the pointer so a diff can host links by @sassman in #4042
- diff: Show parts of a file for reference at their own line numbers by @sassman in #4043
- text: Wrap each line of an inline flow without rescanning the rest of its paragraph by @lurenjia534 in #4058
- text_selection: Clear the press latch after mouse-down dispatch by @iamichi in #4054
- input: Redact IME surrounding text for masked inputs by @wangdiandao in #4059
- text: Keep the text of a paragraph with inline code between frames by @lurenjia534 in #4063
- webview: Fix gaps at fractional viewport sizes on macOS by @superoskin in #4065
- resizable: Skip hidden panels when resizing by @superoskin in #4064
- fix(motion): Report a Presence that starts closed as Absent instead of Running by @peterdpong in #4062
- editor: Let an editor show its active line only while focused by @wyattjoh in #4067
- input: Drop tabs from a single-line input like newlines by @costajohnt in #4071
- input: Hand the theme foreground to the input's text by @mwatts in #4051
- shell: Add PluginManager::with_host_module by @PeatBoy in #3948
- webview: Clip partially visible WebViews on Windows by @superoskin in #4066
- kit: Make the Linux X11 backend optional by @erenatas in #4060
- input: Align paste tests with single-line tab normalization by @huacnlee in #4079
- icon: Warn once when an icon path does not load by @huacnlee in #4075
- input: Report the document length so the iOS keyboard shows by @webmalex in #4082
- text: Keep closing marks and spaces after a word as wide as the line on its line by @jowch in #4087
- dock: Allow DockSkin to hide the resting split divider line by @huacnlee in #4084
- highlighter: Let injection layers follow the caller's parse timeout by @costajohnt in #4074
- editor: Clip the text to its own side of the gutter by @glani in #4077
- scrollbar: Let the vertical scrollbar sit on the left side by @glani in #4078
- chore(deps): update Cargo.lock for 8 RustSec advisories by @HarpeLm in #4080
- chore: Remove unused anyhow dependencies by @HarpeLm in #4081
- docs: Fix guide links in standalone skills by @huacnlee in #4088
- skills: Add Claude Code plugin by @huacnlee in #4089
- input: Reduce accessibility text run memory on large documents by @huacnlee in #4090
- chore: Bump v0.11.0 by @huacnlee in #4092
New Contributors
- @ketansingrole made their first contribution in #4015
- @ManasDasri made their first contribution in #4018
- @Abdulrahman-AlGhamdi made their first contribution in #4016
- @HappyFox001 made their first contribution in #4017
- @jeeeeetshahhhhh made their first contribution in #4032
- @byht1 made their first contribution in #4028
- @TheVSAKeeper made their first contribution in #4022
- @leonmarq made their first contribution in #4049
- @sator-imaging made their first contribution in #3737
- @iamichi made their first contribution in #4052
- @subhdotsol made their first contribution in #4056
- @peterdpong made their first contribution in #4062
- @wyattjoh made their first contribution in #4067
- @mwatts made their first contribution in #4051
- @PeatBoy made their first contribution in #3948
- @erenatas made their first contribution in #4060
- @webmalex made their first contribution in #4082
- @jowch made their first contribution in #4087
- @HarpeLm made their first contribution in #4080
Full Changelog: v0.10.0...v0.11.0
详细ChangeLogv0.10.0
2026年11月16日
GPUI Kit v0.10.0
GPUI Kit 0.10.0 is a minor release. It moves the optional GPUI Fast backend to 0.1.16, adds global right-to-left layout, an explicit reduced-motion preference, roving keyboard navigation in Tabs, opt-in match highlighting in Select / Combobox / Command, and a long run of input, text, table and accessibility fixes. Two small breaking changes in the input API make this a minor release.
Breaking Changes
- Textarea:
TextareaMode::Extrasis nowTextareaExtrasinstead of(). Only code that names this associated type is affected. (#3970)- type Extras = (); + type Extras = TextareaExtras;
- Input:
EditorState::text_gutter_margin()is replaced bytext_origin_offset() -> Option<Pixels>. (#3765) - GPUI Fast 0.1.16: every
Elementnow getsIntoElementfrom GPUI Fast itself. Apps built on thegpui-fastfeature must drop their ownimpl IntoElement for X { type Element = Self; ... }on element types, or they will not compile. The default gpui-pre backend is unchanged.
New APIs
- Layout: global right-to-left layout direction. (#3886)
- Motion: an explicit reduced-motion preference. (#3881)
- Select, Combobox, Command: opt-in
highlight_matches, with a newlist.highlight.foregroundtheme color. (#3959, #3960) - Input:
set_tokensand text decorations onTextareaState,context_menu_offset, and the editor text origin offset. (#3971, #3970, #3920, #3765) - Table:
TableRow::id,TableRow::hover, andDataTable::scrollbar_mode. (#3907, #3912, #3945) - Text:
TextView::linkto replace or drop links, and an option to keep raw HTML in Markdown as text. (#3743, #3979) - Components:
Checkbox::indeterminate,SidebarGroup::suffix,NumberInputstepper option,Diff::split_ratio,MessageScroller::scroll_to_offset,SelectableTexthighlights, and tooltip anchor offsets. (#3980, #3982, #3748, #3883, #3922, #3929, #3874) - Locales: Japanese. (#3976)
Editor and text input
- Move the caret and delete by grapheme cluster; reveal the caret after a long single-line paste; report a preedit kept by
unmark_textas a change; keep IME candidates on the matching row. (#3887, #3967, #3965, #3939) - Hit-test past the gutter, open completion menus above the caret when they do not fit below, let Copy with no selection reach the window selection, keep the tab indicator inside its tab. (#3921, #3925, #3915, #3983)
- Textarea: no newline on secondary Enter, and no scrolling at fractional scales while auto-growing. (#3879, #3882)
Markdown and text rendering
- Fold white space as HTML does, parse
<pre>as a code block, lay out several images inline, and number list items correctly after a sub-list. (#3949, #3899, #3898, #3876) - Code spans: count oversized insets once per line, keep leading white space beside a fold. (#3972, #3962)
- Selection: triple click selects a line or wrapped paragraph, drag auto-scroll starts at an edge that hides text, a press on a control keeps the selection, a cursor set on
TextViewreplaces the I-beam. (#3930, #3942, #3928, #3951, #3966, #3927, #3964)
Components
- Table: no per-frame redraw of a striped table that does not fill its area, and no per-row cross-axis measure. (#3978, #3868)
- Tooltip: animate width between tooltips, wrap long text within
max_w, show one tooltip when nested in a native.tooltip(). (#3957, #3975, #3896, #3914) - Diff: keep split columns beside a long line, keep the header in view when switching modes, collapse many files in one rebuild. (#3958, #3884, #3935)
- Button: spinner on a loading button without icon, no focus on right/middle press, no hover style while disabled. (#3908, #3924, #3943)
- Select, Popover, Dialog, Dock, Settings, Slider, Attachment, Tabs, Title bar: keep menu height while searching; keep a popover open for clicks in its child popup; offset stacked dialogs by open dialogs only; let the skin size a closed dock; fold the settings page from its title; slider keyboard shortcuts; animated GIF previews; roving Tabs navigation; keep a title-bar click that moves a pixel. (#3944, #3909, #3897, #3931, #3947, #3919, #3903, #3900, #3918)
- Window, WebView, Theme, Native menu: end mouse gestures when the compositor eats MouseUp, redraw after releasing the composition surface, Windows scrollbar convention, reject bad hex digits instead of panicking, SVG sniffing across a split character. (#3643, #3986, #3895, #3936, #3890)
Accessibility
- Expose single- and multi-line input text, labels and disabled inputs to assistive technology; numeric
SetValueon Slider; a visible label on the copy button; Tab leaves selection controls that become disabled. (#3818, #3894, #3937, #3877, #3963, #3910, #3872, #3875)
Dependencies
- GPUI Fast 0.1.16; gpui-pre stays at 0.3.12.
Contributors
Thank you to everyone who contributed to this release
@huacnlee, @madcodelife, @shiz92, @JackLuciano, @wangdiandao, @jeonsu0609, @yuluod, @nxtvoid, @kevin9327, @Bombatomica64, @ylinwind, @vinevard, @ualtinok, @Tunglies, @taoqf, @sodekim, @since2006, @shreeve, @sassman, @PanicIsReal, @mycodecrafting, @m-gebhardt, @Map1en, @kossoy, @iam4x, @Elitelord, @davonium, @costajohnt, @bet4it, @aetoskevin.
What's Changed
- base: Turn on
test-supportfor gpui-base's own tests by @shreeve in #3869 - table: Skip per-row cross-axis measure and add a frame benchmark by @huacnlee in #3868
- base: Preserve Tab exit when focused selection controls become disabled by @wangdiandao in #3872
- number_input: Add stepper option by @taoqf in #3748
- base: Allow tooltip requests to set the anchor offset by @wangdiandao in #3874
- input: expose the editor text origin offset by @wangdiandao in #3765
- text: Number a list item once when a paragraph follows its sub-list by @m-gebhardt in #3876
- input: Report a disabled input as disabled to assistive technology by @Bombatomica64 in #3877
- number_input: Stop the frame from claiming the editor's focus by @huacnlee in #3875
- input: Don't insert newline on secondary Enter in Textarea by @huacnlee in #3879
- input: Keep auto-grow Textarea from scrolling at fractional scales by @huacnlee in #3882
- motion: Add an explicit reduced-motion preference by @wangdiandao in #3881
- diff: Keep the file header in view when switching modes at the top by @jeonsu0609 in #3884
- diff: Add
split_ratioto size the Split columns by @jeonsu0609 in #3883 - input: Move the caret and delete by grapheme cluster by @davonium in #3887
- chore: Enforce workspace redundant_clone lint by @Tunglies in #3838
- text: Add TextView::link to replace or drop links by @ualtinok in #3743
- base: Add global right-to-left layout direction by @huacnlee in #3886
- native_menu: Detect SVG data when the 256-byte sniff splits a character by @kevin9327 in #3890
- docs: Add FAQ on GPUI, gpui-pre and GPUI Fast by @huacnlee in #3892
- input: Expose a single-line input's text to screen readers by @PanicIsReal in #3818
- tag: Remove hover style that never shows by @huacnlee in #3893
- input: Expose a multi-line input's text to screen readers by @huacnlee in #3894
- theme: Follow Windows' scrollbar convention when syncing with the system by @madcodelife in #3895
- tooltip: Wrap long text within
max_winstead of overflowing the background by @madcodelife in #3896 - dialog: Offset a stacked dialog by open dialogs only by @madcodelife in #3897
- text: Lay out a paragraph of several images inline by @madcodelife in #3898
- text: Parse an HTML
<pre>as a code block by @madcodelife in #3899 - attachment: Animate a GIF preview instead of freezing on its first frame by @shiz92 in #3903
- docs: Use an explicit modifier in the Action guide's
KeyBinding::newexamples by @shiz92 in #3913 - website: Document that a custom Button variant fills with its color at 20% by @shiz92 in #3911
- tooltip: Show one tooltip when a component tooltip sits inside a native
.tooltip()by @shiz92 in #3914 - table: Add
TableRow::hoverso a row can take a style under the pointer by @shiz92 in #3912 - tabs: Add roving keyboard navigation to Tabs by @huacnlee in #3900
- popover: Keep a popover open on a press in a popup opened from inside it by @shiz92 in #3909
- input: Let Copy with nothing selected pass on to the window selection by @shiz92 in #3915
- docs: Stop the close click in the Tabs guide's closeable tabs example by @shiz92 in #3916
- table: Add
TableRow::idso a row keeps its identity when rows reorder by @shiz92 in #3907 - text_selection: Start a drag's auto-scroll at an edge that hides text by @shiz92 in #3928
- plot: Draw a label at the font weight it asks for by @shiz92 in #3917
- docs: Correct the Tabs guide where it names methods that do not exist by @shiz92 in #3905
- title_bar: Keep a control's click when the press moves a pixel by @shiz92 in #3918
- slider: Add the keyboard shortcuts the guide lists by @shiz92 in #3919
- selectable_text: Add highlights by @shiz92 in #3929
- button: Show a spinner on a loading button that has no icon by @shiz92 in #3908
- text_selection: Select the line on a triple click beside it by @shiz92 in #3930
- markdown: Look up MathJax in
website/node_modulesinstead of the removeddocs/directory by @madcodelife in #3923 - button: Keep a right or middle press from focusing a
Buttonby @madcodelife in #3924 - input: Open the completion and code action menus above the caret when they do not fit below by @madcodelife in #3925
- story: Let the
DescriptionList,MenuandTagdemos shrink to fit the docs embed by @madcodelife in #3926 - input: Add
context_menu_offsetso a custom menu knows the text under the pointer by @shiz92 in #3920 - message_scroller: Add
scroll_to_offsetto restore a saved reading position by @shiz92 in #3922 - skills: Use an icon the component
IconNamehas in the usage reference by @shiz92 in #3932 - dock: Let the skin decide a closed dock's extent by @huacnlee in #3931
- theme: Reject non-hex digits in parse_hex instead of panicking by @kevin9327 in #3936
- label: Expose a label's text to assistive technology by @Elitelord in #3937
- diff: Collapse or expand many files in one rebuild by @sassman in #3935
- input: restrict multiline IME candidate bounds to the matching row by @bet4it in #3939
- input: Hit-test
character_index_for_pointpast the gutter and on every line by @shiz92 in #3921 - button: Ignore hover and active styles while a base Button is disabled by @JackLuciano in #3943
- selectable_text: Redraw when a run's own selection changes by @shiz92 in #3927
- settings: Fold and unfold the shown page from its title by @since2006 in #3947
- text: Fold white space in Markdown the way HTML draws it by @yuluod in #3949
- text_view: Select the whole wrapped paragraph on a triple click over inline code by @huacnlee in #3942
- table: Add
scrollbar_modetoDataTableby @JackLuciano in #3945 - clipboard: Add a visible label to the copy button by @sodekim in #3910
- chore: Fix
redundant_clonelints reported by Rust 1.100 by @madcodelife in #3954 - text_selection: Keep the selection on a press on a control that acts on it by @jeonsu0609 in #3951
- select: Keep the menu height while searching by @JackLuciano in #3944
- select, combobox, command: Add opt-in highlight_matches for query matches by @JackLuciano in #3959
- text: Let a cursor set on
TextViewreplace the hover I-beam by @ylinwind in #3966 - text: Keep a code span's leading white space when a fold starts beside it by @yuluod in #3962
- slider: Handle numeric accessibility SetValue requests by @wangdiandao in #3963
- input: Report a preedit kept by unmark_text as a change by @Bombatomica64 in #3965
- text: Key the link tooltip target by rendering by @iam4x in #3964
- theme: Add a
list.highlight.foregroundcolor for search match highlights by @JackLuciano in #3960 - diff: Keep split columns on screen beside a long line by @JackLuciano in #3958
- input: Reveal the caret after a long single-line paste by @mycodecrafting in #3967
- input: add text decorations to
TextareaStateby @nxtvoid in #3970 - input: add
set_tokensto swap a textarea's tokens in place by @nxtvoid in #3971 - tooltip: Animate the width when switching between tooltips by @JackLuciano in #3957
- text: Count an oversized code span's insets once per line when wrapping by @costajohnt in #3972
- tooltip: Fix switching_tooltips_animates_the_width under GPUI Fast by @huacnlee in #3975
- locales: Add Japanese (ja) by @Map1en in #3976
- table: Don't redraw a striped table every frame when its rows don't fill it by @vinevard in #3978
- input: Keep the tab indicator inside its tab by @JackLuciano in #3983
- text: Add an option to keep raw HTML in Markdown as text by @aetoskevin in #3979
- docs: Use Label so Quick Start text reaches screen readers by @huacnlee in #3973
- sidebar: Add
suffixto SidebarGroup for header actions by @JackLuciano in #3982 - webview: Redraw after releasing the composition surface by @huacnlee in #3986
- checkbox: Add
indeterminateto show a mixed state by @JackLuciano in #3980 - window: End mouse gestures when the compositor consumes MouseUp by @kossoy in #3643
- chore: Bump v0.10.0 by @huacnlee in #3992
New Contributors
- @taoqf made their first contribution in #3748
- @m-gebhardt made their first contribution in #3876
- @jeonsu0609 made their first contribution in #3884
- @davonium made their first contribution in #3887
- @Tunglies made their first contribution in #3838
- @PanicIsReal made their first contribution in #3818
- @shiz92 made their first contribution in #3903
- @bet4it made their first contribution in #3939
- @JackLuciano made their first contribution in #3943
- @since2006 made their first contribution in #3947
- @sodekim made their first contribution in #3910
- @mycodecrafting made their first contribution in #3967
- @nxtvoid made their first contribution in #3970
- @Map1en made their first contribution in #3976
- @vinevard made their first contribution in #3978
- @aetoskevin made their first contribution in #3979
Full Changelog: v0.9.1...v0.10.0
v0.9.1
2026年11月09日
GPUI Kit v0.9.1
GPUI Kit 0.9.1 is a backward-compatible patch release. It adds a draggable GridLayout, right-pinned table columns, Markdown task checkboxes, link tooltips and motion transitions that outlive their element, along with a large batch of input, text, slider, accessibility and gpui-shell hardening fixes. The default backend moves to gpui-pre 0.3.12 and the optional GPUI Fast backend to 0.1.14.
New APIs
- GridLayout: a grid whose items the user drags and resizes, also registered in the gpui-shell component catalog. (#3770, #3789)
- Table:
ColumnFixed::Rightpins columns to the right edge. (#3833) - Text:
on_task_togglemakes Markdown task checkboxes clickable; block surfaces inTextView; pointer-following link tooltips. (#3811, #3830, #3793) - Motion:
TransitionStatefor transitions that outlive their element. (#3841) - Components:
Button::selected_accent,Slider::track_focus,Dialog::accessibility_label,TimeField::separator,Toolbar::axisfor vertical toolbars, and a ratio-sized PieChart hole. (#3775, #3824, #3826, #3829, #3821, #3784) - WindowBorder: the frame colour comes from the
window.bordertheme token, and window corners can be rounded on request. (#3849, #3848)
Editor and text input
- Keep the first typed character in the editor search panel, compose decoration styles deterministically, draw a placeholder for a folded line, and show the arrow over the gutter. (#3772, #3777, #3791, #3806)
- Tell the platform when the caret moves, publish layout at the end of prepaint, notify a moved input only while focused, and wait for the first layout before shaping an early value. (#3827, #3831, #3828, #3864)
- Keep the caret's visual line at soft wraps. (#3842)
Markdown and text rendering
- Supply editor foreground ranges through the render context and give span-less HTML paragraphs unique ids. (#3754, #3771)
- Tables: highlight the hovered body row, select aligned cell text where it is drawn, and size columns to their images. (#3812, #3813, #3787)
- Limit selection highlights to selected glyphs, draw unsized inline images at their own size, and avoid quadratic paragraph highlight merging. (#3799, #3786, #3846)
Components
- Table / DataTable: name rows after their cells, centre default header names, Tab and Shift+Tab leave a focused DataTable, and a selected cell gets a border distinct from hover. (#3773, #3731, #3800, #3866)
- Slider: allow
minabove the defaultmaxwhile building, snap dragged values to steps frommin, and step one thumb from assistive technology. (#3823, #3822, #3840) - Menu: size items and default max width in rems, and open a scrollable menu on its checked item. (#3809, #3814)
- Settings: follow locale changes in the search placeholder, clear search on Escape, show an empty state for unmatched searches. (#3815, #3816, #3692)
- Motion: reverse an interrupted transition as CSS does, and keep value-transition timing under reduced motion. (#3820, #3839)
- Scrolling: stop smooth-scrolling wheels at the edge on macOS, let the parent scroll a swipe over a fitting horizontal area, and keep the overscroll stream alive through sideways packets. (#3781, #3779, #3790)
- List, Tab, WindowBorder: accent rows use
accent_foreground, icon-only tabs keep their width, the element id path stays stable across decoration changes. (#3774, #3792, #3783) - Diff: reject invalid hunk prefixes before slicing UTF-8. (#3473)
- WebView: fix an X11 abort when a WebView is dropped on Linux. (#3862)
Accessibility
- Report a disabled
SliderThumbto assistive technology. (#3825)
gpui-shell security and robustness
- Require a network grant for
WebViewStatepages, accept only"*"as the unrestrictedexecutegrant, and checkLink.hrefagainst the URL scheme rule. (#3782, #3802, #3804) - Refuse bundle values that would break generated scripts, bound script-supplied counts, nesting depth and self-nesting views, and leave proxy URLs out of the default
process.env. (#3803, #3805, #3808, #3817, #3810) - Stop a Git dependency selector being read as a
git fetchoption, honor the manifest entry when bundling, expose group hover to scripts, and shrinkmaterialize_nodeframes. (#3778, #3682, #3796, #3807)
Dependencies
- Update
rustls-webpkiandwebpki-root-certsfor CVE-2026-111943. (#3801) - gpui-pre 0.3.12 and gpui-fast 0.1.14. Under GPUI Fast 0.1.14, views that were not notified reuse the previous frame instead of rebuilding. (#3867)
Contributors
Thank you to everyone who contributed to this release
@huacnlee, @wangdiandao, @yuluod, @ganeshmshetty, @Elitelord, @AprilNEA, @vinhnx, @madcodelife, @bhavishyasharma, @obito-t, @dedalqq, @insd47, @ylinwind, @LuckyBulgur, @alex-vas, @ohdarling, @mizorewww, @Calvin-Yi, @transilluminate, @lurenjia534, @bjornharrtell, @NONPLAYT, @iam4x.
What's Changed
- diff: Reject invalid hunk prefixes before slicing UTF-8 by @huacnlee in #3473
- text: Supply editor foreground ranges through the render context by @wangdiandao in #3754
- text: Give span-less HTML paragraphs unique element ids by @yuluod in #3771
- input: Keep the first typed character in the editor search panel by @ganeshmshetty in #3772
- table: Name each row after its cells by @Elitelord in #3773
- list: Draw accent-filled rows in accent_foreground by @AprilNEA in #3774
- component: Redraw fully in GPUI Fast lib tests by @huacnlee in #3768
- story: Wrap long questionnaire summaries inside their section by @vinhnx in #3776
- shell: Stop a Git dependency selector from being read as a
git fetchoption by @madcodelife in #3778 - grid_layout: Add a grid whose items the user drags and resizes by @bhavishyasharma in #3770
- button: Add selected_accent for an accent-filled selection by @AprilNEA in #3775
- window_border: Keep the element id path stable across decoration changes by @obito-t in #3783
- shell: Require a network grant for
WebViewStatepages by @madcodelife in #3782 - input: Compose decoration styles deterministically by @dedalqq in #3777
- scrollable_mask: Let the parent scroll a swipe over a horizontal area that fits by @insd47 in #3779
- chart: Size a PieChart's hole as a ratio of its ring by @bhavishyasharma in #3784
- scroll: Stop a smooth-scrolling wheel at the edge on macOS by @insd47 in #3781
- shell: Register GridLayout in the gpui-shell component catalog by @bhavishyasharma in #3789
- tab: Keep an icon-only tab's width instead of collapsing to the icon by @ylinwind in #3792
- shell: Expose group hover to scripts by @LuckyBulgur in #3796
- deps: Update
rustls-webpkiandwebpki-root-certsfor CVE-2026-111943 by @madcodelife in #3801 - shell: Accept only
"*"as the unrestrictedexecutegrant by @madcodelife in #3802 - shell: Refuse bundle values that would break a line in the generated scripts by @madcodelife in #3803
- shell: Check
Link.hrefagainst the URL scheme rule by @madcodelife in #3804 - shell: Bound script-supplied counts before they reach native allocation by @madcodelife in #3805
- input: Draw a placeholder for a folded line by @insd47 in #3791
- shell: Box state style refinements to shrink
materialize_nodeframes by @madcodelife in #3807 - menu: Size items and the default max width in rems by @alex-vas in #3809
- shell: Bound how deep a description may nest by @madcodelife in #3808
- shell: Leave proxy URLs out of the default
process.envby @madcodelife in #3810 - shell: Draw nothing where script views would nest inside themselves or too deep by @madcodelife in #3817
- text: Highlight the table body row under the pointer by @ohdarling in #3812
- text: Select right-aligned and centered table cell text where it is drawn by @ohdarling in #3813
- menu: Open a scrollable menu on its checked item by @ohdarling in #3814
- setting: Follow a locale change in the search placeholder by @ohdarling in #3815
- setting: Clear the sidebar search on Escape by @ohdarling in #3816
- settings: Show an empty state when search has no matches by @huacnlee in #3692
- text: Add
on_task_toggleto make Markdown task checkboxes clickable by @ohdarling in #3811 - slider: Add
Slider::track_focusby @mizorewww in #3824 - text: Limit selection highlights to the selected glyphs on each row by @Calvin-Yi in #3799
- input: Show the arrow over the editor gutter by @insd47 in #3806
- text: Draw an inline image without a size at its own size by @yuluod in #3786
- input: Publish the input's layout at the end of prepaint by @mizorewww in #3831
- dialog: Add
Dialog::accessibility_labelby @mizorewww in #3826 - slider: Allow
minabove the defaultmaxwhile building by @mizorewww in #3823 - time_field: Add
TimeField::separatorby @mizorewww in #3829 - input: Tell the platform when the caret moves by @mizorewww in #3827
- input: Notify an input moved by its parent only while it is focused by @mizorewww in #3828
- slider: Report a disabled
SliderThumbto assistive technology by @mizorewww in #3825 - motion: Reverse an interrupted transition as CSS does by @mizorewww in #3820
- slider: Snap a dragged value to steps counted from
minby @mizorewww in #3822 - table: Add
ColumnFixed::Rightto pin columns to the right by @huacnlee in #3833 - toolbar: Add
Toolbar::axisfor vertical toolbars by @mizorewww in #3821 - text: Add block surfaces to
TextViewby @mizorewww in #3830 - input: Let the completions test run the IME caret reports before counting frames by @madcodelife in #3837
- slider: Step one thumb from assistive technology and report the change by @mizorewww in #3840
- table: Let Tab and Shift+Tab leave a focused DataTable by @huacnlee in #3800
- ci: Propagate Shell integration test failures on Windows by @huacnlee in #3693
- shell: Honor the manifest entry when bundling by @huacnlee in #3682
- motion: Let a value transition keep its timing under reduced motion by @mizorewww in #3839
- editor_host: Keep the caret's visual line at soft wraps by @huacnlee in #3842
- overscroll: Keep the stream alive through sideways packets by @huacnlee in #3790
- website: Recommend Native Shell under the home hero by @huacnlee in #3844
- table: Centre a header's default name in its height by @transilluminate in #3731
- motion: Add
TransitionStatefor transitions that outlive their element by @mizorewww in #3841 - text: Avoid quadratic paragraph highlight merging by @lurenjia534 in #3846
- window_border: Take the frame colour from the window.border theme token by @bjornharrtell in #3849
- text: Size a table column to the images in its cells by @yuluod in #3787
- window_border: Round the window corners on request by @bjornharrtell in #3848
- webview: Fix X11 abort when a WebView is dropped on Linux by @huacnlee in #3862
- input: Wait for the first layout before shaping a value set early by @NONPLAYT in #3864
- table: Add border to selected cell to distinguish it from hover by @huacnlee in #3866
- text: Add pointer-following link tooltips by @iam4x in #3793
- chore: Bump v0.9.1 by @huacnlee in #3867
New Contributors
- @yuluod made their first contribution in #3771
- @vinhnx made their first contribution in #3776
- @bhavishyasharma made their first contribution in #3770
- @LuckyBulgur made their first contribution in #3796
- @ohdarling made their first contribution in #3812
- @mizorewww made their first contribution in #3824
- @Calvin-Yi made their first contribution in #3799
- @bjornharrtell made their first contribution in #3849
- @NONPLAYT made their first contribution in #3864
- @iam4x made their first contribution in #3793
Full Changelog: v0.9.0...v0.9.1
🤖 Noop (release-manager) · AI agent acting for @huacnlee
详细ChangeLogv0.9.0
2026年11月02日
GPUI Kit v0.9.0
GPUI Kit 0.9.0 adds editor and Diff decorations, an application-level icon resolver, theme-configurable cursor blinking and an input edits event, along with many accessibility, menu, table and text-rendering fixes. The default backend moves to gpui-pre 0.3.11 and the optional GPUI Fast backend to 0.1.13.
This is a minor release because public theme structs are now #[non_exhaustive], which breaks struct literals outside the crate. See Breaking changes below for migration.
Editor and text input
- Gutter and overview ruler decorations:
GutterDecorationCollectionmarks lines in a strip before the line numbers, andOverviewRulerDecorationCollectionmarks them on the vertical scrollbar track, e.g. for lines added, modified or deleted by version control. Highlight themes now read thecreated,modifiedanddeletedstatus colors. (#3704) - Edit events:
InputEditsEventis emitted with eachInputEvent::Changeand carries the batch ofInputEdits, each with the document after it, for Input, Textarea and Editor. (#3751) - Cursor blinking:
Theme::cursor_blinkwithCursorBlink::steady(),CursorBlink::blinking(interval)andwith_idle_timeoutconfigures the caret for every input. The default stays at 500 ms with no idle timeout. (#3713) - Native touch selection:
set_native_touch_selectionleaves selection handles and the edit menu to the platform;set_selected_text_rangeis now implemented so the platform or IME can move the selection. (#3723) - Restore backward selections through
set_selected_range, reuse measured wraps during live resize, keep hover working across the whole visible editor after scrolling, and paint editor popups above dialogs. (#3756, #3691, #3734, #3700)
Diff
- Line decorations and gutter markers:
Diff::decorationspaints backgrounds on line ranges withDiffDecoration, andDiff::gutter_markerswithrender_gutter_markerplaces interactive markers beside lines without changing the selection. (#3703) - Keep the vertical scrollbar at the viewport edge when
soft_wrapis off. (#3739)
Markdown and text rendering
- Render reference-style Markdown images, continue alphabetic ordered-list numbering after Z, and preserve list body width in fitted containers. (#3683, #3722, #3759)
- Draw marked text in a color that reads on its background. (#3746)
- Fix an application shutdown deadlock during layout cleanup, and avoid resolving the window selection during paint in selectable text. (#3697, #3699)
Components
- Icon:
set_icon_resolverlets the application choose the path every icon is drawn from, including icons drawn inside components, for runtime icon themes.resolve_icon_pathserves custom components that draw withsvg(). (#3633) - Menu: submenu rows are activatable, and a submenu opens on the left only when the right side has no room. (#3714, #3736)
- Table: column resize follows the point where the drag started. (#3732)
- Combobox: correct filtered selection events and confirmation. (#3449)
- VirtualList: rebuild cached geometry when the axis or gap changes, and use the height constraint when a horizontal list infers its height. (#3719, #3720)
- MessageScroller: the scrollbar reaches the end of padded content. Popover clears focus on close when nothing had focus at open. Toolbar ends its wrap search at the first repeated stop. (#3615, #3718, #3716)
- Settings: show an empty state for unmatched searches; the sidebar follows scrolling. (#3701)
- Motion: directly built easing curves with nothing to sample behave as linear. (#3721)
- Speech:
SpeechWaveformgains a liquid appearance,SpeechButtonshows the voice while capturing, and macOS privacy access no longer falls on the terminal. (#3725, #3726, #3730)
Accessibility
- Tables give the focused element the grid role and move assistive-technology focus with the selected row or cell. (#3727, #3758)
- Menus report checked and unchecked items correctly; command palette rows are named after their item; icon-only close buttons have names. (#3729, #3761, #3728, #3741)
Localization and testing
- Add Russian (
ru) translations. (#3745) - Test support can observe painted text and alternative text, and Toolbar is registered for snapshot queries. (#3724, #3717)
Breaking changes
Theme structs are #[non_exhaustive] (#3713, #3704). Struct literals, including ..Default::default(), no longer compile outside the defining crate. Later field additions will not break callers again.
- gpui-base:
Theme,SemanticThemeTokens,ColorTokens,RadiusTokens,SpacingTokens,TypographyTokens,TextStyleToken,ShadowTokens,ResizableTheme,ListSettings - gpui-component:
Theme,ThemeColor,ThemeToken,ThemeSet,ThemeConfig,ThemeConfigColors,Semantic*Config,MotionTokens,HighlightTheme,HighlightThemeStyle,SyntaxColors,SheetSettings,NotificationSettings
Start from Default::default() or the existing constructor (ColorTokens::light, ShadowTokens::elevations, …) and assign fields:
-let theme = Theme { radius: px(4.), ..Default::default() };
+let mut theme = Theme::default();
+theme.radius = px(4.);DisplayMap is no longer UnwindSafe / RefUnwindSafe.
Upstream GPUI compatibility
gpui-pre 0.3.11 / gpui-fast 0.1.13 (#3766):
Window::text_system()returns&Rc<WindowTextSystem>instead of&Arc, andWindowTextSystemis no longerSend/Sync.Animationreads the executor clock instead ofInstant::now(), so it follows the test clock. Tests that slept on the wall clock should useadvance_clock.
Thank you to everyone who contributed code, documentation, testing, and feedback!
What's Changed
- input: Reuse measured wraps during live resize by @T-miracle in #3691
- setting: Show an empty state for unmatched searches and follow scrolling in the sidebar by @huacnlee in #3701
- diff: Add line decorations and interactive gutter markers by @huacnlee in #3703
- text: Render reference-style Markdown images by @huacnlee in #3683
- text: Fix application shutdown deadlock during layout cleanup by @T-miracle in #3697
- selectable_text: Avoid resolving window selection during paint by @costajohnt in #3699
- input: give editor popups POPUP_PRIORITY so they paint above dialogs by @sola-ryu in #3700
- message_scroller: Let the scrollbar reach the end of padded content by @lab1207 in #3615
- input: Configure cursor blinking through the theme by @huacnlee in #3713
- icon: Let the application resolve the path every icon is drawn from by @iamngoni in #3633
- menu: Make submenu rows activatable by @luan in #3714
- virtual_list: Use the height constraint when a horizontal list infers its height by @boboshan in #3720
- popover: Clear focus on close when nothing had it at open by @boboshan in #3718
- test: Register Toolbar for snapshot queries by @boboshan in #3717
- toolbar: End the wrap search at the first repeated stop by @boboshan in #3716
- virtual_list: Rebuild cached geometry when the axis or gap changes by @boboshan in #3719
- text: Continue alphabetic ordered-list numbering after Z by @Reuben006 in #3722
- motion: Sample directly built easing curves with nothing to sample as linear by @boboshan in #3721
- command: Name each palette row after its item by @transilluminate in #3728
- input: Add a native touch selection opt-out by @Ziinc in #3723
- editor: Add gutter and overview ruler decorations by @bcl-dev in #3704
- speech: Show the voice in SpeechButton while capturing by @ylinwind in #3726
- speech: Add a liquid appearance to SpeechWaveform by @ylinwind in #3725
- test: Observe painted text and alternative text by @Ziinc in #3724
- speech: Disclaim the terminal's responsibility for privacy access on macOS by @ylinwind in #3730
- table: Give the focused element the grid's role by @transilluminate in #3727
- menu: Report a checked item's check to assistive technology by @transilluminate in #3729
- input: Hover the whole visible editor after scrolling by @PieWhite in #3734
- menu: Open a submenu on the left only without room on the right by @transilluminate in #3736
- table: Resize a column from where the drag started by @transilluminate in #3732
- a11y: Name the icon-only close buttons by @ualtinok in #3741
- locales: Add Russian (ru) by @beshkenadze in #3745
- text: Draw a mark's text in a color that reads on its background by @ganeshmshetty in #3746
- diff: keep the vertical scrollbar at the viewport edge when soft_wrap is off by @romakuchukov in #3739
- input: Expose edits from the latest change by @dedalqq in #3751
- input: Restore backward selections through set_selected_range by @wangdiandao in #3756
- combobox: Correct filtered selection events and confirmation by @ruiyangke in #3449
- table: Move assistive technology focus with the selected row or cell by @Elitelord in #3758
- menu: Report an unchecked option as unchecked to assistive technology by @madcodelife in #3761
- text: Preserve list body width in fitted containers by @ttizze in #3759
- gpui: Upgrade to gpui-pre 0.3.11 and gpui-fast 0.1.13 by @huacnlee in #3766
- chore: Bump v0.9.0 by @huacnlee in #3769
New Contributors
- @T-miracle made their first contribution in #3691
- @lab1207 made their first contribution in #3615
- @iamngoni made their first contribution in #3633
- @luan made their first contribution in #3714
- @Reuben006 made their first contribution in #3722
- @transilluminate made their first contribution in #3728
- @Ziinc made their first contribution in #3723
- @ualtinok made their first contribution in #3741
- @beshkenadze made their first contribution in #3745
- @romakuchukov made their first contribution in #3739
- @dedalqq made their first contribution in #3751
- @wangdiandao made their first contribution in #3756
- @ttizze made their first contribution in #3759
Full Changelog: v0.8.1...v0.9.0
详细ChangeLogv0.8.1
2026年10月26日
GPUI Kit v0.8.1
GPUI Kit 0.8.1 improves text selection, Markdown rendering, editor layout, scrolling, focus and accessibility. It also adds compatible customization APIs for text rendering, editor scrollbars and Diff parsing and highlighting.
To preserve Kit-owned API compatibility with v0.8.0, this patch defers the MotionTokens field additions from #3616 and the Textarea associated-type change from #2842. Behavior fixes remain included. The default backend is pinned to gpui-pre 0.3.10, and the optional GPUI Fast backend uses 0.1.12. These upstream snapshots change several GPUI APIs re-exported by Kit; see the migration notes below.
Editor and text input
- Tab stops: code-editor tabs align to the configured tab stops during measurement, wrapping and painting. Horizontal scroll extents follow laid-out text widths. (#3622, #3604)
- Custom scrollbars:
set_scrollbar_rendererlets an application supply its editor scrollbar presentation usingEditorScrollbarContext. (#3644) - Focused inputs ask surrounding scroll containers to reveal them, taps request the software keyboard, and accessibility semantics follow the actual editor focus. (#3625, #3623, #3585)
Markdown and text rendering
- Selection: publish selection snapshots once per frame to avoid invalidating unrelated retained views. Double- and triple-click drags and subsequent Shift-clicks extend selections by words, lines or paragraphs, including paragraphs with hard breaks. Drags starting inside a table cell stay in that cell. (#3686, #3681, #3646)
- Text styles:
inline_code_style,list_styleandblockquote_stylerefine the corresponding text presentation while inheriting unspecified properties from the resolved style. (#3663, #3687) - Image sources: Component TextView exposes
image_sourceto resolve document images consistently for measurement and rendering. (#3694) - Preserve sparse Markdown table rows and release shaped text retained by dropped TextViews on the next frame. (#3673, #3628)
Diff
- Truncated patches:
DiffFile::parse_withandDiffParseOptions::truncated_hunksaccept incomplete hunks without relaxing the default parser.DiffFile::is_truncatedidentifies affected files; unified file boundaries and empty-hunk ordering remain validated. (#3688) - Syntax highlighting:
with_syntax_highlighter,set_syntax_highlighterandclear_syntax_highlighterlet an application provide its own highlighting without resetting selection or scrolling. (#3618)
Scrolling and layout
- Scrollable regions can scroll content beyond their maximum size. Bounce handling avoids rounding-induced overscroll and false overscroll at large offsets, and release inertia applies only to stretched edges. (#3613, #3632, #3661, #3631)
last_horizontal_scroll_claimexposes the last horizontal scroll step consumed by a mask. Resizable dividers read the active drag state when events arrive. (#3621, #3629)on_prepaintreports bounds from the element's corner, aligning geometry callbacks with their intended coordinate origin. (#3689)
Components
- Dialog:
Dialog::centeredandAlertDialog::centeredcenter the surface vertically; exit animation matches entrance animation. Sheets and notifications avoid system bars and the software keyboard. (#3635, #3603, #3624) - Button:
track_focusaccepts an application-owned handle. Disabling a focused button preserves the focus binding so Tab can still leave it in either direction. (#3684, #3606) - DataTable: honor centered and right-aligned columns; expose table structure and cell labels to assistive technology through
TableDelegate::cell_label. (#3617, #3667) - Toolbar: grow with taller content and preserve focus when blank toolbar space is clicked. (#3651, #3652)
- HoverCard:
trigger_styleapplies layout styling to the trigger container. (#3653) - ColorPicker: preserve the first hex edit after a programmatic value update and round color channels instead of truncating them. (#3641, #3640)
- TimeField: pressing outside a segment focuses the first segment. Command applies empty-list padding only while its empty state is visible. (#3655, #3654)
- Focus trap: stop Tab traversal at the first repeated stop. Dock restores legacy empty StackPanel layouts as empty splits. (#3642, #3610)
Shell and localization
The release also prepares gpui-shell for crates.io publication with matching quickjs-jit, quickjs-jit-runtime and quickjs-jit-stdlib 0.14.1 registry dependencies.
- Shell Button:
accessibility_labelsupplies an accessible name independently of the visible label. (#3665) - Add Brazilian Portuguese translations and preserve valid Portuguese words in spell checking. (#3638, #3664)
Upstream GPUI compatibility
The updated GPUI snapshots change public APIs re-exported at the Kit root. Internal compilation checks and Kit API checks do not preserve these upstream signatures:
Modifiers::secondary()andModifiers::secondary_key()now require&App.Keystroke::parseandKeyBinding::newrequire static strings. Dynamic strings andsecondarymodifiers use OS-aware parsing/loading.Keystroke::unparseandKeybindingKeystroke::unparserequire anOperatingSystemargument.PlatformInput::ScrollWheelbecomesPlatformInput::Scroll; scroll event literals gain asourcefield.
Use cx.platform_info().os for OS-aware parsing/formatting and pass cx to modifier helpers. Use KeyBinding::load(..., cx) for dynamic keybindings or choose explicit cmd/ctrl literals with KeyBinding::new.
Thank you to everyone who contributed code, documentation, testing, and feedback!
What's Changed
- typos: Ignore the two release-notes contributor handles by @noosxe in #3608
- dock: Read the legacy empty
StackPanelas an empty split by @obito-t in #3610 - input: align accessibility semantics with editor focus by @TomiXRM in #3585
- dialog: Animate the exit to match the entrance by @YidaWeng in #3603
- input: Measure the horizontal scroll extent from laid-out lines by @YidaWeng in #3604
- button: preserve Tab traversal when the focused control becomes disabled by @TomiXRM in #3606
- table: Apply Column::text_right and text_center in DataTable by @Elitelord in #3617
- diff: Let the application supply the syntax highlighter by @bcl-dev in #3618
- scroll: Expose the last horizontal strip scroll step a mask claimed by @yuanzhuang-svg in #3621
- story: Add an application-owned completion menu to the Input story by @noosxe in #3607
- scroll: Scroll content past a scrollable's maximum size by @UncertaintyDeterminesYou4ndMe in #3613
- input: Ask for the virtual keyboard when an input is tapped by @Bombatomica64 in #3623
- sheet, notification: Keep out from under the system bars and the keyboard by @Bombatomica64 in #3624
- scrollable_mask: Dispatch the overscroll steps of the scroll claim test within one frame by @madcodelife in #3648
- resizable: Read active drag state when mouse events arrive by @huacnlee in #3629
- input: Lay out tabs to tab stops in the code editor by @claudio-azevedo in #3622
- input: Ask scroll containers to reveal a focused input by @Bombatomica64 in #3625
- text: Release the shaped text of dropped text views at the next frame by @TastyCZ in #3628
- locales: Add Brazilian Portuguese (pt-BR) by @sergiobalecho95 in #3638
- color_picker: Round hex channels instead of truncating them by @boboshan in #3640
- scroll: Ignore rounding in the part of a packet the text did not use by @Tryanks in #3632
- scroll: Throw the edge on release only when it is stretched by @Tryanks in #3631
- dialog: add centered() to seat a dialog in the middle of the window by @mastro993 in #3635
- input: Let an editor supply its own scrollbar by @boboshan in #3644
- color_picker: Keep the first hex edit after a programmatic value by @boboshan in #3641
- website: Fix OtpInput examples and event documentation by @SandmeyerX in #3645
- focus_trap: End the Tab search at the first repeated stop by @boboshan in #3642
- toolbar: Grow with content taller than the bar by @AncientPixel in #3651
- hover_card: Apply trigger_style to the trigger container by @AncientPixel in #3653
- command: Pad the empty list only while the empty state shows by @AncientPixel in #3654
- toolbar: Keep focus where it was when blank toolbar space is clicked by @AncientPixel in #3652
- scroll_bounce: Avoid false overscroll at large offsets by @superoskin in #3661
- text: Keep a drag that starts in a table cell in that cell by @watzon in #3646
- time_field: Focus the first segment when the field is pressed outside a segment by @ylinwind in #3655
- typos: Preserve valid Portuguese translations by @huacnlee in #3664
- text: Support inline code style overrides by @citizenhicks in #3663
- table: Expose DataTable's structure and cells to assistive technology by @Elitelord in #3667
- button: Expose accessible names in the script API by @huacnlee in #3665
- text: Preserve sparse Markdown table rows by @lurenjia534 in #3673
- test: Read accessibility descriptions and placeholders in element snapshots by @boboshan in #3672
- base: Report on_prepaint bounds from the element's corner by @ogulcancelik in #3689
- text: Publish selection snapshots once per frame by @lurenjia534 in #3686
- text_selection: Extend double- and triple-click drags by words and lines by @zachsents in #3681
- button: Accept a caller-owned focus handle by @costajohnt in #3684
- text: Support list and blockquote style overrides by @citizenhicks in #3687
- diff: Parse truncated hunks through parse options by @citizenhicks in #3688
- text: Expose image source resolver on component TextView by @dannyward630 in #3694
New Contributors
- @bcl-dev made their first contribution in #3618
- @yuanzhuang-svg made their first contribution in #3621
- @claudio-azevedo made their first contribution in #3622
- @TastyCZ made their first contribution in #3628
- @sergiobalecho95 made their first contribution in #3638
- @mastro993 made their first contribution in #3635
- @SandmeyerX made their first contribution in #3645
- @watzon made their first contribution in #3646
- @citizenhicks made their first contribution in #3663
- @ogulcancelik made their first contribution in #3689
- @zachsents made their first contribution in #3681
Full Changelog: v0.8.0...v0.8.1
详细ChangeLogv0.8.0
2026年10月19日
GPUI Kit v0.8.0
GPUI Kit 0.8.0 adds an installable JavaScript Shell runtime, Linux WebView support, and a public rendering boundary for external editors. It also adds lighter syntax highlighting with syntect, native-style scroll bounce, richer completion highlighting, and improvements to text selection, tables, focus and accessibility.
Runtime and platforms
- Shell runtime: run and scaffold JavaScript applications with
gpui-shell; package them withbundle, and usedevfor reloading during development. (#3464, #3487) - WebView: use
gpui-webviewon macOS, Windows and Linux X11/XWayland. GPUI Fast enables overlays above native pages on macOS and Linux; bounds and clipping updates preserve the page viewport. (#3395, #3499, #3591)
This release updates the optional GPUI Fast backend to 0.1.10. The default backend remains pinned to gpui-pre 0.3.9, the latest published snapshot. The WebAssembly example uses wasm-bindgen 0.2.127 to match the updated backend dependency graph.
Editor and text input
- External editors:
gpui_kit::base::text::editor_hostlets an editor render aBlockNodetree through TextView and collect keyed leaf geometry while retaining its own document model, selection, commands and undo. (#3580) - Syntax highlighting: enable the
syntectfeature for a lighter highlighter with bat’s syntax collection; tree-sitter takes precedence when both are enabled. (#3512) - Completion highlighting: configure
Lsp::with_completion_highlighterorset_completion_highlighterwithhighlight_prefix,highlight_contains,highlight_characters, or a host callback returning byte ranges. (#3496) - Wrapping:
display_map()andprewrap(...)are available on InputState and TextareaState as well as EditorState.Editor::sizesupports the shared control sizes. (#3483, #3495, #3564, #3480) - Software keyboards: configure
input_action,autocorrectandautocapitalize; masked fields are identified as passwords, and clear/mask controls have accessible names. (#3557, #3555, #3554, #3562) - Fixed caret clipping in one-row viewports, caret visibility during reflow and height changes, vertical scroll clamping, scrollbar reach in auto-growing textareas, and caret crispness on click. (#3583, #3477, #3527, #3515)
- Custom Find queries and case changes start near the viewport; an unchanged query retains its active occurrence. Android’s Back button keeps entered text when
clean_on_escapeis enabled. (#3584, #3556)
Markdown and text rendering
- Selection format:
SelectionFormat::SourceAcrossStylescopies plain text within a single style and Markdown source across styles. (#3517) - Copy uses the current gesture before repaint, including virtualized rich content. Unmounting a selection endpoint retires the old selection, so retaining and remounting a TextView cannot revive it. (#3589, #3588)
- HTML
<br>creates a line break, and<pre>/<pre><code>preserve their text and whitespace through HTML minification. (#3569, #3570, #3581)
Scrolling and motion
- Scroll bounce: precise scrolling uses a shared boundary-bounce engine, enabled by default on macOS, iOS and Android. Desktop motion follows NSScrollView; ordinary line-wheel input does not bounce. Nested areas retain their own gestures. (#3500, #3484)
- Horizontal strips:
ScrollableMask::vertical_wheelmaps a plain mouse wheel to horizontal scrolling and chains to the parent at the edge. (#3518) - Cubic-bezier easing preserves anticipation and overshoot, and transitions and presence retain duration precision. (#3432, #3590)
Components
- DataTable: fit a column by double-clicking its resize handle or calling
fit_col, with widths supplied byTableDelegate::fit_column; inspect the result withcol_width. Configurefixed_cols_border,select_on_modifier_clickandfocus_ring. (#3489, #3482, #3523, #3565) - DataTable: Home/End select the first/last row in row mode; row selection preserves event propagation, and default column resizing is capped at 1200px while preserving explicitly assigned initial widths. (#3471, #3469, #3472)
- Resizable: use the standalone
resize_handlefor application-owned handles andResizablePanel::fixedto preserve a panel’s size when its container changes. (#3302, #3478) - Dock: subscribe to
DockToggleEventto distinguish user-driven dock toggles. (#3546) - MessageScroller: read the current reading position through
MessageScrollerState::logical_scroll_top. (#3485) - Select: keyboard confirmation and reconciliation of changed items preserve the intended selection. (#3446)
- Focus and accessibility: focus traps preserve containment and accessibility; disabled controls report their disabled state; sliders can be named with
accessibility_label; settings fields inherit their setting’s title. (#3443, #3531, #3494, #3524, #3582) - Tooltip: switching between triggers is direction-independent; a pressed trigger remains dismissed until the pointer leaves, and removing a trigger dismisses its tooltip. (#3501, #3492, #3528)
- Popover: keyboard activation inside content remains available. (#3586)
- TabBar: overflow-menu actions call the tab’s own handler, the sliding indicator appears after the first frame, and
TabVariant::Folderadds a folder presentation. (#3568, #3574, #3415) - Tree: selection and toggling happen on click rather than mouse-down. (#3567)
Shell APIs
- Extensible catalog:
gpui_shell::components::registry()returns the unfrozen component catalog for host additions. Registered state objects supportrelease()so applications can promptly dispose of retained resources. (#3542, #3544) - Lists and transcripts: script lists support
with_follow_mode("tail")andon_visible_range_change; item-count changes preserve the reader’s position. MessageScrollerState exposes append/prepend/splice, measurement and scrolling operations. (#3548, #3549, #3547, #3541) - Script components: the catalog includes WebView/WebViewState, and Base TextareaState exposes
set_submit_on_enterfor message composers. (#3532, #3550) - Runtime compatibility: scripts gain gradient backgrounds and custom shadows, more browser/Node-compatible runtime APIs, and corrected filesystem link handling. Script errors report their cause, and launching a window on Wayland no longer crashes during activation. (#3534, #3505, #3510, #3561, #3509, #3508)
Breaking Changes
Support Linux on X11 and rename the crate to gpui-webview (#3395)
The crate is renamed from gpui-wry to gpui-webview.
[dependencies]
-gpui-wry = "0.7.1"
+gpui-webview = "0.7.1"-use gpui_wry::WebView;
+use gpui_webview::WebView;On Linux, applications using the WebView must start on X11:
-gpui_kit::application().run(|cx| { /* ... */ });
+#[cfg(target_os = "linux")]
+let app = gpui_kit::platform::linux(WindowingModes::X11);
+#[cfg(not(target_os = "linux"))]
+let app = gpui_kit::application();
+app.run(|cx| { /* ... */ });Support gpui-pre and make gpui-fast optional again (#3591)
Applications that relied on gpui-webview switching them to GPUI Fast must now select GPUI Fast on gpui-kit and enable the WebView feature with it, to keep overlays above the page on macOS and Linux:
[dependencies]
-gpui-kit = "0.7"
-gpui-webview = "0.7"
+gpui-kit = { version = "0.7", features = ["gpui-fast"] }
+gpui-webview = { version = "0.7", features = ["gpui-fast"] }Without both they build on gpui-pre; with only one of them, gpui-webview fails to compile and names the missing feature.
Add SelectionFormat::SourceAcrossStyles (#3517)
SelectionFormat is not #[non_exhaustive], so code that matches it exhaustively needs an arm for the new variant.
match format {
SelectionFormat::Plain => ...,
SelectionFormat::Source => ...,
+ SelectionFormat::SourceAcrossStyles => ...,
}Let an application build its own resize handle (#3302)
ResizeHandle::on_drag was #[doc(hidden)]; its constructor now takes &T instead of Rc<T>:
- .on_drag(DragPanel, |drag, _, _, cx| cx.new(|_| drag.deref().clone()))
+ .on_drag(DragPanel, |drag, _, _, cx| cx.new(|_| drag.clone()))Bounce scrollable content like NSScrollView, by default on macOS (#3500)
No existing signature changes. Every existing call still compiles. Four defaults change behavior, compared with main:
1. ScrollBounce is enabled by default on macOS. On main it was enabled only on iOS and Android. A ScrollBounce created without .enabled(..) now bounces on macOS too. To keep it still:
- ScrollBounce::new(id, &handle, child)
+ ScrollBounce::new(id, &handle, child).enabled(false)2. ScrollBounce owns vertical wheel scrolling by default. On main, the child scrolled itself and the wrapper only stretched the deltas the child left unused. Now the wrapper scrolls the handle itself, through the shared engine. Code that relied on the child-owned mode, such as touch emulation or synthesized drags, must ask for it:
- ScrollBounce::new(id, &handle, child).enabled(true)
+ ScrollBounce::new(id, &handle, child).enabled(true).scroll_wheel(false)3. ScrollBounceMotion::default() changes on macOS, Windows and Linux. The defaults are now tuned to match NSScrollView, replacing the UIScrollView tuning:
trackinggoes from 0.55 to 0.075.responsegoes from 524 ms to ≈503 ms.- The stretch is capped at 36 px.
iOS and Android are unchanged. To keep the previous feel:
- ScrollBounce::new(id, &handle, child)
+ ScrollBounce::new(id, &handle, child).motion(
+ ScrollBounceMotion::default()
+ .with_tracking(0.55)
+ .with_response(Duration::from_millis(524)),
+ )4. Scrollable components scroll differently.
-
They bounce on macOS. Scrollable (
overflow_y_scrollbar()), List, DataTable, Tree, Select, Command, Textarea, Editor, Sidebar, Diff, MessageScroller, the settings page and scrollable TextView now bounce on precise scrolling. Onmainnone of them did. Each one that has a builder can turn it off:- List::new(&state) + List::new(&state).scroll_bounce(false)
-
Nested areas no longer scroll together, on every platform. The innermost area under the pointer takes the whole gesture, including at its ends. On
main:- Nested GPUI scroll divs scrolled together.
- MessageScroller handed the wheel to an ancestor scroller once it reached an end.
Neither happens now. Sidebar, Diff, MessageScroller, the settings page and TextView have no
scroll_bouncebuilder; they always follow the platform default.
Everything else listed under Public API is new in this PR, and so additive.
Keep a scroll over text that can scroll, even at its end (#3484)
Scrolling over a textarea or editor whose text can scroll no longer reaches the page around it once the text is at its end: the rest of that swipe, its momentum, and later wheel flicks over the text stay in the input. Text that fits, and vertical scrolling over a single-line input, still scroll the page. No setting restores the old behavior; to scroll the page, move the pointer off the input.
Add Folder variant (#3415)
TabVariant is not #[non_exhaustive], so exhaustive matches need the new arm:
match variant {
...
+ TabVariant::Folder => ...,
}Keep cubic-bezier anticipation and overshoot in Easing (#3432)
- Code that relied on
Easing::samplestaying within[0, 1]for an out-of-range cubic-bezier curve now sees overshoot:
- let alpha = easing.sample(delta);
+ let alpha = easing.sample(delta).clamp(0., 1.);Select the first or last row on Home and End in row mode (#3471)
In row mode, Home and End select the first or last row instead of the first or last column. No setting restores the old behavior: Left and Right still move to a column, and a host that wants Home and End to pick a column can select one with set_selected_col.
Don't stop event propagation in set_selected_row (#3469)
TableState::set_selected_row no longer stops event propagation. Custom handlers that require it must call cx.stop_propagation() explicitly.
Skip the notify in set_line_number when nothing changes (#3475)
In a code editor, set_line_number no longer notifies when the line numbers are already as asked. A caller that relied on that call to re-render the editor notifies it itself:
state.set_line_number(true, window, cx);
+ cx.notify();Notify from set_searchable only when it changes (#3576)
ListState::set_searchable no longer notifies when the list is already searchable or not as asked. A caller that relied on that call to re-render the list notifies it itself:
list.set_searchable(true, cx);
+ cx.notify();Add bundle to package an application, and a dev command (#3487)
--dev no longer implies --watch or a debug log. dev is the command that reloads.
- gpui-shell run -d app --dev
+ gpui-shell dev -d app # reload + debug log
+ gpui-shell dev -d app --dev # … and the relaxed sandbox, as beforeInvocationKind gains a variant, so an exhaustive match over it needs a Bundle arm.
match gpui_shell::host::parse_invocation(arguments)? {
InvocationKind::Run => …,
+ InvocationKind::Bundle => …,
…
}Fix the runtime gaps found by the gpui-shell benchmark apps (#3505)
gpui-shell run -d <dir> with a manifest now stores data under the manifest id, the same place the installed copy uses, instead of <dir>-<hash>. Data written by earlier development runs stays in the old directory.
process.env was absent before; scripts that feature-detected it with typeof process.env === "undefined" now see an object.
Capabilities' read and write roots for a local run now include the manifest's roots rather than only the app and data directories, so gpui-shell list reports a wider grant for manifests that ask for one.
Extend UI testing with semantic queries and Linux rendering (#3402)
Existing pointer helpers now retain held modifiers. Callers that deliberately require an unmodified click while modifiers are held can request it explicitly; ordinary calls and signatures remain valid.
- window.click("save", cx); // previously reset held modifiers implicitly
+ window.click_with_options("save", ClickOptions::new(), cx); // explicitly unmodified, then restores held stateNested context-menu callers keep the same construction. The corrected interaction is:
- window.right_click("inner-trigger", cx); // both inner and ancestor menus opened
+ window.right_click("inner-trigger", cx); // only the innermost menu opensAdd find_all and configurable clicks to the UI test harness (#3384)
TestWindowExt gains two required methods: find_all and click_with_options.
Downstream implementations must implement both. click_with_modifiers has a default
implementation through click_with_options. Call sites continue to import only
TestWindowExt for all window queries and interactions.
impl TestWindowExt for MyTestWindow {
// Existing methods remain.
+ fn find_all(&self, id: impl Into<ElementId>) -> Vec<ElementSnapshot> {
+ self.window.find_all(id)
+ }
+ fn click_with_options(&mut self, id: impl Into<ElementId>, options: ClickOptions, cx: &mut App) {
+ self.window.click_with_options(id, options, cx);
+ }
}Thank you to everyone who contributed code, documentation, testing, and feedback!
What's Changed
- kit: Add optional gpui-fast backend by @huacnlee in #3375
- tooltip: Make show delay and grace period configurable with
TooltipDefaultsby @madcodelife in #3376 - docs: Explain recovering focus when the focused element stops rendering by @AncientPixel in #3386
- diff: Add readonly patch viewer by @huacnlee in #3378
- kit: Use one Windows manifest with GPUI Fast by @huacnlee in #3380
- test: Add find_all and configurable clicks to the UI test harness by @AncientPixel in #3384
- test: Make Progress and TitleBar findable in UI tests by @AncientPixel in #3383
- input: Preserve selection, focus ring and context menu actions by @lurenjia534 in #3382
- diff: Add a Git history example and complete review APIs by @huacnlee in #3388
- webview: Compose native views with the GPUI Fast backend by @ihavecoke in #3389
- text_view: Ignore gestures that stay inside one block plugin by @ylinwind in #3390
- text_view: Round the first and last table rows to the frame radius by @ihavecoke in #3309
- webview: Support Linux on X11 and rename the crate to gpui-webview by @huacnlee in #3395
- webview: Require GPUI Fast for gpui-webview by @huacnlee in #3398
- resizable: Let an application build its own resize handle by @ihavecoke in #3302
- menu: Open a context menu with a long press on touch by @Bombatomica64 in #3393
- text_view: Keep narrow table columns on one line by @madcodelife in #3399
- kit: Extend UI testing with semantic queries and Linux rendering by @huacnlee in #3402
- settings: Keep focus rings inside the list viewport by @lurenjia534 in #3394
- scrollable_mask: Keep rounded scroll-table corners clean at any scroll offset by @ihavecoke in #3400
- dialog: Add margin_top to AlertDialog by @xxww0098 in #3404
- input: Add InputState::add_selection for programmatic multi-cursor by @sola-ryu in #3403
- text_selection: Stop writing selection state on every frame by @huacnlee in #3407
- table: Make the sort icon a labelled button by @AncientPixel in #3396
- table: Report visible row ranges of one row or none by @AncientPixel in #3397
- dialog: Support configurable entrance animations by @xxww0098 in #3405
- docs: Explain the open_dialog builder and footer contracts by @xxww0098 in #3406
- dock: Hand the focus to the tab that replaces a closed one by @sola-ryu in #3409
- dropdown_button: Add A11y names for the menu trigger by @sola-ryu in #3410
- text, resizable: Stop notifying state that did not change by @huacnlee in #3418
- editor: Add on-demand completion commands by @sola-ryu in #3411
- tab: Add
Foldervariant by @madcodelife in #3415 - table: Clear a right-clicked cell's outline on the next click by @sola-ryu in #3413
- tab: Scroll a clicked tab into view with the next one peeking by @madcodelife in #3419
- table: Allow a header row height separate from the body by @xhofe in #3420
- menu: Focus a context menu before its first frame by @madcodelife in #3422
- text: Preserve logical selection across presentation changes by @TomiXRM in #3421
- text: Keep inline HTML mark highlights in Markdown by @henrikogaard in #3425
- input: Anchor completion/code-action popups to the current frame's caret by @sola-ryu in #3412
- input: Run custom context menu builders after releasing the input by @costajohnt in #3433
- motion: Keep cubic-bezier anticipation and overshoot in Easing by @costajohnt in #3432
- input: Keep auto-grow rows fitted when the limits change by @sneffets in #3430
- text: Paint TextView selection under the glyphs by @cesartalen in #3439
- base: read the pointer only under hovered text, and ask no frame for a closed popup by @sunli829 in #3431
- chore: Restore default codegen units and stop optimizing proc macros by @huacnlee in #3457
- kit: Update GPUI to gpui-pre 0.3.9 by @huacnlee in #3459
- button: Keep the hover style registered while selected or disabled by @madcodelife in #3461
- diff: Wrap the next-change key once the list is scrolled to its end by @Smokanci in #3462
- shell: Ship gpui-shell as an installable runtime with run, new and packaging by @huacnlee in #3464
- shell: Show each release's Shell pages for the binary it ships by @huacnlee in #3479
- table: Don't stop event propagation in
set_selected_rowby @shreeve in #3469 - sidebar: Name the submenu caret button for assistive tech by @noosxe in #3470
- table: Select the first or last row on Home and End in row mode by @shreeve in #3471
- input: Skip the notify in
set_line_numberwhen nothing changes by @shreeve in #3475 - input: Clamp the vertical scroll offset in all layout modes by @shreeve in #3477
- table: Restore the default column resize protection by @shreeve in #3472
- resizable: Add
ResizablePanel::fixedto keep a panel's size on container resizes by @shreeve in #3478 - tests: Build each crate's integration tests as one binary by @sunli829 in #3481
- input: Let
Editortake a size, asTextareadoes by @shreeve in #3480 - message_scroller: Add
logical_scroll_topto read the reading position by @UncertaintyDeterminesYou4ndMe in #3485 - shell: Add
bundleto package an application, and adevcommand by @huacnlee in #3487 - table: Add
DataTable::fixed_cols_borderby @shreeve in #3482 - input: Add
EditorState::wrap_row_countandprewrapby @shreeve in #3483 - input: Expose the editor display map instead of a row count wrapper by @huacnlee in #3495
- input: Keep a scroll over text that can scroll, even at its end by @shreeve in #3484
- docs: Add Home and End selecting the first and last row by @shreeve in #3486
- tooltip: Keep a pressed trigger's tooltip dismissed until the pointer leaves by @alex-vas in #3492
- table: Fit a column to its content on double-click of its resize handle by @miimsam in #3489
- slider: Add accessibility labels by @lurenjia534 in #3494
- tests: Keep the WebSocket pending-read test pumping until its server closes by @madcodelife in #3497
- shell: Fix the runtime gaps found by the gpui-shell benchmark apps by @huacnlee in #3505
- shell: Strip symbols from release builds by @huacnlee in #3507
- tooltip: Fix direction-dependent switching between triggers by @mrkishi in #3501
- shell: Fix a Wayland crash when activating the window at launch by @huacnlee in #3508
- shell: Fold script failures to one line and explain what failed by @huacnlee in #3509
- scroll: Bounce scrollable content like NSScrollView, by default on macOS by @shreeve in #3500
- highlighter: Add syntect as a lighter syntax highlighting backend by @huacnlee in #3512
- webview: Clip native views without resizing the page by @superoskin in #3499
- input: Fix the caret flashing off on click, and draw it crisp at 1px by @huacnlee in #3515
- shell: Fix more runtime gaps found by the benchmark apps by @huacnlee in #3510
- shell: Gate the process probe helper to Unix by @huacnlee in #3530
- focus_trap: Keep focus contained and preserve accessibility by @ruiyangke in #3443
- select: Correct keyboard confirmation and item reconciliation by @ruiyangke in #3446
- scroll: Scroll horizontal strips with a vertical mouse wheel by @KingEmma7 in #3518
- shell: Add WebView and WebViewState to the component catalog by @huacnlee in #3532
- window_border: Don't offer resizing for a window that isn't resizable by @CodeName-Anti in #3525
- shell: Accept a Background in bg and add a shadow style by @huacnlee in #3534
- base: Mark disabled controls disabled on their accessibility node by @huacnlee in #3531
- table: Add
TableState::select_on_modifier_clickby @shreeve in #3523 - scrollbar: Leave presses and hover over an occluding element to it by @lukelast in #3526
- input: Let the textarea scrollbar drag reach the content end by @dannyward630 in #3527
- base: Skip shared heading callbacks when comparing text styles by @KlausUllrich in #3536
- shell: Add script methods to MessageScrollerState by @UncertaintyDeterminesYou4ndMe in #3541
- shell: Let an embedding host extend the gpui-component catalog by @UncertaintyDeterminesYou4ndMe in #3542
- shell: Declare the component catalog under its registry's module specifier by @UncertaintyDeterminesYou4ndMe in #3543
- shell: Let a script release retained component state by @UncertaintyDeterminesYou4ndMe in #3544
- docs: Correct three gpui-shell script-facing docs by @UncertaintyDeterminesYou4ndMe in #3545
- dock: Report the user's dock toggles with DockToggleEvent by @IHadACookie in #3546
- shell: Keep a list's reading position when its item count changes by @UncertaintyDeterminesYou4ndMe in #3547
- shell: Let a script textarea submit on Enter by @UncertaintyDeterminesYou4ndMe in #3550
- input: Name the clear button for screen readers by @Bombatomica64 in #3554
- input: Report a masked input as a password field to screen readers by @Bombatomica64 in #3555
- input: Keep the text on Android's back button with clean_on_escape by @Bombatomica64 in #3556
- input: Name the mask toggle by @counterbeing in #3562
- shell: Add
on_visible_range_changeto report what a list shows by @UncertaintyDeterminesYou4ndMe in #3549 - diff: Keep the row-height hint after the list lays out at a new width by @zzfn in #3563
- input: Tell the platform's keyboard how to assist each input by @Bombatomica64 in #3557
- website: Link to Native Shell from the nav and READMEs by @huacnlee with @Copilot in #3571
- shell: Act on the link itself for lstat, readlink, unlink, rmdir and rename by @zzfn in #3561
- tests: Fix gpui-shell path assertions on Windows and report script build errors by @Elitelord in #3535
- input: share display_map and prewrap across text modes by @TomiXRM in #3564
- table: Let DataTable turn off its focus ring with focus_ring(false) by @abduladnan-mt7 in #3565
- website: Update Native Shell domain and add project logos by @huacnlee in #3579
- text: Keep
<pre>text as text through the HTML minifier by @UncertaintyDeterminesYou4ndMe in #3570 - text: Keep whitespace in
<pre><code>through the HTML minifier by @madcodelife in #3581 - tree: select and toggle entries on click instead of mouse down by @kevin9327 in #3567
- text: editor_host, a public API for external editors by @wabzqem in #3580
- setting: Name bool fields after their setting's title by @Elitelord in #3524
- shell: Add
with_follow_modeto make a list follow its tail by @UncertaintyDeterminesYou4ndMe in #3548 - text: Break the line where an HTML
<br>stands by @UncertaintyDeterminesYou4ndMe in #3569 - tooltip: Dismiss the tooltip when its trigger is removed by @dux-web in #3528
- tab: Draw the sliding indicator on the frame after a bar's first by @H1X4Dev in #3574
- table: Cover DataTable builder and focus ring configuration by @YidaWeng in #3572
- slider: Write the indicator's bounds only when they moved by @H1X4Dev in #3575
- list: Notify from set_searchable only when it changes by @H1X4Dev in #3576
- setting: Name dropdown, number and text fields after their setting's title by @madcodelife in #3582
- ci: Quote the tooltip test command so the workflow parses by @madcodelife in #3592
- tests: Accept USERPROFILE as the default home variable on Windows by @Elitelord in #3593
- webview: Support gpui-pre and make
gpui-fastoptional again by @madcodelife in #3591 - motion: Preserve transition and presence duration precision by @TomiXRM in #3590
- popover: Preserve keyboard activation in content by @TomiXRM in #3586
- text: Add SelectionFormat::SourceAcrossStyles by @stippi in #3517
- release: Publish GPUI with crates.io wgpu 30.0.1 by @huacnlee in #3600
- input: Let hosts choose how completion labels are highlighted by @xhofe in #3496
- input: keep caret rows visible in constrained viewports by @TomiXRM in #3583
- input: anchor custom search queries to the viewport by @TomiXRM in #3584
- tab_bar: run a tab's own on_click from the overflow menu by @kevin9327 in #3568
- text: Prevent stale selections from returning after remount by @TomiXRM in #3588
- text: Copy the current TextView selection before repaint by @TomiXRM in #3589
New Contributors
- @xxww0098 made their first contribution in #3404
- @sola-ryu made their first contribution in #3403
- @xhofe made their first contribution in #3420
- @TomiXRM made their first contribution in #3421
- @henrikogaard made their first contribution in #3425
- @costajohnt made their first contribution in #3433
- @sneffets made their first contribution in #3430
- @cesartalen made their first contribution in #3439
- @Smokanci made their first contribution in #3462
- @shreeve made their first contribution in #3469
- @UncertaintyDeterminesYou4ndMe made their first contribution in #3485
- @alex-vas made their first contribution in #3492
- @miimsam made their first contribution in #3489
- @mrkishi made their first contribution in #3501
- @superoskin made their first contribution in #3499
- @ruiyangke made their first contribution in #3443
- @KingEmma7 made their first contribution in #3518
- @CodeName-Anti made their first contribution in #3525
- @lukelast made their first contribution in #3526
- @dannyward630 made their first contribution in #3527
- @Elitelord made their first contribution in #3535
- @abduladnan-mt7 made their first contribution in #3565
- @H1X4Dev made their first contribution in #3574
- @YidaWeng made their first contribution in #3572
Full Changelog: v0.7.3...v0.8.0
详细ChangeLogv0.7.3
2026年10月12日
GPUI Kit v0.7.3 replaces v0.7.2, which is yanked: it contains every v0.7.2 change and moves GPUI to the gpui-pre 0.3.9 snapshot. Upgrade from v0.7.1 or v0.7.2 directly to v0.7.3.
This release adds a readonly Diff viewer with a Git history example, an optional GPUI Fast backend, and configurable dialog entrances. It refreshes TextView typography and improves text selection, Editor completions, tables, menus, tooltips and accessibility, and stops several per-frame state writes that made long scrolling views rebuild.
New components and runtime
- Diff: display application-supplied unified or Git patches with the virtualized, readonly
Diffview.DiffFile::parseprepares each file and oneDiffStateshows them all, with Unified or Split layout (DiffMode), syntax highlighting, folding, change navigation, inline word or character emphasis, soft wrapping, annotations, and two-way or diff3 conflict display. Applications own patch loading, review comments and saving. (#3378) - Git history example:
examples/tigis a desktop Git history browser built on Diff, with a resizable commit and file sidebar, Split layout and a settings menu; the Diff review APIs it needed are complete. (#3388) - GPUI snapshot: exact snapshot dependencies are updated to
=0.3.9(zed@93d7456), and the optional GPUI Fast backend requiresgpui-fast0.1.7 on the same snapshot. (#3459) - GPUI Fast backend: enable the optional
gpui-fastfeature (gpui-kit = { version = "0.7", features = ["gpui-fast"] }) to run on GPUI Fast instead of the default gpui-pre backend. Imports and macros are unchanged, and Windows applications embed a single manifest. (#3375, #3380) - Fewer rebuilds: selectable text, the text selection layer,
Root, inputs,TextViewStateand resizable panels no longer write state on frames where nothing changed, so retained views under GPUI Fast stay on their scroll layer. (#3407, #3418)
Editor and text input
- On-demand completions: dispatch the Editor-only
ShowCompletionsaction or callshow_completionsto request suggestions from a command, menu or application shortcut; no default shortcut is bound. (#3411) - Programmatic multi-cursor:
InputState::add_selectionadds a selection while keeping the existing ones, enabling features such as select all occurrences. (#3403) - Context menus: an input keeps its selection and focus ring while its context menu is open, and submenus inherit the parent menu's
action_context, so actions such as Select All reach the source Textarea. Customon_context_menubuilders now run after the input is released and can read its cursor and text. (#3382, #3433) - Fixed completion and code-action popups lagging one frame behind the caret, and auto-grow Textareas collapsing to
min_rowsafterset_auto_growchanges the limits. (#3412, #3430)
Markdown and text rendering
- Typography: TextView headings build hierarchy with weight, sizes and spacing scale with the inherited font size, and lists, code, links and tables are more restrained. See Behavior changes. (#3371)
- Selection: mouse selections include block
MarkdownPlugincontent as whole blocks, completed selections survive style, zoom and width changes, and the selection paints under the glyphs so opaque selection colors keep text readable. (#3373, #3390, #3421, #3439) - Tables: narrow columns size from measured text width and stay on one line, and rounded table frames keep clean corners at any horizontal scroll offset.
RoundedFrameCoveris available for application frames with their own rounded scroll viewports. (#3399, #3309, #3400) - Fixed inline
<mark>highlights in Markdown, includingcolorandbackground-colorattributes. (#3425)
Components
- Dialog: choose an entrance with
entrance(DialogEntrance::Fade),FadeSlide,Noneor the defaultSlideDownonDialogandAlertDialog;AlertDialog::margin_topmoves an alert off the default top offset. (#3405, #3404) - Tooltip: install
TooltipDefaultsto set the application-wide show delay and grace period, or override one trigger withtooltip_show_delay. (#3376) - DataTable:
header_row_heightsets header rows apart from body rows; the sort icon is a labelled button;visible_rows_changedreports one-row and empty tables; a right-clicked cell's outline clears on the next click, exposed throughTableState::right_clicked_cell. (#3420, #3396, #3397, #3413) - ContextMenu: a long press opens the menu on touch devices, and the menu takes focus before its first frame, avoiding a debug-build abort with accessibility active. (#3393, #3422)
- TabBar: clicking a clipped tab scrolls it into view with the next tab peeking. (#3419)
- Dock: closing the focused tab hands focus to the tab that replaces it. (#3409)
- DropdownButton:
menu_accessibility_labelnames the caret-only menu trigger, with a localized "More options" default. (#3410) - Settings: focus rings stay inside the list viewport. (#3394)
- UI tests:
Progress,ProgressCircleandTitleBarcan be found withTestWindowExt::find. (#3383)
Documentation
- Focus and dialogs: the guides explain recovering focus when the focused element stops rendering, and the
open_dialogbuilder and footer contracts. (#3386, #3406)
Behavior changes
TextView renders with new default typography. Heading sizes follow the inherited font size, the paragraph gap is 0.75rem (was 1rem), and list, inline code, link and table cell styling change. The paragraph gap, headings and code blocks can be restored through the existing style hooks. (#3371)
TextViewStyle::default()
+ .paragraph_gap(rems(1.))Table column widths in the default wrap layout change for most Markdown tables. A drag that starts and ends inside the same block plugin no longer selects it. (#3399, #3390)
While a context menu is open, focus that the application moves elsewhere is no longer pulled back to the menu. (#3422)
TableDelegate::visible_rows_changed now fires with 0..1 for a one-row table and 0..0 when the rows drop to none, and its end never passes rows_count. (#3397)
TooltipRequest::placement is deprecated in favor of with_placement. (#3376)
- TooltipRequest::new(bounds, build).placement(Placement::Right)
+ TooltipRequest::new(bounds, build).with_placement(Placement::Right)Thank you to everyone who contributed code, documentation, testing, and feedback!
What's Changed
- text_view: Improve default typography by @madcodelife in #3371
- text_view: Include block plugins in mouse selections by @lurenjia534 in #3373
- kit: Add optional gpui-fast backend by @huacnlee in #3375
- tooltip: Make show delay and grace period configurable with
TooltipDefaultsby @madcodelife in #3376 - docs: Explain recovering focus when the focused element stops rendering by @AncientPixel in #3386
- diff: Add readonly patch viewer by @huacnlee in #3378
- kit: Use one Windows manifest with GPUI Fast by @huacnlee in #3380
- test: Make Progress and TitleBar findable in UI tests by @AncientPixel in #3383
- input: Preserve selection, focus ring and context menu actions by @lurenjia534 in #3382
- diff: Add a Git history example and complete review APIs by @huacnlee in #3388
- text_view: Ignore gestures that stay inside one block plugin by @ylinwind in #3390
- text_view: Round the first and last table rows to the frame radius by @ihavecoke in #3309
- menu: Open a context menu with a long press on touch by @Bombatomica64 in #3393
- text_view: Keep narrow table columns on one line by @madcodelife in #3399
- settings: Keep focus rings inside the list viewport by @lurenjia534 in #3394
- scrollable_mask: Keep rounded scroll-table corners clean at any scroll offset by @ihavecoke in #3400
- dialog: Add margin_top to AlertDialog by @xxww0098 in #3404
- input: Add InputState::add_selection for programmatic multi-cursor by @sola-ryu in #3403
- text_selection: Stop writing selection state on every frame by @huacnlee in #3407
- table: Make the sort icon a labelled button by @AncientPixel in #3396
- table: Report visible row ranges of one row or none by @AncientPixel in #3397
- dialog: Support configurable entrance animations by @xxww0098 in #3405
- docs: Explain the open_dialog builder and footer contracts by @xxww0098 in #3406
- dock: Hand the focus to the tab that replaces a closed one by @sola-ryu in #3409
- dropdown_button: Add A11y names for the menu trigger by @sola-ryu in #3410
- text, resizable: Stop notifying state that did not change by @huacnlee in #3418
- editor: Add on-demand completion commands by @sola-ryu in #3411
- table: Clear a right-clicked cell's outline on the next click by @sola-ryu in #3413
- tab: Scroll a clicked tab into view with the next one peeking by @madcodelife in #3419
- table: Allow a header row height separate from the body by @xhofe in #3420
- menu: Focus a context menu before its first frame by @madcodelife in #3422
- text: Preserve logical selection across presentation changes by @TomiXRM in #3421
- text: Keep inline HTML mark highlights in Markdown by @henrikogaard in #3425
- input: Anchor completion/code-action popups to the current frame's caret by @sola-ryu in #3412
- input: Run custom context menu builders after releasing the input by @costajohnt in #3433
- input: Keep auto-grow rows fitted when the limits change by @sneffets in #3430
- text: Paint TextView selection under the glyphs by @cesartalen in #3439
- kit: Update GPUI to gpui-pre 0.3.9 by @huacnlee in #3459
New Contributors
- @xxww0098 made their first contribution in #3404
- @sola-ryu made their first contribution in #3403
- @xhofe made their first contribution in #3420
- @TomiXRM made their first contribution in #3421
- @henrikogaard made their first contribution in #3425
- @costajohnt made their first contribution in #3433
- @sneffets made their first contribution in #3430
- @cesartalen made their first contribution in #3439
Full Changelog: v0.7.1...v0.7.3
详细ChangeLogv0.7.1
2026年10月05日
v0.7.1
GPUI Kit v0.7.1 adds speech input and ColorSelect, and gives charts an initial draw-in animation. It improves IME editing, inline-token interactions, Markdown source mapping and streaming, keyboard focus, and table rendering. This release pins the GPUI snapshot dependencies to 0.3.8.
New components and charts
- Speech input: enable the
speechfeature to capture audio withSpeechState, start and stop sessions withSpeechButton, and display levels withSpeechWaveform. Applications can supply aSpeechRecognizerandAudioInput; native system recognition is available on supported macOS and Windows configurations, while Linux needs an application recognizer. (#3333) - Speech waveform: levels are sampled once per 80 ms, and the waveform starts empty and scrolls smoothly from the trailing edge using its own playhead. (#3352)
- ColorSelect: use a framed color field with a swatch, hex value and caret in forms.
ColorSelect::newsharesColorPickerStatewith the compact picker, and supports placeholder and accessible-name overrides.ColorPickernow applies its root style refinements. (#3289) - Chart appear motion: built-in charts draw their data in on first paint, with reduced-motion support. Use
.appear(false)to opt out or.appear_key(...)to replay;PlotAppearScoperemembers completed animations across virtual-list remounts while the scope remains painted. Existing custom plots retain their behavior unless they opt in. (#3296, #3308)
Editor and text input
- Inline-token hover:
Input::on_token_hoverandTextarea::on_token_hoverreport token entry and exit withInlineTokenHoverEvent, so applications can anchor tooltips or previews without changing selection. JavaScript bindings expose the same interaction. (#3346) - Fixed IME candidate positioning before repaint and grouped rewrites of a typed character, including Korean IME input, into the typing undo step. (#3297, #3341)
- Fixed Textarea row-based height, text clipping in short single-line frames, and consistency between soft wrapping and horizontal scrolling. (#3330, #3343, #3358)
- Fixed completion-prefix measurement and stale trigger offsets, Kotlin syntax-query compilation, and stale syntax-injection ranges. (#3363, #3367, #3317)
- Fixed mask validation for non-ASCII characters, including Chinese literal separators and characters matched by
*. (#3369)
Markdown and text rendering
- Source-based highlights:
RenderedText::sourceexposes the source of the rendered snapshot, andrange_for_sourceconverts Markdown source byte ranges into rendered ranges forRangeHighlight. (#3281) - Scrollable code blocks: a code-block style with vertical scrolling and a height cap now provides its own scrollbar, handles nested wheel scrolling and keeps code actions pinned. (#3322)
- Improved streaming through incremental prefix updates in
TextViewState::set_textand by committing valid background parse results overtaken by newer chunks. (#3294, #3344) - Fixed CJK punctuation wrapping, inherited text colors in filled containers, and ragged GFM table rows; scroll-table column measurements are reused. (#3293, #3329, #3365, #3318)
Dock and controls
- Dock:
DockArea::set_split_sizesrestores a split's proportions in place, without rebuilding panels, and reports one layout change. (#3314) - Questionnaire: choosing a single-choice answer now confirms the item and advances or submits after a brief feedback pause.
QuestionnaireState::chooseexposes that activation path;activate_choicecontinues to change the answer without confirming. Arrow-key selection, multiple-choice toggles and freeform typing do not auto-advance. (#3350) - Keyboard focus: borderless buttons show a legible focus line, DataTable shows keyboard focus, and popup menus preserve a single keyboard highlight. (#3299, #3300, #3307)
- Control sizing: control text follows the Input/Select size ladder, OtpInput follows interface zoom, and Large Switch uses a larger track. (#3287)
- Clipboard: buttons have a localized accessible name by default;
accessibility_labelprovides a contextual override. (#3354) - Slider: touch drags on the track move the thumb. (#3313)
- Radio: disabled controls stay disabled inside RadioGroup. (#3331)
- Shimmer: the default highlight remains visible on foreground text in dark mode. (#3328)
- Command: item-row corners stay concentric with the frame. (#3285)
Runtime, platform and documentation
-
GPUI snapshot: exact snapshot dependencies are updated to
=0.3.8, with continuation-indent API adaptation preserving the previous wrapping behavior. (#3370) -
Web runtime: target-specific Instant handling avoids a touch-related wasm panic. (#3271)
-
Scrolling: phaseless mouse wheels continue scrolling after an edge bounce. (#3316)
-
Shell: QuickJS JIT is updated to 0.12.11. (#3338)
-
Kit macros: the hidden GPUI re-export points at Kit, keeping generated paths consistent. (#3306)
-
Documentation: release snapshots drive onboarding dependency versions; setup documents the macOS font-kit requirement, and skill examples correct app startup, async and Select re-entrancy usage. (#3284, #3356, #3339, #3345, #3351)
Behavior changes
Charts animate on first paint by default; disable this with .appear(false). Non-interactive built-in charts now retain an element ID for animation and caches, while remaining non-interactive. (#3296)
let chart = LineChart::new(data).interactive(false);
- assert!(Plot::id(&chart).is_none());
+ assert!(Plot::id(&chart).is_some());
+ assert!(!Plot::interactive(&chart));Single-choice Questionnaire activation now confirms by default. Applications that need to change an answer without confirmation can continue to call activate_choice. (#3350)
Thank you to everyone who contributed code, documentation, testing, and feedback!
What's Changed
- command: Keep item row radius concentric with the frame by @madcodelife in #3285
- website: Follow release versions and highlight diffs by @huacnlee in #3284
- base: Gate GlobalState's Instant by target to fix a wasm touch panic by @yoyo930021 in #3271
- color_picker: Add ColorSelect, a framed field that opens the picker by @huacnlee in #3289
- text: Keep inline flow lines within the wrap width for CJK punctuation by @madcodelife in #3293
- button: Show keyboard focus on borderless variants when
focus_ringis off by @madcodelife in #3299 - chart: Add appear motion to
Plotand every chart by @madcodelife in #3296 - text: parse prefix extensions incrementally in TextViewState::set_text (#3291) by @Yi-111-a in #3294
- button: Keep the focus line off text and legible on fills by @madcodelife in #3300
- website: Fit StatusBar demo sections to narrow windows by @ihavecoke in #3301
- docs: Update gpui-kit dependency version to 0.7 in READMEs by @obito-t in #3304
- website: Keep box-drawing glyphs in the gallery font subsets by @ihavecoke in #3305
- table, menu: Show keyboard focus on
DataTableand keep menu highlights on key presses by @madcodelife in #3307 - plot: Keep finished appears across remounts with
PlotAppearScopeby @madcodelife in #3308 - kit: Point the hidden gpui re-export at the Kit itself by @huacnlee in #3306
- dock: Add
DockArea::set_split_sizesto restore a split's slot sizes by @IHadACookie in #3314 - component: Align control text sizes with Input and Select by @huacnlee in #3287
- scroll_bounce: Let phaseless wheels scroll again after bouncing at an edge by @ylinwind in #3316
- highlighter: Clip stale injection ranges to char boundaries before slicing by @huacnlee in #3317
- slider: Let a touch drag on the track move the thumb by @Bombatomica64 in #3313
- chore: upgrade notify to 8.2 and harden theme watching by @orielhaim in #3320
- shell: update QuickJS JIT to 0.12.11 by @huacnlee in #3338
- docs: Document macOS font-kit requirement by @huacnlee in #3339
- text: Avoid remeasuring scroll-table column widths by @lurenjia534 in #3318
- markdown: add source & range_for_source by @tidely in #3281
- text_view: Let fenced code blocks scroll inside a height cap by @jarviisha in #3322
- shimmer: Keep the default highlight visible on foreground text in dark mode by @Bombatomica64 in #3328
- text_view: Follow the container's text color so rich text reads in filled bubbles by @Bombatomica64 in #3329
- input: Make rows set the height of a plain Textarea again by @Bombatomica64 in #3330
- radio: Keep a disabled Radio disabled inside a RadioGroup by @Bombatomica64 in #3331
- input: Keep a single-line Input's text from being clipped in a short frame by @huacnlee in #3343
- website: Fix bold labels in Chinese numbered lists by @ihavecoke in #3342
- skills: Fix async and app startup examples that don't compile by @AncientPixel in #3345
- questionnaire: Confirm a single-choice item when a choice is chosen by @madcodelife in #3350
- skills: Fix the Select re-entrancy test examples by @AncientPixel in #3351
- speech: Add speech input by @madcodelife in #3333
- input: Group IME rewrites of the typed character into one undo step by @insd47 in #3341
- text: Commit background parses that a newer streamed chunk overtook by @FenjuFu in #3344
- input: fall back to last caret for IME candidate bounds before repaint (#3286) by @Yi-111-a in #3297
- website: Fail a docs test on a hand-written GPUI Kit version by @Yi-111-a in #3353
- website: Match onboarding dependencies to release snapshots by @huacnlee in #3356
- clipboard: Add accessibility_label to name the icon button by @counterbeing in #3354
- input: report inline token hover for tooltips and previews by @Muhammad-Owais-Warsi in #3346
- input: Keep horizontal scrolling and soft wrapping consistent by @suxiaoshao in #3358
- editor: Measure the completion prefix from the typed text and drop stale trigger offsets by @abderbejaoui in #3363
- highlighter: Make the Kotlin query compile against its grammar by @PieWhite in #3367
- text_view: normalize GFM table rows to the header column count by @kossoy in #3365
- input: Count characters, not bytes, when validating a mask pattern by @kevin9327 in #3369
- speech: Pace
SpeechWaveformat one bar per 80 ms and scroll it smoothly by @madcodelife in #3352 - kit: Update GPUI to gpui-pre 0.3.8 and prepare v0.7.1 by @huacnlee in #3370
New Contributors
- @yoyo930021 made their first contribution in #3271
- @Bombatomica64 made their first contribution in #3313
- @orielhaim made their first contribution in #3320
- @AncientPixel made their first contribution in #3345
- @insd47 made their first contribution in #3341
- @FenjuFu made their first contribution in #3344
- @counterbeing made their first contribution in #3354
- @abderbejaoui made their first contribution in #3363
- @PieWhite made their first contribution in #3367
- @kevin9327 made their first contribution in #3369
Full Changelog: v0.7.0...v0.7.1
详细ChangeLogv0.7.0
2026年09月28日
GPUI Kit v0.7.0 adds Toolbar, Questionnaire and TimeField, and makes window startup and overlay hosting consistent through a Base-owned Root. Plot primitives are now available without the styled component layer, while Input, TextView and charts gain richer editing, search, date/time and data-visualization APIs. This release also improves Dock interactions, accessibility, streaming and large-data performance; review the Breaking Changes below before upgrading.
New components
-
Toolbar and ToolbarGroup: compose application command rows with source-order controls, semantic groups, separators and flexible spacers. Left/Right moves focus through enabled controls with wrapping. The styled toolbar propagates its density to hosted controls and gives Buttons compact ghost presentation;
child/childrenaccept sized controls, whilecontent/contentsaccept labels, separators and custom content. The default size is Small; XSmall and Medium are supported, and Large uses Medium. Disabling toolbar navigation does not disable its controls automatically. (#3128) -
Questionnaire: build single-choice, multiple-choice and freeform questionnaires around
QuestionnaireState, with composable question, choice, input, progress and action parts. The component handles validation, optional skipping, keyboard shortcuts, focus, navigation and submission, using existing Radio, Checkbox, Input and Button controls. (#2878) -
TimeField and date/time picking: edit segmented hours and minutes, optionally seconds, using
TimeFieldState,TimePrecision::{Minute, Second}andHourCycle::{H23, H12}. A styled TimeField works independently in forms, and DatePicker enables time editing throughtime_precision,hour_cycleanddefault_time.date_time/set_date_timeexpose the combined value; date/time presets useDateRangePreset::date_time. In time-enabled single mode, each edit emits Change while the popup stays open; range mode remains date-only. DatePicker Change payloads require migration below. (#3206)
Window hosting and framework boundaries
-
One window entry point:
gpui_kit::open_window(options, cx, build)returns(AnyWindowHandle, Entity<V>)and always wraps application content ingpui_base::Root, independent of Cargo feature unification. Callgpui_kit::init(cx)first, return content from the builder, and retain the returned entity when you need application state. In async work, invoke the helper insidecx.update; quit/close actions and keybindings remain application-owned. (#3152) -
Automatic overlay hosting: Root owns content, overlay hosting, keyboard traversal and selection copying;
gpui_component::Rootre-exports the Base type. Component initialization registers per-window presentation for dialogs, sheets, notifications, menus, tooltips, touch selection and window chrome. Manual layer-rendering APIs are removed; application operations remain onWindowExt. (#3152) -
Root plugins: design systems can register typed
RootPluginimplementations withRoot::register_plugin, retrieve them withRoot::plugin, and use preparation, styling and decoration hooks. Plugins are instantiated per window in registration order. Register them before creating windows; replacing a factory affects future windows, and existing roots are not retrofitted. (#3152) -
Plot primitives in Base: scales, shapes, axes, grids, labels, the
Plottrait, path caches and hover tracking move togpui_kit::base::plot, enabling custom charts without a Component dependency. Existinggpui_kit::component::plotimports remain available through re-exports.PlotElement<P>is the element behind custom plots and#[derive(IntoPlot)];PlotMotionandPlotThemeprovide theme-projected pointer and hover motion. Base defaults to no motion, styled charts now acceptf32, and Component forwards itsdecimalfeature to Base. Custom primitive APIs require migration below. (#3258)
Simplified window startup
gpui_kit::init(cx) and gpui_kit::open_window provide a compact, standard startup sequence. The builder creates application content, and Kit supplies the Root and automatically hosts dialogs, sheets and notifications. Use WindowExt for Component operations, gpui_base::TextSelection for selection, and WindowOptions with window_border() for window decoration. (#3152)
gpui_kit::init(cx);
let (window_handle, content) =
gpui_kit::open_window(options, cx, |window, cx| {
build_content(window, cx)
})?;Updating existing window code
The following examples show how existing startup, overlay and window-operation code maps to the simplified APIs.
- cx.open_window(options, |window, cx| {
- let content = build_content(window, cx);
- cx.new(|cx| Root::new(content, window, cx))
- })
+ let (window_handle, content) =
+ gpui_kit::open_window(options, cx, |window, cx| {
+ build_content(window, cx)
+ })?;- let sheet_layer = Root::render_sheet_layer(window, cx);
- let dialog_layer = Root::render_dialog_layer(window, cx);
- let notification_layer = Root::render_notification_layer(window, cx);
-
div()
.child(content)
- .children(sheet_layer)
- .children(dialog_layer.map(|layer| deferred(layer).with_priority(1)))
- .children(notification_layer)- Root::bordered
- Root::window_shadow_size
+ window_border()- window.selected_text(cx)
+ TextSelection::selected_text(window, cx)
- window.has_text_selection(cx)
+ TextSelection::has_selection(window, cx)
- root.clear_text_selection(window, cx)
- window.clear_text_selection(cx)
+ TextSelection::clear(window, cx)
- window.end_text_selection(cx)
+ TextSelection::end(window, cx)- root.open_dialog(build, window, cx)
+ window.open_dialog(cx, build)
- root.close_dialog(window, cx)
+ window.close_dialog(cx)
- root.close_all_dialogs(window, cx)
+ window.close_all_dialogs(cx)
- root.open_sheet_at(placement, build, window, cx)
+ window.open_sheet_at(placement, cx, build)
- root.close_sheet(window, cx)
+ window.close_sheet(cx)
- root.push_notification(notification, window, cx)
+ window.push_notification(notification, cx)
- root.remove_notification::<T>(window, cx)
+ window.remove_notification::<T>(cx)
- root.remove_notification1::<T>(key, window, cx)
+ window.remove_notification1::<T>(key, cx)
- root.clear_notifications(window, cx)
+ window.clear_notifications(cx)Editor and text input
-
Atomic inline tokens: Input and Textarea can represent mentions, commands and resource references as
InlineTokenannotations. Usereplace_with_token/replace_range_with_tokento insert them,InputContent::with_tokento restore validated ranges, andcontent()to save a draft. Caret movement, selection, deletion and undo treat each token as one unit, while values and clipboard content remain plain text. Customize presentation withtokenand activation withon_token_clickorActivateToken. Tokens are opt-in and unavailable in Editor, NumberInput, password and formatted-mask modes. (#3113) -
Editor range decorations: independent consumers can create edit-tracked
RangeDecorationCollectionhandles throughEditorState::create_range_decorations_collection.RangeDecorationsupportsRangeDecorationStyle::{Fill, Frame}with optional color; collections can set, append, clear, read tracked ranges or dispose. Decorations use UTF-8 byte ranges and paint only visible spans, including soft wraps, CRLF and folded text.InputExtras::range_decorationshas a default empty implementation, so existing implementers continue to compile. (#3040) -
Textarea sizing and editor gutters: Textarea supports the standard size system like Input, and the line-number gutter adapts between three and seven digits instead of reserving an unsuitable fixed width. (#3191, #3205)
-
Focus, selection and asynchronous editing: corrected disabled-input pointer focus, preferred columns and vertical selection affinity, drag-selection autoscroll, stale completion/inline responses, IME selection direction and undo boundaries, replacement-field focus and explicit GoToDefinition requests. Accessibility Focus refuses disabled inputs; SetValue is advertised and applied only when editable. Re-requesting code actions refreshes an already-open menu, including empty results. (#3254, #3256, #3274)
-
Caret lifecycle and navigation: programmatic updates no longer start permanent blink/repaint loops on unfocused inputs; blur clears stale blink state so refocusing restores a blinking caret. Editing scrolls directly to a distant caret rather than animating through the whole document. (#3139, #3140, #3150)
-
Web clipboard paste: Input context menus offer Paste whenever the input is editable, and fall back to asynchronous clipboard reading when synchronous reading is unavailable. The paste request starts from the user action and rechecks editability when it resolves. (#3244)
-
Editor performance and Unicode safety: reduce diagnostic/definition-hover repaints, debounce transient hover requests, avoid inactive search rescans and query only visible search highlights. Syntax classification reuses Rope-backed parse results and injection trees. Tree-sitter receives bytes, preventing aborts when a read begins inside a multibyte character. (#3260, #3263, #3238)
-
Input context menus: documentation now makes clear that
InputState::context_menu(false)disables the entire right-click menu, including a custom Input/Textarea/Editor menu. Keep the state menu enabled when supplying a custom builder; the builder replaces the built-in items. (#3275)
Markdown and text rendering
-
Source-aware selection:
TextViewState::selected_source_range()returns the original Markdown byte range for the actual rendered selection, distinguishing repeated occurrences instead of guessing from selected text. (#3136) -
Search highlights and reveal: search
TextViewState::rendered_text()and applyRangeHighlightvalues withset_range_highlights;clear_range_highlightsremoves them. Ranges refer to UTF-8 bytes in rendered copy text, so searches can cross Markdown formatting. Highlights preserve layout, selection and copy behavior, and survive unchanged content and append-only streaming.reveal_rangemakes the starting line visible in a scrollable TextView or an application list;TextView::on_revealsupplies window-space bounds for custom scroll containers. Reveal is best effort, and highlights are currently Markdown-only. (#3215, #3216) -
Heading refinements: Base
TextViewStyle::with_headingaccepts a level-awareStyleRefinementcallback for typography, spacing, color and borders, layered over built-in heading defaults. Component keeps its existing compatibility heading fields and builders. (#3129) -
Markdown correctness: preserve ordered-list starting numbers and prose in unclaimed math spans, pair inline HTML tags correctly, and keep lines containing inline code as tall as equivalent plain-text lines. (#3204, #3178, #3240)
-
Streaming and large documents:
stream_fadestaggers by word and skips oversized chunks, with throttled repaints. Reuse inline layout and paragraph render caches, avoid unnecessary hover/selection work, and remove quadratic source-mapping and table-highlight reconciliation paths. Text selection in a cached dock view stays registered instead of flickering and keeping the window repainting. (#3153, #3226, #3180, #3261, #3247, #3273, #3193)
Charts and plot motion
-
Stable live-series geometry: LineChart and AreaChart support
y_domain(min, max)for a fixed value range andpoint_count(count)for reserved x-axis slots, so arriving data keeps its position. Values outside the fixed domain are clipped. BarChart addsband_countfor the equivalent fixed-band layout. (#3209, #3220) -
Axes, grids and reference lines: LineChart/AreaChart add
y_axis,y_axis_label_placement,y_tick_count,y_tick_format,x_tick_count,grid_columns,grid_dashed, repeatablereference_lineandy_padding. BarChart addsvalue_axis_label_placement,value_tick_format,band_tick_countandgrid_dashed.AxisLabelPlacement::{Outside, Inside}controls value-label placement.chart.grid/ThemeColor::chart_gridseparate grids from axis borders, with a 60%-opacity border fallback for themes that omit the token. (#3220, #3236) -
Bar labels and spacing:
label_colorcolors labels per datum,padding_inner/padding_outerexpose band spacing, andmin_lengthkeeps zero or small bars visible. Vertical charts reserve space for labels. BarChart and CandlestickChart exposemax_band_width, retaining their default 30px maximum while Base ScaleBand no longer imposes one. (#3217, #3258) -
Tooltip customization: LineChart, AreaChart, BarChart, RadarChart and CandlestickChart add
tooltip_title,tooltip_value,tooltip_value_colorandtooltip_content. Multivalue chart callbacks also receive a row index. PieChart and SankeyChart addtooltip_name/tooltip_valueindependently of labels painted on the chart.Tooltip::value_colorcolors the latest row andplain_rowadds totals without a swatch; a bar tooltip swatch follows the bar color. (#3228, #3176) -
Interaction and motion: chart IDs default to their construction site so hover works without an explicit ID; provide distinct IDs when multiple charts share a construction site.
interactive(false)removes hitboxes, hover emphasis, tooltips and path caches for placeholders or covered charts. Tooltip glides its own crosshair/dots and grows dot halos with hover progress;Tooltip::glide(false)disables that spring. Custom plots can usePlotHover::glideand the Base hover-motion helpers. (#3173, #3176, #3222, #3258) -
Painting performance: LineChart and AreaChart use index-based point placement to avoid quadratic value lookups and correctly position duplicate x values at their own indices. Candlestick wicks avoid per-candle path tessellation, and chart hover/painting avoids redundant work. (#3262)
Dock and resizing
-
Nested docks and tab closing: moving a panel from a dock that does not own it no longer creates duplicate or ghost tabs.
DockSkin::set_close_button_visibleenables built-in close buttons, hidden by default;TabGroupContext::is_panel_closablerespects both dock and panel constraints. Custom tab renderers retain control over presentation and frame geometry. (#3197) -
Continuous bottom-dock resizing: drag a collapsible bottom dock below its minimum, through the closed strip and back open in one motion. Release snaps to the nearer closed or minimum-open state; transient sizes below the minimum are not persisted. Custom resize drivers finish with
DockContext::end_resize. (#3229) -
Resize indicators: dividers grow their indicator as the pointer engages, hugging handles paint their hairline on the seam, and dock hairlines no longer draw over popovers. (#3175, #3200, #3221)
Theme synchronization
- Theme updates:
Theme::update(cx, |theme| ...)edits the global theme, reconciles solid colors and gradient tokens, updates the Base projection, resolves changed fonts and refreshes all windows. Use it for palette, mode, typography and other theme edits instead of manually synchronizing each representation.Theme::global_mutandTheme::sync_baseremain available for callers that manage synchronization themselves. (#3122)
Components and accessibility
-
Popover trigger styling:
Popover::trigger_stylenow applies to the actual trigger container, so width/flex refinements affect both parent layout and popup anchoring. Base Popover implements Styled; DropdownMenu keeps Button styling on the Button instead of applying it twice. (#3245) -
Attachment: composer attachments include
on_remove,on_retry,progress(percent)andtooltip; interactive controls and tooltips requireid. Progress is 0–100 and clamped. Media receives correctly rounded corners and upload/failure treatments, including retry when a failed image has no source.AttachmentGroup::track_scrolllets the application drive scrolling andwith_edge_fadesignals clipped attachments. Default chip geometry and failure styling change to the composer presentation. (#3195, #3233) -
Settings and GroupBox:
GroupBox::footer/SettingGroup::footerplace supporting content outside the group surface.SettingGroup::variantoverrides theSettings::with_group_variantdefault for one group;GroupBoxVariant::Normalpresents items without a card surface. Selecting a group on another settings page now scrolls to the intended group. (#3133, #3203, #3219) -
Table:
TableSelection::{None, Row, Column, Cell}withTableState::selection/set_selectionmodels the active selection as one value. Positional getters return only the active selection type; stale row appearance and accessibility selection state are corrected. Filler rows and cell rendering avoid redundant work. (#3143, #3264) -
Popover:
offsetsets the trigger gap andarrow(true)adds an arrow for all eight anchors. Horizontal-center anchor placement is corrected. Popover/AppMenu triggers use the new defaultSelectable::open/is_openmethods to distinguish an open popup from application selection; existing Selectable implementations retain the default compatibility behavior. (#3145, #3125) -
Dialog:
button_propsmerges explicitly supplied fields, preserving existing Cancel visibility and callbacks. AlertDialog addsok_text,ok_variant,cancel_textandcancel_variant. Oversized dialogs reclaim the upper window space while normal and stacked dialogs retain their preferred placement. (#3126, #3188) -
Select: closing an open menu emits
DismissEvent, including after Confirm; the popup aligns with the trigger at the right edge. Long option labels truncate with an ellipsis while keeping the checkmark visible. Custom full-row renderers receive a shrinkable container and should apply text truncation themselves. (#3144, #3218, #3280) -
Menus: context-menu actions fire once on the row actually pressed even when rows share a construction site. PopupMenu, DropdownMenu and Popover release their entities and subscriptions when their host disappears, preventing leaks and stale popup registrations from suppressing later Input context menus. (#3135, #3224, #3267, #3279)
-
Switch: the track shows a keyboard focus ring, with
focus_ring(false),tab_stopandtab_indexcontrols. Long labels no longer shrink the track. (#3120, #3154) -
Sidebar and List: SidebarMenuItem exposes its visible label, TreeItem role and selected state to assistive technology. SidebarMenuItem, ListItem and SidebarToggleButton accept
accessibility_label. The focused ListState container carries the List role, and a right-clicked list item retains its outline. (#3160, #3249, #3155) -
Chat composition:
Marker::alignment(MarkerAlignment::{Start, Center, End})controls row and wrapped-text alignment across variants.Message::id/roleprovide stable accessibility identity; Message content inherits caller/bubble typography. Ghost Bubble children are no longer clipped. (#3151, #3171, #3172) -
Form: caller styling such as padding, gaps and background takes effect, and
Field::visible(false)actually hides fields without leaving empty grid rows. Hidden fields are not built or laid out. (#3248, #3269)
Performance and resource use
-
Command: unchanged command models retain their measured rows and search results across parent rerenders, while new callbacks and selection updates still apply. Models with custom child closures or changed layout continue to remeasure. (#3268)
-
Tree and SearchableVec: visible tree rows avoid deep subtree clones and defer context-menu entry cloning until the menu opens. SearchableVec filters by indices instead of cloning matching items or entire groups, evaluating each match once. (#3265, #3279)
-
Carousel and Rating: ancestor scrolling no longer rebuilds Carousel geometry or interrupts a running snap animation. Rating repaints on real hover-value changes rather than every pointer movement. (#3266, #3270)
-
Pagination, ColorPicker, Accordion and Notification: ellipsis menus show at most the 100 hidden pages nearest the current page; closed ColorPicker popups defer their bodies; Accordion content unmounts after the closing spring settles; persistent notifications stop lifecycle ticking once transitions finish. See the Accordion state-lifetime note below. (#3279)
Shell, runtime and platform
-
GPUI snapshot: Kit now pins the complete
gpui-pre-*snapshot family to=0.3.7, including the newly published bench-metrics package. All 25 snapshot packages resolve together; the independentgpui-pre-reqwestfork remains at 0.12.15. (#3283) -
Shell inline tokens and TimeField: JavaScript InputState/TextareaState mirror token insertion, draft content, token slots and token click callbacks. JavaScript ranges use UTF-16 offsets, while Rust uses UTF-8 bytes; validation failures expose
error.code. Shell also exposes TimeField state/elements. Host integration adds optional retained-state methods viaStateMethodDescriptor/StateDescriptor::with_methodsand frame-owned interactive token subtrees. (#3113, #3206) -
Script image policy: HTML/Markdown TextView document images obey the creating script's HTTP GET capabilities, including intrinsic-size measurement and every redirect. Loading is asynchronous, view-owned and canceled on disposal, with timeout/body/redirect limits and no HTTPS downgrade. Non-HTTP(S) document images, including data URLs, are refused; the application-asset
image(path)API is unchanged. Base adds a narrow document-image source override for embedders. (#3230) -
Base controls: Base Dialog centers a normal-flow popup by default and blocks popup presses from reaching its backdrop; Base AlertDialog implements Styled. Base single-line Input vertically centers its text within its frame, while multiline layout is unchanged. These defaults do not alter styled Component Dialog/Input placement. (#3277, #3278)
-
Web and touch: Base WASM examples bundle IBM Plex Sans so
.SystemUIFontresolves and canvases render. Centered notification stacks work reliably on the web. A short touch drag that catches an active ScrollBounce no longer produces a reverse fling; intentional longer flings and edge bounce are preserved. (#3235, #3149, #3207)
Documentation and website
-
Versioned documentation: the latest release is served at
/, development docs at/versions/main, and release snapshots at/versions/<tag>. Snapshot isolation and version-local links prevent newer pages or navigation from leaking into older docs; shared WASM examples load from the site root, and historical versions without component pages still build. (#3159, #3189, #3243, #3165, #3196) -
Framework manual: expanded bilingual guides cover Entity, Window, Context, Render, RenderOnce, Element, Action/Event, ownership, focus, tasks, painting, text, accessibility, animation and WebAssembly, with runnable exercises and troubleshooting. New Packaging, Auto Update and Images guides cover distribution, user-level Linux installation, embedded assets,
img,svgand HTTP caching. Menu-bar guidance documents binding keys beforeset_menus, and focus guidance explains explicit Tab stops. (#3179, #3181, #3225, #3232, #3239, #3124) -
Website themes and navigation: the theme palette reads theme JSON directly, previews and confirms with keyboard navigation, restores on cancel, and synchronizes the chosen JSON with embedded WASM examples.
Cmd+K/Ctrl+Kopens theme selection;/opens docs search. Text selection usesselection.background, falling back toprimary.background, and active sidebar entries are easier to identify. Custom website themes and design-guide illustrations are refined. (#3198, #3241, #3242, #3237, #3211, #3212) -
Documentation licensing: eligible documentation prose and original illustrations carry CC BY 4.0 attribution; software and code examples retain Apache-2.0 permissions. (#3225)
Breaking Changes
Custom Plot primitives
Component plot import paths remain re-exported, but custom plots must migrate primitive APIs. StrokeStyle/stroke_style are removed in favor of Curve/curve; scale ranges become arrays, domains accept iterators, and PlotValue replaces the hidden Sealed bound. least_index becomes nearest_index; least_index_with_domain is removed. Arc paints/contains use the radii configured on the Arc, and Grid x/y accept iterators. ScaleBand has no implicit 30px cap: set max_band_width if needed. TooltipState, AxisText, label::Text, ArcData, StackPoint, StackSeries, SankeyLink, SankeyNodeLayout, SankeyLinkLayout and SankeyGraph are non-exhaustive and should use their constructors. PlotAxis::default() now equals new() with its x-axis line visible. IntoPlot derives use PlotElement<Self> rather than implementing Element directly; the hidden plot::tooltip::track_hover is removed. Base Theme struct literals need plot. Deprecated aliases remain this release for AXIS_GAP, dot_fill_color, dot_stroke_color, PlotHover::focus and Tooltip::focus; prefer axis_gutter, dot_fill, dot_stroke and progress. Existing chart curve builders remain unchanged. (#3258)
- use gpui_kit::base::plot::StrokeStyle;
+ use gpui_kit::base::plot::Curve;
- Line::new().stroke_style(StrokeStyle::StepAfter)
+ Line::new().curve(Curve::StepAfter)
- Area::new().stroke_style(StrokeStyle::Linear)
+ Area::new().curve(Curve::Linear)- let y = ScaleLinear::new(values.collect(), vec![height, 0.]);
+ let y = ScaleLinear::new(values, [height, 0.]);
- where Y: Copy + PartialOrd + Num + ToPrimitive + Sealed
+ where Y: PlotValue
- let ix = scale.least_index(tick);
+ let ix = scale.nearest_index(tick);
- arc.paint(&data, color, None, Some(radius), &bounds, window);
+ Arc::new().outer_radius(radius).paint(&data, color, &bounds, window);
- Grid::new().y(ticks.collect())
+ Grid::new().y(ticks) gpui_base::Theme {
appearance,
tokens,
scrollbar,
resizable,
+ plot: gpui_base::PlotTheme::default(),
}DatePicker event values
DatePickerEvent::Change now carries DateTime, not Date. Date-only consumers can use value.date(); format keeps its signature. Exhaustive matches on DateRangePresetValue must handle the new DateTime variant. (#3206)
cx.subscribe(&picker, |this, _, event, _| match event {
- DatePickerEvent::Change(date) => match date {
+ DatePickerEvent::Change(value) => match value.date() {
Date::Single(Some(date)) => { /* … */ }
_ => {}
},
});Base heading styling
Base TextViewStyle removes with_heading_base_font_size, heading_base_font_size, with_heading_font_size and heading_font_size. Use with_heading/heading and a StyleRefinement callback. The Component compatibility facade retains its old fields and builders. (#3129)
-TextViewStyle::default()
- .with_heading_base_font_size(px(14.))
- .with_heading_font_size(|level, base| resolve_size(level, base))
+TextViewStyle::default().with_heading(|level| {
+ StyleRefinement::default().text_size(resolve_size(level))
+})Table selection getters
Each positional getter reports only its active selection type. To obtain the row of a selected cell, map selected_cell() or match selection(); keep inactive-selection history in the application if required. (#3143)
table.set_selected_cell(5, 3, cx);
-let row = table.selected_row();
+let row = table.selected_cell().map(|(row_ix, _)| row_ix);
table.set_selected_row(2, cx);
-assert_eq!(table.selected_cell(), Some((5, 3)));
+assert_eq!(table.selected_cell(), None);
+assert_eq!(table.selection(), TableSelection::Row(2));BarChart tick counts
value_tick_count(n) now means n ticks, not n intervals. Add one to an explicit old count to preserve its appearance. The default changes from four intervals to five ticks, preserving the default chart layout. (#3209)
- BarChart::new(data).value_axis(true).value_tick_count(6)
+ BarChart::new(data).value_axis(true).value_tick_count(7)Custom tooltip motion
Tooltip now springs its own crosshair/dots. Remove a custom spring or use Tooltip::glide(false) to avoid applying motion twice. Pass full Dot halo sizes; Tooltip applies hover progress itself. (#3222)
- let center = self.band_center.unwrap_or(state.cross_line.x);
- Tooltip::new(cursor, bounds.size)
- .cross_line(CrossLine::new(point(center, state.cross_line.y)))
+ Tooltip::new(cursor, bounds.size)
+ .cross_line(CrossLine::new(state.cross_line))- Dot::new(p).halo(px(20. * hover.focus()))
+ Dot::new(p).halo(px(20.))Shell document image permissions
Script TextView signatures are unchanged, but remote document images now need explicit GET grants for their URL and every redirect target. Non-HTTP(S) sources, including data URLs, are refused; image(path) application assets are unaffected. (#3230)
- Policy::new()
+ Policy::new().with_capabilities(Capabilities::new().http_requests([
+ HttpRequestGrant::new("images.example", ["GET"], ["/image.png"], [] as [&str; 0]),
+ ]))Select dismissal ordering
Existing DismissEvent subscribers now run when an open menu closes. Confirm emits SelectEvent::Confirm followed by DismissEvent; opening or closing an already-closed menu does not dismiss. (#3144)
// An existing SelectState DismissEvent subscription after Escape:
-// No callback.
+// One callback after the menu transitions to closed.
// After confirming an item:
-// SelectEvent::Confirm only.
+// SelectEvent::Confirm, then DismissEvent.Popover horizontal-center anchors
LeftCenter places the popup to the right of the trigger; RightCenter places it to the left, both vertically centered. These no longer fall back to top-left positioning. Top/bottom anchors keep their default placement and do not flip when clamped. (#3145)
- .anchor(Anchor::LeftCenter) // Legacy top-left fallback
+ .anchor(Anchor::LeftCenter) // Right of the trigger, vertically centered
- .anchor(Anchor::RightCenter) // Legacy top-left fallback
+ .anchor(Anchor::RightCenter) // Left of the trigger, vertically centeredIndividually disabled Accordion items
An item marked disabled stays disabled instead of being accidentally enabled by its parent. Explicitly enable it if expansion is intended; builder signatures are unchanged. (#3141)
Accordion::new("settings").item(|item| item.title("Advanced").disabled(true))
-// Clicking Advanced can expand it.
+// Clicking Advanced leaves it closed.Message typography inheritance
Message no longer imposes text_sm and a 1.25 line height on its subtree. Header/footer typography remains local; bare MessageContent inherits the surrounding style, so explicitly style content that depended on the previous row defaults. (#3171)
- Message::new().content(MessageContent::new().child("plain text")) // rendered text_sm / 1.25
+ Message::new().content(MessageContent::new().child("plain text")) // inherits the caller's text styleBase Dialog placement and pointer occlusion
Normal-flow Base popups center by default; style the host to recover top-left placement. Popup presses no longer reach the backdrop, so size popup parts to their content instead of using a full-window popup wrapper. Styled Component Dialog positioning is unchanged. (#3277)
- Dialog::new(cx).popup(popup)
+ Dialog::new(cx).items_start().justify_start().popup(popup)Base single-line Input alignment
A Base single-line input fills its frame and vertically centers its line. If a tall frame relied on top placement, use a one-line-height frame for the previous appearance. Multiline and styled Component input layout is unchanged. (#3278)
Accordion content lifetime and pagination limits
Closed Accordion content unmounts after its close spring settles, dropping element/keyed state held inside the panel. Preserve durable state in entities. Under reduced motion this optimization keeps content mounted. Pagination ellipsis menus cap hidden-page choices at the nearest 100; use successive menus to reach farther pages. (#3279)
Form visibility and attachment presentation
Field::visible(false) now hides the field instead of being ignored. Attachment has new default chip sizing, radius, status overlays and failure colors; review applications that depended on its former content-sized geometry. (#3269, #3195)
Chart labels and duplicate x values
LineChart/AreaChart position duplicate x values at their individual indices, matching hover. Vertical BarChart with labels reserves slightly more top space (bars draw 2px shorter); PieChart tooltip labels are configured separately from leader-line labels. (#3262, #3217, #3176)
Thank you to everyone who contributed code, documentation, testing, and feedback!
What's Changed
- chore: Add a /release-notes command by @huacnlee in #3117
- chart: Start a pie leader line at the lifted slice edge by @madcodelife in #3121
- chore: Move the tested consumer crate into the workspace by @huacnlee in #3118
- chart: Fix the pie radius fallback and fit the gallery's region labels by @madcodelife in #3123
- docs: Bind keys before the menu bar, and say what makes a handle a Tab stop by @huacnlee in #3124
- input: Add atomic inline tokens to Input and Textarea by @suxiaoshao in #3113
- switch: Draw the focus ring when the switch is focused by @huacnlee in #3120
- theme: Add
Theme::updateto keep colors, tokens and the Base projection in step by @huacnlee in #3122 - popover: Tell the trigger it is open instead of selected by @huacnlee in #3125
- popup: Keep the client inset only on untiled window edges by @huacnlee in #3130
- dialog: Merge
button_propsinstead of replacing them by @huacnlee in #3126 - questionnaire: Add a Questionnaire component by @suxiaoshao in #2878
- menu: Draw a context menu only from the trigger that was pressed by @huacnlee in #3135
- input: Clear the blink state when the cursor stops by @novakduc in #3139
- input: Do not start the blink cursor on an unfocused input by @novakduc in #3140
- table: Read and write the selection as one
TableSelectionvalue by @violetpurpleish in #3143 - label: Skip highlights while masked by @violetpurpleish in #3142
- setting: Add optional footers outside group surfaces by @AprilNEA in #3133
- accordion: Preserve disabled state of individual items by @violetpurpleish in #3141
- select: Emit dismissal when an open menu closes by @violetpurpleish in #3144
- popover: Add offset and optional anchor-aligned arrows by @huacnlee in #3145
- gpui-pre: Inject staged crates as git dependencies in the kit check by @huacnlee in #3146
- gpui-pre: Publish even when gpui-kit fails the compatibility check by @huacnlee in #3148
- kit: Update GPUI to gpui-pre 0.3.6 by @huacnlee in #3147
- marker: Add
alignmentfor centered and trailing rows by @madcodelife in #3151 - text: Stagger
stream_fadeby word, dropping it for oversized chunks by @madcodelife in #3153 - list: Restore the outline on the right-clicked item by @madcodelife in #3155
- notification: Fix center notification stacks reliably on web by @huacnlee in #3149
- kit: Pin gpui-pre to the exact snapshot each release is built against by @huacnlee in #3163
- website: Publish versioned website builds by @huacnlee in #3159
- text_view: Add
TextViewState::selected_source_rangeby @tidely in #3136 - input: Scroll straight to a far-off caret after an edit by @Tryanks in #3150
- website: Load shared WASM examples from root by @huacnlee in #3165
- message: Add
idandrole, stop setting the row's typography by @madcodelife in #3171 - bubble: Do not clip the children of a
Ghostbubble by @madcodelife in #3172 - chart: Default a chart's id to its construction site by @madcodelife in #3173
- story: Keep a chart card's legend inside the card by @madcodelife in #3174
- root: Add Base window hosting and a single Kit startup entry point by @huacnlee in #3152
- resizable: Grow an indicator as the pointer engages a divider by @madcodelife in #3175
- markdown: Keep prose inside unclaimed math spans and pair inline HTML tags by @IHadACookie in #3178
- chart: Let a chart stand down, and let its tooltip say what it means by @madcodelife in #3176
- website: Add docs for GPUI action, event by @huacnlee in #3179
- toolbar: Add Toolbar and ToolbarGroup components by @bipinnatus2k in #3128
- switch: Preserve track width with long labels by @violetpurpleish in #3154
- website: add GPUI core concept guides by @huacnlee in #3181
- text: Refine heading styles by level by @wweziza in #3129
- text_view: Lay an inline flow out once, not every frame by @stippi in #3180
- website: isolate versioned documentation snapshots by @huacnlee in #3189
- dialog: Reclaim top space for oversized content by @huacnlee in #3188
- text_selection: Keep a participant whose cached view replayed its frame by @madcodelife in #3193
- website: Fix historical website builds without component pages by @huacnlee in #3196
- resizable: Draw a hugging handle's hairline on the seam by @madcodelife in #3200
- website: add JSON-backed theme command palette by @huacnlee in #3198
- dock: fix nested moves and add opt-in tab close controls by @huacnlee in #3197
- input: Add collection-owned geometric range decorations by @feigeCode in #3040
- editor: Size line-number gutter between three and seven digits by @huacnlee in #3205
- input: Let Textarea take a size, like Input by @Alanaktion in #3191
- highlighter: Remove deprecated usize import by @akeit0 in #3186
- a11y: accessible names for SidebarMenuItem, ListItem and SidebarToggleButton by @noosxe in #3160
- setting: let SettingGroup override the settings-level group variant by @ayangweb in #3203
- mobile: stop reverse fling after short ScrollBounce catch by @huacnlee in #3207
- website: Refine design guides and restore custom website themes by @huacnlee in #3211
- chart: Pin the y axis and reserve points in line and area charts, count ticks in
value_tick_countby @IHadACookie in #3209 - website: Pace radius hierarchy animation in distinct phases by @huacnlee in #3212
- story: Show slider scales through Story composition by @huacnlee in #3213
- markdown: Fix Markdown ordered-list starting numbers by @wabzqem in #3204
- select: Stop the popup from overhanging the trigger on the right by @madcodelife in #3218
- setting: Scroll to a group selected from another page by @madcodelife in #3219
- chart: Color a bar chart's labels per bar, set its band padding, and keep empty bars visible by @IHadACookie in #3217
- resizable: Stop a dock handle's hairline from painting over popovers by @madcodelife in #3221
- date_picker: Support editing the time of day with
TimeFieldby @madcodelife in #3206 - chart: Label the value axis, lay out the grid and mark reference lines in line, area and bar charts by @IHadACookie in #3220
- plot: Glide the tooltip's crosshair and dots in
Tooltipitself by @madcodelife in #3222 - text_view: Add range highlights by @white07S in #3215
- menu: Break Rc cycle that leaked PopupMenu entity on window close by @lysci in #3224
- text: Throttle streamed-fade repaints to reduce CPU use by @Astro-Han in #3226
- docs: expand GPUI core guides and improve documentation UI by @huacnlee in #3225
- chart: Customize series chart tooltips by @IHadACookie in #3228
- dock: Drag a bottom dock shut and back open in one continuous motion by @madcodelife in #3229
- attachment: Adopt the composer design with built-in remove, retry and progress by @madcodelife in #3195
- docs: deepen GPUI manual and add release guides by @huacnlee in #3232
- base: Bundle IBM Plex Sans so the web examples resolve
.SystemUIFontby @ihavecoke in #3235 - text_view: Add
TextViewState::reveal_rangeby @white07S in #3216 - highlighter: Read tree-sitter input as bytes to avoid aborting inside multi-byte chars by @huacnlee in #3238
- website: Make the active sidebar item stand out by @huacnlee in #3237
- chart: Add
chart.gridtheme color for grid lines by @madcodelife in #3236 - text: Keep a line with inline code as tall as a plain line by @huacnlee in #3240
- docs: add an Images guide covering img, svg and HTTP caching by @huacnlee in #3239
- website: fix text selection theme token by @yuuzhou5 in #3241
- shell: Enforce script network policy for TextView images by @lurenjia534 in #3230
- website: Fall back to
primary.backgroundfor themes withoutselection.backgroundby @madcodelife in #3242 - attachment: Show retry control when failed media has no source by @huacnlee in #3233
- website: Keep versioned docs links inside their version by @huacnlee in #3243
- docs: Share repository instructions across coding agents by @suxiaoshao in #3251
- input: Fix accessibility focus and SetValue by @steipete in #3246
- text: Avoid quadratic table highlight remapping by @lurenjia534 in #3247
- form: Apply Styled refinements to Form by @Yi-111-a in #3248
- list: Paint Role::List on focusable ListState container by @Yi-111-a in #3249
- input: Revert #3246 to restore reverse tab traversal by @huacnlee in #3253
- input: Restore guarded accessibility actions without changing tab order by @huacnlee in #3254
- input: Cover UI workflows and fix disabled focus and vertical selection by @huacnlee in #3256
- docs: base manual UI review checks on test coverage by @huacnlee in #3257
- perf(input): reduce redundant work in the code editor by @huacnlee in #3260
- perf(chart): speed up painting and hover by @huacnlee in #3262
- perf(text): reduce streaming, hover and selection work in TextView by @huacnlee in #3261
- perf(table): speed up cell rendering by @huacnlee in #3264
- perf(carousel): stop relayout on ancestor scroll by @huacnlee in #3266
- perf(highlighter): reuse injection trees by @huacnlee in #3263
- perf(tree): avoid cloning subtrees by @huacnlee in #3265
- perf(form): skip rendering hidden fields by @huacnlee in #3269
- perf(rating): skip redundant hover repaints by @huacnlee in #3270
- input: Refresh an open code action menu on a new request by @huacnlee in #3274
- perf(command): skip remeasuring unchanged rows by @huacnlee in #3268
- perf(menu): fix DropdownMenu memory leak by @huacnlee in #3267
- text_view: Avoid quadratic Markdown source mapping by @lurenjia534 in #3273
- docs(input): context_menu(false) also turns off a custom menu by @huacnlee in #3275
- input: Paste from the context menu on the wasm by @Muhammad-Owais-Warsi in #3244
- base: Center the Dialog popup by default and keep presses on it by @huacnlee in #3277
- base: Center a single-line Input in its frame by default by @huacnlee in #3278
- perf: reduce redundant work in six components by @huacnlee in #3279
- select: Truncate overflowing option labels with an ellipsis by @huacnlee in #3280
- plot: Move plot primitives to gpui-base by @huacnlee in #3258
- release: Skip Kit compatibility checks when publishing GPUI by @huacnlee in #3282
- popover: Apply trigger_style to the trigger container by @Yi-111-a in #3245
- kit: Update GPUI to gpui-pre 0.3.7 by @huacnlee in #3283
New Contributors
- @novakduc made their first contribution in #3139
- @violetpurpleish made their first contribution in #3143
- @AprilNEA made their first contribution in #3133
- @tidely made their first contribution in #3136
- @bipinnatus2k made their first contribution in #3128
- @wweziza made their first contribution in #3129
- @Alanaktion made their first contribution in #3191
- @akeit0 made their first contribution in #3186
- @noosxe made their first contribution in #3160
- @ayangweb made their first contribution in #3203
- @white07S made their first contribution in #3215
- @lysci made their first contribution in #3224
- @Astro-Han made their first contribution in #3226
- @yuuzhou5 made their first contribution in #3241
- @steipete made their first contribution in #3246
- @Yi-111-a made their first contribution in #3248
Full Changelog: v0.6.6...v0.7.0
详细ChangeLogv0.6.6
2026年09月21日
- label: Skip highlights while masked (#3142) by @violetpurpleish
- kit: Pin gpui-pre to the exact snapshot each release is built against (#3163) by @huacnlee
Full Changelog: v0.6.4...v0.6.6
详细ChangeLog