feat(serve): add @file autocomplete to the web UI - #7738
Open
innocarpe wants to merge 1 commit into
Open
Conversation
innocarpe
force-pushed
the
contrib/r9-serve-at-autocomplete
branch
from
August 6, 2026 11:23
ea0f42c to
de4c91e
Compare
innocarpe
force-pushed
the
contrib/r9-serve-at-autocomplete
branch
from
August 6, 2026 13:31
de4c91e to
f87b227
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.
Summary
Implements #7640 —
@filenameautocomplete for thereasonix serveweb UI (previously only slash commands existed; the desktop React app has a full @-menu).Backend —
GET /files?q=<frag>&dir=<rel>(internal/serve/serve.go, behind the same auth middleware chain):fileref.SkipEntry, hidden files skipped unlessqstarts with.atMatches.tssemantics): case-insensitive substring of basename (preferred), any path segment, or directory name; directories first, capped at 50; bare@returns the root listing;dirscopes one level (desktopListDirparity)dir→ 400; unreadable/non-directory → 200[](silent)Frontend (
index.html, self-contained, zero new tooling — reuses slash-menu popover markup +escHtml/elhelpers):@-token detection mirroring the desktop grammar, 150ms debounce +AbortController+ stale-guard, silent close on empty/errorescapeRefPathparity) +/descend for folderscloseAtMenuwired into send/reload/goal-mode-Esc pathsVerification
go test ./internal/serve/— 118 pass (7 new/filestests: empty-query listing, substring match, hidden-dot-prefix, dir scoping, all 6 traversal forms → 400, unreadable dir → [], depth-limit boundary)go vet/gofmt -l— clean;go build ./cmd/reasonix— OKIssues
Fixes #7640
Documentation impact
Documentation-impact: none - web UI feature; the serve UI is a self-contained HTML, no docs describe its composer behavior.
Cache impact
Cache-impact: none -
internal/serveis not a cache-sensitive path (not listed inscripts/check-cache-impact.sh); no prompt/tool surface touched.Cache-guard: N/A
System-prompt-review: N/A