fix
Browse files914 unmodified lines91591691791891992092192292392492551 unmodified lines977978979980981982983984985986987914 unmodified lines # This ensures we catch spaces that were deployed in this session if session_token and session_token in user_sessions: session = user_sessions[session_token] # Ensure deployed_spaces exists (for backward compatibility with old sessions) if "deployed_spaces" not in session: session["deployed_spaces"] = [] deployed_spaces = session.get("deployed_spaces", []) print(f"[Deploy] Checking session for existing spaces. Found {len(deployed_spaces)} deployed spaces.")51 unmodified lines if session_token and session_token in user_sessions: if repo_id: session = user_sessions[session_token] # Ensure deployed_spaces exists if "deployed_spaces" not in session: session["deployed_spaces"] = [] deployed_spaces = session.get("deployed_spaces", []) print(f"[Deploy] 📝 Tracking space in session...")backend_api.py+10