-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Description
I often to create a symbolic link from a folder in the spec repository to task folders. When attempting to add a file via mention syntax (e.g., @path/to/file), the system rejects files located within a symbolic link directory, even though the symbolic link itself is in the current working directory.
Expected behavior: Files accessible through a symbolic link in the current working directory should be allowed in context, since the symbolic link provides a valid path from the CWD.
Actual behavior: The system displays the error message: File not added to context. Must be inside current working directory.
Reproduction Steps
-
Create a project directory:
mkdir /tmp/project
-
Create a folder outside the project with a test file:
mkdir /tmp/linked_folder echo "test content" > /tmp/linked_folder/test.txt
-
Create a symbolic link to the external folder inside the project:
ln -s /tmp/linked_folder /tmp/project/linked_folder
-
Open opencode.nvim with
/tmp/projectas the working directory -
Attempt to add the file using the mention syntax:
@linked_folder/test.txt -
Observe the error:
File not added to context. Must be inside current working directory.