You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"cargo:warning=Inspector frontend missing at {}. Embedding disabled; set SANDBOX_AGENT_SKIP_INSPECTOR=1 to silence or build the inspector to embed it.",
26
+
dist_dir.display()
27
+
);
28
+
}
21
29
22
30
// Rebuild when the git HEAD changes so BUILD_ID stays current.
23
31
let git_head = manifest_dir.join(".git/HEAD");
@@ -36,21 +44,14 @@ fn main() {
36
44
generate_version(&out_dir);
37
45
generate_build_id(&out_dir);
38
46
39
-
let skip = env::var("SANDBOX_AGENT_SKIP_INSPECTOR").is_ok();
47
+
let skip = env::var("SANDBOX_AGENT_SKIP_INSPECTOR").is_ok() || !dist_exists;
40
48
let out_file = out_dir.join("inspector_assets.rs");
41
49
42
50
if skip {
43
51
write_disabled(&out_file);
44
52
return;
45
53
}
46
54
47
-
if !dist_dir.exists(){
48
-
panic!(
49
-
"Inspector frontend missing at {}. Run `pnpm --filter @sandbox-agent/inspector build` (or `pnpm -C frontend/packages/inspector build`) or set SANDBOX_AGENT_SKIP_INSPECTOR=1 to skip embedding.",
0 commit comments