Repository navigation
fix(files): skip QA copies, task worktrees and .astro in @ file search - #179
Merged
touch2be merged 1 commit intoOct 25, 2026
Merged
Conversation
File mentions searched every directory except .git, node_modules and dist. On a hosted Astro Project, `.opengui-qa` held 9.8 GiB of baseline copies: they filled the result limit before the real files, and an exact image query took over 30 s. Skip `.astro`, `.opengui-qa` and `.opengui-worktrees` as well, at any depth. `.opengui-uploads` stays searchable even when Git ignores it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Problem
The
@file mention search skips only.git,node_modulesanddist. On a hosted Astro Project, generated copies filled the result limit before the real files:.opengui-qaheld QA baseline copies (9.8 GiB in one Project)..opengui-worktreesheld task worktrees..astrois Astro's build cache.Users typing
@foto.jpgsaw only copies. An exact filename query took more than 30 s.Change
server/services/file-search.tsalso skips.astro,.opengui-qaand.opengui-worktrees, at any depth..opengui-uploads(and.opengui-images) stay searchable, even when Git ignores them.This change has been running in production on a patched 0.6.3 Host since 2026-10-16:
jpgquery takes ~0.8 s.Tests
New
server/services/file-search.test.ts(3 tests). Two of them fail onmaster:.astrocopies no longer fillmaxResultsahead of real Project images..opengui-uploadsare still found.Results:
pnpm run checkandpnpm run slop-checkpass.pnpm run test: 1,621 of 1,622 tests pass. The one failure,strip-types-runtime.test.ts, took 16 s against its 15 s timeout under full parallel load and passes on its own.For review
.opengui-qaand.opengui-worktreesare folder conventions of a managed Host deployment, not core OpenGUI. If you'd rather not hardcode them, an alternative is a configurable skip list, or respecting.gitignorewith an exception for.opengui-uploads.🤖 Generated with Claude Code