Hunter Bown 8aac1e8e3d test(tui): stop onboarding fixtures inheriting the developer's machine
Three onboarding tests build their app with `App::new`, which derives the
first-run decision from the ambient box — whether a locale can be inferred,
whether `settings.toml` exists, whether a provider key is in the
environment. Each test then overrode only the flags it named and inherited
the rest, so the same commit asserted different things on different
machines. That is why main is red in two directions at once:

- Windows CI (clean box, no locale, no key) fails
  `welcome_routes_to_the_first_decision_this_run_needs` and
  `progress_counts_only_required_decisions`: `App::new` had already set
  `onboarding_had_language_step`, so welcome routed to Language instead of
  Provider and the counter saw two required steps instead of one.
- A configured developer box fails
  `provider_back_walks_to_the_last_decision_this_run_asked`: `App::new` set
  `onboarding_missing_key_recovery`, whose branch exits to the offline
  composer instead of walking back.

Neither is a product defect — `advance_onboarding_from_welcome`,
`required_progress`, and `back_from_provider_onboarding` are all correct.
The fixtures were under-specified. Reset the onboarding decision fields to
"nothing asked yet" in `test_app_with_locale` and name the recovery flag in
the walk-back test, so each test opts in to the steps it is actually about.
No assertion is weakened or removed; the missing-key-recovery branch keeps
its own case.

Evidence: `cargo nextest run -p codewhale-tui -E 'test(tui::onboarding::)'`
25/25 pass, and the walk-back test passes under both nextest and libtest.

Signed-off-by: Hunter Bown <hmbown@gmail.com>
2026-08-19 23:39:49 -07:00
2026-04-24 16:29:01 -05:00
2026-05-05 14:34:33 +08:00
2026-01-20 08:57:35 -06:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-08-19 20:08:27 -07:00
2026-06-25 11:41:18 +08:00

Codewhale

Codewhale is an open source coding agent for your terminal, built in Rust and improved in public with the people who use it.

Codewhale running in a terminal

简体中文 · 日本語 · Tiếng Việt · Bahasa Indonesia · 한국어 · Español · Português · Русский · Українська · Français · Deutsch · 繁體中文 · हिन्दी · Türkçe · Italiano · Polski · العربية · Català

CI crates.io npm Discord

Install

npm install -g codewhale
codewhale

The first run helps you connect a provider or stay offline. Codewhale also supports Cargo, Docker, Nix, Scoop, prebuilt archives, Android/Termux, and a CNB mirror. See the installation guide.

Use

Talk to Codewhale the same way you would talk to a teammate:

Fix the failing tests and explain what changed.

Or run a task without opening the TUI:

codewhale exec "fix the failing tests and explain what changed"

Codewhale can read your repository, edit files, run commands, inspect results, and keep working toward a goal. You decide how much access it has.

Why Codewhale

  • Use the model you want. Connect hosted providers or local models through Ollama, vLLM, or SGLang. Switch provider and model with /model.
  • Stay in control. Plan is read-only. Ask, Auto-Review, and Full Access make approval behavior visible. /undo reverts the last turn and /restore returns the workspace to an earlier snapshot.
  • Keep long work organized. Save sessions, set a durable /goal, review workflows before they run, and coordinate agents without turning their internal instructions into your transcript.
  • Extend the agent you already have. Connect MCP servers and skills, configure hooks, and keep agent roles as readable files in your project or personal settings.

Run /help in the TUI for commands and keyboard shortcuts.

Safety

Codewhale runs on your machine with the access you grant it. Approval modes and repository rules limit what the agent may do; optional OS sandboxing adds a stronger execution boundary where supported. Unknown model prices stay unknown instead of being reported as free.

Read authorization order for the exact policy stack and configuration for local settings.

Documentation

Join the community

Codewhale gets better when people use it, report what feels wrong, and help fix it. If a provider is missing, a workflow is awkward, or the terminal UI gets in your way, open an issue. If you know how to improve it, open a pull request. First contributions are welcome, and contributors keep credit for the work that lands.

Join the Discord, or add Hunter on WeChat (hunterbown) and ask to join the Whale Brothers group.

Project history

Codewhale began as deepseek-tui and still preserves that configuration and session compatibility. It is now provider-neutral and independently maintained; it is not affiliated with any model provider.

Thanks to every contributor and to the open source communities that helped the project grow. See the contributor record.

License

MIT

S
Description
DeepSeek-TUI:开源社区驱动的智能体运行框架。|GitHub 镜像 40.8k · 🍴 3.5k
https://github.com/hmbown/deepseek-tui Readme MIT 112 MiB
Languages
Rust 93%
TypeScript 3%
JavaScript 1.7%
Python 1.1%
Shell 0.7%
Other 0.3%