Development Workflow
Formatting
Section titled “Formatting”Use cargo fmt before submitting code changes.
Testing
Section titled “Testing”Run the full test suite:
cargo testFor snapshot-specific work, run:
cargo insta testSnapshots
Section titled “Snapshots”Use cargo insta review to inspect changed TUI snapshots and accept only
intentional visual changes.
Debugging
Section titled “Debugging”Use --print-prompt to inspect prompt assembly without making a provider call.
Checks
Section titled “Checks”For UI work, check both normal and narrow snapshot states. When possible, also run the TUI in a real terminal to inspect color and spacing.
Release
Section titled “Release”Before release work, run formatting, tests, snapshots, and package checks.