[question]: closing an agent tab does not kill the agent? · Issue #3293 · generalaction/emdash · GitHub
Skip to content

[question]: closing an agent tab does not kill the agent? #3293

Open

Description

@igoramadas

Your Question

When I create a new agent and then close it straight away, I can still see it on the list of Active conversations on the right bar. Is this the intended behaviour? I would expect the agent conversation to be killed or archived if I close the tab.

Context

Image

Cursor 2 was closed right after opening it, but still showing on the list of Active sessions on the right bar.

Checklist

  • I've checked the README
  • I've searched existing issues for similar questions

Additional Information

No response

Activity

  1. jschwxrz commented on Oct 4, 2026

    @jschwxrz
    Member

    Hi, you can right click on the conversation in the sidebar to see an option to kill the session

  2. igoramadas commented on Oct 4, 2026

    @igoramadas
    Author

    Yes that I know. Just wanted to check if this is the desired behaviour and the rationale behind it. After only 2 days with Emdash I already have a ton of conversations listed there in the "Active" tab, even thou only 3 are actually active with an open tab.

  3. Eigenwise commented on Oct 5, 2026

    @Eigenwise

    I looked through current main. For PTY conversations, closing the tab releases the view attachment. The host's detachSession() deliberately does no work, so that path does not stop the agent process (source). The sidebar's Active group checks runtime session state, not open tabs (source). That matches what you're seeing.

    It explains the implementation, but I can't speak for the intended UX. Your distinction still makes sense: "tab is open" and "agent is running" are separate states. A short explanation of those states in the UI or docs would help.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions