﻿---
title: "/title 管窗口标题，不是页脚"
summary: "选择器写入 tui.terminal_title。默认 spinner + project；null 关掉标题更新。页脚仍用 /statusline。"
category: commands
level: starter
surfaces: [cli]
tags: ["/title", "TUI", "terminal_title"]
canonical: /tips/title-window-items/
---

# /title 管窗口标题，不是页脚

选择器写入 tui.terminal_title。默认 spinner + project；null 关掉标题更新。页脚仍用 /statusline。

```text
/title
```

选完立刻改终端窗口或标签标题，并写入 `config.toml`：

```toml
[tui]
terminal_title = ["spinner", "project", "git-branch", "model"]
```

可选项包括：app name、project、spinner、status、thread、git branch、model、task progress。默认 `["spinner", "project"]`。设成 `null` 停止改标题。

`/statusline` 改的是 TUI 页脚，`/title` 改的是终端自己的标题栏。两个选择器互不影响。项名以本机选择器为准。

## 来源

- [OpenAI · Developer commands](https://learn.chatgpt.com/docs/developer-commands)
