Skip to content

Improve CLI code quality and maintainability#1606

Merged
aliasaria merged 2 commits intomainfrom
claude/review-cli-quality-xaHNE
Mar 23, 2026
Merged

Improve CLI code quality and maintainability#1606
aliasaria merged 2 commits intomainfrom
claude/review-cli-quality-xaHNE

Conversation

@aliasaria
Copy link
Copy Markdown
Member

  • Add missing api.post_text() method (fixes broken task add from directory)
  • Remove unused requests dependency from pyproject.toml
  • Use centralized themed console from util/ui.py across all command files (11 duplicate Console() instances removed)
  • Replace 28 bare except Exception blocks with specific exceptions (httpx.HTTPError, ValueError, KeyError, LookupError, OSError)
  • Remove debug print() statements from TUI job monitor that corrupt terminal
  • Complete theme migration: replace hardcoded Rich color tags ([red], [cyan], [green], [yellow]) with theme tokens ([error], [label], [success], [warning]) and remove migration tracking comments
  • Fix textual version mismatch in pyproject.toml (0.40.0 -> 0.86.0)
  • Clean up redundant CLIState.get_instance() singleton pattern
  • Extract hardcoded default server URL into shared constant
  • Add timeout constants to util/shared.py
  • Add test coverage: conftest.py with shared fixtures, tests for config CRUD, URL validation, provider commands, and login/logout flows (37 total tests)
  • Fix broken test_job.py mocks (patching wrong attribute path)
  • Remove dead log_to_file() function from JobDetails.py

claude and others added 2 commits March 19, 2026 15:54
- Add missing api.post_text() method (fixes broken task add from directory)
- Remove unused `requests` dependency from pyproject.toml
- Use centralized themed console from util/ui.py across all command files
  (11 duplicate Console() instances removed)
- Replace 28 bare `except Exception` blocks with specific exceptions
  (httpx.HTTPError, ValueError, KeyError, LookupError, OSError)
- Remove debug print() statements from TUI job monitor that corrupt terminal
- Complete theme migration: replace hardcoded Rich color tags ([red], [cyan],
  [green], [yellow]) with theme tokens ([error], [label], [success], [warning])
  and remove migration tracking comments
- Fix textual version mismatch in pyproject.toml (0.40.0 -> 0.86.0)
- Clean up redundant CLIState.get_instance() singleton pattern
- Extract hardcoded default server URL into shared constant
- Add timeout constants to util/shared.py
- Add test coverage: conftest.py with shared fixtures, tests for config CRUD,
  URL validation, provider commands, and login/logout flows (37 total tests)
- Fix broken test_job.py mocks (patching wrong attribute path)
- Remove dead log_to_file() function from JobDetails.py

https://claude.ai/code/session_01LKvUQvK8szsQLNSzXnV1FT
Merge origin/main into the CLI quality branch, combining:
- JSON output format support and new features from main
- Themed console and custom style names from this branch
- Fix test mocks to use require_current_experiment
@aliasaria aliasaria marked this pull request as ready for review March 23, 2026 15:28
@aliasaria aliasaria merged commit 82131df into main Mar 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants