Repository navigation
Ariadne settings: only a search, or a filter that picks keys, opens every group - #1390
Merged
Merged
Conversation
transfix
force-pushed
the
fix/settings-narrowed-rule
branch
from
November 20, 2026 07:42
883de85 to
797e9d2
Compare
transfix
enabled auto-merge (squash)
November 20, 2026 19:44
…very group Any filter: set the spec's narrowed flag, and ImGui then forced every group header open on every frame. That included a filter made only of '-' patterns, which just leaves keys out. So a user could not collapse a group, and open: / groups: had no say (pycvc_gl.cars' Settings window hides the plant's build keys this way). Now a search narrows the list, and so does a filter with a pattern that picks keys. Both still draw every group open, so no match hides in a closed one. A filter of '-' patterns leaves the groups to open: and groups:, and each one opens and closes by hand. Tests: - ariadne_settings_test: an exclude-only filter isn't narrowed; a search or a picking pattern is; - cvcgl_imgui_settings: a click on a header closes its group under an exclude-only filter, and a picking filter draws a group open with open: false. Both fail under the old rule. docs/ARIADNE.md §4 says which filters narrow.
…e test too On Windows the test and libcvcGL each have their own imgui globals. The new filter checks open a second and a third Session, but ImGui::CreateContext leaves an earlier context current. So the test's own GetIO/NewFrame/Render kept going to the first context, while ImGuiBackend drew into the new one, which never had a NewFrame: imgui.cpp asserted g.WithinFrameScope (package-windows / libcvc-release). Each Session now calls ImGui::SetCurrentContext on its context, as cvcgl_imgui_chat_widgets' does.
transfix
force-pushed
the
fix/settings-narrowed-rule
branch
from
November 20, 2026 22:49
89dba0f to
358b6d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the
settings:widget from #1372, anyfilter:kept every group open on every frame, even one made only of-patterns that just leave keys out.settings_emit.cppsetspec.narrowedfor any non-empty filter, andsettings_imgui.cppthen callsSetNextItemOpen(true, ImGuiCond_Always)on each header. So the user could not collapse a group, andopen:/groups:had no say.#1389 (pycvc_gl.cars' Settings window) shows it. Its
filter: ["-nav_plant.vehicle", "-nav_plant.settings.", "-nav_plant.available"]only hides the plant's build keys, yet it left Vehicle, Plant and the nestedplan/modulationstuck open.On master. It was opened stacked on #1372. After #1372 squash-merged (3cdf2d3), it was rebased onto master as one commit and pushed, so CI/CD runs here. It is independent of #1389.
Change
spec.narrowedis now set by a search, or by a filter with at least one pattern that picks keys (one not starting with-;filter_picks). An empty pattern matches every key, so it doesn't narrow.-patterns only leaves keys out.open:andgroups:decide which groups start open, and each one opens and closes by hand.-patterns and, if there are others, one of them").SettingsSpec::narrowed(backend.h) and in settings_imgui.cpp are updated to match.Tests
ariadne_settings_test, newAFilterThatOnlyLeavesKeysOutKeepsTheGroupsClosable:open: false;cvcgl_imgui_settings, two new checks on a bare ImGui context:open: false.Checked (local Linux Release, on master after the rebase)
ariadne_settings_test,ariadne_loader_test,ariadne_ftxui_testandcvcgl_imgui_settingspass.cars_settings(in a local pycvc_gl.cars offscreen shot, window made taller):groups:say;modulationandplanstart closed (I did not click them there; the ImGui test covers a header click).narrowedchecks.