Skip to content

Deleting a thread leaves its descendant threads with a dangling parent #518

Description

@Tryanks

Summary

Deleting a thread leaves its descendant thread records in the index with a parent_session_id that no longer exists.

Where

  • delete_session (crates/runtime/src/app/sessions.rs) removes only the target record and log. close_orchestrator_children (crates/runtime/src/app/lifecycle.rs) stops the children's processes but keeps their records.
  • Archive and unarchive already cascade over descendant_session_ids; delete does not.
  • The sidebar tolerates the dangling parent, so the orphans show up as roots or linger in the archived list.

Found by reading the code; not reproduced.

Expected

Delete cascades over the same descendant tree as archive, in one command, and the confirmation states how many threads will be deleted.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions