summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-29 10:43:27 -0500
committerAdam <[email protected]>2025-10-29 10:43:34 -0500
commit244945c0e7ae515b965a575bd373ad81f9506c71 (patch)
tree074fec92b9cc9430c2f659f07de9f9888da0c45f
parentc652b2b4e803bb077835794355eea51c6663c0a3 (diff)
downloadopencode-244945c0e7ae515b965a575bd373ad81f9506c71.tar.gz
opencode-244945c0e7ae515b965a575bd373ad81f9506c71.zip
fix: desktop error
-rw-r--r--packages/desktop/src/components/prompt-input.tsx8
-rw-r--r--packages/desktop/src/context/local.tsx1
2 files changed, 5 insertions, 4 deletions
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsx
index e6701bddc..d6276c158 100644
--- a/packages/desktop/src/components/prompt-input.tsx
+++ b/packages/desktop/src/components/prompt-input.tsx
@@ -393,9 +393,11 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
<img src={`https://models.dev/logos/${i.provider.id}.svg`} class="size-6 p-0.5 shrink-0 " />
<div class="flex gap-x-3 items-baseline flex-[1_0_0]">
<span class="text-14-medium text-text-strong overflow-hidden text-ellipsis">{i.name}</span>
- <span class="text-12-medium text-text-weak overflow-hidden text-ellipsis truncate min-w-0">
- {DateTime.fromFormat(i.release_date, "yyyy-MM-dd").toFormat("LLL yyyy")}
- </span>
+ <Show when={i.release_date}>
+ <span class="text-12-medium text-text-weak overflow-hidden text-ellipsis truncate min-w-0">
+ {DateTime.fromFormat(i.release_date, "yyyy-MM-dd").toFormat("LLL yyyy")}
+ </span>
+ </Show>
</div>
</div>
<Show when={!i.cost || i.cost?.input === 0}>
diff --git a/packages/desktop/src/context/local.tsx b/packages/desktop/src/context/local.tsx
index 91c1d688f..9c4d70fc5 100644
--- a/packages/desktop/src/context/local.tsx
+++ b/packages/desktop/src/context/local.tsx
@@ -481,7 +481,6 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
if (!message) return ""
if (Array.isArray(message)) return message.map((m) => getMessageText(m)).join(" ")
const fileParts = sync.data.part[message.id]?.filter((p) => p.type === "file")
- console.log(fileParts)
return sync.data.part[message.id]
?.filter((p) => p.type === "text")