Skip to content

fix(thread): return an empty archived list for valid projects #99

Description

@tarik02

Problem

Against a valid local T3 Code server:

  • list --project <valid-id> works.
  • list --project <valid-id> --all works.
  • list --project <valid-id> --archived returns project not found when the project has zero archived threads.

The archived loader resolves the project only from the archived snapshot. A valid active project can be absent from that snapshot when it has no archived threads.

Expected behavior

Resolve project identity from active project state, then filter the archived thread snapshot.

For a valid project with no archived threads:

  • JSON output succeeds with an empty list.
  • Human output succeeds with the normal empty-thread message.

A genuinely unknown project must still return project not found.

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