fix(cloud): request automatic Space launch (#2501)

Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
This commit is contained in:
Hyu
2026-09-03 11:44:32 +08:00
committed by GitHub
parent c8d8b1aac4
commit d50957fc4f
3 changed files with 19 additions and 3 deletions
@@ -134,6 +134,18 @@ class TestSpaceServiceGetOAuthAuthorizeUrl:
# Verify - uses default URL
assert 'https://space.langbot.app/auth/authorize' in result
def test_cloud_entry_url_requests_automatic_launch(self):
"""Cloud's login entry must continue through the Space launcher."""
ap = SimpleNamespace(
instance_config=SimpleNamespace(
data={'space': {'url': 'https://space.example/base/'}},
),
)
result = SpaceService(ap).get_cloud_entry_url()
assert result == 'https://space.example/base/cloud?environment=beta&auto_launch=1'
class TestSpaceServiceGetUserByEmail:
"""Tests for _get_user_by_email internal method."""