Skip to content

fix(cli): URL handling in init, human-readable output, version bump checklist #262

Closed

Description

@vybe

Problem

Three CLI usability issues:

1. trinity init fails on bare domains

Entering trinity.ability.ai (without https://) causes init to fail and exit. Should auto-prepend https:// and allow retry on connection failure.

2. JSON output by default is not user-friendly

CLI operations return raw JSON by default. For interactive terminal use, human-readable text should be the default, with --format json available for scripting.

3. No version bump checklist/automation after CLI changes

After modifying the CLI, there's no reminder or automation to bump the version in pyproject.toml and update the Homebrew formula.

Acceptance Criteria

  • trinity init accepts bare domains, URLs with/without protocol, auto-adds https://
  • On connection failure during init, user gets to retry with a different URL instead of hard exit
  • Default output format is human-readable table/text for interactive use
  • --format json flag still available for scripting
  • Document version bump checklist (options presented, not implemented yet for Feature/vector log retention #3)

Files to Change

  • src/cli/trinity_cli/commands/auth.py — URL normalization + retry loop
  • src/cli/trinity_cli/main.py — default format detection (isatty)
  • src/cli/trinity_cli/output.py — ensure table format works well
  • src/cli/trinity_cli/commands/*.py — audit default format usage

Activity

  1. added
    priority-p1
    type-bug
    status-in-progress
    on Apr 4, 2026
  2. removed
    status-in-progress
    on Apr 17, 2026
  3. added
    status-in-progress
    on Apr 20, 2026
  4. self-assigned this
    on Apr 20, 2026
  5. removed
    status-in-progress
    on Apr 20, 2026
  6. removed their assignment
    on Apr 20, 2026
  7. dolho commented on Apr 20, 2026

    @dolho
    Contributor

    Closed as already implemented.

    All three acceptance criteria were completed by PR #263 (merged 2026-04-04, commit 68b0a34):

    • _normalize_url() in auth.py:73-80 — bare domains auto-prepend https://
    • Retry loop (3 attempts) in auth.py:107-118 and 267-280 — no hard exit on unreachable URL
    • Default output format changed from JSON to table across all commands (default="table" in agents.py, chat.py, health.py, tags.py, skills.py, schedules.py, profiles.py)
    • --format json still available via type=click.Choice(["json", "table"])
    • Tag-driven version bump automation in .github/workflows/publish-cli.yml (PyPI publish + Homebrew formula auto-update on cli-vX.Y.Z git tag)

    This issue predates PR #263 and was not updated when the fix landed. Closing as completed.

  8. added
    complexity-low
    theme-devex
    on Jun 3, 2026
  9. added
    status-in-dev
    on Aug 6, 2026
  10. removed
    status-in-dev
    on Aug 7, 2026
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

    complexity-lowpriority-p1theme-devextype-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions