fix(core): normalize directory attachment paths
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
parent
573ce945a6
commit
2375102457
1 changed files with 1 additions and 1 deletions
|
|
@ -763,7 +763,7 @@ const resolveFileAttachment = Effect.fn("Session.resolveFileAttachment")(functio
|
|||
const entries = listed.value
|
||||
const visible = entries
|
||||
.slice(0, MAX_DIRECTORY_ENTRIES)
|
||||
.map((entry) => `${entry.path}${entry.type === "directory" ? "/" : ""}`)
|
||||
.map((entry) => `${entry.path.replaceAll("\\", "/").replace(/\/+$/, "")}${entry.type === "directory" ? "/" : ""}`)
|
||||
.join("\n")
|
||||
return {
|
||||
file: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue