fix(agents): reference files of every workspace project from the composer (#4113)

In a multi-project window the composer only resolved paths against the agent task's folder and its project, so drops from another workspace project were ignored and @ completion named them wrongly. referenceOf() now resolves against the task root first, then names a file of another workspace project as <project folder>/<path> with its absolute path; paths outside the window's projects are reported instead of silently dropped. Folder references keep their trailing slash.

Fixes #4074
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-18 11:34:39 +08:00
1 джерело d5caebc2bb
коміт db790adf2f
6 files changed
+159 -72

No files matched your search

+1
Переглянути файл
@@ -1663,6 +1663,7 @@
"Terminal": "Terminal",
"Code": "Code",
"Copy": "Copy",
"Only files of this window's projects can be referenced": "Only files of this window's projects can be referenced",
"Nothing to add right now": "Nothing to add right now",
"Pasted Text": "Pasted Text",
"Files with uncommitted changes": "Files with uncommitted changes",
+1
Переглянути файл
@@ -8052,6 +8052,7 @@
"Click to edit": "点击编辑",
"Show less": "收起",
"Show {more} more lines": "展开其余 {more} 行",
"Only files of this window's projects can be referenced": "只能引用此窗口中各项目的文件",
"Nothing to add right now": "暂时没有可添加的内容",
"Pasted Text": "粘贴的文本",
"Files with uncommitted changes": "有未提交改动的文件",