Skip to content

Revert " feat: add /web command and improve Web UI experience"#858

Closed
RealKai42 wants to merge 1 commit intomainfrom
revert-855-kaiyi/web/p-0202
Closed

Revert " feat: add /web command and improve Web UI experience"#858
RealKai42 wants to merge 1 commit intomainfrom
revert-855-kaiyi/web/p-0202

Conversation

@RealKai42
Copy link
Collaborator

@RealKai42 RealKai42 commented Feb 2, 2026

Reverts #855


Open with Devin

Copilot AI review requested due to automatic review settings February 2, 2026 13:07
@RealKai42 RealKai42 closed this Feb 2, 2026
Copy link
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 5 additional flags.

Open in Devin Review

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 pull request reverts PR #855, which added a /web slash command to switch from the CLI to the Web UI and made various UI improvements. The revert removes the /web command functionality and restores the previous state of several UI components.

Changes:

  • Removed /web slash command and SwitchToWeb exception class from the CLI
  • Reverted Web UI component changes including session-based conditional rendering
  • Reverted markdown rendering plugin configuration (disabled katex math rendering)
  • Reverted code block overflow detection optimization
  • Updated welcome message to remove reference to /web command

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/kimi_cli/ui/shell/slash.py Removed /web slash command and its import of SwitchToWeb
src/kimi_cli/ui/shell/__init__.py Removed SwitchToWeb import and exception handling
src/kimi_cli/cli/__init__.py Removed SwitchToWeb exception class and web switching logic from reload loop
src/kimi_cli/app.py Updated welcome message to remove /web command instructions
web/src/App.tsx Removed useTheme hook initialization
web/src/features/chat/components/chat-workspace-header.tsx Reverted conditional rendering logic for UI elements based on session selection
web/src/components/ai-elements/streamdown.tsx Reverted to empty rehype plugins array (disabling math formula rendering)
web/src/components/ai-elements/code-block.tsx Removed overflow detection logic and unused React imports

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

isOverflowing && "overscroll-contain",
)}
>
{/* Scrolling container */}
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

There is trailing whitespace after the comment on line 343. This should be removed to maintain code cleanliness.

Suggested change
{/* Scrolling container */}
{/* Scrolling container */}

Copilot uses AI. Check for mistakes.
<ContextContent align="end" sideOffset={16} >
<ContextContentBody className="space-y-4">
<ContextRawUsage />

Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

There is an empty line with trailing whitespace on line 94. This should be removed to maintain code cleanliness.

Suggested change

Copilot uses AI. Check for mistakes.
</Tooltip>
</>
)}

Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

There is an extra blank line (line 144) that appears to be unintentional. This should be removed to maintain consistent spacing.

Copilot uses AI. Check for mistakes.
@RealKai42 RealKai42 deleted the revert-855-kaiyi/web/p-0202 branch February 5, 2026 16:06
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