mirror of
https://github.com/multica-ai/multica.git
synced 2026-08-03 11:10:23 +02:00
CI was red across backend/frontend/mobile: - backend: migration 132 made issue.space_id/autopilot.space_id NOT NULL, but ~28 test files across internal/handler, cmd/server, and cmd/migrate still raw-SQL-inserted issue/autopilot rows without space_id. Backfilled every one via (SELECT id FROM workspace_space WHERE workspace_id = $N LIMIT 1), reusing the existing workspace_id positional param — matches the convention already established in daemon_test.go/comment_resolve_test.go. Seeded a workspace_space row for every test that creates its own local workspace (cross-workspace fixtures), mirroring setupHandlerTestFixture. - frontend: scripts/generate-reserved-slugs.mjs had a stale hardcoded `/create-team` example in its generated doc comment (never updated in the team→space rename), so `pnpm generate:reserved-slugs`'s output diverged from the committed reserved-slugs.ts and CI's drift-check failed. - mobile: agent-schema.test.ts asserted the unknown-target_type fallback was "team"; the schema's actual .catch() fallback is "space" — stale assertion, not a schema bug. go test ./... and go vet ./... are clean; pnpm generate:reserved-slugs produces no diff; mobile's agent-schema test passes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>