Skip to content

fix(desktop): reveal composer caret after paste and newline - #591

Merged
huichen merged 1 commit into
mainfrom
claude/composer-caret-scroll
Sep 13, 2026
Merged

huichen merged 1 commit into
mainfrom
claude/composer-caret-scroll

Conversation

@huichen

@huichen huichen commented Sep 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix the verified delayed caret-follow defect after native paste and Shift/Ctrl+Enter. Scroll only the editor, minimally to the caret line, without forcing the document bottom or moving ancestors. Preserve existing IME guards and keep trailing newlines measurable when insertNode splits off an empty text node.

Includes 8 regression tests and docs/verification/composer-caret-scroll-20260913.md with reproduction evidence and before/after measurements.

Validation

  • Regression tests failed before correction and passed afterwards.
  • Native clipboard Ctrl+V (isTrusted=true) in Windows Chrome 153, actual Composer/CSS, at 1280x800 and 720x800.
  • Paste, repeated Shift/Ctrl+Enter, subsequent typing, middle insertion, short typed input and send clearing passed.
  • Desktop tsc --noEmit and full eslint passed.
  • Desktop full vitest: 110 files / 967 tests passed.

Limits

Tauri IPC/send callbacks mocked; no model requests or production chat data. Native macOS WKWebView and system IME candidate selection remain untested. This does not claim to resolve the separate unconfirmed Mac residual-input/repeated-jitter reports.

@huichen
huichen enabled auto-merge (squash) September 13, 2026 09:15
@huichen
huichen merged commit 717ed66 into main Sep 13, 2026
12 checks passed
@huichen
huichen deleted the claude/composer-caret-scroll branch September 13, 2026 09:17
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.

1 participant