Skip to content

feat: add /web command and improve Web UI experience#855

Merged
RealKai42 merged 5 commits intomainfrom
kaiyi/web/p-0202
Feb 2, 2026
Merged

feat: add /web command and improve Web UI experience#855
RealKai42 merged 5 commits intomainfrom
kaiyi/web/p-0202

Conversation

@RealKai42
Copy link
Collaborator

@RealKai42 RealKai42 commented Feb 2, 2026

Description

Shell → Web UI Switch

  • Add /web slash command to open Web UI from shell session
  • Update welcome tip to guide users about the /web command

Web UI Improvements

  • Fix code block overscroll-contain only applied when content overflows
  • Enable KaTeX math formula rendering in markdown
  • Initialize theme on app startup
  • Hide session-specific header actions when no session is selected

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Open with Devin

Copilot AI review requested due to automatic review settings February 2, 2026 12:10
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 PR adds a /web command to switch from shell to the Web UI and includes several Web UI experience improvements.

Changes:

  • Add /web slash command for switching from shell to Web UI
  • Enable KaTeX math formula rendering in markdown
  • Fix overscroll-contain behavior to only apply when content actually overflows
  • Initialize theme on app startup and hide session-specific actions when no session is selected

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/kimi_cli/ui/shell/slash.py Implements new /web command that raises SwitchToWeb exception
src/kimi_cli/ui/shell/init.py Updates exception handling to catch and propagate SwitchToWeb
src/kimi_cli/cli/init.py Adds SwitchToWeb exception class and reload loop logic to switch to web server
src/kimi_cli/app.py Updates welcome tip to guide users about the /web command
web/src/features/chat/components/chat-workspace-header.tsx Wraps session-specific header actions in conditional to hide when no session selected
web/src/components/ai-elements/streamdown.tsx Enables KaTeX rehype plugin for math formula rendering
web/src/components/ai-elements/code-block.tsx Adds overflow detection logic to conditionally apply overscroll-contain
web/src/App.tsx Initializes theme hook on app startup

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

@RealKai42 RealKai42 changed the title feat(web): add /web command and improve Web UI experience feat: add /web command and improve Web UI experience Feb 2, 2026
@RealKai42 RealKai42 merged commit 483127c into main Feb 2, 2026
8 checks passed
@RealKai42 RealKai42 deleted the kaiyi/web/p-0202 branch February 2, 2026 12:39
RealKai42 added a commit that referenced this pull request Feb 2, 2026
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