fix(app): folder suggestions missing last part

This commit is contained in:
Adam
2026-01-22 19:53:18 -06:00
parent 972cb01d5c
commit 07015aae07

View File

@@ -1394,7 +1394,10 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
/>
<div class="flex items-center text-14-regular min-w-0">
<span class="text-text-weak whitespace-nowrap truncate min-w-0">
{getDirectory((item as { type: "file"; path: string }).path)}
{(() => {
const path = (item as { type: "file"; path: string }).path
return path.endsWith("/") ? path : getDirectory(path)
})()}
</span>
<Show when={!(item as { type: "file"; path: string }).path.endsWith("/")}>
<span class="text-text-strong whitespace-nowrap">