## Thinking Path > - Paperclip manages agents and their work. > - Onboarding hires the first agent in a company. > - Normal new-agent settings disable timer heartbeats. > - The onboarding hire path overrides that setting and enables a five-minute timer. > - This change makes onboarding use the normal settings and preserves saved policy when reconnecting an existing agent. > - New hires keep on-demand wakes without an unwanted timer. ## Linked Issues or Issue Description **What happened?** Completing first-agent onboarding sends `heartbeat.enabled: true` with a 300-second interval. This differs from other new-agent paths. The enabled timer can prevent idle sleep even when the selected runtime does not execute unscoped timer heartbeats. **Expected behavior** First-agent onboarding must use the normal disabled timer default. On-demand wakes must stay enabled. Reconnecting an existing agent must preserve its saved policy. **Steps to reproduce** 1. Create a company and complete first-agent onboarding. 2. Inspect the hire request's runtime configuration. 3. Before this change, its timer is enabled. After this change, it is disabled. ## What Changed - Use the normal new-agent runtime configuration for onboarding drafts and hires. - Keep the existing agent's runtime policy when reconnecting it. - Test new hires, restored drafts, existing policy, and on-demand wakes. - Document the default. The large wizard only changes its helper and call sites; the merge logic and tests stay in the small runtime-config module. ## Verification - `pnpm exec vitest run ui/src/lib/new-agent-runtime-config.test.ts ui/src/lib/onboarding-state.test.ts`: 10 tests passed. - `pnpm --filter @paperclipai/ui typecheck`: passed. - `pnpm verify`: selected 2,317 test files. An unrelated CPU timing assertion failed in `server/src/event-loop-stall-monitor.test.ts`; the broad run was then stopped (exit 130). This is not a passing full-suite claim. Required CI must pass for the final head. - [Full CI run](https://github.com/paperclipai/paperclip/actions/runs/46974544702) is green on final head `913daa0d0ff`, including the rerun of jobs interrupted by runner shutdown. Greptile is 5/5 on that same head, with no unresolved comments or merge conflicts. - `git diff --check`: passed. Reviewed and scanned the diff for secrets, private URLs, personal data, and infrastructure identifiers. ## Risks Low risk. New hires now match the established new-agent default. Existing agent settings stay intact during reconnection. No database schema or scheduler changes. Existing records require a separate, scoped data repair. ## Model Used OpenAI Codex, `gpt-6.1-sol`, xhigh reasoning effort, with local code and test tools. ## Checklist - [x] Included project context and the problem - [x] Specified the model used - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] Described the bug with the issue-template labels - [x] Kept internal issue links and operational identifiers out of this public PR - [x] Used a descriptive branch name - [x] Focused tests and UI typecheck pass; the interrupted broad run is disclosed above - [x] Added regression coverage and updated documentation - [x] Documented risks - [x] All required CI gates are green - [x] Greptile is 5/5 with no unresolved comments - [x] Will address review findings before requesting merge --------- Co-authored-by: Paperclip <noreply@paperclip.ing>
@paperclipai/ui
Published static assets for the Paperclip board UI.
What gets published
The npm package contains the production build under dist/. It does not ship the UI source tree or workspace-only dependencies.
Storybook
Storybook config, stories, and fixtures live under ui/storybook/.
pnpm --filter @paperclipai/ui storybook
pnpm --filter @paperclipai/ui build-storybook
Typical use
Install the package, then serve or copy the built files from node_modules/@paperclipai/ui/dist.
Editor dependency identity
Keep the root and workspace overrides for @codemirror/state,
@codemirror/view, and @lezer/common aligned. CodeMirror requires shared
extension identity, while Lezer parsers and syntax highlighters require shared
NodeProp IDs. Multiple Lezer copies can crash code-block highlighting with
tags is not iterable. src/lib/codemirror-single-instance.test.ts checks the
installed dependency graph and highlights sample code through the editor's real
language dependencies. GitHub Actions owns regeneration of pnpm-lock.yaml.