Skip to content

fix(web): keep thread annotation typing responsive - #173

Merged
lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/laggy-thread-annotations
Aug 30, 2026
Merged

lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/laggy-thread-annotations

Conversation

@lastobelus

Copy link
Copy Markdown
Owner

The thread annotation editor re-rendered its complete dialog subtree on every keystroke and continuously recalculated the textarea's intrinsic height. This made typing noticeably laggier than the composer.

Keep the draft in the native textarea, update React state only when Save eligibility changes, and use a fixed-height internally scrolling editor. In an integrated browser check, 2,000 input events completed in about 73 ms with one expected UI mutation; the textarea remained 208 px tall.

Validation:

  • focused annotation tests
  • web typecheck
  • targeted lint and formatting
  • Quick local CI
  • integrated web-client input measurement

Implemented with GPT-5.6-Sol through the Codex harness.

Loading
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