Skip to content

v0.9.0 File-decomposition Phase 1: split config/provider and TUI view surfaces safely #2725

@Hmbown

Description

@Hmbown

Problem

Several CodeWhale files are too large for agents to edit safely. v0.9.0 should reduce slop risk by carving out the most heavily edited surfaces before piling on HarnessProfiles, provider routes, Model Lab, PlanReview, and UI refresh work.

Source of truth

See docs/rfcs/FILE_DECOMPOSITION_0_9_0.md and #2175.

Scope

Phase 1 only. Do not attempt a total rewrite.

Suggested targets:

  • crates/tui/src/config.rs
    • provider enum/registry parsing
    • provider defaults/env aliases
    • provider URL/model helpers
    • user settings/config view helpers
  • crates/tui/src/tui/views/mod.rs
    • config view rows/actions
    • command/picker view helpers
    • provider/model picker wiring
  • crates/tui/src/tui/ui.rs
    • extract self-contained rendering helpers only where tests already exist

Acceptance criteria

Suggested verification

  • python3 scripts/check-provider-registry.py
  • cargo test -p codewhale-config --lib
  • cargo test -p codewhale-tui --bin codewhale-tui config_command_provider provider_url
  • cargo fmt --check

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestmigrationProject rename and compatibility migration workv0.9.0Targeting v0.9.0

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions