Skip to content

feat(project): update project metadata #93

Description

@tarik02

Problem

t3cli uses project.meta.update only for action scripts. It cannot update the rest of the project metadata supported by T3 Code.

Scope

Add project update --project <ref> for all five editable metadata fields:

  • Title
  • Workspace root
  • Default model selection
  • Default thread environment mode
  • Favicon override

Reuse the existing model-selection input conventions where possible.

Nullable fields need explicit clear flags:

  • --clear-default-model
  • --clear-thread-env
  • --clear-favicon

Reject a value flag combined with its matching clear flag, and require at least one change.

Path behavior

  • Treat workspace roots as paths on the target environment.
  • For a locally authenticated environment, allow relative roots and resolve them from the CLI working directory.
  • For a remote environment, require an absolute workspace root.
  • Treat a favicon override as a workspace-relative supported image path.

Acceptance criteria

  • Omitted fields remain unchanged.
  • Clear flags send null, not omission.
  • The command prints the updated project in the selected output format.
  • Server validation errors, including duplicate workspace roots, remain structured CLI errors.

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