Skip to content

Commit 6ad1dfe

Browse files
committed
fix: disable agent app buttons until startup script is completes when set to blocking
1 parent 87ad560 commit 6ad1dfe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

site/src/modules/resources/AppLink/AppLink.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ShareIcon } from "./ShareIcon";
1616
export const DisplayAppNameMap: Record<TypesGen.DisplayApp, string> = {
1717
port_forwarding_helper: "Ports",
1818
ssh_helper: "SSH",
19-
vscode: "VS Code Desktop",
19+
vscode: "VS Code",
2020
vscode_insiders: "VS Code Insiders",
2121
web_terminal: "Terminal",
2222
};
@@ -94,19 +94,19 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
9494
}
9595
if (!appsHost && app.subdomain) {
9696
canClick = false;
97-
icon = (
98-
<ErrorOutlineIcon
99-
css={{
100-
color: theme.palette.grey[300],
101-
}}
102-
/>
103-
);
97+
icon = <ErrorOutlineIcon css={{ color: theme.palette.grey[300] }} />;
10498
primaryTooltip =
10599
"Your admin has not configured subdomain application access";
106100
}
107101
if (fetchingSessionToken) {
108102
canClick = false;
109103
}
104+
if (
105+
agent.lifecycle_state === "starting" &&
106+
agent.startup_script_behavior === "blocking"
107+
) {
108+
canClick = false;
109+
}
110110

111111
const isPrivateApp = app.sharing_level === "owner";
112112

0 commit comments

Comments
 (0)