mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
sync
This commit is contained in:
parent
13dedb8027
commit
38e83b509e
1 changed files with 6 additions and 4 deletions
|
|
@ -49,7 +49,9 @@ export function Session() {
|
|||
})
|
||||
|
||||
function toBottom() {
|
||||
scroll.scrollTo(scroll.scrollHeight)
|
||||
setTimeout(() => {
|
||||
scroll.scrollTo(scroll.scrollHeight)
|
||||
}, 50)
|
||||
}
|
||||
|
||||
const local = useLocal()
|
||||
|
|
@ -122,7 +124,7 @@ export function Session() {
|
|||
messageID: message.id,
|
||||
},
|
||||
})
|
||||
.then(() => setTimeout(() => toBottom(), 100))
|
||||
.then(toBottom)
|
||||
dialog.clear()
|
||||
},
|
||||
},
|
||||
|
|
@ -142,7 +144,7 @@ export function Session() {
|
|||
id: route.sessionID,
|
||||
},
|
||||
})
|
||||
.then(() => setTimeout(() => toBottom(), 100))
|
||||
.then(toBottom)
|
||||
return
|
||||
}
|
||||
sdk.session
|
||||
|
|
@ -154,7 +156,7 @@ export function Session() {
|
|||
messageID: message.id,
|
||||
},
|
||||
})
|
||||
.then(() => setTimeout(() => toBottom(), 100))
|
||||
.then(toBottom)
|
||||
},
|
||||
},
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue