Skip to content

No empty state when no agent CLI is installed #19

Open

Description

@anildukkipatty

What happens

With none of claude, codex or opencode on PATH, the server starts normally and logs available agents: none (src/server.ts:490). GET /agents returns {"agents":[]}. The UI gives no indication until the user is several clicks deep.

app-shell.tsx and onboarding-flow.tsx never call getAgents(). A new user gets the full onboarding ("Create manually" / "Create with an agent"), fills in a bot, and only learns there is a problem at the Agent field in the bot studio — where all three options read · Not installed (ui/app/components/bot-form.tsx:414) and Save is disabled (:504). Nothing says what to install or how.

The only other surface is the thread creator: "Install Claude Code, Codex, or OpenCode to create a thread." (ui/app/components/thread-panel.tsx:281).

Why it matters

This hits new users hardest — the population least likely to already have an agent CLI, and the one that forms a first impression.

Suggested fix

Call getAgents() at the app shell level and show a first-run empty state when the list is empty, with the install commands already documented in README.md:43-51.

Verified

Reproduced by launching with PATH stripped of all three CLIs: clean startup, {"agents":[]}, healthy /health, dead-end in the studio.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions