From c1d182daa08682687b3ca929d93534acb8860ecf Mon Sep 17 00:00:00 2001 From: iris Date: Sat, 28 Nov 2026 02:52:50 +0100 Subject: [PATCH] swarm-ui: the two retry buttons that said try again say retry Eight failed reads offer a retry button; the claude login dialog and the instructions editor worded the same action try again. --- docs/4-implementation/web-ui/swarm-ui.md | 2 +- .../swarm-ui/src/agent/claude-login/ClaudeLoginDialog.tsx | 4 ++-- .../packages/swarm-ui/src/agent/detail/AgentInstructions.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/4-implementation/web-ui/swarm-ui.md b/docs/4-implementation/web-ui/swarm-ui.md index 0e13ed851..00b7c5472 100644 --- a/docs/4-implementation/web-ui/swarm-ui.md +++ b/docs/4-implementation/web-ui/swarm-ui.md @@ -113,7 +113,7 @@ An agent created here or with `swarmctl agent create` starts `paused`; set it `up` from its card. A card shows **login needed** when the agent's own turn-state header says its claude has no session, and a **log in** button that runs the claude login from a dialog: open the URL it shows, then paste the code -back. A failed login offers **try again** in the same dialog. When the secret +back. A failed login offers **retry** in the same dialog. When the secret store has the login, the dialog closes and a short toast in the top-right corner says so. The credentials go to the agent through the secret store ([`claude-login.md`](../../2-handbook/swarm/claude-login.md)). The agent's own diff --git a/frontend/packages/swarm-ui/src/agent/claude-login/ClaudeLoginDialog.tsx b/frontend/packages/swarm-ui/src/agent/claude-login/ClaudeLoginDialog.tsx index 0c632eda4..bceacddd8 100644 --- a/frontend/packages/swarm-ui/src/agent/claude-login/ClaudeLoginDialog.tsx +++ b/frontend/packages/swarm-ui/src/agent/claude-login/ClaudeLoginDialog.tsx @@ -42,7 +42,7 @@ export function ClaudeLoginDialog({ }) { const [step, setStep] = useState({ step: "starting" }); const [code, setCode] = useState(""); - // Bumped by "try again": the effect below starts a new login for it. + // Bumped by "retry": the effect below starts a new login for it. const [attempt, setAttempt] = useState(0); useEffect(() => { @@ -145,7 +145,7 @@ export function ClaudeLoginDialog({ context="the claude login failed" problem={step.problem} /> - + )} diff --git a/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx b/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx index 2aea6676b..25aa30c60 100644 --- a/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx +++ b/frontend/packages/swarm-ui/src/agent/detail/AgentInstructions.tsx @@ -222,7 +222,7 @@ function InstructionsForm({ agent }: { agent: string }) { problem={load.problem} /> - + ) : null}