diff options
| author | Sachnun <[email protected]> | 2025-12-14 10:09:42 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-13 21:09:42 -0600 |
| commit | d8ac35f6e5f6c5bf692c409ba370c3ca4c558a8a (patch) | |
| tree | 8708ef4f8aff74134cbaf6d6844335214a48781e | |
| parent | ed1eacfce043b32815a74e270c920a4d7f72e167 (diff) | |
| download | opencode-d8ac35f6e5f6c5bf692c409ba370c3ca4c558a8a.tar.gz opencode-d8ac35f6e5f6c5bf692c409ba370c3ca4c558a8a.zip | |
fix(tui): open parent session instead of subagent on continue flag (#5503)
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/app.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/app.tsx b/packages/opencode/src/cli/cmd/tui/app.tsx index 28e841122..18a342818 100644 --- a/packages/opencode/src/cli/cmd/tui/app.tsx +++ b/packages/opencode/src/cli/cmd/tui/app.tsx @@ -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 }) |
