Skip to content

agent_ui: Fix markdown block for tool call input and output content#45454

Merged
danilo-leal merged 2 commits intomainfrom
thread-markdown-fixes
Dec 20, 2025
Merged

agent_ui: Fix markdown block for tool call input and output content#45454
danilo-leal merged 2 commits intomainfrom
thread-markdown-fixes

Conversation

@danilo-leal
Copy link
Member

This PR fixes two issues with regards to markdown codeblocks rendered in tool call input and output content display:

  • the JSON code snippets weren't properly indented
  • codeblocks weren't being rendered in unique containers; e.g., if you hovered one scrollbar, all of them would also be hovered, even though horizontal scrolling itself worked properly

Here's the end result:

Screenshot.2025-12-20.at.1.15.mp4

Release Notes:

  • agent: Fix scrollbar and JSON indentation for tool call input/output content's markdown codeblocks.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 20, 2025
@danilo-leal danilo-leal enabled auto-merge (squash) December 20, 2025 16:21
@danilo-leal danilo-leal merged commit 215ac50 into main Dec 20, 2025
24 checks passed
@danilo-leal danilo-leal deleted the thread-markdown-fixes branch December 20, 2025 16:29
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
…45454)

This PR fixes two issues with regards to markdown codeblocks rendered in
tool call input and output content display:
- the JSON code snippets weren't properly indented
- codeblocks weren't being rendered in unique containers; e.g., if you
hovered one scrollbar, all of them would also be hovered, even though
horizontal scrolling itself worked properly

Here's the end result:


https://github.com/user-attachments/assets/3d6daf64-0f88-4a16-a5a0-94998c1ba7e2

Release Notes:

- agent: Fix scrollbar and JSON indentation for tool call input/output
content's markdown codeblocks.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ed-industries#45454)

This PR fixes two issues with regards to markdown codeblocks rendered in
tool call input and output content display:
- the JSON code snippets weren't properly indented
- codeblocks weren't being rendered in unique containers; e.g., if you
hovered one scrollbar, all of them would also be hovered, even though
horizontal scrolling itself worked properly

Here's the end result:


https://github.com/user-attachments/assets/3d6daf64-0f88-4a16-a5a0-94998c1ba7e2

Release Notes:

- agent: Fix scrollbar and JSON indentation for tool call input/output
content's markdown codeblocks.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ed-industries#45454)

This PR fixes two issues with regards to markdown codeblocks rendered in
tool call input and output content display:
- the JSON code snippets weren't properly indented
- codeblocks weren't being rendered in unique containers; e.g., if you
hovered one scrollbar, all of them would also be hovered, even though
horizontal scrolling itself worked properly

Here's the end result:


https://github.com/user-attachments/assets/3d6daf64-0f88-4a16-a5a0-94998c1ba7e2

Release Notes:

- agent: Fix scrollbar and JSON indentation for tool call input/output
content's markdown codeblocks.
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
…ed-industries#45454)

This PR fixes two issues with regards to markdown codeblocks rendered in
tool call input and output content display:
- the JSON code snippets weren't properly indented
- codeblocks weren't being rendered in unique containers; e.g., if you
hovered one scrollbar, all of them would also be hovered, even though
horizontal scrolling itself worked properly

Here's the end result:


https://github.com/user-attachments/assets/3d6daf64-0f88-4a16-a5a0-94998c1ba7e2

Release Notes:

- agent: Fix scrollbar and JSON indentation for tool call input/output
content's markdown codeblocks.
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant