Always set QUIRE__ env vars when transport is present
https://claude.ai/code/session_01GfccpUReesMY5Rb4FhajhT
change
commit b4cad32fca34942bdbba8a27759d6564d3edbc7d
author Claude <noreply@anthropic.com>
date
parent 37d85c4e
diff --git a/quire-server/src/ci/run.rs b/quire-server/src/ci/run.rs
index 5a71ed6..dbddcfd 100644
--- a/quire-server/src/ci/run.rs
+++ b/quire-server/src/ci/run.rs
@@ -342,19 +342,17 @@ impl Run {
                 write_bootstrap(&bootstrap_path, git_dir, meta, sentry_trace_id)?;
                 cmd.arg("--bootstrap").arg(&bootstrap_path);
             }
-            Some(t) if t.mode == TransportMode::Api => {
-                self.store_bootstrap_data(git_dir, sentry_trace_id)?;
-                cmd.env("QUIRE__RUN_ID", &t.session.run_id);
-                cmd.env("QUIRE__SERVER_URL", &t.session.server_url);
-                cmd.env("QUIRE__AUTH_TOKEN", &t.session.auth_token);
-                cmd.env("QUIRE__TRANSPORT", "api");
-            }
             Some(t) => {
-                write_bootstrap(&bootstrap_path, git_dir, meta, sentry_trace_id)?;
-                cmd.arg("--bootstrap").arg(&bootstrap_path);
                 cmd.env("QUIRE__RUN_ID", &t.session.run_id);
                 cmd.env("QUIRE__SERVER_URL", &t.session.server_url);
                 cmd.env("QUIRE__AUTH_TOKEN", &t.session.auth_token);
+                if t.mode == TransportMode::Api {
+                    self.store_bootstrap_data(git_dir, sentry_trace_id)?;
+                    cmd.env("QUIRE__TRANSPORT", "api");
+                } else {
+                    write_bootstrap(&bootstrap_path, git_dir, meta, sentry_trace_id)?;
+                    cmd.arg("--bootstrap").arg(&bootstrap_path);
+                }
             }
         }
         if let Some(dsn) = sentry_dsn {