[PR #5503] fix(tui): open parent session instead of subagent on continue flag #11435

Closed
opened 2026-02-16 18:16:16 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5503

State: closed
Merged: Yes


Summary

  • Filter sessions to exclude subagents when using -c or --continue flag in TUI mode

Why

  • When a session has subagents, sync.data.session.at(0) could return a subagent session instead of the parent session
  • This is inconsistent with the session list dialog which already filters with x.parentID === undefined
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5503 **State:** closed **Merged:** Yes --- ## Summary - Filter sessions to exclude subagents when using `-c` or `--continue` flag in TUI mode ## Why - When a session has subagents, `sync.data.session.at(0)` could return a subagent session instead of the parent session - This is inconsistent with the session list dialog which already filters with `x.parentID === undefined`
yindo added the pull-request label 2026-02-16 18:16:16 -05:00
yindo closed this issue 2026-02-16 18:16:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11435