Skip to content

fix(cli): HistoryTrigger status type missing 'interrupted' #612

Open

Description

@edelauna

Context

Issue #560 added "interrupted" to the historyItemSchema status enum in packages/types/src/history.ts, but the CLI's HistoryTrigger.tsx maintains an independent hard-coded union that was not updated.

Developer Notes

File: apps/cli/src/ui/components/autocomplete/triggers/HistoryTrigger.tsx

  • Line 24: status?: "active" | "completed" | "delegated" — missing "interrupted"
  • Line 181: toHistoryResult adapter has the same stale union
  • An interrupted task renders with the delegated icon (gray circle) instead of a distinct indicator

Consider deriving the status type from @roo-code/types instead of maintaining an independent union to prevent future drift.

Part of the broader CLI update backlog.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions