Skip to content

fix(tui): update pi-tui for kitty backspace#718

Open
tt-a1i wants to merge 2 commits into
MoonshotAI:mainfrom
tt-a1i:fix/kitty-backspace-pi-tui
Open

fix(tui): update pi-tui for kitty backspace#718
tt-a1i wants to merge 2 commits into
MoonshotAI:mainfrom
tt-a1i:fix/kitty-backspace-pi-tui

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Jun 13, 2026

Copy link
Copy Markdown

Summary

  • Bump @earendil-works/pi-tui to ^0.79.3 so Kitty keyboard protocol negotiation uses the upstream fix.
  • Remove the old koffi native asset handling that is no longer needed by the updated pi-tui package.
  • Add a patch changeset for @moonshot-ai/kimi-code.

Resolve #704

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm --filter @moonshot-ai/kimi-code exec vitest run test/scripts/native/native-deps.test.ts
  • node --input-type=module -e "import { collectNativeAssets } from './apps/kimi-code/scripts/native/assets.mjs'; const r = await collectNativeAssets({ appRoot: './apps/kimi-code', target: 'darwin-arm64' }); console.log(r.manifest.packages.map((p) => p.name).join('\n'));"
  • git diff --check

AI Assistance Disclosure

I used Codex to review the changes, sanity-check the implementation against existing patterns, and help spot potential edge cases.

@changeset-bot

changeset-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d45d7b0

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

@tt-a1i tt-a1i marked this pull request as ready for review June 13, 2026 14:04

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d8bba2c560

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

parent: 'pi-tui',
nativeFileRelatives: (target) => [`build/koffi/${koffiTripletByTarget[target]}/koffi.node`],
},
]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Package pi-tui native helpers with native builds

When building the native SEA artifacts for Windows/macOS, the bumped @earendil-works/pi-tui@0.79.3 now loads its own .node helpers from native/win32/.../win32-console-mode.node and native/darwin/.../darwin-modifiers.node, but this registry now only collects the clipboard packages and scripts/native/package.mjs zips only the executable. Those helpers will be absent from the native release, so Windows VT input support for modified keys such as Shift+Tab, and Apple Terminal Shift+Enter detection, silently regress. Please either collect/copy pi-tui's native files or otherwise make them available next to the native executable.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

fixed in d45d7b0 — pi-tui helpers now get copied next to the native executable and included in the release zip.

also added macOS signing/verification for those helpers, included the sibling native/ dir in the notary submission, and made the native smoke check fail if the helper is missing.

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.

Backspace deletes two characters instead of one in Kitty terminal

1 participant