fix(ui): activity panel, sandbox, session isolation, and performance#32
Merged
fix(ui): activity panel, sandbox, session isolation, and performance#32
Conversation
Activity panel topology: - Nodes appear at brain-layout positions immediately (synchronous init, lower alpha, stronger target pull, no jitter) - Edges deactivate when agents finish and clear on completion instead of accumulating permanently - Node firing state uses agentStates as single source of truth Sandbox: - Auto-build aether-sandbox:latest from Containerfile when image is missing (one-time ~2-3 min) instead of falling back to python:3.11-slim - Add 10s timeout to podman image-exists check to prevent indefinite hang when Podman machine is not running on Mac Session isolation: - Activity panel tracks the focused session via setActivitySession() - Background streams don't corrupt the panel (gated ownsPanel check) - Abort running SSE stream on session switch to prevent orphaned connections Performance: - Cache entity context with 60s TTL (eliminates 5-6 DB queries on 99% of requests, biggest time-to-first-token improvement) - Cache LLM instances per (provider, model, temperature) key - Cache bind_tools result per agent instance via get_tool_llm() Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aether-sandbox:latestwhen missing instead of falling back to barepython:3.11-slim. Adds 10s timeout to prevent indefinite hang on Macbind_toolsresultTest plan
make ci-localpasses (format, lint, mypy, bandit, pytest)Made with Cursor