Skip to content

feat: a slightly different look-and-feel#161

Merged
stdrc merged 26 commits intomainfrom
rc/new-liveview
Nov 6, 2025
Merged

feat: a slightly different look-and-feel#161
stdrc merged 26 commits intomainfrom
rc/new-liveview

Conversation

@stdrc
Copy link
Contributor

@stdrc stdrc commented Nov 5, 2025

No description provided.

stdrc added 10 commits November 5, 2025 22:51
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
@stdrc stdrc changed the title refactor: new implementation of shell UI visualize function feat: a slightly different look-and-feel Nov 6, 2025
stdrc added 14 commits November 6, 2025 14:12
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
Signed-off-by: Richard Chien <stdrc@outlook.com>
@stdrc stdrc marked this pull request as ready for review November 6, 2025 09:10
Copilot AI review requested due to automatic review settings November 6, 2025 09:10
Signed-off-by: Richard Chien <stdrc@outlook.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the markdown rendering and UI visualization system by removing the markdown toggle feature and consolidating visualization logic. The key changes include:

  • Replaced Rich's built-in markdown renderer with a custom implementation to support character-based wrapping for better terminal width handling
  • Consolidated step visualization logic by removing the old liveview.py module and integrating its functionality directly into visualize.py
  • Renamed extract_subtitle to extract_key_argument for better clarity
  • Removed the --markdown/--no-markdown CLI option since markdown rendering is now always enabled
  • Updated tool result display to use the brief field instead of output

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/kimi_cli/utils/rich/markdown.py Added custom markdown renderer forked from Rich library with modifications for character-based wrapping
src/kimi_cli/utils/rich/init.py Added global Rich configuration to enable character-based text wrapping
src/kimi_cli/utils/rich/markdown_sample.md Added comprehensive markdown test document
src/kimi_cli/utils/rich/markdown_sample_short.md Added minimal markdown test document
src/kimi_cli/ui/shell/visualize.py Refactored visualization logic into a single _LiveView class, integrating functionality from the removed liveview.py
src/kimi_cli/ui/shell/liveview.py Removed entire file, functionality moved to visualize.py
src/kimi_cli/ui/shell/init.py Removed markdown parameter from ShellApp initialization
src/kimi_cli/ui/acp/init.py Updated to use renamed extract_key_argument function
src/kimi_cli/tools/init.py Renamed extract_subtitle to extract_key_argument and simplified SetTodoList handling
src/kimi_cli/tools/todo/init.py Updated to return brief field instead of output
src/kimi_cli/cli.py Removed --markdown/--no-markdown CLI option
src/kimi_cli/app.py Removed markdown parameter from run_shell_mode
pyrightconfig.json Updated type checking configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Richard Chien <stdrc@outlook.com>
@stdrc stdrc merged commit a952cee into main Nov 6, 2025
2 checks passed
@stdrc stdrc deleted the rc/new-liveview branch November 6, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants