Skip to content

Investigate local agent-program normalization and terminal-default patch set #291

@mvillmow

Description

@mvillmow

Summary

Local uncommitted changes appear to be an in-progress migration of agent program handling toward a canonical registry plus a default of terminal instead of claude-code.

What Changed

  • Added lib/agent-programs.ts to centralize program IDs, labels, commands, aliases, and normalization helpers.
  • Updated agent creation, wake, and zoom card flows to use canonical program mapping.
  • Updated service-layer session/wake logic to use centralized command resolution instead of scattered string matching.
  • Changed several defaults from claude-code to terminal, including orphan/auto-registered agents.
  • Added tests covering explicit Codex startup.
  • Updated plugin agent-commands.sh defaults/help text to match the new terminal default.
  • yarn.lock also changed, but this appears to be lockfile churn rather than a source-level dependency change.

Why This Likely Exists

This looks like an attempt to:

  • normalize program naming (claude, claude-code, shell, terminal),
  • make non-Claude agents like Codex launch correctly,
  • stop implicitly defaulting many flows to Claude,
  • align the plugin CLI with the app's program model.

Risk / Follow-up

This migration looks incomplete. Some codepaths and fixtures still reference the old claude-code default, so the codebase may need a broader consistency pass before merge.

Patch Files

Patch files are linked below:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions