diff --git a/frontend/src/lib/components/copilot/chat/global/core.test.ts b/frontend/src/lib/components/copilot/chat/global/core.test.ts index 9b564a66eb..0bf7b09df2 100644 --- a/frontend/src/lib/components/copilot/chat/global/core.test.ts +++ b/frontend/src/lib/components/copilot/chat/global/core.test.ts @@ -8150,8 +8150,8 @@ describe('global prompt identity', () => { }) describe('create_resource_type', () => { - // The Add resource type form prefixes custom types with c_ for everyone but admins, so a hub - // type synced later under the same name cannot clash with one the chat created. + // The Add resource type form prefixes custom types with c_ unless an admin turns it off, so a + // hub type synced later under the same name cannot clash with one the chat created. it.each([ ['acme_billing', 'c_acme_billing'], ['c_acme_billing', 'c_acme_billing'] diff --git a/frontend/src/lib/components/copilot/chat/global/core.ts b/frontend/src/lib/components/copilot/chat/global/core.ts index 3346a31cd3..dc4fbe3fd4 100644 --- a/frontend/src/lib/components/copilot/chat/global/core.ts +++ b/frontend/src/lib/components/copilot/chat/global/core.ts @@ -4367,8 +4367,8 @@ export const globalTools: SessionTool<{}>[] = [ confirmationMessage: 'Create resource type', fn: async ({ args, workspace, toolId, toolCallbacks }) => { const parsed = createResourceTypeSchema.parse(args) - // The prefix the Add resource type form adds for everyone but admins: a hub type of - // the same name, synced later, would otherwise clash with this one. + // The prefix the Add resource type form adds unless an admin turns it off: a hub type + // of the same name, synced later, would otherwise clash with this one. const name = parsed.name.startsWith('c_') ? parsed.name : `c_${parsed.name}` await ResourceService.createResourceType({ workspace,