mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 11:47:42 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - Agents can use a personal or shared Claude connection. > - Setup checks for an active sign-in before starting another. > - A successful credential write leaves a claim for its caller to collect. > - This pull request limits active sign-in discovery to the three states that still require work. ## Linked Issues or Issue Description **What happened?** After a shared Claude sign-in completed, personal account setup kept finding the saved attempt until expiry. **Expected behavior** A user can sign in to another account as soon as the previous attempt succeeds. **Steps to reproduce** Finish a shared Claude sign-in. Start a personal Claude sign-in before the old deadline. ## What Changed - Use the same active states for the live session lookup and the durable lookup. Keep the saved claim available for completion. - Check active lookup after success, after restart, and when a new active row shares the same owner and provider. ## Verification - Ran the setup-token session, transport binding, and HTTP route Vitest suites. All 120 tests passed. The regression failed before the fix. ## Risks - In-progress sign-ins still resume. Existing completion reads and claim consumption retain their previous behavior. No migration is required. > For core feature work, check [`ROADMAP.md`](ROADMAP.md) first and discuss it in `#dev` before opening the PR. Feature PRs that overlap with planned core work may need to be redirected — check the roadmap first. See `CONTRIBUTING.md`. ## Model Used OpenAI Codex (GPT-6), with repository and test tools. ## 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: Paperclip <noreply@paperclip.ing>