mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-30 20:39:46 +02:00
feat: show sign-in command when agent installed but signed out
This commit is contained in:
parent
ad1b949262
commit
404f3813e2
1 changed files with 9 additions and 0 deletions
|
|
@ -1662,13 +1662,16 @@ type CodeModeAgentStatus = { claude: AgentStatus; codex: AgentStatus }
|
||||||
function AgentStatusRow({
|
function AgentStatusRow({
|
||||||
name,
|
name,
|
||||||
installLink,
|
installLink,
|
||||||
|
signInCommand,
|
||||||
status,
|
status,
|
||||||
}: {
|
}: {
|
||||||
name: string
|
name: string
|
||||||
installLink: string
|
installLink: string
|
||||||
|
signInCommand: string
|
||||||
status: AgentStatus | null
|
status: AgentStatus | null
|
||||||
}) {
|
}) {
|
||||||
const ready = status?.installed && status?.signedIn
|
const ready = status?.installed && status?.signedIn
|
||||||
|
const needsSignInOnly = status?.installed && !status?.signedIn
|
||||||
return (
|
return (
|
||||||
<div className="rounded-md border px-3 py-2.5 flex items-center gap-3">
|
<div className="rounded-md border px-3 py-2.5 flex items-center gap-3">
|
||||||
<Terminal className="size-4 text-muted-foreground shrink-0" />
|
<Terminal className="size-4 text-muted-foreground shrink-0" />
|
||||||
|
|
@ -1689,6 +1692,10 @@ function AgentStatusRow({
|
||||||
<span className="rounded-full bg-green-500/10 px-2 py-0.5 text-[10px] font-medium leading-none text-green-600">
|
<span className="rounded-full bg-green-500/10 px-2 py-0.5 text-[10px] font-medium leading-none text-green-600">
|
||||||
Ready
|
Ready
|
||||||
</span>
|
</span>
|
||||||
|
) : needsSignInOnly ? (
|
||||||
|
<span className="text-xs text-muted-foreground shrink-0">
|
||||||
|
Run <code className="rounded bg-muted px-1 py-0.5 font-mono text-[11px] text-foreground">{signInCommand}</code>
|
||||||
|
</span>
|
||||||
) : (
|
) : (
|
||||||
<a
|
<a
|
||||||
href={installLink}
|
href={installLink}
|
||||||
|
|
@ -1800,11 +1807,13 @@ function CodeModeSettings({ dialogOpen }: { dialogOpen: boolean }) {
|
||||||
<AgentStatusRow
|
<AgentStatusRow
|
||||||
name="Claude Code"
|
name="Claude Code"
|
||||||
installLink="https://claude.ai/code"
|
installLink="https://claude.ai/code"
|
||||||
|
signInCommand="claude login"
|
||||||
status={status?.claude ?? null}
|
status={status?.claude ?? null}
|
||||||
/>
|
/>
|
||||||
<AgentStatusRow
|
<AgentStatusRow
|
||||||
name="Codex"
|
name="Codex"
|
||||||
installLink="https://developers.openai.com/codex/cli"
|
installLink="https://developers.openai.com/codex/cli"
|
||||||
|
signInCommand="codex login"
|
||||||
status={status?.codex ?? null}
|
status={status?.codex ?? null}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue