Skip to content

Fix IME positioning with hidden terminal cursors - #431

Merged
powerfooI merged 1 commit into
mainfrom
fix-issue-429
Oct 16, 2026
Merged

powerfooI merged 1 commit into
mainfrom
fix-issue-429

Conversation

@powerfooI

Copy link
Copy Markdown
Owner

Terminal repaints left xterm's logical cursor at the bottom whenever Herdr hid the cursor, displacing IME composition from the application's input field. Restore valid cursor coordinates regardless of visibility, while preserving cursor visibility and viewport clipping. Add serializer and real xterm regression coverage for repeated repaints and visibility changes.

Fixes #429.

Validation:

  • 211 related tests passed: bun test server/src/bridge/frame-to-ansi.test.ts web/src/endpointFrame.test.ts web/src/terminalEndpointPresentation.test.ts server/src/bridge/endpoint-terminal-session.test.ts server/src/bridge/terminal-bridge.test.ts.
  • Formatting passed for the three changed files.
  • bun run typecheck passed, including the frontend production build and asset checks.
  • The pre-commit hook passed bun run lint and bun run typecheck:bun.
  • Replayed a real pi 1.2.0 frame from an isolated Herdr 0.9.2 session through the pinned xterm on macOS: the expected cursor was (7,26); the old serializer left it at (100,29), while this patch restored (7,26) and kept it hidden. No agent prompt was submitted.

Native macOS Pinyin composition and candidate-window placement remain unverified in a browser because browser control was unavailable. Kimi 2.2.0 stopped at the temporary folder's trust prompt, so its input field was not tested. The original issue's Kimi 2.1.1 / Herdr 0.9.3 environment has not been reproduced.

@powerfooI powerfooI added the bug Something isn't working label Oct 16, 2026
@powerfooI

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T08:38:41.572886Z 3101258 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 310125822e

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@powerfooI
powerfooI merged commit 0edebcb into main Oct 16, 2026
5 checks passed
@powerfooI
powerfooI deleted the fix-issue-429 branch October 16, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kimi Code: Chinese IME composition and candidates appear at the bottom of the terminal on macOS

1 participant