diff options
| author | Jay V <[email protected]> | 2025-06-05 16:35:21 -0400 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-06-05 16:35:23 -0400 |
| commit | 3e4ebb6e5deb037aa322af6bbcb47f56840c5e9e (patch) | |
| tree | e4adbec8c2fa67c3fc23e90c355e76e2f731cc62 | |
| parent | 9147108675447a6cdf5a0457ace80ba92a95dd42 (diff) | |
| download | opencode-3e4ebb6e5deb037aa322af6bbcb47f56840c5e9e.tar.gz opencode-3e4ebb6e5deb037aa322af6bbcb47f56840c5e9e.zip | |
share page
| -rw-r--r-- | packages/web/src/components/Share.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx index e7ab477db..f667eba85 100644 --- a/packages/web/src/components/Share.tsx +++ b/packages/web/src/components/Share.tsx @@ -463,7 +463,7 @@ export default function Share(props: { api: string }) { for (let i = 0; i < messages().length; i++) { const msg = messages()[i] - const system = i === 0 && msg.role === "system" + const system = result.messages.length === 0 && msg.role === "system" const assistant = msg.metadata?.assistant if (system) { @@ -608,7 +608,7 @@ export default function Share(props: { api: string }) { <TextPart expand data-size="sm" - text={data().system.join("\n").trim()} + text={data().system.join("\n\n").trim()} /> </Show> </div> @@ -1242,6 +1242,7 @@ export default function Share(props: { api: string }) { const todos = createMemo(() => sortTodosByStatus( part().toolInvocation.args.todos )) + const finished = todos().every(t => t.status === "completed") const duration = createMemo(() => DateTime.fromMillis(metadata()?.time.end || 0).diff( @@ -1263,7 +1264,12 @@ export default function Share(props: { api: string }) { <div data-section="content"> <div data-part-tool-body> <span data-part-title data-size="sm"> - Planning… + <Show + when={finished} + fallback="Planning…" + > + Completing… + </Show> </span> <Show when={todos().length > 0}> <ul class={styles.todos}> |
