feat: add permission mode selector visibility preference - #1767
Merged
Conversation
- Persist the visibility preference only when the selector is hidden. - Add selector hide action and settings recovery toggle. - Update localized copy and coverage for the new preference.
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.
Summary
Fixes #
Type and Areas
Type: Feature / UI/UX
Areas: Rust core, Web UI, i18n
Motivation / Impact
Users who keep Full Access enabled can hide the prominent permission mode selector without changing the active permission policy. The selector can be restored from Tool Permissions settings.
Verification
pnpm run fmt:rscargo test -p bitfun-core app_flow_chat_permission_mode_control_defaults_to_visible_without_persisting_default -- --nocapturepnpm run type-check:webpnpm --dir src/web-ui run test:run src/flow_chat/components/ChatInputWorkspaceStrip.test.tsxpnpm run i18n:auditgit diff --checkAll commands passed. Interactive verification was not run.
Reviewer Notes
app.flow_chat.show_permission_mode_controldefaults totrue.truevalue is omitted during serialization; only an explicit hidden state (false) is persisted.Checklist