Skip to content

Consolidate task-placeholder terminal with global terminal #678

@rabanspiegel

Description

@rabanspiegel

Summary

Currently there are two terminal instances that serve similar purposes:

  • task-placeholder - A fallback terminal used when no task is selected
  • global - A global terminal that's always available

This creates redundancy since both serve the purpose of having a usable terminal when no specific task context exists.

Current Behavior

In TaskTerminalPanel.tsx:42:

const taskKey = task ? `${task.id}::${task.path}` : 'task-placeholder';

When no task is selected, a placeholder terminal is created. Meanwhile, the global terminal also exists.

Proposed Enhancement

Consider consolidating these so the global terminal serves as the "always available" fallback, and task-specific terminals only exist when there's an actual task selected.

This would:

  • Reduce the number of PTY instances
  • Simplify the terminal management logic
  • Make the architecture more intuitive

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