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
- Open or create a session in Maka Desktop.
- Use Agent Graph to start multiple swarm/operator tasks.
- Wait until the graph reports that all tasks have completed.
- Navigate to another session.
- Reopen the original session.
- 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.
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:
How to reproduce
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
0f4d20e31Logs, 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.