Verify deployment-configured model preferences with the selected account. Preserve structured provider failures and show descriptive messages for known causes through the existing onboarding error display. Keep the existing failure buttons, account binding, and retry/sign-in behavior. Validation: UI typecheck, 38 focused tests, four browser journeys, all applicable CI checks, and Greptile 5/5 with no unresolved review comments. Co-Authored-By: Paperclip <noreply@paperclip.ing>
3.3 KiB
Starting in chat
Finishing company onboarding opens the new agent's standing chat. It creates no
execution task or project. Chat uses the existing owner-bound conversation record
and is excluded from task collections. New chats have no task number or identifier
and do not advance the company's task counter, so the first accepted task is
<prefix>-1. Existing numbered records keep their identifiers. Existing onboarding
tasks remain readable.
The wizard prepares the conversation before navigating. After its content paints in a visible tab, the UI requests a live welcome through the normal agent queue. Hidden tabs wait for visibility. Unmount cancels an unsent request. A database advisory lock and durable wake receipts prevent concurrent requests and refreshes from starting duplicate welcomes; failed attempts can be retried. A user message or a new conversation session supersedes a welcome that has not started.
The welcome receives the organization, company goals and any Cloud signup idea. Cloud seeds retain initial task titles/details as context without creating or editing projects and tasks. Existing seed task references are preserved.
Subsequent chat turns gather a goal and clear exit criteria. The agent offers an
interview and starts one only when requested; ordinary conversation works too.
It proposes scoped work through suggest_tasks. Recorded acceptance creates the
selected tasks through the existing atomic handoff. An explicit task-creation
request can create work directly. Project selection, budgets and hiring gates
retain their normal authority. The conversation remains available after handoff.
Local subscription setup waits for verified sign-in before enabling Connect. Pasting a Claude authorization code submits it automatically and shows a finishing state; a rejected code offers a fresh sign-in immediately. Switching providers clears the previous provider's model so subscription verification uses a compatible model.
Automatic subscription setup uses PAPERCLIP_ONBOARDING_MODELS, when configured,
as a JSON object mapping harness IDs to up to three ordered model IDs. Core has
no deployment-specific preference list. Without the variable, the adapter's
normal default remains in use. The authenticated health response exposes valid
preferences as onboardingModels.
For a new Claude or Codex subscription agent, onboarding verifies each preferred model against the chosen saved account and environment. Only a structured model refusal permits the next preference. Authentication, quota, permission, runtime and cleanup failures stop the attempt. The existing shared connection deadline bounds the complete operation; changing subscriptions or providers discards late results. A passing model is saved in the configuration used to finish setup. API/gateway selections and existing configured agents retain their explicit model. The check consumes a small amount of the connected account's allowance.
Failed setup keeps the existing error display, buttons and retry/sign-in flow. When the provider reports a known cause, that display explains it: missing model access, a failed sign-in, insufficient permission, exhausted usage, rate limiting, a provider outage or a timeout. Unknown failures keep a generic error message. No account chooser, connection-removal control or additional recovery action is introduced during onboarding.