@knowlearning/agents 0.9.175 → 0.9.177
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -78,7 +78,7 @@ export default function EmbeddedAgent() {
|
|
|
78
78
|
async function environment(user) {
|
|
79
79
|
const response = await send({ type: 'environment', user })
|
|
80
80
|
// keep copy on initialize symantics for environment variables
|
|
81
|
-
if (!variables) variables = response.variables
|
|
81
|
+
if (!variables && !user) variables = response.variables
|
|
82
82
|
return { ...response, variables }
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -127,7 +127,7 @@ export default function messageQueue({ token, sid, domain, Connection, watchers,
|
|
|
127
127
|
|
|
128
128
|
if (!authed) {
|
|
129
129
|
// TODO: credential refresh flow instead of forcing login
|
|
130
|
-
if (message.error)
|
|
130
|
+
if (message.error) alert('Authentication Error. Please try again.')
|
|
131
131
|
|
|
132
132
|
authed = true
|
|
133
133
|
if (!user) { // this is the first authed websocket connection
|