Prevent false "conversation not found" notification on no-op startPty calls #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Location
src/lib/features/sessions/terminal/TerminalSessionManager.ts,src/lib/features/sessions/service.svelte.tsProblem
TerminalSessionManager.startPty()returns{ resumed: false }for no-op cases (e.g. if the session is already active or a single-flight start is in progress). WhenstartSessionProcess()receives!info.resumedon a tab that had aresumeToken, it assumes resume failed and triggers a spurious "Previous conversation not found" notification.Suggested Fix
Refactor
startPty()return status to differentiate between genuine fresh process spawns, successful resumes, and no-op / already-running invocations.