missions: fix repo checkout for retries + tokenize git.redclaw.dev clones
ci / gates (push) Successful in 7s
ci / frontend (push) Successful in 37s
ci / rust (push) Successful in 3m40s
ci / e2e (push) Skipped
ci / publish (push) Successful in 2m37s

- mission_orchestrator: run ensure_checkout BEFORE the team_id
  short-circuit. Previously, a re-launched or retried mission bailed
  out at the team_id=already-bound guard and skipped repo checkout
  entirely, so agents ran against an empty workspace.
- mission_workspace: inject GITEA_TOKEN into git.redclaw.dev URLs so
  clone auth works from the server container. Redact any token
  echoed back on failure.
- refresh buttons on MissionCanvas + MissionsList now spin the icon
  while loading so clicks are visibly acknowledged.
- refresh-spinner keyframe added to motion.css.

Requires operator on gw-04: sudo chown 65532:65532 /var/lib/clawmates-missions
(applied 2026-07-21 pre-commit).
This commit is contained in:
Omar Sobh
2026-07-21 20:33:33 -07:00
parent f1f3de4db0
commit 1e91a19707
5 changed files with 87 additions and 30 deletions
@@ -179,11 +179,15 @@ export function MissionsList({
<button
type="button"
onClick={load}
disabled={loading}
title="Refresh"
aria-label="Refresh"
style={iconBtn}
style={{ ...iconBtn, opacity: loading ? 0.6 : 1 }}
>
<RotateCw size={13} />
<RotateCw
size={13}
style={loading ? { animation: "cm-spin 1s linear infinite" } : undefined}
/>
</button>
<button
type="button"