We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae6e85b commit 16332a8Copy full SHA for 16332a8
1 file changed
packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx
@@ -247,7 +247,8 @@ export function Autocomplete(props: {
247
const width = props.anchor().width - 4
248
options.push(
249
...sortedFiles.map((item): AutocompleteOption => {
250
- const fullPath = `${process.cwd()}/${item}`
+ const baseDir = (sync.data.path.directory || process.cwd()).replace(/\/+$/, "")
251
+ const fullPath = `${baseDir}/${item}`
252
const urlObj = pathToFileURL(fullPath)
253
let filename = item
254
if (lineRange && !item.endsWith("/")) {
0 commit comments