mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 10:14:22 +01:00
ignore: share
This commit is contained in:
@@ -898,7 +898,12 @@ export default function Share(props: {
|
||||
}
|
||||
>
|
||||
{(assistant) => {
|
||||
const system = () => assistant().system || []
|
||||
const system = createMemo(() => {
|
||||
const prompts = assistant().system || []
|
||||
return prompts.filter(
|
||||
(p: string) => !p.startsWith("You are Claude Code")
|
||||
)
|
||||
})
|
||||
return (
|
||||
<div
|
||||
id={anchor()}
|
||||
@@ -924,6 +929,7 @@ export default function Share(props: {
|
||||
<span data-part-model>
|
||||
{assistant().modelID}
|
||||
</span>
|
||||
<Show when={system().length > 0}>
|
||||
<div data-part-tool-result>
|
||||
<ResultsButton
|
||||
showCopy="Show system prompt"
|
||||
@@ -942,6 +948,7 @@ export default function Share(props: {
|
||||
/>
|
||||
</Show>
|
||||
</div>
|
||||
</Show>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user