Skip to content

fix(tui): optimistic rendering - #692

Merged
adamdotdevin merged 1 commit into
anomalyco:devfrom
timoclsn:fix-optimistic-rendering
Jul 4, 2025
Merged

adamdotdevin merged 1 commit into
anomalyco:devfrom
timoclsn:fix-optimistic-rendering

Conversation

@timoclsn

@timoclsn timoclsn commented Jul 4, 2025 •

Copy link
Copy Markdown
Contributor

The optimistic update mechanism had delays when displaying user input messages. Sometimes there would be a long delay before the user's message appeared after hitting enter.

  • The OptimisticMessageAddedMsg handler called m.renderView(m.width) synchronously, which could block the UI.
  • Changed the handler to use asynchronous rendering like other parts of the codebase:

This ensures the first thing that happens when a user hits enter is that their message gets rendered immediately, providing instant feedback.

Closes #686

@adamdotdevin
adamdotdevin merged commit 997cb2d into anomalyco:dev Jul 4, 2025
@adamdotdevin

Copy link
Copy Markdown
Member

wow, thanks, that was a note for me to come back to, opensource is the best lol

AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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.

make sure optimistic user messages is still working, seems slow again

2 participants