mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 09:39:53 +01:00
importIssues inserts creatorless rows with originKind 'manual' without setting scope, so the database default of 'board' previously leaked newly imported tasks into includeAgentCreatedTasks=false queries. Derive scope via deriveDefaultIssueScope in importIssues so creatorless imports land in scope 'agent', matching migration backfill and pre-scope visibility behavior. Tested with issue-scope-visibility, issues-creation-visibility, company-portability-import-batching, migration-snapshot-drift, and issue-filters Vitest suites plus db, shared, and server typechecks. Co-Authored-By: Paperclip <noreply@paperclip.ing>