From e5bdad39758ea0ba40a103e79e9fb5035d65e27f Mon Sep 17 00:00:00 2001 From: Ehab Younes Date: Tue, 9 Dec 2025 13:12:14 +0300 Subject: [PATCH 01/10] Unify deployment tracking and support multiple deployments This change centralizes deployment state management and enables seamless multi-deployment support. The extension now properly tracks per-deployment credentials, syncs state across VS Code windows, and handles login/logout flows in a unified way. Key changes: Architecture: - Add DeploymentManager to centralize deployment state (url, label, token, user) and coordinate client updates, auth contexts, and workspace refreshes - Add LoginCoordinator to handle login prompts with cross-window detection, preventing duplicate login dialogs when multiple windows need auth - Move deployment types to src/deployment/ module with proper type guards Storage & Auth: - SecretsManager now stores per-deployment credentials using label-based keys (coder.session.