Summary
Opening a session in the TUI can terminate the process when historical task output references a child/subagent session that no longer exists.
What happens
A completed task tool part can store metadata.sessionId for the child session it delegated to. When that child session has been removed or is otherwise missing, the parent session still renders the historical task entry. During render, the TUI tries to sync the missing child session and the rejected Session not found lookup becomes an unhandled process error.
Expected behavior
The parent session should still open. The stale task entry should render as historical output, and navigation into the missing child session should be disabled or ignored.
Notes
The affected code is in packages/opencode/src/cli/cmd/tui/routes/session/index.tsx in the task tool renderer.
Summary
Opening a session in the TUI can terminate the process when historical task output references a child/subagent session that no longer exists.
What happens
A completed
tasktool part can storemetadata.sessionIdfor the child session it delegated to. When that child session has been removed or is otherwise missing, the parent session still renders the historical task entry. During render, the TUI tries to sync the missing child session and the rejectedSession not foundlookup becomes an unhandled process error.Expected behavior
The parent session should still open. The stale task entry should render as historical output, and navigation into the missing child session should be disabled or ignored.
Notes
The affected code is in
packages/opencode/src/cli/cmd/tui/routes/session/index.tsxin the task tool renderer.