mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: default steps expanded unless done
This commit is contained in:
parent
66f3e69867
commit
8010448ba1
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue