fix: default steps expanded unless done

This commit is contained in:
Adam
2025-12-15 15:03:00 -06:00
committed by Aiden Cline
parent acd2d77e47
commit f4336b504a

View File

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