Repository navigation
gpui-rhai 0.2.3
gpui-rhai 0.2.3
Release date: 2026-10-22. A patch release of 0.2 that is not fully
compatible with 0.2.2; read Not compatible with 0.2.2 below
before upgrading. Runtime API stays 3, gpui-pre/core/platform stay 0.3.7
and MSRV stays 1.95. Upgrade core, registry and CLI together.
It adds retained pages and navigation stacks, shared scrollbar sources and
tail-following collections, ColumnBrowser, Composer and selectable cards,
calendars, time inputs, time ranges and timelines, a native Markdown viewer,
recalibrated palettes, and CLI fixes that keep copied sources current; the full
list is in the CHANGELOG.
Not compatible with 0.2.2
- Rust Hosts:
PendingEventandActionInvocationgain anownerfield.
Addowner: Noneto literals you build by hand, keep the owner on messages
the runtime produced, and deliver them through the lifecycle's transactional
event/action entry points. - Tables: an Array-backed Table with an explicit
sortnow sorts in Rust,
as NativeCollection Tables do, instead of keeping the caller's order.
sort.keynames the declared display column and an optional column
sort_keynames its scalar rank field. Remove a caller-side sort that
duplicates it, or omitsortto keep an explicitly ordered Array. - Token base and palettes: official components now use
control.border
andcontrol.danger_hover/control.warning_hover/
control.success_hover, which the token base derives from the palette's
on_danger,on_warningandon_success.gpui-rhai updatebrings them
into an unmodified or baselinedui/tokens.rhai(below). A hand-edited copy
without a baseline must take the new lines fromregistry/tokens.rhai;
otherwise the theme fails to load withlacks tokens required by components/button. A custom palette must define the threeon_*colors;
every bundled palette does.
Upgrading from 0.2.2
Copied official components and theme sources
Upgrade the CLI first: the 0.2.3 gpui-rhai update does what the 0.2.2 one
could not.
- Same-version changes: 19 official modules changed without a version
change:components/button,checkbox,code_viewer,combobox,
command,date_picker,diff_viewer,icon_button,input,
input_group,list,menu,popover,radio,split_pane,table,
tabs,textareaandtoggle_group. The 0.2.2 CLI skipped such changes
(this is how a pre-#140 SplitPane survived updates, #156); 0.2.3 compares the
installed baseline with the bundled source and merges them. - Token base and palettes (#183):
updatenow mergesui/tokens.rhaiand
the bundled palettes inui/themes/like components. A project from 0.2.0 to
0.2.2 has no baselines for them: a copy equal to the registry gets one, a copy
still exactly as one of those releases installed it is replaced, and any
other is left alone with anote:line to merge by hand.ui/theme.rhai
stays yours. - New modules:
components/calendar,column_browser,markdown_viewer,
selectable_card_group,time_input,time_range_picker,timelineand
patterns/composer,navigation_stack; install them withgpui-rhai add.
Merges keep local edits and write conflicts to .gpui-rhai/conflicts/.
Behaviour to check
- Bundled palettes are recalibrated for reading contrast, and editable fields,
choice marks and outline buttons draw the strongercontrol.border. Input
placeholders usetext_muted(an overridableplaceholderpart) instead of a
fixed 55% opacity. - SplitPane's default grip is an animated bar that grows from 24px to 40px. A
drag is cancelled only when a committed change alters its interaction
contract, not by unrelated rerenders. gpui-rhai checknow resolves calls into the application's own modules
(#184). It used to fail on any application with modules of its own, so
running it may now report real findings it never reached before.gpui-rhai embedincludes the application's own modules; regenerate the
embedded module if the entry imports any.
Hosts (Rust)
Additions, besides the owner field above:
ScrollbarSource,ScrollbarContext,ScrollbarSourceHandleand source
adapters for Host scroll surfaces;VirtualCollectionScrollHandleshares the
tail-following state.NavigateBackandScriptViewHost::navigate_back.WallClock/WallClockSource, time zones andTimeRangevalues, without
the charts feature.NativeTextDocumentregistration on mounted views, the native Markdown
viewer and a Host-ownedMarkdownPreparationCache
(document_runtime_config().set_markdown_cache(...),
markdown_preparation_stats()).
Scripts
- Tabs
keep_mounted,patterns/navigation_stackandctx.is_visible(). ColumnBrowser,patterns/composer,SelectableCardGroup, Textarea
submit_key/on_submitandctx.copy_text.Calendar,TimeInput,TimeRangePickerandTimeline.MarkdownViewer.- Collections'
follow_tailandon_follow_change. - SplitPane
handle,grip,handle_renderer,ctx.element_size,
ctx.node_factoryandrender_node.