Conversation
Contributor
📝 WalkthroughWalkthroughChanges refactor the client initialization and login flow by making Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant Compose as Compose Command
participant Session as Session Init
participant Fallback as Fallback Session
participant Provider as Fabric Provider
participant Loader as Loader
User->>Compose: Execute compose config
Compose->>Session: Load command session
Session-->>Compose: Session creation fails (unauthenticated)
Compose->>Fallback: Create fallback sessionx with Playground provider
Fallback-->>Compose: Return fallback session
Compose->>Provider: Get provider from fallback session
Compose->>Loader: Initialize loader with fallback provider
Compose->>Loader: Load/create project using fallback session
Loader-->>Compose: Project loaded
Compose-->>User: Continue with fallback, no panic
sequenceDiagram
participant CMD as Command Root
participant Login as InteractiveRequireLoginAndToS
participant Client as Fabric Client
participant Setup as Setup Flow
CMD->>Login: Call with context, fabric client, address
Login->>Client: Check login/ToS status
alt Login required
Login->>Login: Prompt user interactively
Login->>Client: Reconnect with new tenant if needed
Client-->>Login: Updated fabric client
end
Login->>Login: Re-check login/ToS with current client
Login-->>CMD: Return (updated fabric client, error)
CMD->>Setup: Use returned fabric client for initialization
Setup-->>CMD: Complete setup
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
3 tasks
defang compose config
KevyVo
approved these changes
Feb 3, 2026
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.
Description
Compose config can continue without a stack. Interactively, you'd get prompted for a stack, or get a default stack from Fabric. Without auth, we don't know whether there is a default stack or not, so we return an error (expected).
Linked Issues
Fixes #1894
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Tests