Skip to content

Zed session history lost after reload when using cagent as ACP server #1591

Closed

Description

@ThePlenkov

Issue

Session history is lost after reloading Zed while using cagent as ACP server.

Symptoms

  • History not visible in Zed after reload
  • Not visible in cagent sessions command either

Steps to Reproduce

  1. Start cagent as ACP server
  2. Connect Zed editor to cagent
  3. Have an active session/conversation
  4. Reload Zed editor
  5. Check session history - observe it's gone

Environment

  • Zed version: 0.216.0 (f381f06bcd9fd7fae8c62c2308887edcc00f2d3d)
  • cagent version: v1.20.3 (Homebrew)
  • OS: Linux

Expected Behavior

Session history should persist and be visible after Zed reload

Actual Behavior

Session history is completely lost and not visible in cagent sessions command

Activity

  1. rumpl commented on Feb 4, 2026

    @rumpl
    Member

    Hey @ThePlenkov, thanks for opening this issue. I have an implementation that should work but I can't seem to find where in Zed am I supposed to see old sessions with my agents, can you please help me :)

  2. rumpl commented on Feb 4, 2026

    @rumpl
    Member

    @Pnkcaht how can I test this in Zed? I can't seem to find the place in Zed where I can see past sessions

  3. ThePlenkov commented on Feb 4, 2026

    @ThePlenkov
    Author

    @rumpl in zed you won't ( temporarily ). They are working on a feature zed-industries/zed#37074 as well acp session history is a feature to be delivered in ACP protocol itself: https://agentclientprotocol.com/rfds/session-list#how-does-this-interact-with-session-load . Meanwhile what i mean here is different - i mean that right in cagent, when i type /sessions i do not see a session created by Zed ACP integration.

  4. krissetto commented on Feb 5, 2026

    @krissetto
    Contributor

    @ThePlenkov on cagent v1.20.5 this is fixed. You should see the ACP sessions in cagent with the /session command.

    If you want to keep them separate from the default session store, specify a --session-db path in the cagent acp command zed configuration

  5. ThePlenkov commented on Feb 5, 2026

    @ThePlenkov
    Author

    @krissetto I confirm - it's working fine! may be as a small addition - it would be nice to have also better titles for sessions:

    Image

    similarly to how we have it when we start a new session

  6. krissetto commented on Feb 5, 2026

    @krissetto
    Contributor

    Yeah definitely agree, for this fix i left it as is but we could generate the title as we do when running the TUI for example. That will likely be available in the next days

    for now that session id you see if whats in the database, for diagnostics purposes.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions