Quellcode durchsuchen

fix(tui): show resolved skill name

Dax Raad vor 1 Monat
Ursprung
Commit
b3cf749a7f
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      packages/tui/src/routes/session/index.tsx

+ 3 - 2
packages/tui/src/routes/session/index.tsx

@@ -2661,9 +2661,10 @@ function Question(props: ToolProps) {
 }
 
 function Skill(props: ToolProps) {
+  const name = createMemo(() => stringValue(props.metadata.name) ?? stringValue(props.input.id))
   return (
-    <InlineTool icon="→" pending="Loading skill..." complete={stringValue(props.input.name)} part={props.part}>
-      Skill "{stringValue(props.input.name)}"
+    <InlineTool icon="→" pending="Loading skill..." complete={name()} part={props.part}>
+      Skill "{name()}"
     </InlineTool>
   )
 }