Files
PaperClipAI/server
DottaandPaperclip 3db819854f fix(issues): derive scope for imported issues
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>
2026-11-30 18:20:59 -06:00
..