Przeglądaj źródła

fix: default steps expanded unless done

Adam 2 miesięcy temu
rodzic
commit
8010448ba1
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      packages/ui/src/components/session-turn.tsx

+ 4 - 0
packages/ui/src/components/session-turn.tsx

@@ -269,6 +269,10 @@ export function SessionTurn(
 
 
               createEffect((prev) => {
               createEffect((prev) => {
                 const isWorking = working()
                 const isWorking = working()
+                if (!prev && isWorking) {
+                  setStore("stepsExpanded", true)
+                  props.onStepsExpandedChange?.(true)
+                }
                 if (prev && !isWorking && !state.userScrolled) {
                 if (prev && !isWorking && !state.userScrolled) {
                   setStore("stepsExpanded", false)
                   setStore("stepsExpanded", false)
                   props.onStepsExpandedChange?.(false)
                   props.onStepsExpandedChange?.(false)