mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-11 07:43:47 +00:00
fix(app): stop automatic session neighbor prefetch
This commit is contained in:
parent
7b7335b7e9
commit
1277ceb426
1 changed files with 3 additions and 10 deletions
|
|
@ -777,18 +777,11 @@ export default function LegacyLayout(props: ParentProps) {
|
|||
}
|
||||
|
||||
createEffect(() => {
|
||||
if (params.id) return
|
||||
const sessions = currentSessions()
|
||||
if (sessions.length === 0) return
|
||||
|
||||
const index = params.id ? sessions.findIndex((s) => s.id === params.id) : 0
|
||||
if (index === -1) return
|
||||
|
||||
if (!params.id) {
|
||||
const first = sessions[index]
|
||||
if (first) prefetchSession(first, "high")
|
||||
}
|
||||
|
||||
warm(sessions, index)
|
||||
const first = sessions[0]
|
||||
if (first) prefetchSession(first, "high")
|
||||
})
|
||||
|
||||
function navigateSessionByOffset(offset: number) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue