Skip to content

fix(site): only attempt to watch when dev containers enabled #18892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 16, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: simplify based on kayla's feedback
<3
  • Loading branch information
DanielleMaywood committed Jul 16, 2025
commit 5b3836db0f2e02277cbd1db5a15f27f65fffba3c
9 changes: 1 addition & 8 deletions site/src/modules/resources/useAgentContainers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,7 @@ export function useAgentContainers(
);

useEffect(() => {
const devcontainerFeatureDisabled =
queryIsLoading ||
(queryError instanceof AxiosError &&
queryError.status === 403 &&
queryError.response?.data.message ===
"Dev Container feature not enabled.");

if (agent.status !== "connected" || devcontainerFeatureDisabled) {
if (agent.status !== "connected" || queryIsLoading || queryError) {
return;
}

Expand Down
Loading