Skip to content

[codex] Fix agent chat preview freeze#42

Merged
artpi merged 7 commits into
mainfrom
codex/fix-agent-preview-freeze
May 14, 2026
Merged

[codex] Fix agent chat preview freeze#42
artpi merged 7 commits into
mainfrom
codex/fix-agent-preview-freeze

Conversation

@artpi
Copy link
Copy Markdown
Contributor

@artpi artpi commented May 14, 2026

Summary

  • Replace the SwiftUI multiline composer fields with a fixed-height AppKit text view wrapper so long user input scrolls internally instead of forcing repeated expensive layout measurement.
  • Compact long chat messages before Markdown rendering and remove selectable text from chat/table bodies to avoid SwiftUI selection/layout hot paths.
  • Reduce preview resize churn by deduping page-state updates, throttling sidebar width updates, and making unchanged chat rows equatable.

Root Cause

The freeze was caused by several SwiftUI hot paths stacking up: long user input in a multiline TextField, very large rendered message bodies, and preview resize/page updates invalidating the chat transcript while scrolling.

Validation

  • make CODESIGN_IDENTITY=-
  • git diff --check
  • Relaunched build/WP Workspace Dev.app and confirmed the process returned to idle after launch.

@artpi artpi marked this pull request as ready for review May 14, 2026 08:52
@artpi artpi self-assigned this May 14, 2026
@artpi artpi requested a review from Copilot May 14, 2026 09:02
@artpi artpi merged commit 1adc374 into main May 14, 2026
1 of 2 checks passed
@artpi artpi review requested due to automatic review settings May 14, 2026 09:25
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