+
-
-
- {/if}
- {#if line.cost && line.cost.costUsd > 0}
-
- ${line.cost.costUsd < 0.01
- ? line.cost.costUsd.toFixed(4)
- : line.cost.costUsd.toFixed(3)}
-
- {/if}
- {#if getLinePrefix(line.type)}
-
{getLinePrefix(line.type)}
- {/if}
- {#if line.toolName}
-
[{line.toolName}]
- {/if}
- {#if line.type === "assistant" || line.type === "user"}
-
-
handleCopyMessage(line.id, line.content)}
+ title="Copy message"
+ >
+
+ {copiedMessageId === line.id ? "Copied!" : "Copy"}
+
+
+ {:else}
+
-
-
- {:else}
-