MoonshotAI / MoonshotAI/kimi-code

feat(tui): add display-level toggles to collapse/hide thinking and tool-call details

Open
#2,472 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Summary

Add display-layer options to control how much detail the TUI shows for
thinking blocks and tool calls — e.g. show only a "Thinking…" placeholder or
a one-line "Running tool: Read" summary instead of the full content.

Motivation

Thinking blocks and tool-call details can dominate the scrollback, especially
with high reasoning effort or MCP-heavy sessions. Users who trust the agent's
process and only care about final replies currently have no way to reduce
this visual noise.

The existing controls do not cover this:

  • [thinking] enabled = false and the "Toggle thinking mode" switch change
    model behavior (reasoning on/off), not display.
  • Thinking blocks can be collapsed manually, but only per-block and not
    persistently.
  • There is no option at all for tool-call rendering.

The request is purely presentational: the model still thinks and calls tools
exactly as before; the TUI just renders less.

Proposed solution

New optional fields in tui.toml:

[display]
# "full" (default, current behavior) | "collapsed" (folded by default,
# expandable on demand) | "placeholder" (single "Thinking…" line, not expandable)
thinking = "collapsed"

# "full" (default) | "summary" (one line per call: tool name + key arg +
# status) | "hidden"
tool_calls = "summary"

Behavior notes:

  • collapsed should be expandable via the existing fold interaction, so
    details remain one keystroke away.
  • placeholder / hidden only affects rendering; content is still recorded
    in the session transcript for later inspection.
  • Errors and permission prompts must always render in full regardless of
    these settings (hiding a failure or an approval request would be a
    footgun).

Alternatives considered

  • [thinking] effort = "low" — shortens thinking but still displays it, and
    changes model behavior.
  • Disabling thinking entirely — loses the reasoning quality.

Environment

kimi-code 0.31.0, Linux (WSL2)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. Start by locating the TUI rendering paths for thinking blocks and tool calls and the code that reads tui.toml display settings. Done means the display modes work without changing recorded session content, while errors and permission prompts remain fully visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.