# First agent chat: manual test drive Run this prototype from the first-chat greeting worktree, on a fresh loopback instance. Do not use your normal Paperclip database. ```sh pnpm install --frozen-lockfile PAPERCLIP_TELEMETRY_DISABLED=1 PORT=3812 pnpm dev:once --data-dir ./tmp/first-chat-preview ``` Open the `/onboarding` route in the local instance. If the local instance has not been set up, use the repository's normal local setup, or use the credential-free fixture below. Only enter model credentials on a trusted instance you control. ## Fast and slow arrival 1. Create a fresh organization and name the first agent. Connect a test model. On **Review**, leave the wizard open for a few seconds. There should be no welcome text or question card on that screen. 2. Click **Get started**. Watch the chat surface as it opens. After a short beat, the welcome should type into its agent bubble, a few characters at a time. Once the last character is visible, the native question card should fade and rise separately. The composer stays available throughout. 3. Verify that the choices appear in this order: **Interview me about my goals**, **Tell me what Paperclip can do**, and **Help me accomplish a task**. 4. Pick **Interview me about my goals** and **Continue**. The answer should be recorded once and the agent should start the interview, not create a task. Reload. The transcript should still show the welcome, your selection, and the agent’s reply in that order, with one copy of each. The intro plays once. 5. Create another organization and click **Get started** immediately. The welcome uses the name you entered. The app saves it and the card together, with zero agent runs. Select **Help me accomplish a task**. A text field appears. Entering a description keeps the agent idle. Clicking **Continue** sends the selection to the connected agent for its first reply. 6. Repeat with the system's reduced-motion preference turned on. The greeting and card should appear in that order with motion disabled. To inspect timing, open DevTools → Network and filter for `onboarding/greeting`. The first POST should happen on Review, before you click **Get started**. A second POST after chat paints is an idempotent retry. ## Credential-free interactive fixture Run from the repository root. ```sh PAPERCLIP_TELEMETRY_DISABLED=1 PAPERCLIP_FIRST_CHAT_MANUAL=1 pnpm exec playwright test --config tests/e2e/playwright.config.ts conference-room-typing-intro.spec.ts -g 'warms the welcome' --debug ``` The script starts a separate loopback app and opens a headed browser with scripted model sign-in and scripted replies after submission. It uses the actual wizard, built-in personalized greeting, saved thread, and question response handler. When Playwright pauses, use the browser to follow the steps above. All three choices have scripted replies. After choosing one, type a follow-up such as “build a website” to receive the scripted acknowledgment. Reload and check that the messages keep their order. The fixture stops when Playwright exits. To run the automated fast-arrival and delayed/reduced-motion checks without the inspector, omit `PAPERCLIP_FIRST_CHAT_MANUAL` and `--debug`, and select both tests with `-g 'warms the welcome|welcome request is pending'`. ## PR and release smoke coverage The required `ci / e2e` check runs `tests/e2e/release-onboarding.spec.ts` against the PR's source and built UI. It uses the same `completeOnboarding` scenario as the authenticated Docker release smoke. Keep wizard, hire, welcome, and choice assertions in `tests/release-smoke/onboarding-scenario.ts` so both gates change together. Changes to the release smoke files also select the source E2E lane. The shard planner omits this extra case only for changes confined to the Costs or Approvals UI pages, source unit tests, and audited prose. Shared components, hooks, libraries, server code, and new source paths keep the case by default. Mixed changes keep it when any source file falls outside the known unrelated set. The skip set lives in `scripts/e2e-shard.mjs`; extend it only after checking that the new path cannot affect onboarding. The browser and Vitest selectors share the source-diff eligibility check. Full or shadow CI, missing or malformed change plans, deleted or non-source inputs, and plans for a different checkout keep the case. Local unfiltered E2E runs also keep it. No separate browser job is added. Run the shared scenario before submitting onboarding changes: ```sh pnpm exec playwright test --config tests/e2e/playwright.config.ts release-onboarding.spec.ts ``` The source run uses a disposable local instance and simulates only the upstream API key check with the existing provider fixture. It does not need model credentials. The release run also checks authentication and the published npm installation. A source E2E pass does not replace that installation check.