Skip to content

Should coordinator-created orchestration worker terminals close after worker_done? #6478

Closed

Description

@andrewroxby

Question

When an orchestration coordinator creates a worker terminal for a dispatched task, should that terminal be closed automatically after the coordinator reconciles the worker's worker_done lifecycle message?

Current behavior appears to leave the worker terminal open after the task completes. That can be useful for inspecting final output or debugging, so this may be intentional.

The cleanup behavior I was considering is narrower than closing arbitrary worker terminals: only terminals created by the coordinator for the run would be candidates for automatic cleanup. Reused or pre-existing terminals would remain open.

Why this came up

In coordinator-managed orchestration runs, completed worker terminals can accumulate after their lifecycle messages have been processed. Auto-closing coordinator-created terminals would keep the workspace tidier, but it may trade off against post-run inspection/debugging.

Possible directions

  • Keep current behavior if post-run inspection is intended.
  • Auto-close only coordinator-created worker terminals after worker_done.
  • Make this configurable, for example with an opt-in coordinator/run option such as “close worker terminals on completion.”

I have a small branch for auto-closing coordinator-created terminals, and can adapt it to an opt-in/configurable version if that better matches the intended lifecycle behavior.

Activity

  1. added theissue type on Jul 12, 2026
  2. nwparker commented on Jul 27, 2026

    @nwparker
    Contributor

    No type label applied: this is a design/product question about intended orchestration lifecycle behavior (auto-close vs keep open), not a confirmed bug or a concrete enhancement request yet.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions