Skip to content

Desktop: completed Agent Graph remains expanded after reopening a session #4721

Description

@Sun-GLiang

What happened

When a session uses Agent Graph to run multiple swarm/operator tasks, the graph remains expanded after all tasks have completed.

If the user leaves the session and opens it again, the completed Agent Graph is still expanded and occupies a large part of the conversation area.

Expected behavior:

  • A completed Agent Graph should be collapsed by default when entering or reopening its session.
  • Active, waiting, closing, failed, and stopped graphs should remain expanded.
  • If a graph completes while the user is still viewing the session, it should not automatically collapse.
  • Manual expand/collapse changes should remain respected while the current session is open. Persistent storage across app restarts is not required.

How to reproduce

  1. Open or create a session in Maka Desktop.
  2. Use Agent Graph to start multiple swarm/operator tasks.
  3. Wait until the graph reports that all tasks have completed.
  4. Navigate to another session.
  5. Reopen the original session.
  6. Observe that the completed Agent Graph is still expanded.

Expected: the completed graph is collapsed when the session is reopened.

Actual: the graph is expanded and pushes the conversation content further down the page.

Environment

  • Maka commit: 0f4d20e31
  • OS and version: macOS 15.6
  • Surface: Desktop
  • Node.js version: v24.19.0

Logs, screenshots, or additional context

No crash or runtime error is involved. This is a session-entry UI state issue.

The Agent Graph panel currently starts expanded before accepting the graph snapshot for the newly opened session. The initial collapsed state should take the graph status into account without changing the state during subsequent live snapshot updates.

Activity

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

Metadata

Metadata

Assignees

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