mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 13:54:07 +00:00
fix(tui): open parent session instead of subagent on continue flag (#5503)
This commit is contained in:
parent
73b9705410
commit
deaf35707d
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ function App() {
|
|||
let continued = false
|
||||
createEffect(() => {
|
||||
if (continued || sync.status !== "complete" || !args.continue) return
|
||||
const match = sync.data.session.at(0)?.id
|
||||
const match = sync.data.session.find((x) => x.parentID === undefined)?.id
|
||||
if (match) {
|
||||
continued = true
|
||||
route.navigate({ type: "session", sessionID: match })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue