feat: Space layer above Project + RunContext + Single Agent CDP#1655
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Related Issue
#1651
Description
Introduces the Space layer above Project: a Space (folder-backed or blank)
holds Projects; a Project is one conversation; a Run is one execution.
Three load-bearing pieces ship together:
workspace state + frontend stores + UI.
RunContextper-Run isolation replaces ad-hocos.environwrites inchat_controller and toolkits; concurrent chats no longer overwrite each
other's working dirs, API keys, browser ports, or CAMEL log paths.
try/finallyrelease).Plus: durable cross-restart
project_contextfor follow-up turns, 4-layerProject display-name backfill,
camel_logshidden from agent file UI, Brainauth scaffold (
NoneAuthdefault — local desktop Brain only),file_save_pathkeyed by canonicaluser_idwith project-base-level legacyemail fallback.
Deployment — required before merging
server/scripts/space_migration_preflight.py) to catchcross-user
project_idcollisions before the migration silently rewritesthem.
on
chat_historyholds row locks for the duration.alembic downgrade— thedowngrade drops new shape but does not revert in-place data backfills.
apply_service.py+space_overlay_client.pyare process-local.workspace_controlleris gated bymanifest.get("deployment") == "local"— do not enable on any cloud / multi-tenant Brain until a realIAuthProviderlands.~/eigent/{email_sanitized}/legacy artifacts stay readable via fallback;old directories are not auto-migrated.
Testing Evidence (REQUIRED)
What is the purpose of this pull request?
Contribution Guidelines Acknowledgement