Repository navigation
Agent pane: @ picks a file for the session's context - #549
Merged
Merged
Conversation
Typing "@" in the coding agent pane's message box opens a list of files, like Claude Code Desktop: the folder the session works in first, then the open specifications folder when that is another one. What follows the "@" narrows the list with the Files tab's name search. Picking a file puts @<path> in the message and adds the file as a kept context chip, so the agent is told it with every message until it is removed. - src/server/agentFiles.ts and GET /api/agent/files: the two folders' matches, at most 20 and 10, each with the path the message's refs carry and the one its words use; the app's .specdriven/ store is left out. - src/server/agent.ts: checkRefs also takes absolute paths inside the session's folder (the create and message routes pass it); any other path is still refused. - src/server/codeSearch.ts: the file lists are kept for up to four folders, and topFiles lists what a bare "@" shows. - AgentPane.tsx / agentChat.ts / index.css: the popup, its keys (arrows, Enter/Tab, Escape), and the hints. Spec: specs/agents/agent-pane.feature.md S33 (spec repo). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ctron-builder's asar Two advisories published after main's last green audit: - GHSA-3924-r96c-gp9w (minimatch 11.0.6-11.0.9): minimatch 11.0.10, in range. - GHSA-c6wh-w8c3-cv3g (glob <=14.0.5): the only copy is glob 7.2.3 under @electron/asar, which app-builder-lib pins, and rimraf 2 — build tooling only, and glob 14's API would break asar, so it is ignored with the reason beside the other ignores. Co-Authored-By: Claude Opus 5.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.
Typing
@in the coding agent pane's message box opens a list of files, as in Claude Code Desktop. Picking one adds it to the session's context.What the user sees
@at the start of the message or after a space opens a list over the box: the files of the folder the session works in, then, when the open specifications folder is another folder, its files, tagged with its name. A bare@lists the files nearest the top.@narrows the list with the Files tab's name search, with the matched letters highlighted. Ignored files and the app's own.specdriven/store are never listed. At most 20 files from the session's folder and 10 from the specs folder are shown.@inside a word (an e-mail address) opens nothing.@<path>in the message and a kept context chip. It goes with every message until removed, told to the agent in the existing[Context — …]line: relative to the agent's folder, or in full when it is elsewhere.Changes
src/server/agentFiles.tsandGET /api/agent/files(local app only): matches from both folders, each with the ref the message carries and the path its words use.src/server/agent.ts:checkRefsalso accepts absolute paths inside the session's folder (create and message routes). Every other path is still refused, now with "refs must be paths inside the open folder or the session's folder".src/server/codeSearch.ts: file lists cached for up to four folders instead of one;topFilesfor a bare@.AgentPane.tsx,agentChat.ts,index.css: the popup, its keys, and the hints.Spec
specs/agents/agent-pane.feature.mdS33 "@ picks a file for the context" (new), and S17's server bullet reworded. These live in the spec repo, not in this PR.Testing
tests/agentEngine.test.ts(checkRefs, both folders and the caps, the routes, a picked file told to the agent) andtests/agentComposer.test.tsx(mentionAt/applyMention, the popup end to end).bun testfor the agent, codeSearch, api and files tests: 416 pass.tscis clean.@, a query hitting both folders, keyboard picks of two files, and a send. The double was told the code file relative to its folder and the spec file by full path.@also works in a running session's box.