fix: default steps expanded unless done

This commit is contained in:
Adam 2025-12-15 15:03:00 -06:00
parent 66f3e69867
commit 8010448ba1
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75

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)