Repository navigation
Polish the reasoning panel, switch drives when adding folders, repeat CLI --path - #205
Merged
Merged
Conversation
The top-right button in the reasoning panel restores the default effort, but it looked like a refresh control and did nothing when the effort was already Default. Show it only when another level is selected or the saved level is unsupported, and spin it once while the thumb glides back to Default. At Default the fill was half a thumb wide, so its corners were squeezed and showed as a blue crescent outside the thumb and the track. The knob is now inset 3px in the track, the fill extends to the thumb's outer edge so its end stays concentric, Default shows no fill, and the panel corner radius matches the track inset.
On Windows the folder picker lost "Back" at a drive root, so the only way to reach another drive was typing D:\ into a path field that did not look editable. Add a folder_locations command that lists Home, Desktop, Documents and Downloads plus mounted volumes: drive letters with labels and types on Windows (network drives are not probed, and critical-error dialogs are suppressed for empty removable drives), /Volumes on macOS, and mount points under /media, /run/media and /mnt on Linux. The "Home" button becomes a location menu that names the current drive. Going up from a drive or filesystem root lists all drives. The path field accepts quoted paths from "Copy as path", and a bare drive letter opens its root.
`sag --path A --path B` now searches the union of the directories as one request, ranked together, with -m as the limit for the whole search. Repeated directories and ones inside another selected directory are searched once. --exclude applies relative to each directory, as `paths` does in the HTTP API. Semantic search and -E/-F both support it. If any directory is missing, has no indexed content or is not ready, the whole command fails and names it instead of skipping it or widening the scope. Single-directory requests keep their wire format; `paths` is only sent when there is more than one directory. Search and match output gain `scopes` next to the existing `scope`. Closes #196
The service reports only the top-level error message to the CLI, so wrapping the cause in a context hid it: a rejected directory printed just "cannot search directory" without saying it was missing or unindexed. Build one message that names the directory and its reason, and assert the reason in the CLI integration test.
- Keep focus on the slider after resetting the reasoning effort for mouse users too; the reset button unmounts after its spin. - Stop the reset glide as soon as the user moves the slider, so a drag right after a reset is not animated. - Show the loading state when opening a drive from the all-drives view, so a slow network drive gives feedback instead of a list that looks unchanged. - Document that when one --path contains another, the inner directory is merged into the outer one and --exclude is relative to the outer one, as in the HTTP API.
…cli-paths # Conflicts: # CHANGELOG.md # docs-site/content/docs/updates.en.mdx # docs-site/content/docs/updates.mdx
luoshuai990529
marked this pull request as ready for review
November 28, 2026 03:30
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.
Change and validation
User-visible changes
folder_locationscommand lists Home, Desktop, Documents and Downloads plus mounted volumes: drive letters with labels and types on Windows,/Volumeson macOS, and mount points under/media,/run/mediaand/mnton Linux. The Home button becomes a location menu that names the current drive. Going up from a drive or filesystem root lists all drives. The path field accepts quoted paths from Copy as path, and a bareD:opens that drive's root. On Windows, network drives are not probed for labels, and critical-error dialogs are suppressed while probing empty removable drives.--pathinsag(closes 功能建議:SAG CLI 支援重複指定 --path,與 HTTP API 的多目錄搜尋一致 #196). Several directories are searched as one request with a single ranking.-mlimits the whole search. Repeated directories and ones inside another selected directory are searched once.--excludeapplies relative to each directory, matchingpathsin the HTTP API. This works for semantic search and-E/-F. If any directory is missing, unindexed or not ready, the command fails and names it.Compatibility
pathsonCommand::SearchandMatchRequestis omitted when empty, so single-directory requests are unchanged on the wire and older CLIs keep working.sag_client::ensurealready makes sure the running service is at least as new as the CLI, sopathsnever reaches a service that would ignore it.scopes;scopestays and holds the first directory.folder_locationsis unavailable.Tests
svelte-checkreports 0 errors, andnpm run buildsucceeds.core(including 4 new multi-directory CLI service tests),src-tauri(27 tests, including new location tests),cli(all test binaries, including a new repeated--pathintegration test) andclient. The Windows drive code was type-checked withcargo check --target x86_64-pc-windows-msvc.folder_locationsoutput was checked on macOS.## 0.4.7. The docs site builds, and the affected pages, images and search results were checked.automatic-release.mjs check-notespasses.Platform and synchronization
mainRelease
This PR is merged last and without
release:skip, so it prepares the 0.4.7 release. #204 is labeledrelease:skipand merges first. The## 0.4.7section here consolidates the release notes for #204 and this PR, so after #204 merges,mainis merged into this branch and the changelog conflict is resolved in favor of this section.Review follow-ups in this PR: a rejected
--pathnow reports its reason (the service passes only the top-level error message to the CLI), focus stays on the slider after a reset, the drives view shows a loading state, and the docs note that a--pathinside another one is merged into it (as in the HTTP API).