Files
CodeWhale Bot df0921ebb8 feat(tui): /fullscreen and /inline switch the screen at runtime
The alternate screen was a startup-only bool that `tui.alternate_screen =
"never"` parsed and ignored. `ScreenMode` (Fullscreen | Inline) is now the
one source of truth: `App` stores it and derives `use_alt_screen()`, so every
pause/resume/teardown site reads the screen the terminal is actually on.

- `/fullscreen` keeps the alternate screen (still the default); `/inline`
  paints a stock ratatui `Viewport::Inline` the full height of the terminal
  with no alternate screen, so the shell's scrollback survives the session
  and stays scrollable after exit.
- `tui.alternate_screen = "never"` starts inline; `auto`/`always` keep the
  old meaning.
- The switch rebuilds the terminal over a backend that carries every
  negotiated fact (colour depth, palette, theme, measured background) and
  adopts it only once `Terminal::with_options` succeeded. A probe the
  terminal refuses rolls the alternate-screen escape back and says why.
- The cleanup guard and panic path read the live screen through
  `live_alt_screen()`, not the startup choice.
- Inline mode paints the whole transcript inside its viewport; nothing is
  committed to host scrollback yet (documented in docs/CONFIGURATION.md).

Evidence:
  cargo test -p codewhale-tui --lib -- screen_mode screen_commands startup_screen config_never commands::tests
    test result: ok. 91 passed; 0 failed; 0 ignored
  scripts/dev-test.sh tui
    Summary [ 154.810s] 11856 tests run: 11856 passed (1 slow, 2 leaky), 13 skipped
  cargo test -p codewhale-tui --test cucumber --features long-running-tests -- screen_mode_inline_pty
    test result: ok. 1 passed; 0 failed (real PTY: DEC 1049 never set on inline start; /fullscreen sets it, /inline clears it)
Signed-off-by: CodeWhale Bot <bot@codewhale.net>
2026-09-01 18:17:30 -07:00
..

Codewhale 简体中文文档阅读指南

这里是简体中文用户阅读 Codewhale 文档的入口。英文原版文档在文档根目录 docs/下。 本文档按经验水平组织阅读路径,并跟踪各文档的翻译状态。 下文建议仅表文档维护者本人观点,与 Codewhale 官方立场无关


一、零基础(完全没接触过 harness ,甚至对 AI 编程毫无概念)

从零开始,先弄懂"它是什么、装在哪儿、怎么跑起来"。

  1. WINDOWS_BEGINNER.md —— Windows 用户上手指南,完全零基础者可阅读此文档以入门
  2. HarmonyOS.md —— 鸿蒙设备安装说明,鸿蒙系统用户请重点关注
  3. INSTALL.md —— 所有受支持平台的安装方式与常见安装失败排查

二、入门用户(已经装好程序、但仍然对 harness 不够了解)

阅读以下文档,能够帮助您快速入门,掌握 Codewhale 这个软件的使用方法

  1. GUIDE.md —— 最基础的入门教程,一个小时就能读完、实践完,适用于所有平台
  2. KEYBINDINGS.md —— TUI 页面的快捷键列表,在此可以了解到 Codewhale 的食用方法
  3. MODES.md —— 各个模式的使用说明(强烈建议每个 Codewhale 用户都阅读此项)
  4. PROVIDERS.md —— 查询您所用的模型的供应商是否在 Codewhale 官方支持的列表之中

三、进阶用户(已经有充足了解,追求效率、安全与定制)

把 Codewhale 配置成最顺手的样子。

  1. CONFIGURATION.md —— 完整配置参考(最大的文档,可分章节阅读)
  2. Pod —— Pod 角色与多模型编排
  3. MCP.md —— MCP 模型上下文协议接入
  4. SKILLS.md —— 技能skill的安装、管理与使用
  5. SUBAGENTS.md —— 子智能体Pod机制
  6. HOOKS.md —— 钩子机制与自动化
  7. TOOL_SURFACE.md —— 工具面AI 当前可用的工具契约
  8. AGENT_RUNTIME.md —— Agent 运行时子智能体、exec 与 Pod 的关系

四、开发者(阅读源码或为 Codewhale 贡献)

为 Codewhale 贡献代码或做集成开发。

  1. ARCHITECTURE.md —— 架构总览
  2. CONTRIBUTING.md —— 贡献指南:如何提交 Issue 与 PR、代码约定与验证门禁
  3. CODE_OF_CONDUCT.md —— 社区行为准则
  4. RUNTIME_API.md —— Runtime API 与集成契约(供集成与二次开发)

我们强烈建议,成为 Codewhale 贡献者之前,您需要具备一定的英语阅读能力。如果您在英语方面较为薄弱,当然可以使用 LLM 来翻译。但是在 LLM 翻译完原文之后,建议您强忍着看不懂外文的不适,即使皱着眉头,也要审查一遍 LLM 翻译后的语义是否与你的原文语义相同。LLM 幻觉是会把事情搞砸的。


翻译状态

若想问询文档的翻译排期与逐篇状态,可在 issue #5482 跟踪。

约定

  • 每个中文译文都放在 docs/zh_hans/ 下,保留与英文源相同的文件名主干,便于一一对应。
  • 英文文档顶部会放一条语言切换横幅(例如 > 阅读简体中文版:[zh_hans/INSTALL.md](zh_hans/INSTALL.md))。
  • 中文文档回链英文源,并标注 "last synced with English revision" 日期,让过期一目了然。
  • 旧位置的 .zh-CN.md 文件保留为重定向占位页,保留一个发布周期后移除。

本文档更新于 2026 年 8 月 18 日 Last Updated on August 18, 2026