diff --git a/site/src/components/Resources/AgentStatus.tsx b/site/src/components/Resources/AgentStatus.tsx index b607d3201b5a2..0ab12ffdc95ae 100644 --- a/site/src/components/Resources/AgentStatus.tsx +++ b/site/src/components/Resources/AgentStatus.tsx @@ -135,22 +135,32 @@ const StartErrorLifecycle: React.FC<{ const ConnectedStatus: React.FC<{ agent: WorkspaceAgent }> = ({ agent }) => { - return ( - - - - - - - - - - - - - - - ) + // NOTE(mafredri): Keep this behind feature flag for the time-being, + // if delay_login_until_ready is true, the user has updated to + // terraform-provider-coder v0.6.7 and opted in to the functionality. + // + // Remove check once documentation is in place and we do a breaking + // release indicating startup script behavior has changed. + // https://github.com/coder/coder/issues/5749 + if (agent.delay_login_until_ready) { + return ( + + + + + + + + + + + + + + + ) + } + return } const DisconnectedStatus: React.FC = () => {