Skip to content

[codex] Fix Windows mosh terminfo bundle#889

Merged
binaricat merged 1 commit into
mainfrom
codex/fix-windows-mosh-terminfo
May 1, 2026
Merged

[codex] Fix Windows mosh terminfo bundle#889
binaricat merged 1 commit into
mainfrom
codex/fix-windows-mosh-terminfo

Conversation

@binaricat
Copy link
Copy Markdown
Owner

Summary

  • bundle the Windows mosh-client terminfo entry for xterm-256color
  • pass the bundled terminfo path into the Windows mosh runtime environment
  • reject Windows mosh binary bundles that are missing the required terminfo file

Why

Fixes #888. The Windows mosh-client package previously included the executable and Cygwin runtime DLLs, but not the ncurses terminfo entry needed for TERM=xterm-256color. On machines without a full Cygwin installation, mosh-client exited during startup with Terminfo database could not be found.

Validation

  • node --test scripts/fetch-mosh-binaries.test.cjs
  • node --test scripts/mosh-extra-resources.test.cjs
  • node --test electron/bridges/terminalBridge.bareMoshClient.test.cjs
  • npm test
  • npm run lint

@binaricat binaricat force-pushed the codex/fix-windows-mosh-terminfo branch from 3c15720 to e0dc60b Compare May 1, 2026 14:24
@binaricat binaricat marked this pull request as ready for review May 1, 2026 14:51
@binaricat binaricat merged commit 2feecaa into main May 1, 2026
27 checks passed
@binaricat binaricat deleted the codex/fix-windows-mosh-terminfo branch May 1, 2026 14:51
binaricat added a commit that referenced this pull request May 4, 2026
Codex review on #894 P3: the new Linux/macOS bundles drop
resources/mosh/<platform-arch>/terminfo/ at fetch time, but the
existing mosh ignore rules only cover the binaries and Windows DLLs.
Without this rule, `npm run fetch:mosh:dev` leaves the compiled
terminfo files showing up as untracked and they could be accidentally
committed. Add a recursive ignore so every platform's bundle stays out
of git, including the Windows side that the #889 fix already populated.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

Bug: windows x86_64平台新集成的mosh客户端似乎不可用

1 participant