Repository navigation
feat(security): segmented choices, and built-in tool rules whose action can be set - #97
Merged
Merged
Conversation
…on can be set Single choices across the app become one segmented control, like the appearance setting: the protection modes, the log's type filter, the time range, the overview's chart measure, the routing probes' modes and the action in the rule dialog. A row of separate buttons reads as separate actions; joined, it reads as one choice among a few. A built-in tool-call rule's action on enforce (cut off or record only) can now be set in its dialog, which shows the factory setting when it differs. Built-in rules supply the pattern; what happens on a match is the user's call, without copying the rule first. Pins core v0.19.0, which also finds a key right after a JSON escape. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Two follow-ups to #96, from looking at it in the app.
Single choices look like the appearance setting
These were rows of separate outlined buttons:
They are now one segmented control, the one the appearance and notification settings already use. Joined segments read as one choice among a few; separate buttons read as separate actions.
Segmentedmoves tosrc/ui/, the old import path re-exports it, and it takes an accessible label.A built-in tool-call rule's action can be set
A built-in rule supplies the pattern and a factory action. Whether a match is cut off in enforce mode is now set in the rule's dialog, as it is for a custom rule. When the setting differs from the factory one, the dialog says what the factory setting was. The row menu offers Edit for these rules; Copy as a custom rule stays, for changing the pattern.
This pins core v0.19.0, which carries ThinkWatchProject/ThinkWatch-Core#88 for the action. It also carries ThinkWatchProject/ThinkWatch-Core#87, so a key right after a JSON escape, such as one at the start of a line, is found again.
Checks
tsc,vitest(181 passed) andbuildpass.cargo clippy -D warningsandcargo testpass insrc-tauri.rm-rf-rootto cut off and back;🤖 Generated with Claude Code