Skip to content

A setup-required bot with a missing agent auto-fires a doomed turn #22

Open

Description

@anildukkipatty

What happens

Activating a bot that owes this machine setup immediately auto-sends the setup prompt (ui/app/components/app-shell.tsx:387-408) — by design, since the setup thread is meant to be an implementation detail.

If that bot's agent is not installed, the auto-send hits the guard at src/server.ts:252-257 and fails instantly:

400 {"error":"<Bot> runs on codex, which is not installed on this machine",
     "agentUnavailable":"codex"}

The user lands on a bot that appears to start working and then immediately errors, with no obvious next step.

Severity

Low — recoverable and the error message is accurate. The way out is to edit the bot's agent, which is allowed (bot-form.tsx:504 gates only new bots), but nothing points there.

Suggested fix

Skip the auto-send when the bot's agent is unavailable and show the "agent not installed" state instead, with a link into the bot editor.

Note

The agentUnavailable field the server returns is currently unused by the client — the UI only renders the message string (ui/app/components/chat.tsx:1097-1103). It is there to be branched on.

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