File tree Expand file tree Collapse file tree 1 file changed +26
-16
lines changed
site/src/components/Resources Expand file tree Collapse file tree 1 file changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -135,22 +135,32 @@ const StartErrorLifecycle: React.FC<{
135
135
const ConnectedStatus : React . FC < {
136
136
agent : WorkspaceAgent
137
137
} > = ( { agent } ) => {
138
- return (
139
- < ChooseOne >
140
- < Cond condition = { agent . lifecycle_state === "ready" } >
141
- < ReadyLifeCycle />
142
- </ Cond >
143
- < Cond condition = { agent . lifecycle_state === "start_timeout" } >
144
- < StartTimeoutLifecycle agent = { agent } />
145
- </ Cond >
146
- < Cond condition = { agent . lifecycle_state === "start_error" } >
147
- < StartErrorLifecycle agent = { agent } />
148
- </ Cond >
149
- < Cond >
150
- < StartingLifecycle />
151
- </ Cond >
152
- </ ChooseOne >
153
- )
138
+ // NOTE(mafredri): Keep this behind feature flag for the time-being,
139
+ // if delay_login_until_ready is true, the user has updated to
140
+ // terraform-provider-coder v0.6.7 and opted in to the functionality.
141
+ //
142
+ // Remove check once documentation is in place and we do a breaking
143
+ // release indicating startup script behavior has changed.
144
+ // https://github.com/coder/coder/issues/5749
145
+ if ( agent . delay_login_until_ready ) {
146
+ return (
147
+ < ChooseOne >
148
+ < Cond condition = { agent . lifecycle_state === "ready" } >
149
+ < ReadyLifeCycle />
150
+ </ Cond >
151
+ < Cond condition = { agent . lifecycle_state === "start_timeout" } >
152
+ < StartTimeoutLifecycle agent = { agent } />
153
+ </ Cond >
154
+ < Cond condition = { agent . lifecycle_state === "start_error" } >
155
+ < StartErrorLifecycle agent = { agent } />
156
+ </ Cond >
157
+ < Cond >
158
+ < StartingLifecycle />
159
+ </ Cond >
160
+ </ ChooseOne >
161
+ )
162
+ }
163
+ return < ReadyLifeCycle />
154
164
}
155
165
156
166
const DisconnectedStatus : React . FC = ( ) => {
You can’t perform that action at this time.
0 commit comments