Skip to content

chore(cleanup): remove or wire unused prompt-zone scratch scaffolding #3851

Description

@Hmbown

Summary

Remove or wire the unused prompt-zone TurnScratch and ThreeZoneRequest scaffolding.

Evidence

  • crates/tui/src/prompt_zones.rs:299 TurnScratch and :329 ThreeZoneRequest are unused outside tests/docs.
  • Live code uses PinnedPrefix/FrozenPrefix and AppendLog through core/session.rs and core/engine/turn_loop.rs.
  • The module comments identify TurnScratch and ThreeZoneRequest as future-phase type scaffolding.
  • deadcode.log reports both structs as never constructed.

Suggested Change

Delete the future-phase scaffolding and tests that only preserve it, or wire it into request assembly if the three-zone request model is ready to become active.

Risk & Confidence

Confidence: high. Risk: medium because this is architecture scaffolding; keep the active prefix/cache types intact.

Verification Checklist

  • Run cargo test -p codewhale-tui prompt_zones -- --nocapture.
  • Run cargo check -p codewhale-tui --all-targets.
  • Confirm rg "TurnScratch|ThreeZoneRequest" crates/tui/src crates/tui/tests docs only finds intentional docs or no references.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanupCode cleanup, refactor, or maintenance workdocumentationImprovements or additions to documentationenhancementNew feature or requesttuiTerminal UI behavior, rendering, or interaction

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions