Fold tool rows and collapsed edits in Grok Build
Fold tool rows and collapsed edits in Grok Build
Long turns fill the TUI with consecutive read/search/list rows and multi-line edits. Official display switches live in the settings reference.
Fold consecutive tool rows
Default on. Consecutive read/search/list tool rows collapse into one summary.
User config:
[ui]
group_tool_verbs = true
Process override:
export GROK_GROUP_TOOL_VERBS=1
Set false / 0 when you need every tool row expanded for debugging.
Collapse edit blocks
Default off. When on, edits render as one-line +N/-M summaries.
[ui]
collapsed_edit_blocks = true
export GROK_COLLAPSED_EDIT_BLOCKS=1
Related density controls
| Control | How | Notes |
|---|---|---|
/compact-mode |
Slash command | Denser message padding — also [ui] compact_mode |
/multiline |
Slash command | Multiline input |
| Thinking blocks | [ui] show_thinking_blocks |
Show or hide thinking blocks |
Project .grok/config.toml only contributes MCP, plugins, and permission rules — put [ui] in the user config.
Pitfalls
- Folding tool rows hides per-call detail until you expand or disable grouping; turn it off while chasing a flaky read or search.
- Collapsed edits summarize hunk size only; open the full diff when you need line-level review before approve.