fix: default steps expanded unless done

thinking-toggle-wip
Adam 2025-12-15 15:03:00 -06:00 committed by Aiden Cline
parent acd2d77e47
commit f4336b504a
1 changed files with 4 additions and 0 deletions

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)