Skip to content

fix(kimi-code): disable Windows progress in WSL - #2860

Open
LouisDM wants to merge 1 commit into
MoonshotAI:mainfrom
LouisDM:codex/issue-727-wsl-terminal-progress
Open

fix(kimi-code): disable Windows progress in WSL#2860
LouisDM wants to merge 1 commit into
MoonshotAI:mainfrom
LouisDM:codex/issue-727-wsl-terminal-progress

Conversation

@LouisDM

@LouisDM LouisDM commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Related Issue

Resolves #727

Problem

In WSL sessions hosted by Windows Terminal, Kimi Code treats WT_SESSION as unconditional support for OSC 9;4 terminal progress. Windows Terminal forwards that progress state to the Windows taskbar, which prevents an auto-hidden taskbar from responding at the screen edge while a turn is active.

What changed

  • Disable terminal progress only when Windows Terminal is detected together with either WSL marker (WSL_DISTRO_NAME or WSL_INTEROP).
  • Give that WSL + Windows Terminal decision precedence over inherited ConEmu, Ghostty, or WezTerm markers.
  • Preserve progress support for native Windows Terminal and for non-Windows-Terminal ConEmu, Ghostty, and WezTerm sessions.
  • Add a patch changeset for @moonshot-ai/kimi-code.

Open PR #2073 also touches the capability check to add VS Code support, but its behavior is complementary: this patch only gives the WSL + Windows Terminal exclusion precedence and preserves the other allowlisted terminals. A small rebase conflict may need resolution if #2073 lands first.

Verification

  • Focused terminal/activity tests: 34 passed.
  • Full @moonshot-ai/kimi-code suite: 2,776 passed, 2 skipped.
  • Package typecheck: passed.
  • Root lint: 0 errors (existing warnings only).
  • Changed-file type-aware lint: 0 warnings, 0 errors.
  • git diff --check and changeset status: passed.

Manual Windows 11 + WSL2 + Windows Terminal taskbar verification is still recommended because this macOS environment cannot exercise the Windows shell UI.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill; added a patch changeset for @moonshot-ai/kimi-code.
  • Ran gen-docs skill; no documentation update is needed because this only narrows automatic capability detection for an existing terminal integration.

@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5d18947

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@LouisDM
LouisDM marked this pull request as ready for review August 13, 2026 10:08
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.

WSL + Windows Terminal 下 OSC 9;4 进度序列会阻止自动隐藏任务栏唤起

1 participant