zed/crates/agent_ui
soddygo c80020231b
agent_ui: Fix expanded message editor staying auto-height during streaming (#55916)
Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments (Unsafe: none)
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable


## Summary
When the agent is streaming output, expanding the message editor can
appear to work (the container grows) but the input editor itself remains
constrained to auto-height (only a few lines). Toggling minimize →
expand makes it render correctly.

This PR ensures the message editor stays in full mode while expanded,
preventing automatic editor mode syncing on thread updates from
overriding the user's explicit expand action during streaming.

## Steps to reproduce
1. Start an agent thread and send a message that causes streaming output
2. While streaming, click “Expand Message Editor”
3. Observe the input editor still shows only a few lines (auto-height)
4. Click “Minimize Message Editor” and then expand again; it becomes
fully expanded

## Test plan
- Start an agent thread and let it stream
- Click “Expand Message Editor” while streaming
- Verify the editor actually expands (not limited to the auto-height max
lines)
- Toggle minimize/expand multiple times during streaming; verify it
remains correct

## Additional context
Repro video: 


https://github.com/user-attachments/assets/6e328fa8-d431-456a-b70a-864ae617ea88



Release Notes:

- Fixed message editor not fully expanding during agent generation

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
2026-07-08 15:52:26 +00:00
..
src agent_ui: Fix expanded message editor staying auto-height during streaming (#55916) 2026-07-08 15:52:26 +00:00
Cargo.toml terminal_view: Use backslash escaping for dropped file paths for mac (#57747) 2026-07-01 16:00:54 +00:00
LICENSE-GPL