Dotta and Paperclip
8c89340444
fix(onboarding): preserve draft through company refetch ( #12735 )
...
## Thinking Path
> - Paperclip is the open source app people use to manage AI agents for
work.
> - Onboarding creates an organization in the browser.
> - The browser keeps onboarding drafts for the same origin.
> - A new data directory does not clear that browser data.
> - The organization create request refreshes the company list.
> - The old gate unmounted the live wizard during that refresh.
> - This pull request keeps the wizard mounted after its first draft
check.
> - The customer can continue to the agent step after the organization
is created.
## Linked Issues or Issue Description
No matching public issue was found. Related earlier fix: Refs #12667 .
**What happened?**
A local canary install could create an organization through the API and
then return the browser to an empty organization-name screen.
**Expected behavior**
The wizard must continue to the agent step after it creates the
organization.
**Steps to reproduce**
1. Keep a Paperclip onboarding draft in the browser.
2. Run npx paperclipai@canary onboard with a new data directory.
3. Open /onboarding.
4. Enter an organization name and select Continue.
**Paperclip version or commit**
2026.902.0-canary.7. The fix is based on current master.
**Deployment mode**
Local trusted mode through the Paperclip CLI.
**Install method**
npx package install.
**Agent adapter(s) involved**
Not adapter-specific.
**Database mode**
Embedded PostgreSQL.
## What Changed
- Keep the onboarding wizard mounted after its first successful draft
ownership check.
- Keep a failed ownership check retryable, so a later verified fetch
restores the saved draft.
- Add component, source E2E, and published-canary coverage for the
retained-draft refetch case.
## Verification
- Confirmed that the new canary scenario fails against
2026.902.0-canary.7 before this fix.
- pnpm exec vitest run ui/src/components/OnboardingWizard.test.tsx
- PAPERCLIP_E2E_PORT=3245 pnpm exec playwright test --config
tests/e2e/playwright.config.ts tests/e2e/onboarding.spec.ts
--reporter=line
- pnpm --filter @paperclipai/ui typecheck
- pnpm check:token-gates
## Risks
Low risk. The initial ownership check still waits for a fresh company
list. A later successful retry can restore a retained draft. Later
background refetches preserve live wizard state.
## Model Used
OpenAI Codex, GPT-5. Reasoning, tool use, code editing, terminal
execution, and browser testing were used. The execution environment does
not expose a context-window size.
## 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 described the issue in-PR following the bug issue template
- [x] I have not referenced internal or instance-local Paperclip issues
or links
- [x] My branch name describes the change 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: Paperclip <noreply@paperclip.ing >
2026-09-02 16:50:15 -05:00
..
2026-08-27 11:34:32 -07:00
2026-07-14 15:31:12 -05:00
2026-08-16 22:22:45 -07:00
2026-08-27 01:04:55 -07:00
2026-08-27 01:04:55 -07:00
2026-08-25 10:54:14 -07:00
2026-07-07 16:22:16 -05:00
2026-07-08 17:15:45 -07:00
2026-09-02 15:27:54 -05:00
2026-09-02 12:19:15 -07:00
2026-08-27 01:04:55 -07:00
2026-08-06 16:19:22 -07:00
2026-09-01 02:44:19 -05:00
2026-09-01 14:57:38 -05:00
2026-09-02 16:11:26 -05:00
2026-09-01 02:44:19 -05:00
2026-07-09 08:30:46 -05:00
2026-09-02 16:11:26 -05:00
2026-09-01 14:55:35 -05:00
2026-07-07 16:22:16 -05:00
2026-05-06 06:30:44 -05:00
2026-07-09 17:38:34 -05:00
2026-07-07 20:30:09 -05:00
2026-07-09 13:08:56 -05:00
2026-07-09 17:38:34 -05:00
2026-05-07 12:24:02 -05:00
2026-06-11 23:31:39 -07:00
2026-07-22 08:04:39 -05:00
2026-09-01 03:41:23 -05:00
2026-09-01 03:41:23 -05:00
2026-08-20 12:15:16 -05:00
2026-08-21 16:41:53 -07:00
2026-08-21 16:41:53 -07:00
2026-09-02 12:19:15 -07:00
2026-09-02 16:11:26 -05:00
2026-09-02 16:11:26 -05:00
2026-03-23 16:57:27 -05:00
2026-07-20 18:00:34 -05:00
2026-07-20 18:00:34 -05:00
2026-06-18 21:26:36 -07:00
2026-08-14 08:03:20 -04:00
2026-08-14 08:03:20 -04:00
2026-07-29 17:58:50 -07:00
2026-07-29 17:58:50 -07:00
2026-09-01 14:55:35 -05:00
2026-09-01 14:55:35 -05:00
2026-08-26 11:15:45 -07:00
2026-08-26 11:15:45 -07:00
2026-07-08 17:15:45 -07:00
2026-08-12 16:08:22 -07:00
2026-08-12 16:08:22 -07:00
2026-09-01 14:55:35 -05:00
2026-09-01 14:55:35 -05:00
2026-06-23 09:00:14 -05:00
2026-07-08 17:15:45 -07:00
2026-07-07 16:22:16 -05:00
2026-08-18 09:44:24 -05:00
2026-08-18 09:44:24 -05:00
2026-08-16 13:46:50 -05:00
2026-08-16 13:46:50 -05:00
2026-03-16 15:11:01 -05:00
2026-07-31 10:49:35 -07:00
2026-08-02 12:42:45 -07:00
2026-05-13 16:41:36 -05:00
2026-07-07 16:22:16 -05:00
2026-08-27 01:04:55 -07:00
2026-09-01 02:44:19 -05:00
2026-09-01 02:44:19 -05:00
2026-07-07 16:22:16 -05:00
2026-08-07 19:51:03 -05:00
2026-07-07 16:22:16 -05:00
2026-07-17 11:03:07 -05:00
2026-08-12 16:43:22 -07:00
2026-08-12 16:43:22 -07:00
2026-07-09 16:29:30 -05:00
2026-07-09 16:29:30 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-07-07 16:22:16 -05:00
2026-07-07 16:22:16 -05:00
2026-07-07 16:22:16 -05:00
2026-08-27 01:04:55 -07:00
2026-08-25 16:06:35 -07:00
2026-08-25 16:06:35 -07:00
2026-07-07 16:22:16 -05:00
2026-07-09 19:32:58 -05:00
2026-07-24 08:34:30 -07:00
2026-08-04 23:02:51 -05:00
2026-08-04 23:02:51 -05:00
2026-06-23 08:27:19 -05:00
2026-06-23 08:27:19 -05:00
2026-08-21 12:51:22 -07:00
2026-08-27 12:11:05 -07:00
2026-08-27 11:34:32 -07:00
2026-08-27 11:34:32 -07:00
2026-08-27 01:04:55 -07:00
2026-06-11 16:32:55 -05:00
2026-06-11 16:32:55 -05:00
2026-07-17 11:03:07 -05:00
2026-08-27 01:04:55 -07:00
2026-08-05 10:45:08 -05:00
2026-08-05 09:55:01 -05:00
2026-08-05 09:55:01 -05:00
2026-08-02 10:47:03 -05:00
2026-08-02 10:47:03 -05:00
2026-08-05 09:55:01 -05:00
2026-08-05 09:55:01 -05:00
2026-08-11 14:23:57 -04:00
2026-08-11 14:23:57 -04:00
2026-08-03 21:31:45 -05:00
2026-05-19 15:52:39 -05:00
2026-07-08 17:15:45 -07:00
2026-09-01 02:44:19 -05:00
2026-09-01 02:44:19 -05:00
2026-08-12 11:41:40 -07:00
2026-08-17 00:29:42 -07:00
2026-08-12 11:41:40 -07:00
2026-07-09 22:11:03 -05:00
2026-07-09 17:36:53 -05:00
2026-07-14 15:31:12 -05:00
2026-09-01 14:55:35 -05:00
2026-07-09 16:29:30 -05:00
2026-07-09 16:29:30 -05:00
2026-07-05 05:58:20 -05:00
2026-07-07 16:22:16 -05:00
2026-08-27 11:59:14 -07:00
2026-08-02 20:24:52 -07:00
2026-08-02 20:24:52 -07:00
2026-07-07 16:22:16 -05:00
2026-07-08 17:15:45 -07:00
2026-08-27 01:04:55 -07:00
2026-05-05 07:42:57 -05:00
2026-07-08 17:15:45 -07:00
2026-06-26 06:05:57 -05:00
2026-07-07 16:22:16 -05:00
2026-09-01 02:44:19 -05:00
2026-07-07 16:22:16 -05:00
2026-03-16 15:11:01 -05:00
2026-07-07 16:22:16 -05:00
2026-08-03 16:25:31 -07:00
2026-08-27 01:04:55 -07:00
2026-07-09 13:08:56 -05:00
2026-07-09 13:08:56 -05:00
2026-04-10 22:26:21 -05:00
2026-07-01 16:32:49 -05:00
2026-08-20 17:54:44 -07:00
2026-08-20 17:54:44 -07:00
2026-09-01 03:41:23 -05:00
2026-09-01 03:41:23 -05:00
2026-07-05 05:58:20 -05:00
2026-06-30 07:53:40 -07:00
2026-07-07 16:22:16 -05:00
2026-08-20 12:15:16 -05:00
2026-08-20 12:15:16 -05:00
2026-07-17 11:03:07 -05:00
2026-04-24 09:39:21 -05:00
2026-08-03 16:25:31 -07:00
2026-08-12 11:41:40 -07:00
2026-08-12 11:41:40 -07:00
2026-08-16 13:46:50 -05:00
2026-08-29 12:08:34 -05:00
2026-08-29 12:08:34 -05:00
2026-08-27 11:59:14 -07:00
2026-08-27 11:59:14 -07:00
2026-07-22 20:47:00 -07:00
2026-07-22 20:47:00 -07:00
2026-07-09 13:08:56 -05:00
2026-07-09 13:08:56 -05:00
2026-08-20 17:09:42 -05:00
2026-08-20 17:09:42 -05:00
2026-07-09 22:11:03 -05:00
2026-07-09 22:11:03 -05:00
2026-06-22 10:50:31 -05:00
2026-08-27 01:04:55 -07:00
2026-09-02 16:11:26 -05:00
2026-08-06 10:29:07 -05:00
2026-07-05 05:58:20 -05:00
2026-07-08 17:15:45 -07:00
2026-05-15 08:54:55 -05:00
2026-08-05 10:45:08 -05:00
2026-08-12 11:41:40 -07:00
2026-08-12 11:41:40 -07:00
2026-08-05 23:12:41 -05:00
2026-08-05 10:45:08 -05:00
2026-08-04 23:02:51 -05:00
2026-08-04 23:02:51 -05:00
2026-08-06 16:19:22 -07:00
2026-08-06 16:19:22 -07:00
2026-07-09 14:25:48 -07:00
2026-08-05 23:12:41 -05:00
2026-07-31 18:43:40 -07:00
2026-07-18 14:39:37 -05:00
2026-07-18 14:39:37 -05:00
2026-07-08 17:15:45 -07:00
2026-09-02 08:19:09 -05:00
2026-08-17 10:53:46 -07:00
2026-08-22 11:41:24 -05:00
2026-08-22 11:41:24 -05:00
2026-04-21 10:02:52 -05:00
2026-07-07 16:22:16 -05:00
2026-06-06 10:10:01 -05:00
2026-07-08 17:15:45 -07:00
2026-08-20 17:09:42 -05:00
2026-08-20 17:09:42 -05:00
2026-09-01 14:57:38 -05:00
2026-09-01 14:57:38 -05:00
2026-05-09 18:22:17 -05:00
2026-07-08 17:15:45 -07:00
2026-07-07 16:22:16 -05:00
2026-07-08 17:15:45 -07:00
2026-08-06 16:19:22 -07:00
2026-08-06 16:19:22 -07:00
2026-07-31 18:43:40 -07:00
2026-08-29 19:26:20 -05:00
2026-08-29 19:26:20 -05:00
2026-08-05 23:12:41 -05:00
2026-09-02 08:19:09 -05:00
2026-08-04 23:02:51 -05:00
2026-08-04 23:02:51 -05:00
2026-07-14 15:31:12 -05:00
2026-08-27 01:04:55 -07:00
2026-08-05 23:12:41 -05:00
2026-08-06 16:19:22 -07:00
2026-06-09 13:25:17 -05:00
2026-07-10 17:09:57 -05:00
2026-09-02 14:05:53 -05:00
2026-09-02 14:05:53 -05:00
2026-07-09 17:38:34 -05:00
2026-05-11 21:07:06 -05:00
2026-06-29 13:24:33 -07:00
2026-05-22 08:12:52 -05:00
2026-06-23 09:00:14 -05:00
2026-08-11 12:11:45 -04:00
2026-08-25 10:54:14 -07:00
2026-05-22 10:13:47 -05:00
2026-08-18 15:06:24 -05:00
2026-08-27 09:57:13 -07:00
2026-08-27 09:57:13 -07:00
2026-06-23 08:27:19 -05:00
2026-07-10 17:12:25 -05:00
2026-08-29 12:08:33 -05:00
2026-05-25 13:12:41 -05:00
2026-07-07 16:22:16 -05:00
2026-03-11 08:20:24 -05:00
2026-05-18 08:50:06 -05:00
2026-07-08 17:15:45 -07:00
2026-09-01 05:57:40 -05:00
2026-09-01 05:57:40 -05:00
2026-08-27 01:04:55 -07:00
2026-09-01 14:23:05 -05:00
2026-09-01 14:57:38 -05:00
2026-08-27 11:59:14 -07:00
2026-08-27 11:59:14 -07:00
2026-07-07 16:22:16 -05:00
2026-09-01 14:57:38 -05:00
2026-09-02 12:19:15 -07:00
2026-09-02 16:50:15 -05:00
2026-09-02 16:50:15 -05:00
2026-08-14 12:06:20 -07:00
2026-08-07 14:55:34 -07:00
2026-08-07 14:55:34 -07:00
2026-08-20 12:15:16 -05:00
2026-05-05 07:42:57 -05:00
2026-07-07 16:22:16 -05:00
2026-08-14 08:03:20 -04:00
2026-08-24 01:35:15 -07:00
2026-06-26 12:02:44 -05:00
2026-07-09 17:36:53 -05:00
2026-06-26 12:02:44 -05:00
2026-06-26 12:02:44 -05:00
2026-06-26 12:02:44 -05:00
2026-07-08 17:15:45 -07:00
2026-06-26 12:02:44 -05:00
2026-07-31 10:49:35 -07:00
2026-07-31 10:49:35 -07:00
2026-07-31 10:49:35 -07:00
2026-07-07 16:22:16 -05:00
2026-08-03 15:13:43 -05:00
2026-08-27 11:59:14 -07:00
2026-08-27 11:59:14 -07:00
2026-06-06 09:17:27 -05:00
2026-06-06 09:17:27 -05:00
2026-07-24 07:19:58 -07:00
2026-08-27 11:59:14 -07:00
2026-08-27 11:59:14 -07:00
2026-09-01 02:44:19 -05:00
2026-09-01 02:44:19 -05:00
2026-07-07 16:22:16 -05:00
2026-09-01 03:41:23 -05:00
2026-07-22 17:31:54 -05:00
2026-08-27 01:04:55 -07:00
2026-07-06 07:57:23 -05:00
2026-06-09 13:25:17 -05:00
2026-07-09 16:29:30 -05:00
2026-07-05 05:58:20 -05:00
2026-07-05 05:58:20 -05:00
2026-07-07 16:22:16 -05:00
2026-08-26 11:15:45 -07:00
2026-08-26 11:15:45 -07:00
2026-06-09 17:04:25 -05:00
2026-07-24 16:47:24 -05:00
2026-07-08 17:15:45 -07:00
2026-07-16 15:50:45 -05:00
2026-09-02 08:19:09 -05:00
2026-09-02 08:19:09 -05:00
2026-06-09 18:55:01 -05:00
2026-07-07 16:22:16 -05:00
2026-06-09 18:55:01 -05:00
2026-07-09 14:25:48 -07:00
2026-06-09 17:04:25 -05:00
2026-06-26 12:00:16 -05:00
2026-07-07 16:22:16 -05:00
2026-06-25 11:52:36 -05:00
2026-06-25 11:52:36 -05:00
2026-04-03 21:11:20 +01:00
2026-09-01 03:41:23 -05:00
2026-09-01 03:41:23 -05:00
2026-07-09 18:19:49 -05:00
2026-07-09 18:19:49 -05:00
2026-06-19 13:01:17 -05:00
2026-07-21 12:49:11 -05:00
2026-07-07 16:22:16 -05:00
2026-06-24 13:21:32 -05:00
2026-07-07 16:22:16 -05:00
2026-06-09 13:25:17 -05:00
2026-08-27 01:04:55 -07:00
2026-08-27 01:04:55 -07:00
2026-08-26 11:15:45 -07:00
2026-08-26 11:15:45 -07:00
2026-09-02 14:05:53 -05:00
2026-09-02 14:05:53 -05:00
2026-08-06 12:13:14 -05:00
2026-08-06 12:13:14 -05:00
2026-08-12 16:43:04 -07:00
2026-08-12 16:43:04 -07:00
2026-08-27 12:11:05 -07:00
2026-08-27 12:11:05 -07:00
2026-07-09 16:29:30 -05:00
2026-07-14 15:40:08 -05:00
2026-07-27 19:13:35 -05:00
2026-07-24 08:34:30 -07:00
2026-06-09 13:25:17 -05:00
2026-07-07 16:22:16 -05:00
2026-07-13 20:55:54 -05:00
2026-07-07 16:22:16 -05:00
2026-07-07 16:22:16 -05:00
2026-06-09 13:25:17 -05:00
2026-07-27 19:13:35 -05:00
2026-07-24 08:34:30 -07:00
2026-07-09 13:08:56 -05:00
2026-07-14 15:31:12 -05:00
2026-07-14 15:31:12 -05:00
2026-07-07 16:22:16 -05:00
2026-07-07 16:22:16 -05:00
2026-07-07 16:22:16 -05:00
2026-07-05 05:58:20 -05:00
2026-08-14 20:29:36 -04:00
2026-06-01 22:12:03 +00:00
2026-08-05 10:45:08 -05:00
2026-07-21 09:14:29 -05:00
2026-07-21 09:14:29 -05:00
2026-06-25 11:52:36 -05:00
2026-07-14 15:31:12 -05:00
2026-07-24 12:26:43 -05:00
2026-07-10 20:18:33 -05:00
2026-07-10 20:18:33 -05:00
2026-07-31 10:49:35 -07:00
2026-07-31 10:49:35 -07:00
2026-07-17 11:03:07 -05:00
2026-08-16 22:22:45 -07:00
2026-08-12 16:43:22 -07:00
2026-07-08 17:15:45 -07:00
2026-07-08 17:15:45 -07:00
2026-05-06 06:05:58 -05:00
2026-08-07 18:41:52 -07:00
2026-09-02 16:11:26 -05:00
2026-09-02 16:11:26 -05:00
2026-06-12 12:59:14 -07:00
2026-06-12 12:59:14 -07:00
2026-07-10 17:09:57 -05:00
2026-06-05 16:48:02 -05:00
2026-08-27 01:04:55 -07:00
2026-09-01 14:23:05 -05:00
2026-09-01 14:23:05 -05:00
2026-07-17 11:03:07 -05:00
2026-07-17 11:03:07 -05:00
2026-09-01 14:23:05 -05:00
2026-09-01 14:23:05 -05:00
2026-08-17 22:11:30 -05:00
2026-08-27 01:04:55 -07:00
2026-08-11 12:11:45 -04:00
2026-08-17 00:58:16 -07:00
2026-06-09 17:17:43 -05:00
2026-08-11 12:11:45 -04:00
2026-08-27 11:59:14 -07:00
2026-08-27 11:59:14 -07:00
2026-08-17 06:23:33 -04:00
2026-08-17 06:23:33 -04:00
2026-08-05 10:45:08 -05:00