summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/components
diff options
context:
space:
mode:
authorAdam <[email protected]>2026-02-02 09:21:08 -0600
committerAdam <[email protected]>2026-02-02 14:24:23 -0600
commit30a25e4edca0f3476ca63f83dbe95fcee75113e3 (patch)
treea7c92a4e216c98cef9b067979f22c2c9db7a9dd4 /packages/app/src/components
parentea1aba4192fd356603e807144edf202328008ee6 (diff)
downloadopencode-30a25e4edca0f3476ca63f83dbe95fcee75113e3.tar.gz
opencode-30a25e4edca0f3476ca63f83dbe95fcee75113e3.zip
fix(app): user messages not rendering consistently
Diffstat (limited to 'packages/app/src/components')
-rw-r--r--packages/app/src/components/prompt-input.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx
index 2b63b6f5f..1c84c3610 100644
--- a/packages/app/src/components/prompt-input.tsx
+++ b/packages/app/src/components/prompt-input.tsx
@@ -1463,7 +1463,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
draft.part[messageID] = optimisticParts
.filter((p) => !!p?.id)
.slice()
- .sort((a, b) => a.id.localeCompare(b.id))
+ .sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
}),
)
return
@@ -1481,7 +1481,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
draft.part[messageID] = optimisticParts
.filter((p) => !!p?.id)
.slice()
- .sort((a, b) => a.id.localeCompare(b.id))
+ .sort((a, b) => (a.id < b.id ? -1 : a.id > b.id ? 1 : 0))
}),
)
}