Skip to content

feat(shell): highlight user input with bright blue and separator for better visibility#1600

Open
liuchong wants to merge 3 commits intoMoonshotAI:mainfrom
liuchong:fix/user-input-style
Open

feat(shell): highlight user input with bright blue and separator for better visibility#1600
liuchong wants to merge 3 commits intoMoonshotAI:mainfrom
liuchong:fix/user-input-style

Conversation

@liuchong
Copy link
Copy Markdown

@liuchong liuchong commented Mar 27, 2026

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:

    • Apply bright blue color (#007AFF) to user echo text for unified visual identity
    • Add a full-width dashed separator line below user input for clear visual separation
    • Update return type from Text to Group to accommodate the new layout
  • prompt.py:

    • Add user-input style class with fg:#007AFF to match the terminal icon color

Test Plan

  • make check passes (ruff + pyright)
  • make test passes (13/13 tests in test_shell_prompt_echo.py)
  • Manual test: Verified user input appears in bright blue #007AFF
  • Manual test: Verified separator line displays correctly

Checklist

  • I have read the CONTRIBUTING document.
  • I have tested these changes locally.
  • I have run make gen-changelog to update the changelog.

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

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
@liuchong liuchong force-pushed the fix/user-input-style branch from e805fae to f679e96 Compare March 30, 2026 06:47
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.

1 participant