Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

The UI froze for ~1s when sending messages in SSH workspaces because the frontend awaited the entire IPC call, including remote temp directory creation.

Solution

Changed ChatInput to clear input/images immediately before the IPC call instead of after it succeeds. This makes the UI responsive while the backend handles SSH operations asynchronously.

On error, the previous state is restored so users can retry.

Testing

Tested locally with SSH workspace - input clears immediately and chat remains responsive during message send.

Generated with cmux

The UI froze for ~1s when sending messages in SSH workspaces because the
frontend awaited the entire IPC call, including remote temp directory creation.

Changed ChatInput to clear input/images immediately before the IPC call instead
of after it succeeds. This makes the UI responsive while the backend handles
SSH operations asynchronously.

On error, the previous state is restored so users can retry.

_Generated with `cmux`_
@ammario ammario added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 8f5cd5e Oct 27, 2025
13 checks passed
@ammario ammario deleted the send-message-pause branch October 27, 2025 15:16
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.

2 participants