Skip to content

thread_view: Only show thread controls at the end of the turn - #61362

Merged
danilo-leal merged 2 commits into
mainfrom
thread-turn-controls
Jul 20, 2026
Merged

thread_view: Only show thread controls at the end of the turn#61362
danilo-leal merged 2 commits into
mainfrom
thread-turn-controls

Conversation

@danilo-leal

Copy link
Copy Markdown
Member

Follow up to #61245. That PR introduced a bug where the thread controls would appear at seemingly random tool boundaries as opposed to only at the end of each turn. It caused this sort of behavior, where we'd have many instances of those buttons showing up:

Screenshot 2026-07-20 at 4  03 2@2x

Alongside with fixing it, this PR is also making the "scroll to top" only show up only at the very last turn. I think that makes more sense given you'd be most likely interested to go to the top when you're at the bottom, rather than at every turn, but I could be persuaded otherwise; not holding that too strongly.

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jul 20, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jul 20, 2026
Comment thread crates/agent_ui/src/conversation_view/thread_view.rs Outdated
@danilo-leal
danilo-leal enabled auto-merge July 20, 2026 20:28
@danilo-leal
danilo-leal added this pull request to the merge queue Jul 20, 2026
Merged via the queue into main with commit 9731561 Jul 20, 2026
34 checks passed
@danilo-leal
danilo-leal deleted the thread-turn-controls branch July 20, 2026 20:34
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…dustries#61362)

Follow up to zed-industries#61245. That PR
introduced a bug where the thread controls would appear at seemingly
random tool boundaries as opposed to only at the end of each turn. It
caused this sort of behavior, where we'd have many instances of those
buttons showing up:

<img width="500" alt="Screenshot 2026-07-20 at 4  03 2@2x"
src="https://github.com/user-attachments/assets/6e6f716e-adb5-4532-9f89-e955398cda23"
/>

Alongside with fixing it, this PR is also making the "scroll to top"
only show up only at the very last turn. I think that makes more sense
given you'd be most likely interested to go to the top when you're at
the bottom, rather than at every turn, but I could be persuaded
otherwise; not holding that too strongly.

Release Notes:

- N/A
playdohface pushed a commit to playdohface/zed that referenced this pull request Aug 29, 2026
…dustries#61362)

Follow up to zed-industries#61245. That PR
introduced a bug where the thread controls would appear at seemingly
random tool boundaries as opposed to only at the end of each turn. It
caused this sort of behavior, where we'd have many instances of those
buttons showing up:

<img width="500" alt="Screenshot 2026-07-20 at 4  03 2@2x"
src="https://github.com/user-attachments/assets/6e6f716e-adb5-4532-9f89-e955398cda23"
/>

Alongside with fixing it, this PR is also making the "scroll to top"
only show up only at the very last turn. I think that makes more sense
given you'd be most likely interested to go to the top when you're at
the bottom, rather than at every turn, but I could be persuaded
otherwise; not holding that too strongly.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants