Skip to content

agent_ui: tool output not rendered after restarting Zed #57230

@dandv

Description

@dandv

Found this bug while testing an Agent thread search patch for #39338.

Reproduction steps

  1. In a new Agent thread, send "Run ls -al using the terminal tool."
  2. Restart Zed
  3. Find the thread started above
  4. Notice the ls output is gone

Current vs. Expected behavior

Current: tool output is not rendered at all. Tool blocks don't have the expand/collapse controls.

Image

Expected: since tool output is persisted in threads.db, and is output via agent::open active thread as markdown, tool blocks could be restored.

Zed version

Zed Dev 1.4.0
Commit: 2a00db0
Version: 1.4.0+dev.2a00db06ce6d01089bfafd207b6348078e980df9

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:needs triagetriage is not complete: no `area:*` label, or no `priority:*`/`frequency:*` for Bugs/Crashes

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions