mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 09:39:53 +01:00
## Thinking Path > - Paperclip helps people assign and track work with AI agents. > - Onboarding connects the first agent and opens its chat. > - A new user needs a clear way to start a conversation. > - A saved welcome can appear as soon as chat opens. > - The standard question card lets the user pick a goal, a product overview, or a task. > - The connected model replies after the user sends the choice. ## Linked Issues or Issue Description **Subsystem affected** Onboarding, agent chat, and subscription sign-in. **Problem or motivation** New users can land in a chat before they know what to ask. The original welcome depended on a model run, which could delay the first interaction. Local Claude sign-in could lose its code field if the browser reloaded the onboarding tab during authorization. **Proposed solution** Save a personalized welcome and a standard question card. Type the welcome when the chat opens, then show the card above the composer. Use the choice and any task description to guide the connected model. Resume the local Claude sign-in attempt when the onboarding tab reloads. **Alternatives considered** A model-written welcome can vary, but it adds a model call before the user has chosen what to do. The saved welcome gives the user the same starting points each time. **Roadmap alignment** This improves the existing first-agent flow for local and Cloud-managed instances. Related PRs: #22433 covers clearing the organization name after Back. #23326 adds the separate Cloud mobile-to-desktop handoff. ## What Changed - Save the greeting and question card together. Reuse the saved chat on entry and keep the transcript in order after a reload. - Type the greeting in the chat and reveal the standard question card above the composer. Honor reduced motion. - Collect a task description before starting the first model turn for the task option. Guide the first reply for each choice. - Restore the original local Claude sign-in attempt when the onboarding tab reloads. Show progress while it connects, and offer retry on a failed or stalled code exchange. - Update the organization name helper text and the onboarding walkthrough tests. ## Verification - See the first-chat test drive for manual steps and the credential-free browser fixture. - 659 focused Vitest tests passed, with one skipped. The UI and server typechecks and the feature map validator passed. - All 18 Chromium tests passed across the first-chat, onboarding, sign-in resume, and mobile desktop handoff specs. Coverage includes the saved greeting, chat ordering, question handoff, Claude code submission and resume, and the Cloud-managed starter model path with scripted replies. - The published Cloud service and live subscriber credentials need separate acceptance testing. ## Risks - The greeting uses the existing conversation and interaction records. No database migration is needed. - Existing in-flight model greetings can finish through the previous path. - The Claude PTY change depends on the CLI's bracketed-paste support. The runner preserves separate input writes for terminals that do not announce support. ## Model Used OpenAI Codex, GPT-6.2 Sol and GPT-6.2 Astra, with terminal and browser tooling. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Scott Tong <1504818+scotttong@users.noreply.github.com>