feat(shell): highlight user input with bright blue and separator for better visibility#1600
Open
liuchong wants to merge 3 commits intoMoonshotAI:mainfrom
Open
feat(shell): highlight user input with bright blue and separator for better visibility#1600liuchong wants to merge 3 commits intoMoonshotAI:mainfrom
liuchong wants to merge 3 commits intoMoonshotAI:mainfrom
Conversation
8947196 to
e805fae
Compare
Apply bright blue color (#007AFF) to user input text in both the prompt buffer and echo output, matching the terminal icon color for unified visual identity. Changes: - echo.py: Use #007AFF for render_user_echo and render_user_echo_text - prompt.py: Add user-input style class with fg:#007AFF Signed-off-by: 刘冲 <mail@liuchong.dev>
Render user input in bright blue (#007AFF) followed by a full-width separator line to clearly distinguish user messages in the conversation. Changes: - echo.py: Add bright blue styling and separator line to user echo - Update return type from Text to Group - Add helper function _separator_line() for full-width dashed line Signed-off-by: 刘冲 <mail@liuchong.dev>
- Fix ruff format issues in prompt.py and test files
e805fae to
f679e96
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Improve visual distinction of user messages in the shell UI by highlighting user input with bright blue color (#007AFF) and adding a full-width separator line below each user input.
Changes
echo.py:
#007AFF) to user echo text for unified visual identityTexttoGroupto accommodate the new layoutprompt.py:
user-inputstyle class withfg:#007AFFto match the terminal icon colorTest Plan
make checkpasses (ruff + pyright)make testpasses (13/13 tests in test_shell_prompt_echo.py)Checklist
make gen-changelogto update the changelog.