Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(workspace): govern builtin workspace agents by workspace capability (#17592)

Rdmclin295ba4762c768
diff --git a/apps/server/src/routers/lambda/__tests__/agent.test.ts b/apps/server/src/routers/lambda/__tests__/agent.test.ts
index a2c8a40cd85..f05c355f4ee 100644
--- a/apps/server/src/routers/lambda/__tests__/agent.test.ts
+++ b/apps/server/src/routers/lambda/__tests__/agent.test.ts
@@ -89,6 +89,9 @@ vi.mock('@/server/services/resourcePermission', () => ({
})),
canPerformResourceAction: vi.fn(),
getResourceMeta: vi.fn(),
+ // `resourceConfigGuard` classifies collaborative builtins to exempt them from the
+ // parent-group cap; without this export the guard throws before any assertion.
+ isCollaborativeBuiltinAgent: vi.fn(() => false),
}));
describe('agentRouter', () => {
diff --git a/apps/server/src/routers/lambda/__tests__/agentGroup.test.ts b/apps/server/src/routers/lambda/__tests__/agentGroup.test.ts
index ddc524fe5f3..63c6dd02ac1 100644
--- a/apps/server/src/routers/lambda/__tests__/agentGroup.test.ts
+++ b/apps/server/src/routers/lambda/__tests__/agentGroup.test.ts
@@ -28,6 +28,9 @@ vi.mock('@/server/services/resourcePermission', () => ({
})),
canPerformResourceAction: vi.fn(),
getResourceMeta: vi.fn(),
+ // `resourceConfigGuard` classifies collaborative builtins to exempt them from the
+ // parent-group cap; without this export the guard throws before any assertion.
+ isCollaborativeBuiltinAgent: vi.fn(() => false),
}));
const publishResourceEventMock = vi.mocked(publishResourceEvent);
diff --git a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.ts b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.ts
index 373d37fb3e1..6ac9a840aca 100644
--- a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.ts
+++ b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.test.ts
@@ -1,7 +1,11 @@
// @vitest-environment node
import { beforeEach, describe, expect, it, vi } from 'vitest';
-import { canPerformResourceAction, getResourceMeta } from '@/server/services/resourcePermission';
+import {
+ canPerformResourceAction,
+ getResourceMeta,
+ isCollaborativeBuiltinAgent,
+} from '@/server/services/resourcePermission';
import {
getResourceConfigAccess,
@@ -13,6 +17,7 @@ import { getWorkspaceAgentParentGroupIds } from './workspaceAgentGuard';
vi.mock('@/server/services/resourcePermission', () => ({
canPerformResourceAction: vi.fn(),
getResourceMeta: vi.fn(),
+ isCollaborativeBuiltinAgent: vi.fn(),
}));
vi.mock('./workspaceAgentGuard', () => ({
getWorkspaceAgentParentGroupIds: vi.fn(),
@@ -21,6 +26,7 @@ vi.mock('./workspaceAgentGuard', () => ({
const canPerformMock = vi.mocked(canPerformResourceAction);
const getResourceMetaMock = vi.mocked(getResourceMeta);
const getParentGroupIdsMock = vi.mocked(getWorkspaceAgentParentGroupIds);
+const isBuiltinMock = vi.mocked(isCollaborativeBuiltinAgent);
const meta = { userId: 'creator', visibility: 'public', workspaceId: 'ws-1' };
const ctx = (workspaceId: string | null = 'ws-1') => ({
@@ -33,9 +39,53 @@ beforeEach(() => {
vi.clearAllMocks();
getResourceMetaMock.mockResolvedValue(meta);
getParentGroupIdsMock.mockResolvedValue([]);
+ isBuiltinMock.mockReturnValue(false);
});
describe('getResourceConfigAccess', () => {
+ // LOBE-12374: builtins are `virtual: true`, so linking one into a group made the
+ // parent cap reduce `full` to `profile` — the config was redacted and the route
+ // redirected exactly as before the fix. The evaluator alone cannot show this.
+ it('does not cap a collaborative builtin at its parent group access', async () => {
+ isBuiltinMock.mockReturnValue(true);
+ getParentGroupIdsMock.mockResolvedValue(['group-1']);
+ canPerformMock.mockResolvedValue(true);
+
+ await expect(getResourceConfigAccess(ctx(), 'agent', 'inbox-1')).resolves.toBe('full');
+
+ expect(getParentGroupIdsMock).not.toHaveBeenCalled();
+ });
+
+ // `protectGroupMemberConfigs` (the real group-detail path) hands over a meta with
+ // only userId / visibility / workspaceId, so the guard has to complete the builtin
+ // markers itself — otherwise a linked builtin fails the classification and stays
+ // capped by its group, which is the case this exemption exists for.
+ it('completes missing builtin markers from a partial knownMeta', async () => {
+ const partialMeta = { userId: 'creator', visibility: 'public', workspaceId: 'ws-1' };
+ getResourceMetaMock.mockResolvedValue({ ...partialMeta, slug: 'inbox', virtual: true });
+ isBuiltinMock.mockImplementation((_type, m: any) => m.slug === 'inbox' && m.virtual === true);
+ getParentGroupIdsMock.mockResolvedValue(['group-1']);
+ canPerformMock.mockResolvedValue(true);
+
+ await expect(getResourceConfigAccess(ctx(), 'agent', 'inbox-1', partialMeta)).resolves.toBe(
+ 'full',
+ );
+
+ expect(getResourceMetaMock).toHaveBeenCalled();
+ expect(getParentGroupIdsMock).not.toHaveBeenCalled();
+ });
+
+ it('still caps an ordinary virtual member at its parent group access', async () => {
+ getParentGroupIdsMock.mockResolvedValue(['group-1']);
+ // own access full, parent group profile-only
+ canPerformMock
+ .mockResolvedValueOnce(true)
+ .mockResolvedValueOnce(false)
+ .mockResolvedValueOnce(true);
+
+ await expect(getResourceConfigAccess(ctx(), 'agent', 'agent-1')).resolves.toBe('profile');
+ });
+
it('returns full access in personal mode', async () => {
await expect(getResourceConfigAccess(ctx(null), 'agent', 'agent-1')).resolves.toBe('full');
diff --git a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.ts b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.ts
index 2ca3245944f..2220340141f 100644
--- a/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.ts
+++ b/apps/server/src/routers/lambda/_helpers/resourceConfigGuard.ts
@@ -3,6 +3,7 @@ import type { LobeChatDatabase } from '@/database/type';
import {
canPerformResourceAction,
getResourceMeta,
+ isCollaborativeBuiltinAgent,
type ResourceMeta,
} from '@/server/services/resourcePermission';
@@ -62,14 +63,40 @@ export const getResourceConfigAccess = async (
const workspaceId = ctx.workspaceId ?? undefined;
if (!workspaceId) return 'full';
+ // Resolved once and threaded through: both the access evaluation and the
+ // builtin exemption below need it. Callers may hand over a partial meta —
+ // `protectGroupMemberConfigs` passes only userId/visibility/workspaceId — so the
+ // builtin markers are completed here, otherwise a linked builtin would fail the
+ // classification below and stay capped by its group.
+ // A meta we fetch ourselves already carries the builtin markers; a caller-supplied
+ // one may not (`protectGroupMemberConfigs` passes only userId / visibility /
+ // workspaceId), and classifying on that would leave a linked builtin capped by its
+ // group. Complete it with exactly one extra read, and none in the common cases.
+ const needsBuiltinMarkers =
+ !!knownMeta &&
+ resourceType === 'agent' &&
+ (knownMeta.slug === undefined || knownMeta.virtual === undefined);
+ const meta =
+ !knownMeta || needsBuiltinMarkers
+ ? ((await getResourceMeta(ctx.db, resourceType, resourceId)) ?? knownMeta)
+ : knownMeta;
+ if (!meta) return 'none';
+
const ownAccess = await getSingleResourceConfigAccess(
{ ...ctx, workspaceId },
resourceType,
resourceId,
- knownMeta,
+ meta,
);
if (resourceType !== 'agent' || ownAccess === 'none') return ownAccess;
+ // Collaborative builtins (Lobe AI, the builders, the page agent) are workspace
+ // infrastructure that happens to be `virtual: true`, so linking one into a group
+ // would otherwise cap its config access at that group's level — reinstating the
+ // lockout this whole change removes (LOBE-12374). They are not group-owned
+ // content, so the parent cap does not apply to them.
+ if (isCollaborativeBuiltinAgent(resourceType, meta)) return ownAccess;
+
// A virtual member's effective config access cannot exceed any parent
// group's access. This closes the direct agent-id path around a restricted
// group while still allowing standalone agents to use their own ACL.
diff --git a/apps/server/src/routers/lambda/resourcePermission.ts b/apps/server/src/routers/lambda/resourcePermission.ts
index d4d42cd6960..ed04f401f16 100644
--- a/apps/server/src/routers/lambda/resourcePermission.ts
+++ b/apps/server/src/routers/lambda/resourcePermission.ts
@@ -15,6 +15,7 @@ import {
canManageResourcePermission,
getResourceMeta,
isAccessLevelAllowed,
+ isCollaborativeBuiltinAgent,
} from '@/server/services/resourcePermission';
import { getWorkspaceGroupVirtualAgentIds } from './_helpers/workspaceAgentGuard';
@@ -65,8 +66,8 @@ export const resourcePermissionRouter = router({
throw new TRPCError({ code: 'NOT_FOUND', message: 'Resource not found' });
}
- const [accessLevel, canManage] = await Promise.all([
- ctx.permissionModel.getEffectiveAccessLevel(input.resourceType, input.resourceId),
+ const [explicitAccessLevel, canManage] = await Promise.all([
+ ctx.permissionModel.getAccessLevel(input.resourceType, input.resourceId),
canManageResourcePermission({
db: ctx.serverDB,
grantedPermissions: (ctx as { workspacePermissionCodes?: string[] })
@@ -79,6 +80,16 @@ export const resourcePermissionRouter = router({
}),
]);
+ // A collaborative builtin with no explicit row is editable by every capable
+ // member (`canPerformResourceAction`), so report that as its access level
+ // rather than the `use` default — the client's config gate reads this field,
+ // and `canManage` deliberately stays author/admin-only for these rows.
+ const accessLevel =
+ explicitAccessLevel ??
+ (isCollaborativeBuiltinAgent(input.resourceType, meta)
+ ? 'edit'
+ : getDefaultResourceAccessLevel(input.resourceType));
+
return buildResourcePermissionState({
accessLevel,
canManage,
diff --git a/apps/server/src/services/aiAgent/__tests__/execAgent.modelOverride.test.ts b/apps/server/src/services/aiAgent/__tests__/execAgent.modelOverride.test.ts
index bb112e2b6fe..399a2f879b3 100644
--- a/apps/server/src/services/aiAgent/__tests__/execAgent.modelOverride.test.ts
+++ b/apps/server/src/services/aiAgent/__tests__/execAgent.modelOverride.test.ts
@@ -4,13 +4,13 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import { AiAgentService } from '../index';
const {
- mockCanManageResourcePermission,
+ mockIsResourceAuthorOrAdmin,
mockCreateOperation,
mockGetAgentConfig,
mockGetPreference,
mockMessageCreate,
} = vi.hoisted(() => ({
- mockCanManageResourcePermission: vi.fn(),
+ mockIsResourceAuthorOrAdmin: vi.fn(),
mockCreateOperation: vi.fn(),
mockGetAgentConfig: vi.fn(),
mockGetPreference: vi.fn(),
@@ -18,7 +18,7 @@ const {
}));
vi.mock('@/server/services/resourcePermission', () => ({
- canManageResourcePermission: mockCanManageResourcePermission,
+ isResourceAuthorOrAdmin: mockIsResourceAuthorOrAdmin,
}));
vi.mock('@/libs/trusted-client', () => ({
@@ -160,7 +160,7 @@ describe('AiAgentService.execAgent - model/provider override', () => {
success: true,
});
mockGetPreference.mockResolvedValue({});
- mockCanManageResourcePermission.mockResolvedValue(false);
+ mockIsResourceAuthorOrAdmin.mockResolvedValue(false);
service = new AiAgentService(mockDb, userId);
});
@@ -280,11 +280,11 @@ describe('AiAgentService.execAgent - model/provider override', () => {
model: 'gpt-4',
provider: 'openai',
});
- expect(mockCanManageResourcePermission).not.toHaveBeenCalled();
+ expect(mockIsResourceAuthorOrAdmin).not.toHaveBeenCalled();
});
it('ignores member model overrides for a Workspace admin', async () => {
- mockCanManageResourcePermission.mockResolvedValue(true);
+ mockIsResourceAuthorOrAdmin.mockResolvedValue(true);
mockGetAgentConfig.mockResolvedValue({
...defaultAgentConfig,
agencyConfig: { modelSelectionPolicy: 'member' },
@@ -307,8 +307,8 @@ describe('AiAgentService.execAgent - model/provider override', () => {
expect(callArgs.agentConfig.model).toBe('gpt-4');
expect(callArgs.agentConfig.provider).toBe('openai');
expect(callArgs.agentConfig.chatConfig.enableAgentMode).toBe(true);
- expect(mockCanManageResourcePermission).toHaveBeenCalledWith(
- expect.objectContaining({ resourceId: 'agent-1', userId, workspaceId: 'workspace-1' }),
+ expect(mockIsResourceAuthorOrAdmin).toHaveBeenCalledWith(
+ expect.objectContaining({ userId, workspaceId: 'workspace-1' }),
);
});
diff --git a/apps/server/src/services/aiAgent/index.ts b/apps/server/src/services/aiAgent/index.ts
index 75b85fb61eb..4c724631f2a 100644
--- a/apps/server/src/services/aiAgent/index.ts
+++ b/apps/server/src/services/aiAgent/index.ts
@@ -156,7 +156,7 @@ import type { ConversationHistoryEntry } from '@/server/services/heterogeneousAg
import { buildCloudHeteroContext } from '@/server/services/heterogeneousAgent/cloudHeteroContext';
import { buildRemoteDeviceHeteroContext } from '@/server/services/heterogeneousAgent/remoteDeviceHeteroContext';
import { MarketService } from '@/server/services/market';
-import { canManageResourcePermission } from '@/server/services/resourcePermission';
+import { isResourceAuthorOrAdmin } from '@/server/services/resourcePermission';
import {
buildConnectorOwnershipPrompt,
collectBorrowedConnectors,
@@ -1267,14 +1267,17 @@ export class AiAgentService {
const isPublicWorkspaceAgent = !!agentWorkspaceId && agentConfig.visibility !== 'private';
if (isPublicWorkspaceAgent && !canManageAgent) {
try {
- canManageAgent = await canManageResourcePermission({
+ // Author-or-admin, NOT the configuration flag: this value decides whether
+ // the run ignores the member's own model / device / mode overrides, and a
+ // collaborative builtin must keep honoring them — the client runtime
+ // (`agentConfigResolver`) resolves the same distinction from authorship.
+ canManageAgent = await isResourceAuthorOrAdmin({
db: this.db,
meta: {
userId: agentConfig.userId,
visibility: agentConfig.visibility ?? 'public',
workspaceId: agentWorkspaceId,
},
- resourceId: resolvedAgentId,
resourceType: 'agent',
userId: this.userId,
workspaceId: agentWorkspaceId,
diff --git a/apps/server/src/services/resourcePermission/index.test.ts b/apps/server/src/services/resourcePermission/index.test.ts
index eca814e05f3..860761b7ddd 100644
--- a/apps/server/src/services/resourcePermission/index.test.ts
+++ b/apps/server/src/services/resourcePermission/index.test.ts
@@ -8,12 +8,16 @@ import {
resolveWorkspaceGrantedPermissions,
} from '@/server/services/workspacePermission';
-import { canPerformResourceAction } from './index';
+import { canPerformResourceAction, isResourceAuthorOrAdmin } from './index';
const effectiveAccessMock = vi.hoisted(() => vi.fn());
+// The *explicit* level (null when the resource has no `resource_permissions` row)
+// is what decides whether a collaborative builtin bypasses the default.
+const explicitAccessMock = vi.hoisted(() => vi.fn());
vi.mock('@/database/models/resourcePermission', () => ({
ResourcePermissionModel: class {
+ getAccessLevel = explicitAccessMock;
getEffectiveAccessLevel = effectiveAccessMock;
},
}));
@@ -27,13 +31,28 @@ vi.mock('@/server/services/workspacePermission', () => ({
const permissionMatchesMock = vi.mocked(getWorkspaceScopedPermissionMatches);
const primaryOwnerMock = vi.mocked(isWorkspacePrimaryOwner);
const resolveGrantsMock = vi.mocked(resolveWorkspaceGrantedPermissions);
-const db = {} as LobeChatDatabase;
-const meta = { userId: 'creator', visibility: 'public', workspaceId: 'ws-1' };
+// Minimal stub: answers the builtin-marker and group-membership lookups with
+// "nothing found", which is the ordinary case.
+const emptyQueryDb = (rows: unknown[] = []) =>
+ ({
+ select: () => ({ from: () => ({ where: () => ({ limit: async () => rows }) }) }),
+ }) as unknown as LobeChatDatabase;
+const db = emptyQueryDb();
+// `slug: null` = an ordinary agent, stated explicitly so the evaluator has no
+// reason to resolve it from the database.
+const meta = {
+ slug: null,
+ userId: 'creator',
+ virtual: false,
+ visibility: 'public',
+ workspaceId: 'ws-1',
+};
describe('canPerformResourceAction', () => {
beforeEach(() => {
vi.clearAllMocks();
resolveGrantsMock.mockResolvedValue(['ai_model:invoke:all']);
+ explicitAccessMock.mockResolvedValue(null);
});
it('lets a Workspace admin bypass view-only Member Permissions', async () => {
@@ -246,4 +265,387 @@ describe('canPerformResourceAction', () => {
['ai_model:invoke:all'],
]);
});
+
+ // LOBE-12374: workspace-level builtin agents (Lobe AI inbox, the builders) are
+ // created lazily by whoever opens the workspace first, so their `user_id` is an
+ // accident of timing and they never get a `resource_permissions` row. Members
+ // must still be able to configure them.
+ describe('builtin workspace agents', () => {
+ const builtinMeta = {
+ slug: 'agent-builder',
+ userId: 'someone-else',
+ // provisioning always writes `virtual: true`
+ virtual: true,
+ visibility: 'public',
+ workspaceId: 'ws-1',
+ };
+
+ it.each(['edit', 'use', 'view'] as const)(
+ 'lets a member %s a builtin workspace agent created by someone else',
+ async (action) => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action,
+ db,
+ meta: builtinMeta,
+ resourceId: 'agent-builder-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+ },
+ );
+
+ // `manage` authorizes ACL writes (`setGeneralAccess`) and, on the client, whether
+ // model/mode/device picks mutate the shared row. A member holding it could persist
+ // an explicit `use` level and lock everyone else out again.
+ it('keeps manage out of a member’s reach on a collaborative builtin', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'manage',
+ db,
+ meta: builtinMeta,
+ resourceId: 'agent-builder-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ it('keeps deleting a builtin workspace agent out of a member’s reach', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'delete',
+ db,
+ meta: builtinMeta,
+ resourceId: 'agent-builder-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ it('still rejects a viewer, who holds no agent:update capability at all', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: false });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ meta: builtinMeta,
+ resourceId: 'agent-builder-1',
+ resourceType: 'agent',
+ userId: 'viewer',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ it.each(['inbox', 'agent-builder', 'group-agent-builder', 'page-agent'])(
+ 'covers the %s collaborative builtin slug',
+ async (slug) => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ meta: { ...builtinMeta, slug },
+ resourceId: 'builtin-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+ },
+ );
+
+ // Internal automation agents have no configuration surface, so a member must
+ // not be able to repoint their model and break background jobs workspace-wide.
+ it.each([
+ 'nightly-review',
+ 'self-reflection',
+ 'self-feedback-intent',
+ 'skill-management',
+ 'verify-agent',
+ 'task-agent',
+ 'group-supervisor',
+ 'onboarding-understanding',
+ ])('keeps the %s internal builtin out of the bypass', async (slug) => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ meta: { ...builtinMeta, slug },
+ resourceId: 'builtin-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ it('still lets every member use an internal builtin (resource default is use)', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'use',
+ db,
+ meta: { ...builtinMeta, slug: 'nightly-review' },
+ resourceId: 'builtin-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+ });
+
+ it('never treats an agentGroup as builtin, even with a builtin-looking slug', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ meta: { ...builtinMeta, slug: 'inbox' },
+ resourceId: 'group-1',
+ resourceType: 'agentGroup',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ it('does not treat a personal (workspace-less) builtin agent as workspace-managed', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ // `meta.workspaceId` must match the caller's workspace to get this far,
+ // so a null-workspace row is rejected earlier; assert the guard anyway.
+ meta: { ...builtinMeta, workspaceId: null },
+ resourceId: 'builtin-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ // The agent-run path hand-builds `meta` from a config it already loaded, so a
+ // missing slug must be resolved rather than silently downgrading the row —
+ // otherwise execution classifies a member differently from configuration.
+ it('resolves a missing slug instead of misclassifying the row', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+ let call = 0;
+ const dbWithSlug = {
+ select: () => ({
+ from: () => ({
+ where: () => ({
+ // 1st query resolves the builtin markers, 2nd checks group membership
+ limit: async () => (call++ === 0 ? [{ slug: 'agent-builder', virtual: true }] : []),
+ }),
+ }),
+ }),
+ } as unknown as LobeChatDatabase;
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db: dbWithSlug,
+ // markers absent entirely, as a hand-built meta leaves them
+ meta: { userId: 'someone-else', visibility: 'public', workspaceId: 'ws-1' },
+ resourceId: 'agent-builder-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+ });
+
+ // Legacy rows could hold a reserved slug (the passthrough config endpoint used
+ // to allow it), so the slug alone must not grant the bypass.
+ it('does not bypass for a non-provisioned row holding a reserved slug', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'manage',
+ db,
+ meta: { ...builtinMeta, virtual: false },
+ resourceId: 'squatter-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ // Linking the real inbox into an agent group is supported, so a linked builtin
+ // must keep the bypass — excluding group members would reproduce LOBE-12374 for
+ // that workspace.
+ it('keeps the bypass for a builtin that is linked into an agent group', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db: emptyQueryDb([{ agentId: 'inbox-1' }]),
+ meta: { ...builtinMeta, slug: 'inbox' },
+ resourceId: 'inbox-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+ });
+
+ it('does not re-fetch when the caller passed an explicit null slug', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+ // An explicit `slug: null` is an ordinary agent, so the evaluator must not
+ // resolve markers — and never reaches the membership check either.
+ const dbThatWouldThrow = {
+ select: () => {
+ throw new Error('should not query when the markers are explicit');
+ },
+ } as unknown as LobeChatDatabase;
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db: dbThatWouldThrow,
+ meta: {
+ slug: null,
+ userId: 'someone-else',
+ virtual: false,
+ visibility: 'public',
+ workspaceId: 'ws-1',
+ },
+ resourceId: 'agent-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ // Configuration and execution ask different questions of the same row: a
+ // member may configure a collaborative builtin, but the run must still honor
+ // that member's own model / device / mode overrides.
+ it('separates configuration authority from author/admin execution management', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ meta: builtinMeta,
+ resourceId: 'agent-builder-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+
+ await expect(
+ isResourceAuthorOrAdmin({
+ db,
+ meta: builtinMeta,
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ it('still reports author and admin as execution managers', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: true, hasOwnerScope: false });
+
+ await expect(
+ isResourceAuthorOrAdmin({
+ db,
+ meta: builtinMeta,
+ resourceType: 'agent',
+ userId: 'someone-else',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+
+ await expect(
+ isResourceAuthorOrAdmin({
+ db,
+ meta: builtinMeta,
+ resourceType: 'agent',
+ userId: 'workspace-admin',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(true);
+ });
+
+ // The bypass covers the *implicit* `use` default only. An owner who explicitly
+ // narrows General access means it — otherwise that control would persist a value
+ // it never enforces.
+ it('enforces an explicitly configured access level on a collaborative builtin', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ explicitAccessMock.mockResolvedValue('view');
+ effectiveAccessMock.mockResolvedValue('view');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ meta: builtinMeta,
+ resourceId: 'agent-builder-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+
+ it('does not treat an ordinary agent whose slug is user-generated as builtin', async () => {
+ permissionMatchesMock.mockResolvedValue({ hasAllScope: false, hasOwnerScope: true });
+ effectiveAccessMock.mockResolvedValue('use');
+
+ await expect(
+ canPerformResourceAction({
+ action: 'edit',
+ db,
+ meta: { ...builtinMeta, slug: 'religious-having-instrument' },
+ resourceId: 'agent-1',
+ resourceType: 'agent',
+ userId: 'member',
+ workspaceId: 'ws-1',
+ }),
+ ).resolves.toBe(false);
+ });
+ });
});
diff --git a/apps/server/src/services/resourcePermission/index.ts b/apps/server/src/services/resourcePermission/index.ts
index 4a9f4358881..6f49acae5a0 100644
--- a/apps/server/src/services/resourcePermission/index.ts
+++ b/apps/server/src/services/resourcePermission/index.ts
@@ -1,3 +1,4 @@
+import { BUILTIN_AGENT_SLUGS } from '@lobechat/builtin-agents';
import type { PERMISSION_ACTIONS } from '@lobechat/const/rbac';
import { TRPCError } from '@trpc/server';
import { eq } from 'drizzle-orm';
@@ -13,7 +14,16 @@ import {
} from '@/server/services/workspacePermission';
export interface ResourceMeta {
+ /** Only agents carry a slug; with `virtual` it identifies a provisioned builtin. */
+ slug?: string | null;
userId: string;
+ /**
+ * Only agents carry this. Builtin provisioning always writes `virtual: true`
+ * (`AgentModel.getBuiltinAgent`), while ordinary agents default to `false`, so
+ * it is the durable marker that separates provisioned infrastructure from a row
+ * that merely holds a reserved slug.
+ */
+ virtual?: boolean | null;
visibility: string | null;
workspaceId: string | null;
}
@@ -73,7 +83,25 @@ export const getResourceMeta = async (
resourceType: PermissionResourceType,
resourceId: string,
): Promise<ResourceMeta | null> => {
- const table = { agent: agents, agentGroup: chatGroups, document: documents }[resourceType];
+ // `slug` only exists on `agents`, and only there does it carry authorization
+ // meaning (collaborative builtin agents — see `isCollaborativeBuiltinAgent`).
+ if (resourceType === 'agent') {
+ const [row] = await db
+ .select({
+ slug: agents.slug,
+ userId: agents.userId,
+ virtual: agents.virtual,
+ visibility: agents.visibility,
+ workspaceId: agents.workspaceId,
+ })
+ .from(agents)
+ .where(eq(agents.id, resourceId))
+ .limit(1);
+
+ return row ?? null;
+ }
+
+ const table = { agentGroup: chatGroups, document: documents }[resourceType];
const [row] = await db
.select({ userId: table.userId, visibility: table.visibility, workspaceId: table.workspaceId })
@@ -84,6 +112,90 @@ export const getResourceMeta = async (
return row ?? null;
};
+/**
+ * Resolve the builtin markers for callers that hand-build `ResourceMeta` instead
+ * of going through `getResourceMeta` (the agent-run path does, to reuse a config
+ * it already loaded). Without this, missing markers silently downgrade a builtin
+ * to an ordinary agent, so execution would classify a member differently from
+ * configuration. Values the caller stated — including `null` / `false` — are real
+ * and never re-fetched.
+ */
+const resolveAgentBuiltinMarkers = async (
+ db: LobeChatDatabase,
+ resourceId: string,
+): Promise<{ slug: string | null; virtual: boolean | null }> => {
+ const [row] = await db
+ .select({ slug: agents.slug, virtual: agents.virtual })
+ .from(agents)
+ .where(eq(agents.id, resourceId))
+ .limit(1);
+
+ return { slug: row?.slug ?? null, virtual: row?.virtual ?? null };
+};
+
+/**
+ * The builtin agents a workspace *collaborates on* — the ones members open and
+ * configure from the UI (Lobe AI, the Agent / Group Agent builders, the page
+ * agent's Copilot panel).
+ *
+ * Deliberately NOT the whole of `BUILTIN_AGENT_SLUGS`: the internal automation
+ * agents (`nightly-review`, `self-reflection`, `self-feedback-intent`,
+ * `skill-management`, `verify-agent`, `task-agent`, the onboarding agents, the
+ * group supervisor) have no configuration surface, and letting any member
+ * repoint their persisted model / chatConfig would silently change background
+ * automation for the entire workspace. They keep the ordinary creator + General
+ * access rules, which still allow every member to *use* them (the resource
+ * default is `use`).
+ */
+const COLLABORATIVE_BUILTIN_AGENT_SLUGS: ReadonlySet<string> = new Set<string>([
+ BUILTIN_AGENT_SLUGS.agentBuilder,
+ BUILTIN_AGENT_SLUGS.groupAgentBuilder,
+ BUILTIN_AGENT_SLUGS.inbox,
+ BUILTIN_AGENT_SLUGS.pageAgent,
+]);
+
+/**
+ * Whether the resource is a workspace-level builtin agent that members are meant
+ * to configure together.
+ *
+ * These rows are shared workspace infrastructure, not authored content: they are
+ * created lazily by whichever member happens to trigger them first, so
+ * `agents.user_id` records an accident of timing rather than authorship, and no
+ * `resource_permissions` row is ever written for them (their effective General
+ * access falls back to the `use` default). Treating them as creator-owned locks
+ * every other member out of the Agent Builder, of Lobe AI's config page, and of
+ * the Page Copilot's own settings (LOBE-12374), so they are governed by workspace
+ * capability instead: anyone holding `agent:update:{owner,all}` may
+ * read/use/configure them, while destructive and ownership actions (delete /
+ * transfer / visibility) stay with the creator and the workspace primary owner.
+ *
+ * Residual risk, accepted deliberately: `virtual` is written by provisioning but
+ * is not exclusive to it (group members carry it too), so a row that acquired a
+ * reserved slug before `AgentModel.stripReservedSlug` existed would also match.
+ * `agents_slug_workspace_id_unique` allows only one row per slug per workspace,
+ * which means such a row is already what `getBuiltinAgent` resolves as that
+ * workspace's Lobe AI / builder — every member is already chatting with it, so
+ * letting them configure it is not an escalation beyond what the row already is.
+ * Distinguishing the two shapes for real needs a provisioning-only marker
+ * (a column written solely by `getBuiltinAgent`) plus a backfill; that is a schema
+ * change and is tracked separately. Group membership is NOT usable as the
+ * discriminator: linking the real inbox into an agent group is supported, so
+ * excluding linked rows would deny configuration on a legitimately provisioned
+ * builtin and reproduce LOBE-12374.
+ */
+export const isCollaborativeBuiltinAgent = (
+ resourceType: PermissionResourceType,
+ meta: ResourceMeta,
+): boolean =>
+ resourceType === 'agent' &&
+ !!meta.workspaceId &&
+ // `virtual` is what provisioning writes; a legacy row that merely holds a
+ // reserved slug (the passthrough config endpoint used to allow that) stays an
+ // ordinary agent, so no migration is needed to keep it out of the bypass.
+ meta.virtual === true &&
+ !!meta.slug &&
+ COLLABORATIVE_BUILTIN_AGENT_SLUGS.has(meta.slug);
+
const getRbacAction = (
resourceType: PermissionResourceType,
action: ResourceAccessAction,
@@ -159,10 +271,43 @@ export const canPerformResourceAction = async (params: {
if (isCreator) return true;
return isWorkspacePrimaryOwner({ db, userId, workspaceId });
}
+ // Collaboratively-configured workspace infrastructure answers to workspace
+ // capability, not to the member who first materialized the row. A hand-built
+ // `meta` may not carry the slug, so fill it in rather than misclassifying.
+ const needsBuiltinMarkers =
+ resourceType === 'agent' && (meta.slug === undefined || meta.virtual === undefined);
+ const resolvedMeta = needsBuiltinMarkers
+ ? { ...meta, ...(await resolveAgentBuiltinMarkers(db, resourceId)) }
+ : meta;
+ const isSharedWorkspaceAgent =
+ !isPrivate && isCollaborativeBuiltinAgent(resourceType, resolvedMeta);
+ // The bypass exists because these rows have no `resource_permissions` row and
+ // would silently fall back to the `use` default. An owner who *explicitly* sets
+ // a level still means it — otherwise the General-access control would persist a
+ // value it never enforces — so only the implicit default is overridden.
+ const hasExplicitAccessLevel = isSharedWorkspaceAgent
+ ? !!(await new ResourcePermissionModel(db, workspaceId).getAccessLevel(
+ resourceType,
+ resourceId,
+ ))
+ : false;
+ // Grants edit / use / view only — see the `manage` branch below.
+ const bypassesImplicitDefault = isSharedWorkspaceAgent && !hasExplicitAccessLevel;
+
+ // `manage` is authority over the row, not permission to configure it:
+ // `setGeneralAccess` authorizes ACL writes with it (a member could otherwise
+ // persist an explicit `use` row and lock every other member out again), and the
+ // client's `useAgentManagementAccess` uses it to decide whether model / mode /
+ // device picks mutate the shared agent. Collaborative builtins therefore grant
+ // *edit* to capable members, never `manage`.
if (action === 'manage') return isCreator || (!isPrivate && hasAllScope);
if (action === 'delete') return isCreator || (!isPrivate && hasAllScope);
if (isCreator) return true;
+ // Collaboratively-configured workspace infrastructure is not creator-owned
+ // content, so the *implicit* `use` default must not lock members out. An
+ // explicitly configured level falls through to the comparison below.
+ if (bypassesImplicitDefault) return true;
if (isPrivate) return false;
// Ordinary members hold `READ:all` and `AI_MODEL_INVOKE:all`; those are the
@@ -211,6 +356,47 @@ export const assertCanPerformResourceAction = async (
}
};
+/**
+ * Whether the caller manages the row *itself* — its author, or a workspace admin
+ * holding `:all` on the resource.
+ *
+ * Deliberately NOT `canManageResourcePermission`, which additionally grants the
+ * collaborative builtins to any capable member. The two answer different
+ * questions and only one of them is about configuration:
+ *
+ * - configuration ("may I open and edit this?") → `canManageResourcePermission`;
+ * - execution ("should this run ignore the member's own model / device / mode
+ * overrides?") → this helper.
+ *
+ * A shared builtin must keep honoring each member's overrides, and the client
+ * runtime (`services/chat/mecha/agentConfigResolver`) decides that from
+ * authorship — so if the server used the configuration flag here, gateway and
+ * client execution would resolve different models or bind the creator's device.
+ */
+export const isResourceAuthorOrAdmin = async (params: {
+ db: LobeChatDatabase;
+ grantedPermissions?: readonly string[];
+ meta: ResourceMeta;
+ resourceType: PermissionResourceType;
+ userId: string;
+ workspaceId: string;
+}): Promise<boolean> => {
+ const { db, grantedPermissions, meta, resourceType, userId, workspaceId } = params;
+ if (meta.workspaceId !== workspaceId) return false;
+ if (meta.userId === userId) return true;
+ if (meta.visibility === 'private') return false;
+
+ const { hasAllScope } = await getWorkspaceScopedPermissionMatches({
+ action: RESOURCE_ACTIONS[resourceType].edit,
+ db,
+ grantedPermissions,
+ userId,
+ workspaceId,
+ });
+
+ return hasAllScope;
+};
+
export const canManageResourcePermission = async (params: {
db: LobeChatDatabase;
grantedPermissions?: readonly string[];
diff --git a/locales/ar/chat.json b/locales/ar/chat.json
index c26b87486d8..31bd77ef88f 100644
--- a/locales/ar/chat.json
+++ b/locales/ar/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "وكيل الصفحة",
"pageSelection.lines": "الأسطر {{start}}-{{end}}",
"pageSelection.reference": "النص المحدد",
- "permission.configAccess.agentChatOnly": "يمكن فقط للمتعاونين الذين لديهم صلاحية التحرير تكوين هذا الوكيل. تمت إعادتك إلى الدردشة.",
- "permission.configAccess.groupChatOnly": "يمكن فقط للمتعاونين الذين لديهم صلاحية التحرير تكوين مجموعة الوكلاء هذه. تمت إعادتك إلى الدردشة.",
+ "permission.configAccess.agentChatOnly": "يمكنك استخدام هذا الوكيل فقط، وليس تكوينه. تم إعادتك إلى الدردشة.",
+ "permission.configAccess.agentRoleRestricted": "دورك في مساحة العمل لا يسمح لك بتكوين الوكلاء. تم إعادتك إلى الدردشة.",
+ "permission.configAccess.groupChatOnly": "يمكنك استخدام مجموعة الوكلاء هذه فقط، وليس تكوينها. تم إعادتك إلى الدردشة.",
+ "permission.configAccess.groupRoleRestricted": "دورك في مساحة العمل لا يسمح لك بتكوين مجموعات الوكلاء. تم إعادتك إلى الدردشة.",
"pin": "تثبيت",
"pinOff": "إلغاء التثبيت",
"platformAgent.create.available": "متاح",
diff --git a/locales/ar/setting.json b/locales/ar/setting.json
index 01ecf62ef72..988b543d1a3 100644
--- a/locales/ar/setting.json
+++ b/locales/ar/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "إزالة عضو مساحة العمل",
"workspace.member.removeSuccess": "تم إزالة العضو من مساحة العمل بنجاح.",
"workspace.member.roles.admin": "مسؤول",
+ "workspace.member.roles.adminDescription": "إدارة الأعضاء والإعدادات والاستخدام والتكوين المشترك، ولكن ليس الفواتير أو حذف مساحة العمل أو نقل الملكية أو محتوى الأعضاء الآخرين.",
"workspace.member.roles.basicBadge": "أساسي",
"workspace.member.roles.freeBadge": "مجاني",
"workspace.member.roles.member": "عضو",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "تعذر الحفظ. يرجى المحاولة مرة أخرى.",
"workspace.onboarding.toast.installAgentsFailed": "تعذر إضافة الوكلاء المحددين. يمكنك تثبيتهم لاحقًا من السوق.",
"workspace.onboarding.toast.saved": "تم الحفظ",
+ "workspace.permission.requiresAdmin": "فقط مسؤولو مساحة العمل والمالك يمكنهم القيام بذلك. اطلب من المسؤول إذا كنت بحاجة إلى تغيير هذا.",
"workspace.permission.requiresMember": "ليس لديك إذن للقيام بذلك. اطلب من مالك مساحة العمل منحك عضوًا أو أعلى.",
"workspace.permission.requiresOwner": "فقط مالكو مساحة العمل يمكنهم القيام بذلك. اطلب من مالك إذا كنت بحاجة إلى تغيير هذا.",
"workspace.permission.requiresPrimaryOwner": "فقط المالك الأساسي يمكنه حذف هذه مساحة العمل. قم بنقل الملكية الأساسية أولاً إذا لزم الأمر.",
diff --git a/locales/ar/verify.json b/locales/ar/verify.json
index b5deef54374..fe152080083 100644
--- a/locales/ar/verify.json
+++ b/locales/ar/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "بحاجة إلى إصلاح {{count}}",
"acceptance.filter.pending": "للمراجعة {{count}}",
"acceptance.filter.roundAll": "جميع الجولات",
+ "acceptance.focus.back": "العودة إلى النظرة العامة",
+ "acceptance.focus.evidenceHint": "راجع معيار القبول والأدلة والتعليقات لهذا الفحص.",
"acceptance.goalCollapse": "طي هدف القبول",
"acceptance.goalEdit": "تعديل هدف القبول",
"acceptance.goalExpand": "توسيع هدف القبول",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "سجل الجولات",
"acceptance.ledger.viewReport": "عرض تقرير الجولة",
"acceptance.origin.agentFallback": "الوكيل",
+ "acceptance.origin.backToRuns": "العودة إلى العمليات",
"acceptance.origin.openTopic": "فتح الموضوع",
"acceptance.reject.description": "يصبح سببك مدخلًا للجولة الإصلاحية التالية؛ هذا ليس تعليقًا سلبيًا.",
"acceptance.reject.placeholder": "صف ما يجب تغييره قبل أن يتم قبول هذا التسليم.",
diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.json
index 5481885141a..3493d6bb0ec 100644
--- a/locales/bg-BG/chat.json
+++ b/locales/bg-BG/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Агент на страницата",
"pageSelection.lines": "Редове {{start}}-{{end}}",
"pageSelection.reference": "Избран текст",
- "permission.configAccess.agentChatOnly": "Само сътрудници с права за редактиране могат да конфигурират този агент. Бяхте върнати към чата.",
- "permission.configAccess.groupChatOnly": "Само сътрудници с права за редактиране могат да конфигурират тази група агенти. Бяхте върнати към чата.",
+ "permission.configAccess.agentChatOnly": "Можете да използвате само този агент, но не и да го конфигурирате. Бяхте върнати към чата.",
+ "permission.configAccess.agentRoleRestricted": "Вашата роля в работното пространство не позволява конфигуриране на Агенти. Бяхте върнати в чата.",
+ "permission.configAccess.groupChatOnly": "Можете да използвате само тази група агенти, но не и да я конфигурирате. Бяхте върнати към чата.",
+ "permission.configAccess.groupRoleRestricted": "Вашата роля в работното пространство не позволява конфигуриране на Групи агенти. Бяхте върнати в чата.",
"pin": "Закачи",
"pinOff": "Откачи",
"platformAgent.create.available": "Наличен",
diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.json
index aafe09e466e..a167c4ccf88 100644
--- a/locales/bg-BG/setting.json
+++ b/locales/bg-BG/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Премахване на член от работното пространство",
"workspace.member.removeSuccess": "Членът е успешно премахнат от работното пространство.",
"workspace.member.roles.admin": "Администратор",
+ "workspace.member.roles.adminDescription": "Управлявайте членове, настройки, използване и споделена конфигурация, но не и фактуриране, изтриване на работното пространство, прехвърляне на собственост или съдържание на други членове.",
"workspace.member.roles.basicBadge": "Основен",
"workspace.member.roles.freeBadge": "Безплатно",
"workspace.member.roles.member": "Член",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Неуспешно запазване. Моля, опитайте отново.",
"workspace.onboarding.toast.installAgentsFailed": "Неуспешно добавяне на избраните агенти. Можете да ги инсталирате по-късно от пазара.",
"workspace.onboarding.toast.saved": "Запазено",
+ "workspace.permission.requiresAdmin": "Само администраторите на работното пространство и собственикът могат да направят това. Помолете администратор, ако имате нужда от промяна.",
"workspace.permission.requiresMember": "Нямате разрешение да направите това. Помолете собственик на работното пространство да ви предостави членство или по-високо.",
"workspace.permission.requiresOwner": "Само собствениците на работното пространство могат да направят това. Помолете собственик, ако се нуждаете от промяна.",
"workspace.permission.requiresPrimaryOwner": "Само основният собственик може да изтрие това работно пространство. Първо прехвърлете основната собственост, ако е необходимо.",
diff --git a/locales/bg-BG/verify.json b/locales/bg-BG/verify.json
index 9f94d7c8021..951a0587ff8 100644
--- a/locales/bg-BG/verify.json
+++ b/locales/bg-BG/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Нуждае се от корекция {{count}}",
"acceptance.filter.pending": "За преглед {{count}}",
"acceptance.filter.roundAll": "Всички кръгове",
+ "acceptance.focus.back": "Обратно към прегледа",
+ "acceptance.focus.evidenceHint": "Прегледайте критерия за приемане, доказателствата и обратната връзка за тази проверка.",
"acceptance.goalCollapse": "Свий целта за приемане",
"acceptance.goalEdit": "Редактиране на целта за приемане",
"acceptance.goalExpand": "Разшири целта за приемане",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Регистър на кръговете",
"acceptance.ledger.viewReport": "Вижте доклада за кръга",
"acceptance.origin.agentFallback": "Агент",
+ "acceptance.origin.backToRuns": "Обратно към изпълненията",
"acceptance.origin.openTopic": "Отворете темата",
"acceptance.reject.description": "Вашата причина става вход за следващия кръг на поправка; това не е пасивен коментар.",
"acceptance.reject.placeholder": "Опишете какво трябва да се промени, преди тази доставка да бъде приета.",
diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.json
index c8afd6d9e64..f8f0decb24c 100644
--- a/locales/de-DE/chat.json
+++ b/locales/de-DE/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Seitenagent",
"pageSelection.lines": "Zeilen {{start}}–{{end}}",
"pageSelection.reference": "Ausgewählter Text",
- "permission.configAccess.agentChatOnly": "Nur Mitarbeiter mit der Berechtigung 'Bearbeiten' können diesen Agenten konfigurieren. Sie wurden zurück zum Chat geleitet.",
- "permission.configAccess.groupChatOnly": "Nur Mitarbeiter mit der Berechtigung 'Bearbeiten' können diese Agentengruppe konfigurieren. Sie wurden zurück zum Chat geleitet.",
+ "permission.configAccess.agentChatOnly": "Sie können diesen Agenten nur verwenden, nicht konfigurieren. Sie wurden zum Chat zurückgeleitet.",
+ "permission.configAccess.agentRoleRestricted": "Ihre Arbeitsbereichsrolle kann keine Agenten konfigurieren. Sie wurden zum Chat zurückgeleitet.",
+ "permission.configAccess.groupChatOnly": "Sie können diese Agentengruppe nur verwenden, nicht konfigurieren. Sie wurden zum Chat zurückgeleitet.",
+ "permission.configAccess.groupRoleRestricted": "Ihre Arbeitsbereichsrolle kann keine Agentengruppen konfigurieren. Sie wurden zum Chat zurückgeleitet.",
"pin": "Anheften",
"pinOff": "Lösen",
"platformAgent.create.available": "Verfügbar",
diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json
index de1f6faccb5..30889d624bb 100644
--- a/locales/de-DE/setting.json
+++ b/locales/de-DE/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Mitglied aus Arbeitsbereich entfernen",
"workspace.member.removeSuccess": "Mitglied erfolgreich aus dem Arbeitsbereich entfernt.",
"workspace.member.roles.admin": "Admin",
+ "workspace.member.roles.adminDescription": "Verwalten Sie Mitglieder, Einstellungen, Nutzung und gemeinsame Konfiguration, jedoch nicht die Abrechnung, das Löschen des Arbeitsbereichs, die Übertragung des Eigentums oder die Inhalte anderer Mitglieder.",
"workspace.member.roles.basicBadge": "Basis",
"workspace.member.roles.freeBadge": "Kostenlos",
"workspace.member.roles.member": "Mitglied",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Konnte nicht gespeichert werden. Bitte versuchen Sie es erneut.",
"workspace.onboarding.toast.installAgentsFailed": "Die ausgewählten Agenten konnten nicht hinzugefügt werden. Sie können sie später aus dem Marktplatz installieren.",
"workspace.onboarding.toast.saved": "Gespeichert",
+ "workspace.permission.requiresAdmin": "Nur Workspace-Admins und der Eigentümer können dies tun. Fragen Sie einen Admin, wenn Sie Änderungen benötigen.",
"workspace.permission.requiresMember": "Sie haben keine Berechtigung, dies zu tun. Bitten Sie einen Arbeitsbereichsbesitzer, Ihnen die Rolle Mitglied oder höher zu gewähren.",
"workspace.permission.requiresOwner": "Nur Arbeitsbereichsbesitzer können dies tun. Bitten Sie einen Besitzer, wenn Sie dies ändern müssen.",
"workspace.permission.requiresPrimaryOwner": "Nur der Hauptbesitzer kann diesen Arbeitsbereich löschen. Übertragen Sie zuerst die Hauptbesitzerschaft, falls erforderlich.",
diff --git a/locales/de-DE/verify.json b/locales/de-DE/verify.json
index 3cb3fee6ad3..d66cdef6295 100644
--- a/locales/de-DE/verify.json
+++ b/locales/de-DE/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Behebung erforderlich {{count}}",
"acceptance.filter.pending": "Zu überprüfen {{count}}",
"acceptance.filter.roundAll": "Alle Runden",
+ "acceptance.focus.back": "Zurück zur Übersicht",
+ "acceptance.focus.evidenceHint": "Überprüfen Sie das Akzeptanzkriterium, die Beweise und das Feedback für diese Prüfung.",
"acceptance.goalCollapse": "Akzeptanzziel einklappen",
"acceptance.goalEdit": "Akzeptanzziel bearbeiten",
"acceptance.goalExpand": "Akzeptanzziel ausklappen",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Rundenprotokoll",
"acceptance.ledger.viewReport": "Rundenbericht anzeigen",
"acceptance.origin.agentFallback": "Agent",
+ "acceptance.origin.backToRuns": "Zurück zu den Durchläufen",
"acceptance.origin.openTopic": "Thema öffnen",
"acceptance.reject.description": "Ihr Grund wird als Input für die nächste Reparaturrunde verwendet; dies ist kein passiver Kommentar.",
"acceptance.reject.placeholder": "Beschreiben Sie, was sich ändern muss, bevor diese Lieferung akzeptiert werden kann.",
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.json
index 1704a46b75d..9098e79f48a 100644
--- a/locales/en-US/chat.json
+++ b/locales/en-US/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Page Agent",
"pageSelection.lines": "Lines {{start}}-{{end}}",
"pageSelection.reference": "Selected Text",
- "permission.configAccess.agentChatOnly": "Only collaborators with Can edit can configure this Agent. You were returned to chat.",
- "permission.configAccess.groupChatOnly": "Only collaborators with Can edit can configure this Agent Group. You were returned to chat.",
+ "permission.configAccess.agentChatOnly": "You can only use this Agent, not configure it. You were returned to chat.",
+ "permission.configAccess.agentRoleRestricted": "Your workspace role cannot configure Agents. You were returned to chat.",
+ "permission.configAccess.groupChatOnly": "You can only use this Agent Group, not configure it. You were returned to chat.",
+ "permission.configAccess.groupRoleRestricted": "Your workspace role cannot configure Agent Groups. You were returned to chat.",
"pin": "Pin",
"pinOff": "Unpin",
"platformAgent.create.available": "Available",
diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.json
index 18c2ec7ae4f..c33f07a1638 100644
--- a/locales/es-ES/chat.json
+++ b/locales/es-ES/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Agente de página",
"pageSelection.lines": "Líneas {{start}}-{{end}}",
"pageSelection.reference": "Texto Seleccionado",
- "permission.configAccess.agentChatOnly": "Solo los colaboradores con permiso de edición pueden configurar este Agente. Has sido devuelto al chat.",
- "permission.configAccess.groupChatOnly": "Solo los colaboradores con permiso de edición pueden configurar este Grupo de Agentes. Has sido devuelto al chat.",
+ "permission.configAccess.agentChatOnly": "Solo puedes usar este Agente, no configurarlo. Has sido devuelto al chat.",
+ "permission.configAccess.agentRoleRestricted": "Tu rol en el espacio de trabajo no puede configurar Agentes. Has sido devuelto al chat.",
+ "permission.configAccess.groupChatOnly": "Solo puedes usar este Grupo de Agentes, no configurarlo. Has sido devuelto al chat.",
+ "permission.configAccess.groupRoleRestricted": "Tu rol en el espacio de trabajo no puede configurar Grupos de Agentes. Has sido devuelto al chat.",
"pin": "Fijar",
"pinOff": "Desfijar",
"platformAgent.create.available": "Disponible",
diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json
index c2ad16a07b5..5cc1b84a95f 100644
--- a/locales/es-ES/setting.json
+++ b/locales/es-ES/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Eliminar miembro del espacio de trabajo",
"workspace.member.removeSuccess": "Miembro eliminado del espacio de trabajo con éxito.",
"workspace.member.roles.admin": "Administrador",
+ "workspace.member.roles.adminDescription": "Gestiona miembros, configuraciones, uso y configuración compartida, pero no la facturación, eliminación del espacio de trabajo, transferencia de propiedad ni el contenido de otros miembros.",
"workspace.member.roles.basicBadge": "Básico",
"workspace.member.roles.freeBadge": "Gratis",
"workspace.member.roles.member": "Miembro",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "No se pudo guardar. Por favor, inténtalo nuevamente.",
"workspace.onboarding.toast.installAgentsFailed": "No se pudieron agregar los agentes seleccionados. Puedes instalarlos más tarde desde el mercado.",
"workspace.onboarding.toast.saved": "Guardado",
+ "workspace.permission.requiresAdmin": "Solo los Administradores del espacio de trabajo y el Propietario pueden hacer esto. Pide a un Administrador si necesitas que esto se cambie.",
"workspace.permission.requiresMember": "No tienes permiso para hacer esto. Pide a un propietario del espacio de trabajo que te otorgue el rol de Miembro o superior.",
"workspace.permission.requiresOwner": "Solo los propietarios del espacio de trabajo pueden hacer esto. Pide a un propietario si necesitas que esto cambie.",
"workspace.permission.requiresPrimaryOwner": "Solo el propietario principal puede eliminar este espacio de trabajo. Transfiere la propiedad principal primero si es necesario.",
diff --git a/locales/es-ES/verify.json b/locales/es-ES/verify.json
index daa197e8dc1..c55a9cefb21 100644
--- a/locales/es-ES/verify.json
+++ b/locales/es-ES/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Necesita corrección {{count}}",
"acceptance.filter.pending": "Por revisar {{count}}",
"acceptance.filter.roundAll": "Todas las rondas",
+ "acceptance.focus.back": "Volver al resumen",
+ "acceptance.focus.evidenceHint": "Revisa el criterio de aceptación, las evidencias y los comentarios para esta verificación.",
"acceptance.goalCollapse": "Colapsar el objetivo de aceptación",
"acceptance.goalEdit": "Editar el objetivo de aceptación",
"acceptance.goalExpand": "Expandir el objetivo de aceptación",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Registro de rondas",
"acceptance.ledger.viewReport": "Ver informe de la ronda",
"acceptance.origin.agentFallback": "Agente",
+ "acceptance.origin.backToRuns": "Volver a las ejecuciones",
"acceptance.origin.openTopic": "Abrir tema",
"acceptance.reject.description": "Tu razón se convierte en entrada para la próxima ronda de reparación; esto no es un comentario pasivo.",
"acceptance.reject.placeholder": "Describe qué debe cambiar antes de que esta entrega pueda ser aceptada.",
diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.json
index 1c186da35da..211f5abc81c 100644
--- a/locales/fa-IR/chat.json
+++ b/locales/fa-IR/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "نماینده صفحه",
"pageSelection.lines": "خطوط {{start}} تا {{end}}",
"pageSelection.reference": "متن انتخاب‌شده",
- "permission.configAccess.agentChatOnly": "فقط همکارانی که دسترسی «قابلیت ویرایش» دارند می‌توانند این عامل را پیکربندی کنند. شما به چت بازگردانده شدید.",
- "permission.configAccess.groupChatOnly": "فقط همکارانی که دسترسی «قابلیت ویرایش» دارند می‌توانند این گروه عامل را پیکربندی کنند. شما به چت بازگردانده شدید.",
+ "permission.configAccess.agentChatOnly": "شما فقط می‌توانید از این نماینده استفاده کنید، نه آن را پیکربندی کنید. شما به چت بازگردانده شدید.",
+ "permission.configAccess.agentRoleRestricted": "نقش شما در فضای کاری نمی‌تواند تنظیمات نمایندگان را انجام دهد. شما به چت بازگردانده شدید.",
+ "permission.configAccess.groupChatOnly": "شما فقط می‌توانید از این گروه نمایندگان استفاده کنید، نه آن را پیکربندی کنید. شما به چت بازگردانده شدید.",
+ "permission.configAccess.groupRoleRestricted": "نقش شما در فضای کاری نمی‌تواند تنظیمات گروه‌های نمایندگان را انجام دهد. شما به چت بازگردانده شدید.",
"pin": "سنجاق کردن",
"pinOff": "برداشتن سنجاق",
"platformAgent.create.available": "در دسترس",
diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.json
index 881bb11b323..020116cc93f 100644
--- a/locales/fa-IR/setting.json
+++ b/locales/fa-IR/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "حذف عضو فضای کاری",
"workspace.member.removeSuccess": "عضو با موفقیت از فضای کاری حذف شد.",
"workspace.member.roles.admin": "مدیر",
+ "workspace.member.roles.adminDescription": "مدیریت اعضا، تنظیمات، استفاده و پیکربندی مشترک، اما نه صورتحساب، حذف فضای کاری، انتقال مالکیت یا محتوای سایر اعضا.",
"workspace.member.roles.basicBadge": "پایه",
"workspace.member.roles.freeBadge": "رایگان",
"workspace.member.roles.member": "عضو",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "ذخیره نشد. لطفاً دوباره تلاش کنید.",
"workspace.onboarding.toast.installAgentsFailed": "نمایندگان انتخاب شده اضافه نشدند. می‌توانید بعداً آنها را از بازار نصب کنید.",
"workspace.onboarding.toast.saved": "ذخیره شد",
+ "workspace.permission.requiresAdmin": "فقط مدیران فضای کاری و مالک می‌توانند این کار را انجام دهند. اگر نیاز به تغییر دارید، از یک مدیر درخواست کنید.",
"workspace.permission.requiresMember": "شما اجازه انجام این کار را ندارید. از مالک فضای کاری بخواهید که به شما مجوز عضو یا بالاتر بدهد.",
"workspace.permission.requiresOwner": "فقط مالکان فضای کاری می‌توانند این کار را انجام دهند. اگر نیاز به تغییر دارید، از یک مالک بخواهید.",
"workspace.permission.requiresPrimaryOwner": "فقط مالک اصلی می‌تواند این فضای کاری را حذف کند. در صورت نیاز ابتدا مالکیت اصلی را منتقل کنید.",
diff --git a/locales/fa-IR/verify.json b/locales/fa-IR/verify.json
index 75ef0b8b3c4..6a99134f9eb 100644
--- a/locales/fa-IR/verify.json
+++ b/locales/fa-IR/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "نیاز به اصلاح {{count}}",
"acceptance.filter.pending": "برای بازبینی {{count}}",
"acceptance.filter.roundAll": "همه دورها",
+ "acceptance.focus.back": "بازگشت به نمای کلی",
+ "acceptance.focus.evidenceHint": "معیار پذیرش، شواهد و بازخورد مربوط به این بررسی را مرور کنید.",
"acceptance.goalCollapse": "بستن هدف پذیرش",
"acceptance.goalEdit": "ویرایش هدف پذیرش",
"acceptance.goalExpand": "باز کردن هدف پذیرش",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "دفتر کل دور",
"acceptance.ledger.viewReport": "مشاهده گزارش دور",
"acceptance.origin.agentFallback": "نماینده",
+ "acceptance.origin.backToRuns": "بازگشت به اجراها",
"acceptance.origin.openTopic": "باز کردن موضوع",
"acceptance.reject.description": "دلیل شما ورودی برای دور تعمیر بعدی می‌شود؛ این یک نظر منفعل نیست.",
"acceptance.reject.placeholder": "توضیح دهید چه چیزی باید تغییر کند تا این تحویل پذیرفته شود.",
diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.json
index b164b5783a8..29b02d43933 100644
--- a/locales/fr-FR/chat.json
+++ b/locales/fr-FR/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Agent de page",
"pageSelection.lines": "Lignes {{start}}-{{end}}",
"pageSelection.reference": "Texte sélectionné",
- "permission.configAccess.agentChatOnly": "Seuls les collaborateurs ayant l'autorisation de modifier peuvent configurer cet Agent. Vous avez été renvoyé au chat.",
- "permission.configAccess.groupChatOnly": "Seuls les collaborateurs ayant l'autorisation de modifier peuvent configurer ce Groupe d'Agents. Vous avez été renvoyé au chat.",
+ "permission.configAccess.agentChatOnly": "Vous pouvez uniquement utiliser cet Agent, pas le configurer. Vous avez été renvoyé au chat.",
+ "permission.configAccess.agentRoleRestricted": "Votre rôle dans l'espace de travail ne vous permet pas de configurer les Agents. Vous avez été redirigé vers le chat.",
+ "permission.configAccess.groupChatOnly": "Vous pouvez uniquement utiliser ce Groupe d'Agents, pas le configurer. Vous avez été renvoyé au chat.",
+ "permission.configAccess.groupRoleRestricted": "Votre rôle dans l'espace de travail ne vous permet pas de configurer les Groupes d'Agents. Vous avez été redirigé vers le chat.",
"pin": "Épingler",
"pinOff": "Désépingler",
"platformAgent.create.available": "Disponible",
diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json
index 4e10e72f282..e3abf2410d9 100644
--- a/locales/fr-FR/setting.json
+++ b/locales/fr-FR/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Supprimer un membre de l'espace de travail",
"workspace.member.removeSuccess": "Membre supprimé de l'espace de travail avec succès.",
"workspace.member.roles.admin": "Administrateur",
+ "workspace.member.roles.adminDescription": "Gérer les membres, les paramètres, l'utilisation et la configuration partagée, mais pas la facturation, la suppression de l'espace de travail, le transfert de propriété ou le contenu des autres membres.",
"workspace.member.roles.basicBadge": "Basique",
"workspace.member.roles.freeBadge": "Gratuit",
"workspace.member.roles.member": "Membre",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Impossible d'enregistrer. Veuillez réessayer.",
"workspace.onboarding.toast.installAgentsFailed": "Impossible d'ajouter les agents sélectionnés. Vous pouvez les installer plus tard depuis le marché.",
"workspace.onboarding.toast.saved": "Enregistré",
+ "workspace.permission.requiresAdmin": "Seuls les administrateurs de l'espace de travail et le propriétaire peuvent effectuer cette action. Demandez à un administrateur si vous avez besoin de modifier cela.",
"workspace.permission.requiresMember": "Vous n'avez pas la permission de faire cela. Demandez à un propriétaire de l'espace de travail de vous accorder le rôle de Membre ou supérieur.",
"workspace.permission.requiresOwner": "Seuls les propriétaires de l'espace de travail peuvent faire cela. Demandez à un propriétaire si vous avez besoin de changer cela.",
"workspace.permission.requiresPrimaryOwner": "Seul le propriétaire principal peut supprimer cet espace de travail. Transférez d'abord la propriété principale si nécessaire.",
diff --git a/locales/fr-FR/verify.json b/locales/fr-FR/verify.json
index 6791c49aba6..2ded62c226f 100644
--- a/locales/fr-FR/verify.json
+++ b/locales/fr-FR/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "À corriger {{count}}",
"acceptance.filter.pending": "À examiner {{count}}",
"acceptance.filter.roundAll": "Tous les cycles",
+ "acceptance.focus.back": "Retour à l'aperçu",
+ "acceptance.focus.evidenceHint": "Examinez le critère d'acceptation, les preuves et les commentaires pour cette vérification.",
"acceptance.goalCollapse": "Réduire l'objectif d'acceptation",
"acceptance.goalEdit": "Modifier l'objectif d'acceptation",
"acceptance.goalExpand": "Développer l'objectif d'acceptation",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Registre des cycles",
"acceptance.ledger.viewReport": "Voir le rapport du cycle",
"acceptance.origin.agentFallback": "Agent",
+ "acceptance.origin.backToRuns": "Retour aux exécutions",
"acceptance.origin.openTopic": "Ouvrir le sujet",
"acceptance.reject.description": "Votre raison devient une entrée pour le prochain cycle de réparation ; ce n'est pas un simple commentaire passif.",
"acceptance.reject.placeholder": "Décrivez ce qui doit changer avant que cette livraison puisse être acceptée.",
diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.json
index 8c4bcc86318..22d772c52c0 100644
--- a/locales/it-IT/chat.json
+++ b/locales/it-IT/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Agente di pagina",
"pageSelection.lines": "Righe {{start}}-{{end}}",
"pageSelection.reference": "Testo selezionato",
- "permission.configAccess.agentChatOnly": "Solo i collaboratori con permesso di Modifica possono configurare questo Agente. Sei stato reindirizzato alla chat.",
- "permission.configAccess.groupChatOnly": "Solo i collaboratori con permesso di Modifica possono configurare questo Gruppo di Agenti. Sei stato reindirizzato alla chat.",
+ "permission.configAccess.agentChatOnly": "Puoi utilizzare solo questo Agente, non configurarlo. Sei stato reindirizzato alla chat.",
+ "permission.configAccess.agentRoleRestricted": "Il tuo ruolo nello spazio di lavoro non può configurare gli Agenti. Sei stato riportato alla chat.",
+ "permission.configAccess.groupChatOnly": "Puoi utilizzare solo questo Gruppo di Agenti, non configurarlo. Sei stato reindirizzato alla chat.",
+ "permission.configAccess.groupRoleRestricted": "Il tuo ruolo nello spazio di lavoro non può configurare i Gruppi di Agenti. Sei stato riportato alla chat.",
"pin": "Fissa",
"pinOff": "Rimuovi fissaggio",
"platformAgent.create.available": "Disponibile",
diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json
index 48645896cc5..5f5f1cbcf43 100644
--- a/locales/it-IT/setting.json
+++ b/locales/it-IT/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Rimuovi Membro dal Workspace",
"workspace.member.removeSuccess": "Membro rimosso dal workspace con successo.",
"workspace.member.roles.admin": "Amministratore",
+ "workspace.member.roles.adminDescription": "Gestisci membri, impostazioni, utilizzo e configurazione condivisa, ma non la fatturazione, l'eliminazione dello spazio di lavoro, il trasferimento della proprietà o i contenuti di altri membri.",
"workspace.member.roles.basicBadge": "Basic",
"workspace.member.roles.freeBadge": "Gratuito",
"workspace.member.roles.member": "Membro",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Impossibile salvare. Riprova.",
"workspace.onboarding.toast.installAgentsFailed": "Impossibile aggiungere gli agenti selezionati. Puoi installarli successivamente dal marketplace.",
"workspace.onboarding.toast.saved": "Salvato",
+ "workspace.permission.requiresAdmin": "Solo gli Admin dello spazio di lavoro e il Proprietario possono farlo. Chiedi a un Admin se hai bisogno di modificare questo.",
"workspace.permission.requiresMember": "Non hai il permesso per farlo. Chiedi al proprietario del workspace di concederti il ruolo di Membro o superiore.",
"workspace.permission.requiresOwner": "Solo i proprietari del workspace possono farlo. Chiedi a un proprietario se hai bisogno di modifiche.",
"workspace.permission.requiresPrimaryOwner": "Solo il proprietario principale può eliminare questo workspace. Trasferisci prima la proprietà principale, se necessario.",
diff --git a/locales/it-IT/verify.json b/locales/it-IT/verify.json
index 26cf308276d..0975ddc65c2 100644
--- a/locales/it-IT/verify.json
+++ b/locales/it-IT/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Da correggere {{count}}",
"acceptance.filter.pending": "Da revisionare {{count}}",
"acceptance.filter.roundAll": "Tutti i cicli",
+ "acceptance.focus.back": "Torna alla panoramica",
+ "acceptance.focus.evidenceHint": "Rivedi il criterio di accettazione, le prove e i feedback per questo controllo.",
"acceptance.goalCollapse": "Comprimi l'obiettivo di accettazione",
"acceptance.goalEdit": "Modifica l'obiettivo di accettazione",
"acceptance.goalExpand": "Espandi l'obiettivo di accettazione",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Registro dei cicli",
"acceptance.ledger.viewReport": "Visualizza rapporto del ciclo",
"acceptance.origin.agentFallback": "Agente",
+ "acceptance.origin.backToRuns": "Torna alle esecuzioni",
"acceptance.origin.openTopic": "Apri argomento",
"acceptance.reject.description": "Il tuo motivo diventa input per il prossimo ciclo di riparazione; non è un commento passivo.",
"acceptance.reject.placeholder": "Descrivi cosa deve cambiare prima che questa consegna possa essere accettata.",
diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.json
index ee8e624485a..50f2918b45a 100644
--- a/locales/ja-JP/chat.json
+++ b/locales/ja-JP/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "ドキュメントコパイロット",
"pageSelection.lines": "行 {{start}}~{{end}}",
"pageSelection.reference": "選択されたテキスト",
- "permission.configAccess.agentChatOnly": "このエージェントを設定できるのは「編集可能」権限を持つ共同作業者のみです。チャットに戻されました。",
- "permission.configAccess.groupChatOnly": "このエージェントグループを設定できるのは「編集可能」権限を持つ共同作業者のみです。チャットに戻されました。",
+ "permission.configAccess.agentChatOnly": "このエージェントを使用することはできますが、設定することはできません。チャットに戻されました。",
+ "permission.configAccess.agentRoleRestricted": "あなたのワークスペースの役割ではエージェントを設定することはできません。チャットに戻されました。",
+ "permission.configAccess.groupChatOnly": "このエージェントグループを使用することはできますが、設定することはできません。チャットに戻されました。",
+ "permission.configAccess.groupRoleRestricted": "あなたのワークスペースの役割ではエージェントグループを設定することはできません。チャットに戻されました。",
"pin": "ピン留め",
"pinOff": "ピン留め解除",
"platformAgent.create.available": "利用可能",
diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json
index 3326e1e6cc4..ece96f344d3 100644
--- a/locales/ja-JP/setting.json
+++ b/locales/ja-JP/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "ワークスペースメンバーを削除",
"workspace.member.removeSuccess": "メンバーがワークスペースから正常に削除されました。",
"workspace.member.roles.admin": "管理者",
+ "workspace.member.roles.adminDescription": "メンバー、設定、使用状況、共有設定を管理できますが、請求、ワークスペースの削除、所有権の移譲、他のメンバーのコンテンツは管理できません。",
"workspace.member.roles.basicBadge": "基本",
"workspace.member.roles.freeBadge": "無料",
"workspace.member.roles.member": "メンバー",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "保存できませんでした。もう一度お試しください。",
"workspace.onboarding.toast.installAgentsFailed": "選択したエージェントを追加できませんでした。後でマーケットプレイスからインストールできます。",
"workspace.onboarding.toast.saved": "保存しました",
+ "workspace.permission.requiresAdmin": "これを行えるのはワークスペースの管理者と所有者のみです。変更が必要な場合は管理者に依頼してください。",
"workspace.permission.requiresMember": "これを行う権限がありません。ワークスペースのオーナーにメンバー以上の権限を付与するよう依頼してください。",
"workspace.permission.requiresOwner": "ワークスペースのオーナーのみがこれを行うことができます。必要に応じてオーナーに依頼してください。",
"workspace.permission.requiresPrimaryOwner": "プライマリオーナーのみがこのワークスペースを削除できます。必要に応じてプライマリオーナーシップを移譲してください。",
diff --git a/locales/ja-JP/verify.json b/locales/ja-JP/verify.json
index 743aca28bd8..70dde2a0298 100644
--- a/locales/ja-JP/verify.json
+++ b/locales/ja-JP/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "修正が必要 {{count}}",
"acceptance.filter.pending": "レビュー待ち {{count}}",
"acceptance.filter.roundAll": "すべてのラウンド",
+ "acceptance.focus.back": "概要に戻る",
+ "acceptance.focus.evidenceHint": "このチェックの受け入れ基準、証拠、フィードバックを確認してください。",
"acceptance.goalCollapse": "受け入れ目標を折りたたむ",
"acceptance.goalEdit": "受け入れ目標を編集",
"acceptance.goalExpand": "受け入れ目標を展開する",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "ラウンド台帳",
"acceptance.ledger.viewReport": "ラウンドレポートを表示",
"acceptance.origin.agentFallback": "エージェント",
+ "acceptance.origin.backToRuns": "実行に戻る",
"acceptance.origin.openTopic": "トピックを開く",
"acceptance.reject.description": "あなたの理由は次の修復ラウンドへの入力となります。これは単なるコメントではありません。",
"acceptance.reject.placeholder": "この納品が受け入れられる前に変更すべき点を記述してください。",
diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.json
index b535378c9b8..82c0697d454 100644
--- a/locales/ko-KR/chat.json
+++ b/locales/ko-KR/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "문서 코파일럿",
"pageSelection.lines": "{{start}}-{{end}}줄",
"pageSelection.reference": "선택한 텍스트",
- "permission.configAccess.agentChatOnly": "편집 권한이 있는 협업자만 이 에이전트를 구성할 수 있습니다. 채팅으로 되돌아갔습니다.",
- "permission.configAccess.groupChatOnly": "편집 권한이 있는 협업자만 이 에이전트 그룹을 구성할 수 있습니다. 채팅으로 되돌아갔습니다.",
+ "permission.configAccess.agentChatOnly": "이 에이전트를 사용할 수만 있으며, 설정할 수는 없습니다. 채팅으로 돌아왔습니다.",
+ "permission.configAccess.agentRoleRestricted": "귀하의 워크스페이스 역할로는 에이전트를 구성할 수 없습니다. 채팅으로 돌아왔습니다.",
+ "permission.configAccess.groupChatOnly": "이 에이전트 그룹을 사용할 수만 있으며, 설정할 수는 없습니다. 채팅으로 돌아왔습니다.",
+ "permission.configAccess.groupRoleRestricted": "귀하의 워크스페이스 역할로는 에이전트 그룹을 구성할 수 없습니다. 채팅으로 돌아왔습니다.",
"pin": "고정",
"pinOff": "고정 해제",
"platformAgent.create.available": "사용 가능",
diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json
index 56224e1fb37..fd6ba9adb58 100644
--- a/locales/ko-KR/setting.json
+++ b/locales/ko-KR/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "워크스페이스 멤버 제거",
"workspace.member.removeSuccess": "워크스페이스에서 멤버가 성공적으로 제거되었습니다.",
"workspace.member.roles.admin": "관리자",
+ "workspace.member.roles.adminDescription": "멤버, 설정, 사용량 및 공유 설정을 관리할 수 있지만, 결제, 워크스페이스 삭제, 소유권 이전 또는 다른 멤버의 콘텐츠는 관리할 수 없습니다.",
"workspace.member.roles.basicBadge": "기본",
"workspace.member.roles.freeBadge": "무료",
"workspace.member.roles.member": "멤버",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "저장할 수 없습니다. 다시 시도하세요.",
"workspace.onboarding.toast.installAgentsFailed": "선택한 에이전트를 추가할 수 없습니다. 나중에 마켓플레이스에서 설치할 수 있습니다.",
"workspace.onboarding.toast.saved": "저장됨",
+ "workspace.permission.requiresAdmin": "워크스페이스 관리자와 소유자만 이 작업을 수행할 수 있습니다. 변경이 필요하다면 관리자에게 요청하세요.",
"workspace.permission.requiresMember": "이 작업을 수행할 권한이 없습니다. 워크스페이스 소유자에게 멤버 이상의 권한을 요청하세요.",
"workspace.permission.requiresOwner": "워크스페이스 소유자만 이 작업을 수행할 수 있습니다. 변경이 필요하면 소유자에게 요청하세요.",
"workspace.permission.requiresPrimaryOwner": "주 소유자만 이 워크스페이스를 삭제할 수 있습니다. 필요하면 먼저 주 소유권을 이전하세요.",
diff --git a/locales/ko-KR/verify.json b/locales/ko-KR/verify.json
index 98020305185..9e69b604876 100644
--- a/locales/ko-KR/verify.json
+++ b/locales/ko-KR/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "수정 필요 {{count}}",
"acceptance.filter.pending": "검토 대기 중 {{count}}",
"acceptance.filter.roundAll": "모든 라운드",
+ "acceptance.focus.back": "개요로 돌아가기",
+ "acceptance.focus.evidenceHint": "이 검사의 수락 기준, 증거 및 피드백을 검토하세요.",
"acceptance.goalCollapse": "수락 목표 축소",
"acceptance.goalEdit": "수락 목표 편집",
"acceptance.goalExpand": "수락 목표 확장",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "라운드 원장",
"acceptance.ledger.viewReport": "라운드 보고서 보기",
"acceptance.origin.agentFallback": "에이전트",
+ "acceptance.origin.backToRuns": "실행으로 돌아가기",
"acceptance.origin.openTopic": "주제 열기",
"acceptance.reject.description": "귀하의 이유는 다음 수정 라운드의 입력으로 사용됩니다. 이는 단순한 의견이 아닙니다.",
"acceptance.reject.placeholder": "이 배송이 수락되기 전에 변경되어야 할 사항을 설명하세요.",
diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.json
index 29ada3cda45..63c4926dc54 100644
--- a/locales/nl-NL/chat.json
+++ b/locales/nl-NL/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Pagina-agent",
"pageSelection.lines": "Regels {{start}}-{{end}}",
"pageSelection.reference": "Geselecteerde Tekst",
- "permission.configAccess.agentChatOnly": "Alleen medewerkers met Kan bewerken kunnen deze Agent configureren. U bent teruggebracht naar de chat.",
- "permission.configAccess.groupChatOnly": "Alleen medewerkers met Kan bewerken kunnen deze Agentgroep configureren. U bent teruggebracht naar de chat.",
+ "permission.configAccess.agentChatOnly": "Je kunt deze Agent alleen gebruiken, niet configureren. Je bent teruggebracht naar de chat.",
+ "permission.configAccess.agentRoleRestricted": "Uw werkruimte rol kan geen Agents configureren. U bent teruggebracht naar chat.",
+ "permission.configAccess.groupChatOnly": "Je kunt deze Agentgroep alleen gebruiken, niet configureren. Je bent teruggebracht naar de chat.",
+ "permission.configAccess.groupRoleRestricted": "Uw werkruimte rol kan geen Agentgroepen configureren. U bent teruggebracht naar chat.",
"pin": "Vastzetten",
"pinOff": "Losmaken",
"platformAgent.create.available": "Beschikbaar",
diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json
index 9246ceb12c4..2147599ed5b 100644
--- a/locales/nl-NL/setting.json
+++ b/locales/nl-NL/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Werkruimte Lid Verwijderen",
"workspace.member.removeSuccess": "Lid succesvol uit werkruimte verwijderd.",
"workspace.member.roles.admin": "Beheerder",
+ "workspace.member.roles.adminDescription": "Beheer leden, instellingen, gebruik en gedeelde configuratie, maar niet facturering, het verwijderen van de werkruimte, eigendomsoverdracht of de inhoud van andere leden.",
"workspace.member.roles.basicBadge": "Basis",
"workspace.member.roles.freeBadge": "Gratis",
"workspace.member.roles.member": "Lid",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Kon niet opslaan. Probeer opnieuw.",
"workspace.onboarding.toast.installAgentsFailed": "Kon de geselecteerde agenten niet toevoegen. Je kunt ze later installeren vanuit de marktplaats.",
"workspace.onboarding.toast.saved": "Opgeslagen",
+ "workspace.permission.requiresAdmin": "Alleen werkruimtebeheerders en de eigenaar kunnen dit doen. Vraag een beheerder als je wilt dat dit wordt gewijzigd.",
"workspace.permission.requiresMember": "Je hebt geen toestemming om dit te doen. Vraag een werkruimte-eigenaar om je Lid of hoger te maken.",
"workspace.permission.requiresOwner": "Alleen werkruimte-eigenaren kunnen dit doen. Vraag een eigenaar als je dit wilt wijzigen.",
"workspace.permission.requiresPrimaryOwner": "Alleen de primaire eigenaar kan deze werkruimte verwijderen. Draag eerst het primaire eigenaarschap over indien nodig.",
diff --git a/locales/nl-NL/verify.json b/locales/nl-NL/verify.json
index 17a24aecfd7..fa7ed92b1e1 100644
--- a/locales/nl-NL/verify.json
+++ b/locales/nl-NL/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Reparatie nodig {{count}}",
"acceptance.filter.pending": "Te beoordelen {{count}}",
"acceptance.filter.roundAll": "Alle rondes",
+ "acceptance.focus.back": "Terug naar overzicht",
+ "acceptance.focus.evidenceHint": "Bekijk het acceptatiecriterium, bewijs en feedback voor deze controle.",
"acceptance.goalCollapse": "De acceptatiedoel samenvouwen",
"acceptance.goalEdit": "Bewerk het acceptatiedoel",
"acceptance.goalExpand": "De acceptatiedoel uitvouwen",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Ronde grootboek",
"acceptance.ledger.viewReport": "Bekijk ronderapport",
"acceptance.origin.agentFallback": "Agent",
+ "acceptance.origin.backToRuns": "Terug naar uitvoeringen",
"acceptance.origin.openTopic": "Open onderwerp",
"acceptance.reject.description": "Jouw reden wordt input voor de volgende reparatieronde; dit is geen passieve opmerking.",
"acceptance.reject.placeholder": "Beschrijf wat er moet veranderen voordat deze levering kan worden geaccepteerd.",
diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.json
index 000439eca18..82904556aea 100644
--- a/locales/pl-PL/chat.json
+++ b/locales/pl-PL/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Agent strony",
"pageSelection.lines": "Wiersze {{start}}–{{end}}",
"pageSelection.reference": "Zaznaczony tekst",
- "permission.configAccess.agentChatOnly": "Tylko współpracownicy z uprawnieniami do edycji mogą konfigurować tego Agenta. Zostałeś przeniesiony z powrotem do czatu.",
- "permission.configAccess.groupChatOnly": "Tylko współpracownicy z uprawnieniami do edycji mogą konfigurować tę Grupę Agentów. Zostałeś przeniesiony z powrotem do czatu.",
+ "permission.configAccess.agentChatOnly": "Możesz korzystać tylko z tego Agenta, nie możesz go konfigurować. Zostałeś przeniesiony do czatu.",
+ "permission.configAccess.agentRoleRestricted": "Twoja rola w przestrzeni roboczej nie pozwala na konfigurowanie Agentów. Zostałeś/aś przekierowany/a do czatu.",
+ "permission.configAccess.groupChatOnly": "Możesz korzystać tylko z tej Grupy Agentów, nie możesz jej konfigurować. Zostałeś przeniesiony do czatu.",
+ "permission.configAccess.groupRoleRestricted": "Twoja rola w przestrzeni roboczej nie pozwala na konfigurowanie Grup Agentów. Zostałeś/aś przekierowany/a do czatu.",
"pin": "Przypnij",
"pinOff": "Odepnij",
"platformAgent.create.available": "Dostępne",
diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json
index f546767c8f4..c857cd6888f 100644
--- a/locales/pl-PL/setting.json
+++ b/locales/pl-PL/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Usuń członka workspace",
"workspace.member.removeSuccess": "Członek pomyślnie usunięty z workspace.",
"workspace.member.roles.admin": "Administrator",
+ "workspace.member.roles.adminDescription": "Zarządzaj członkami, ustawieniami, użytkowaniem i wspólną konfiguracją, ale nie rozliczeniami, usuwaniem przestrzeni roboczej, przeniesieniem własności ani treściami innych członków.",
"workspace.member.roles.basicBadge": "Podstawowy",
"workspace.member.roles.freeBadge": "Darmowy",
"workspace.member.roles.member": "Członek",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Nie udało się zapisać. Spróbuj ponownie.",
"workspace.onboarding.toast.installAgentsFailed": "Nie udało się dodać wybranych agentów. Możesz je zainstalować później z rynku.",
"workspace.onboarding.toast.saved": "Zapisano",
+ "workspace.permission.requiresAdmin": "Tylko Administratorzy przestrzeni roboczej i Właściciel mogą to zrobić. Poproś Administratora, jeśli potrzebujesz zmiany.",
"workspace.permission.requiresMember": "Nie masz uprawnień do wykonania tej czynności. Poproś właściciela miejsca pracy o nadanie Ci roli członka lub wyższej.",
"workspace.permission.requiresOwner": "Tylko właściciele miejsca pracy mogą to zrobić. Poproś właściciela, jeśli potrzebujesz tej zmiany.",
"workspace.permission.requiresPrimaryOwner": "Tylko główny właściciel może usunąć to miejsce pracy. Najpierw przenieś główne uprawnienia właściciela, jeśli to konieczne.",
diff --git a/locales/pl-PL/verify.json b/locales/pl-PL/verify.json
index 6d4f36dac5b..13dff7426f2 100644
--- a/locales/pl-PL/verify.json
+++ b/locales/pl-PL/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Wymaga poprawy {{count}}",
"acceptance.filter.pending": "Do recenzji {{count}}",
"acceptance.filter.roundAll": "Wszystkie rundy",
+ "acceptance.focus.back": "Powrót do przeglądu",
+ "acceptance.focus.evidenceHint": "Przejrzyj kryterium akceptacji, dowody i opinie dotyczące tego sprawdzenia.",
"acceptance.goalCollapse": "Zwiń cel akceptacji",
"acceptance.goalEdit": "Edytuj cel akceptacji",
"acceptance.goalExpand": "Rozwiń cel akceptacji",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Rejestr rund",
"acceptance.ledger.viewReport": "Zobacz raport rundy",
"acceptance.origin.agentFallback": "Agent",
+ "acceptance.origin.backToRuns": "Powrót do uruchomień",
"acceptance.origin.openTopic": "Otwórz temat",
"acceptance.reject.description": "Twój powód staje się wejściem do następnej rundy naprawczej; to nie jest pasywny komentarz.",
"acceptance.reject.placeholder": "Opisz, co musi się zmienić, aby ta dostawa mogła zostać zaakceptowana.",
diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.json
index 238d685711a..799b7a80223 100644
--- a/locales/pt-BR/chat.json
+++ b/locales/pt-BR/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Agente da Página",
"pageSelection.lines": "Linhas {{start}}-{{end}}",
"pageSelection.reference": "Texto Selecionado",
- "permission.configAccess.agentChatOnly": "Somente colaboradores com permissão de edição podem configurar este Agente. Você foi retornado ao chat.",
- "permission.configAccess.groupChatOnly": "Somente colaboradores com permissão de edição podem configurar este Grupo de Agentes. Você foi retornado ao chat.",
+ "permission.configAccess.agentChatOnly": "Você pode apenas usar este Agente, não configurá-lo. Você foi retornado ao chat.",
+ "permission.configAccess.agentRoleRestricted": "Seu papel no espaço de trabalho não permite configurar Agentes. Você foi retornado ao chat.",
+ "permission.configAccess.groupChatOnly": "Você pode apenas usar este Grupo de Agentes, não configurá-lo. Você foi retornado ao chat.",
+ "permission.configAccess.groupRoleRestricted": "Seu papel no espaço de trabalho não permite configurar Grupos de Agentes. Você foi retornado ao chat.",
"pin": "Fixar",
"pinOff": "Desafixar",
"platformAgent.create.available": "Disponível",
diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json
index 636643f6b97..f7b7d820be4 100644
--- a/locales/pt-BR/setting.json
+++ b/locales/pt-BR/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Remover Membro do Workspace",
"workspace.member.removeSuccess": "Membro removido do workspace com sucesso.",
"workspace.member.roles.admin": "Admin",
+ "workspace.member.roles.adminDescription": "Gerenciar membros, configurações, uso e configuração compartilhada, mas não faturamento, exclusão do espaço de trabalho, transferência de propriedade ou conteúdo de outros membros.",
"workspace.member.roles.basicBadge": "Básico",
"workspace.member.roles.freeBadge": "Gratuito",
"workspace.member.roles.member": "Membro",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Não foi possível salvar. Por favor, tente novamente.",
"workspace.onboarding.toast.installAgentsFailed": "Não foi possível adicionar os agentes selecionados. Você pode instalá-los mais tarde no marketplace.",
"workspace.onboarding.toast.saved": "Salvo",
+ "workspace.permission.requiresAdmin": "Somente os Administradores do espaço de trabalho e o Proprietário podem fazer isso. Peça a um Administrador se precisar que isso seja alterado.",
"workspace.permission.requiresMember": "Você não tem permissão para fazer isso. Peça ao proprietário do workspace para conceder a você a permissão de Membro ou superior.",
"workspace.permission.requiresOwner": "Somente os proprietários do workspace podem fazer isso. Peça a um proprietário se precisar alterar isso.",
"workspace.permission.requiresPrimaryOwner": "Somente o proprietário principal pode excluir este workspace. Transfira a propriedade principal primeiro, se necessário.",
diff --git a/locales/pt-BR/verify.json b/locales/pt-BR/verify.json
index 73e813630e1..6de0ee03fc5 100644
--- a/locales/pt-BR/verify.json
+++ b/locales/pt-BR/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Precisa de correção {{count}}",
"acceptance.filter.pending": "Para revisar {{count}}",
"acceptance.filter.roundAll": "Todas as rodadas",
+ "acceptance.focus.back": "Voltar para a visão geral",
+ "acceptance.focus.evidenceHint": "Revise o critério de aceitação, evidências e feedback para esta verificação.",
"acceptance.goalCollapse": "Recolher a meta de aceitação",
"acceptance.goalEdit": "Editar a meta de aceitação",
"acceptance.goalExpand": "Expandir a meta de aceitação",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Registro de rodadas",
"acceptance.ledger.viewReport": "Ver relatório da rodada",
"acceptance.origin.agentFallback": "Agente",
+ "acceptance.origin.backToRuns": "Voltar para as execuções",
"acceptance.origin.openTopic": "Abrir tópico",
"acceptance.reject.description": "Seu motivo se torna entrada para a próxima rodada de reparo; isso não é um comentário passivo.",
"acceptance.reject.placeholder": "Descreva o que deve mudar antes que esta entrega possa ser aceita.",
diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.json
index 5ad5b42dab3..658b4437769 100644
--- a/locales/ru-RU/chat.json
+++ b/locales/ru-RU/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Агент страницы",
"pageSelection.lines": "Строки {{start}}–{{end}}",
"pageSelection.reference": "Выделенный текст",
- "permission.configAccess.agentChatOnly": "Только сотрудники с правами «Может редактировать» могут настраивать этого агента. Вы были возвращены в чат.",
- "permission.configAccess.groupChatOnly": "Только сотрудники с правами «Может редактировать» могут настраивать эту группу агентов. Вы были возвращены в чат.",
+ "permission.configAccess.agentChatOnly": "Вы можете использовать только этого агента, но не настраивать его. Вы были возвращены в чат.",
+ "permission.configAccess.agentRoleRestricted": "Ваша роль в рабочем пространстве не позволяет настраивать агентов. Вы были возвращены в чат.",
+ "permission.configAccess.groupChatOnly": "Вы можете использовать только эту группу агентов, но не настраивать её. Вы были возвращены в чат.",
+ "permission.configAccess.groupRoleRestricted": "Ваша роль в рабочем пространстве не позволяет настраивать группы агентов. Вы были возвращены в чат.",
"pin": "Закрепить",
"pinOff": "Открепить",
"platformAgent.create.available": "Доступно",
diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json
index f412103f361..3aa9a0eaaf8 100644
--- a/locales/ru-RU/setting.json
+++ b/locales/ru-RU/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Удалить участника рабочей области",
"workspace.member.removeSuccess": "Участник успешно удален из рабочей области.",
"workspace.member.roles.admin": "Администратор",
+ "workspace.member.roles.adminDescription": "Управление участниками, настройками, использованием и общей конфигурацией, но не выставлением счетов, удалением рабочего пространства, передачей прав собственности или контентом других участников.",
"workspace.member.roles.basicBadge": "Базовый",
"workspace.member.roles.freeBadge": "Бесплатно",
"workspace.member.roles.member": "Участник",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Не удалось сохранить. Пожалуйста, попробуйте снова.",
"workspace.onboarding.toast.installAgentsFailed": "Не удалось добавить выбранных агентов. Вы можете установить их позже из маркетплейса.",
"workspace.onboarding.toast.saved": "Сохранено",
+ "workspace.permission.requiresAdmin": "Только администраторы рабочего пространства и владелец могут выполнять это действие. Обратитесь к администратору, если вам нужно внести изменения.",
"workspace.permission.requiresMember": "У вас нет разрешения на это. Попросите владельца рабочей области предоставить вам роль Участника или выше.",
"workspace.permission.requiresOwner": "Только владельцы рабочей области могут это сделать. Попросите владельца, если вам нужно это изменить.",
"workspace.permission.requiresPrimaryOwner": "Только основной владелец может удалить эту рабочую область. Сначала передайте основное владение, если это необходимо.",
diff --git a/locales/ru-RU/verify.json b/locales/ru-RU/verify.json
index b1f2972a949..dcbad52b89e 100644
--- a/locales/ru-RU/verify.json
+++ b/locales/ru-RU/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Требует исправления {{count}}",
"acceptance.filter.pending": "Для обзора {{count}}",
"acceptance.filter.roundAll": "Все раунды",
+ "acceptance.focus.back": "Назад к обзору",
+ "acceptance.focus.evidenceHint": "Изучите критерий принятия, доказательства и отзывы для этой проверки.",
"acceptance.goalCollapse": "Свернуть цель принятия",
"acceptance.goalEdit": "Редактировать цель принятия",
"acceptance.goalExpand": "Развернуть цель принятия",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Реестр раундов",
"acceptance.ledger.viewReport": "Просмотреть отчет раунда",
"acceptance.origin.agentFallback": "Агент",
+ "acceptance.origin.backToRuns": "Назад к запускам",
"acceptance.origin.openTopic": "Открыть тему",
"acceptance.reject.description": "Ваша причина становится входными данными для следующего раунда исправлений; это не пассивный комментарий.",
"acceptance.reject.placeholder": "Опишите, что должно измениться, чтобы эта доставка могла быть принята.",
diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.json
index ba854989c29..2a73a323af2 100644
--- a/locales/tr-TR/chat.json
+++ b/locales/tr-TR/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Sayfa Ajanı",
"pageSelection.lines": "{{start}}-{{end}} satırları",
"pageSelection.reference": "Seçilen Metin",
- "permission.configAccess.agentChatOnly": "Yalnızca Düzenleme yapabilir iznine sahip işbirlikçiler bu Ajanı yapılandırabilir. Sohbete geri döndünüz.",
- "permission.configAccess.groupChatOnly": "Yalnızca Düzenleme yapabilir iznine sahip işbirlikçiler bu Ajan Grubunu yapılandırabilir. Sohbete geri döndünüz.",
+ "permission.configAccess.agentChatOnly": "Bu Temsilciyi yalnızca kullanabilirsiniz, yapılandırma yapamazsınız. Sohbete geri döndünüz.",
+ "permission.configAccess.agentRoleRestricted": "Çalışma alanı rolünüz, Temsilcileri yapılandırmanıza izin vermiyor. Sohbete geri döndünüz.",
+ "permission.configAccess.groupChatOnly": "Bu Temsilci Grubunu yalnızca kullanabilirsiniz, yapılandırma yapamazsınız. Sohbete geri döndünüz.",
+ "permission.configAccess.groupRoleRestricted": "Çalışma alanı rolünüz, Temsilci Gruplarını yapılandırmanıza izin vermiyor. Sohbete geri döndünüz.",
"pin": "Sabitle",
"pinOff": "Sabitlemeyi Kaldır",
"platformAgent.create.available": "Mevcut",
diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json
index 92d095e137e..2064b57635d 100644
--- a/locales/tr-TR/setting.json
+++ b/locales/tr-TR/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Çalışma Alanı Üyesini Kaldır",
"workspace.member.removeSuccess": "Üye başarıyla çalışma alanından kaldırıldı.",
"workspace.member.roles.admin": "Yönetici",
+ "workspace.member.roles.adminDescription": "Üyeleri, ayarları, kullanımı ve paylaşılan yapılandırmayı yönetin, ancak faturalandırma, çalışma alanı silme, sahiplik devri veya diğer üyelerin içeriklerini yönetemezsiniz.",
"workspace.member.roles.basicBadge": "Temel",
"workspace.member.roles.freeBadge": "Ücretsiz",
"workspace.member.roles.member": "Üye",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Kaydedilemedi. Lütfen tekrar deneyin.",
"workspace.onboarding.toast.installAgentsFailed": "Seçilen ajanlar eklenemedi. Daha sonra pazardan yükleyebilirsiniz.",
"workspace.onboarding.toast.saved": "Kaydedildi",
+ "workspace.permission.requiresAdmin": "Bunu yalnızca çalışma alanı Yöneticileri ve Sahibi yapabilir. Eğer bunun değiştirilmesi gerekiyorsa bir Yöneticiye danışın.",
"workspace.permission.requiresMember": "Bunu yapmak için izniniz yok. Bir çalışma alanı sahibinden size Üye veya daha yüksek bir rol vermesini isteyin.",
"workspace.permission.requiresOwner": "Bunu yalnızca çalışma alanı sahipleri yapabilir. Değiştirilmesini istiyorsanız bir sahibe sorun.",
"workspace.permission.requiresPrimaryOwner": "Bu çalışma alanını yalnızca birincil sahip silebilir. Gerekirse önce birincil sahipliği devredin.",
diff --git a/locales/tr-TR/verify.json b/locales/tr-TR/verify.json
index 02acbd110c9..34b2ee4f178 100644
--- a/locales/tr-TR/verify.json
+++ b/locales/tr-TR/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Düzeltme gerekiyor {{count}}",
"acceptance.filter.pending": "İncelenecek {{count}}",
"acceptance.filter.roundAll": "Tüm turlar",
+ "acceptance.focus.back": "Genel bakışa geri dön",
+ "acceptance.focus.evidenceHint": "Bu kontrol için kabul kriterlerini, kanıtları ve geri bildirimi gözden geçirin.",
"acceptance.goalCollapse": "Kabul hedefini daralt",
"acceptance.goalEdit": "Kabul hedefini düzenle",
"acceptance.goalExpand": "Kabul hedefini genişlet",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Tur defteri",
"acceptance.ledger.viewReport": "Tur raporunu görüntüle",
"acceptance.origin.agentFallback": "Temsilci",
+ "acceptance.origin.backToRuns": "Çalışmalara geri dön",
"acceptance.origin.openTopic": "Konuyu aç",
"acceptance.reject.description": "Sebebiniz bir sonraki onarım turu için girdi olur; bu pasif bir yorum değildir.",
"acceptance.reject.placeholder": "Bu teslimatın kabul edilebilmesi için neyin değişmesi gerektiğini açıklayın.",
diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.json
index cb7f28cc27b..e7d36c577be 100644
--- a/locales/vi-VN/chat.json
+++ b/locales/vi-VN/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "Tác nhân trang",
"pageSelection.lines": "Dòng {{start}}-{{end}}",
"pageSelection.reference": "Văn bản đã chọn",
- "permission.configAccess.agentChatOnly": "Chỉ những cộng tác viên có quyền Chỉnh sửa mới có thể cấu hình Agent này. Bạn đã được chuyển trở lại trò chuyện.",
- "permission.configAccess.groupChatOnly": "Chỉ những cộng tác viên có quyền Chỉnh sửa mới có thể cấu hình Nhóm Agent này. Bạn đã được chuyển trở lại trò chuyện.",
+ "permission.configAccess.agentChatOnly": "Bạn chỉ có thể sử dụng Agent này, không thể cấu hình nó. Bạn đã được chuyển về trò chuyện.",
+ "permission.configAccess.agentRoleRestricted": "Vai trò không gian làm việc của bạn không thể cấu hình Đại lý. Bạn đã được đưa trở lại trò chuyện.",
+ "permission.configAccess.groupChatOnly": "Bạn chỉ có thể sử dụng Nhóm Agent này, không thể cấu hình nó. Bạn đã được chuyển về trò chuyện.",
+ "permission.configAccess.groupRoleRestricted": "Vai trò không gian làm việc của bạn không thể cấu hình Nhóm Đại lý. Bạn đã được đưa trở lại trò chuyện.",
"pin": "Ghim",
"pinOff": "Bỏ ghim",
"platformAgent.create.available": "Có sẵn",
diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json
index 8d1d96edd66..bfd3737f840 100644
--- a/locales/vi-VN/setting.json
+++ b/locales/vi-VN/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "Xóa thành viên khỏi không gian làm việc",
"workspace.member.removeSuccess": "Thành viên đã được xóa khỏi không gian làm việc thành công.",
"workspace.member.roles.admin": "Quản trị viên",
+ "workspace.member.roles.adminDescription": "Quản lý thành viên, cài đặt, sử dụng và cấu hình chia sẻ, nhưng không bao gồm thanh toán, xóa không gian làm việc, chuyển quyền sở hữu hoặc nội dung của các thành viên khác.",
"workspace.member.roles.basicBadge": "Cơ bản",
"workspace.member.roles.freeBadge": "Miễn phí",
"workspace.member.roles.member": "Thành viên",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "Không thể lưu. Vui lòng thử lại.",
"workspace.onboarding.toast.installAgentsFailed": "Không thể thêm các tác nhân đã chọn. Bạn có thể cài đặt chúng sau từ thị trường.",
"workspace.onboarding.toast.saved": "Đã lưu",
+ "workspace.permission.requiresAdmin": "Chỉ Quản trị viên không gian làm việc và Chủ sở hữu mới có thể thực hiện điều này. Hãy hỏi Quản trị viên nếu bạn cần thay đổi điều này.",
"workspace.permission.requiresMember": "Bạn không có quyền thực hiện điều này. Hãy yêu cầu chủ sở hữu không gian làm việc cấp quyền Thành viên hoặc cao hơn.",
"workspace.permission.requiresOwner": "Chỉ chủ sở hữu không gian làm việc mới có thể thực hiện điều này. Hãy yêu cầu chủ sở hữu nếu bạn cần thay đổi.",
"workspace.permission.requiresPrimaryOwner": "Chỉ chủ sở hữu chính mới có thể xóa không gian làm việc này. Hãy chuyển quyền sở hữu chính trước nếu cần.",
diff --git a/locales/vi-VN/verify.json b/locales/vi-VN/verify.json
index 45c8ab170b2..bed1c03dfd7 100644
--- a/locales/vi-VN/verify.json
+++ b/locales/vi-VN/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "Cần sửa {{count}}",
"acceptance.filter.pending": "Cần đánh giá {{count}}",
"acceptance.filter.roundAll": "Tất cả các vòng",
+ "acceptance.focus.back": "Quay lại tổng quan",
+ "acceptance.focus.evidenceHint": "Xem xét tiêu chí chấp nhận, bằng chứng và phản hồi cho kiểm tra này.",
"acceptance.goalCollapse": "Thu gọn mục tiêu chấp nhận",
"acceptance.goalEdit": "Chỉnh sửa mục tiêu chấp nhận",
"acceptance.goalExpand": "Mở rộng mục tiêu chấp nhận",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "Sổ cái vòng",
"acceptance.ledger.viewReport": "Xem báo cáo vòng",
"acceptance.origin.agentFallback": "Đại diện",
+ "acceptance.origin.backToRuns": "Quay lại các lần chạy",
"acceptance.origin.openTopic": "Mở chủ đề",
"acceptance.reject.description": "Lý do của bạn trở thành đầu vào cho vòng sửa chữa tiếp theo; đây không phải là một bình luận thụ động.",
"acceptance.reject.placeholder": "Mô tả những gì cần thay đổi trước khi giao hàng này có thể được chấp nhận.",
diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.json
index 398a176879f..687d1b640de 100644
--- a/locales/zh-CN/chat.json
+++ b/locales/zh-CN/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "文稿助理",
"pageSelection.lines": "第 {{start}}-{{end}} 行",
"pageSelection.reference": "选中文本",
- "permission.configAccess.agentChatOnly": "只有具有“可编辑”权限的协作者可以配置此代理。您已返回到聊天界面。",
- "permission.configAccess.groupChatOnly": "只有具有“可编辑”权限的协作者可以配置此代理组。您已返回到聊天界面。",
+ "permission.configAccess.agentChatOnly": "您对此代理只有使用权限,无法配置。您已返回到聊天界面。",
+ "permission.configAccess.agentRoleRestricted": "您的工作区角色无法配置代理。您已返回到聊天界面。",
+ "permission.configAccess.groupChatOnly": "您对此代理组只有使用权限,无法配置。您已返回到聊天界面。",
+ "permission.configAccess.groupRoleRestricted": "您的工作区角色无法配置代理组。您已返回到聊天界面。",
"pin": "置顶",
"pinOff": "取消置顶",
"platformAgent.create.available": "可用",
diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.json
index f40b3f565ee..b215f3c7f3b 100644
--- a/locales/zh-TW/chat.json
+++ b/locales/zh-TW/chat.json
@@ -702,8 +702,10 @@
"pageCopilot.title": "文稿助手",
"pageSelection.lines": "第 {{start}}-{{end}} 行",
"pageSelection.reference": "選取的文字",
- "permission.configAccess.agentChatOnly": "只有具有「可編輯」權限的協作者才能配置此代理。您已被返回到聊天。",
- "permission.configAccess.groupChatOnly": "只有具有「可編輯」權限的協作者才能配置此代理群組。您已被返回到聊天。",
+ "permission.configAccess.agentChatOnly": "您只能使用此代理,無法進行配置。您已返回聊天。",
+ "permission.configAccess.agentRoleRestricted": "您的工作區角色無法配置代理。您已返回聊天。",
+ "permission.configAccess.groupChatOnly": "您只能使用此代理群組,無法進行配置。您已返回聊天。",
+ "permission.configAccess.groupRoleRestricted": "您的工作區角色無法配置代理群組。您已返回聊天。",
"pin": "置頂",
"pinOff": "取消置頂",
"platformAgent.create.available": "可用",
diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json
index dffd001d969..e8165b70cf7 100644
--- a/locales/zh-TW/setting.json
+++ b/locales/zh-TW/setting.json
@@ -2324,6 +2324,7 @@
"workspace.member.removeConfirm.title": "移除工作區成員",
"workspace.member.removeSuccess": "成員已成功從工作區移除。",
"workspace.member.roles.admin": "管理員",
+ "workspace.member.roles.adminDescription": "管理成員、設定、使用情況和共享配置,但無法管理帳單、工作區刪除、所有權轉移或其他成員的內容。",
"workspace.member.roles.basicBadge": "基本",
"workspace.member.roles.freeBadge": "免費",
"workspace.member.roles.member": "成員",
@@ -2478,6 +2479,7 @@
"workspace.onboarding.toast.failed": "無法保存。請重試。",
"workspace.onboarding.toast.installAgentsFailed": "無法添加選定的代理。您可以稍後從市場中安裝它們。",
"workspace.onboarding.toast.saved": "已保存",
+ "workspace.permission.requiresAdmin": "只有工作區管理員和擁有者可以執行此操作。如果需要更改,請聯繫管理員。",
"workspace.permission.requiresMember": "您無權執行此操作。請要求工作區擁有者授予您成員或更高級別的權限。",
"workspace.permission.requiresOwner": "只有工作區擁有者可以執行此操作。請要求擁有者更改此設置。",
"workspace.permission.requiresPrimaryOwner": "只有主要擁有者可以刪除此工作區。如果需要,請先轉移主要所有權。",
diff --git a/locales/zh-TW/verify.json b/locales/zh-TW/verify.json
index 664b05195e3..b781822119b 100644
--- a/locales/zh-TW/verify.json
+++ b/locales/zh-TW/verify.json
@@ -68,6 +68,8 @@
"acceptance.filter.needsFix": "需要修復 {{count}}",
"acceptance.filter.pending": "待審查 {{count}}",
"acceptance.filter.roundAll": "所有回合",
+ "acceptance.focus.back": "返回概覽",
+ "acceptance.focus.evidenceHint": "檢視此檢查的接受標準、證據和回饋。",
"acceptance.goalCollapse": "收起驗收目標",
"acceptance.goalEdit": "編輯接受目標",
"acceptance.goalExpand": "展開驗收目標",
@@ -100,6 +102,7 @@
"acceptance.ledger.title": "回合分類帳",
"acceptance.ledger.viewReport": "查看回合報告",
"acceptance.origin.agentFallback": "代理",
+ "acceptance.origin.backToRuns": "返回執行記錄",
"acceptance.origin.openTopic": "打開主題",
"acceptance.reject.description": "您的原因將成為下一次修復回合的輸入;這不是一條被動評論。",
"acceptance.reject.placeholder": "描述在此交付被接受之前必須更改的內容。",
diff --git a/packages/database/src/models/__tests__/agent.test.ts b/packages/database/src/models/__tests__/agent.test.ts
index f0463514335..6e6d4e92ad6 100644
--- a/packages/database/src/models/__tests__/agent.test.ts
+++ b/packages/database/src/models/__tests__/agent.test.ts
@@ -1361,6 +1361,60 @@ describe('AgentModel', () => {
expect(personalAgent.agencyConfig).toBeNull();
});
+ // LOBE-12374: builtin slugs decide both `getBuiltinAgent` resolution and, for
+ // the collaborative ones, workspace-level permissions — a caller-supplied slug
+ // must never be able to claim one (group member batch-create, imports, market
+ // installs all pass `slug` through).
+ it('should drop a reserved builtin slug supplied by a caller', async () => {
+ const agent = await agentModel.create({ slug: 'agent-builder', title: 'Squatter' });
+
+ expect(agent.slug).not.toBe('agent-builder');
+ expect(agent.slug).toBeTruthy();
+ });
+
+ it('should keep an ordinary caller-supplied slug', async () => {
+ const agent = await agentModel.create({ slug: 'my-own-slug', title: 'Mine' });
+
+ expect(agent.slug).toBe('my-own-slug');
+ });
+
+ // Identity / scope / provisioning fields feed authorization, so no update may
+ // carry them — otherwise the edit access granted on a collaborative builtin
+ // could declassify, orphan or rehome it.
+ it('should drop immutable identity fields on update and updateConfig', async () => {
+ const agent = await agentModel.create({ slug: 'ordinary-slug', title: 'Renamer' });
+
+ await agentModel.update(agent.id, {
+ slug: 'agent-builder',
+ title: 'Renamed',
+ userId: userId2,
+ virtual: true,
+ } as Partial<NewAgent>);
+ const afterUpdate = await serverDB.query.agents.findFirst({
+ where: eq(agents.id, agent.id),
+ });
+ expect(afterUpdate?.slug).toBe('ordinary-slug');
+ expect(afterUpdate?.userId).toBe(userId);
+ expect(afterUpdate?.virtual).toBe(false);
+ // the mutable field in the same patch still lands
+ expect(afterUpdate?.title).toBe('Renamed');
+
+ await agentModel.updateConfig(agent.id, {
+ slug: 'inbox',
+ virtual: true,
+ visibility: 'private',
+ workspaceId: null,
+ } as Partial<NewAgent>);
+ const afterUpdateConfig = await serverDB.query.agents.findFirst({
+ where: eq(agents.id, agent.id),
+ });
+ expect(afterUpdateConfig?.slug).toBe('ordinary-slug');
+ expect(afterUpdateConfig?.virtual).toBe(false);
+ // `visibility` has its own creator/owner-gated endpoints — a config patch
+ // must not be able to hide a shared row from everyone else.
+ expect(afterUpdateConfig?.visibility).toBe('public');
+ });
+
it('should create a virtual agent without session', async () => {
const config = {
title: 'Virtual Agent',
@@ -1457,6 +1511,16 @@ describe('AgentModel', () => {
});
describe('batchCreate', () => {
+ it('should drop reserved builtin slugs in a batch', async () => {
+ const created = await agentModel.batchCreate([
+ { slug: 'inbox', title: 'Squatter A' },
+ { slug: 'fine-slug', title: 'Legit B' },
+ ]);
+
+ expect(created.find((a) => a.title === 'Squatter A')?.slug).not.toBe('inbox');
+ expect(created.find((a) => a.title === 'Legit B')?.slug).toBe('fine-slug');
+ });
+
it('should preserve explicit workspace selection policies over the defaults', async () => {
const [workspace] = await serverDB
.insert(workspaces)
diff --git a/packages/database/src/models/agent.ts b/packages/database/src/models/agent.ts
index daffdcbc153..4e2b6fdff42 100644
--- a/packages/database/src/models/agent.ts
+++ b/packages/database/src/models/agent.ts
@@ -88,6 +88,39 @@ const AGENT_BUILDER_PROTECTED_FIELDS = [
'systemRole',
] as const;
+/**
+ * Fields that define a row's identity, scope and provisioning status. Every one of
+ * them feeds authorization — `slug` + `virtual` classify collaborative builtins,
+ * `userId` is authorship, `workspaceId` is the tenancy boundary, and `visibility`
+ * has dedicated creator/owner-gated endpoints — so an update must never carry them. `updateConfig` merges whatever the passthrough config endpoint
+ * receives, which would otherwise let a member with edit access declassify, orphan
+ * or rehome a shared builtin through the very path that was opened for editing it.
+ *
+ * Creation is different: it legitimately assigns `slug` (random by default) and
+ * takes `userId` / `workspaceId` from the trusted context via
+ * `buildWorkspacePayload`, so only reserved slugs are filtered there.
+ */
+const IMMUTABLE_AGENT_FIELDS = [
+ 'createdAt',
+ 'id',
+ 'slug',
+ 'userId',
+ 'virtual',
+ // `visibility` has its own authorization rules (`setVisibility` is creator /
+ // workspace-owner gated, `publishToWorkspace` is creator-only), so it must not
+ // ride along in a config patch: a member with edit access on a collaborative
+ // builtin could otherwise flip it to `private`, hiding the shared row from
+ // everyone else while its workspace slug stays occupied — nothing can
+ // reprovision it.
+ 'visibility',
+ 'workspaceId',
+] as const;
+
+/** Slugs owned by builtin provisioning; user input must never set one. */
+const RESERVED_AGENT_SLUGS: ReadonlySet<string> = new Set<string>(
+ Object.values(BUILTIN_AGENT_SLUGS),
+);
+
export class AgentModel {
private userId: string;
private db: LobeChatDatabase;
@@ -843,11 +876,42 @@ export class AgentModel {
);
};
+ /**
+ * Builtin slugs are not decoration: `getBuiltinAgent` resolves infrastructure
+ * agents BY slug, and authorization treats the collaborative ones as workspace
+ * resources (`canPerformResourceAction`). A user-created row must therefore
+ * never claim one — otherwise a member could squat `inbox` / `agent-builder`
+ * before the real row is provisioned and have their own agent adopted as the
+ * workspace's, with the shared-resource permissions that come with it.
+ *
+ * Every user-controlled write funnels through `create` / `batchCreate` (group
+ * member batch-create takes a caller-supplied `slug`, as do imports and market
+ * installs) or through `update` / `updateConfig` (the passthrough config
+ * endpoint accepts one too — renaming an existing row is the same squat).
+ * Builtin provisioning bypasses all four by inserting/updating directly inside
+ * `getBuiltinAgent`, so dropping the field here closes every caller path at
+ * once; on create the column's own default then assigns a random slug.
+ */
+ private stripImmutableFields = <T extends Record<string, any>>(data: T): T => {
+ const carried = IMMUTABLE_AGENT_FIELDS.filter((field) => field in data);
+ if (carried.length === 0) return data;
+
+ const next = { ...data };
+ for (const field of carried) delete next[field];
+ return next;
+ };
+
+ private stripReservedSlug = <T extends { slug?: string | null }>(config: T): T => {
+ if (!config.slug || !RESERVED_AGENT_SLUGS.has(config.slug)) return config;
+ return { ...config, slug: undefined };
+ };
+
/**
* Create an agent record only (without creating a session).
* This is used for creating virtual agents (e.g., group chat members).
*/
- create = async (config: Partial<AgentItem>): Promise<AgentItem> => {
+ create = async (input: Partial<AgentItem>): Promise<AgentItem> => {
+ const config = this.stripReservedSlug(input);
const agencyConfig = this.withWorkspaceSelectionPolicyDefaults(config.agencyConfig);
await this.assertWorkspaceDeviceBinding(this.workspaceId ?? null, agencyConfig);
@@ -878,7 +942,7 @@ export class AgentModel {
if (configs.length === 0) return [];
const normalizedConfigs = configs.map((config) => ({
- ...config,
+ ...this.stripReservedSlug(config),
agencyConfig: this.withWorkspaceSelectionPolicyDefaults(config.agencyConfig),
}));
@@ -906,7 +970,10 @@ export class AgentModel {
};
update = async (agentId: string, data: Partial<AgentItem>) => {
- const sanitizedData = await this.stripAgentBuilderProtectedFields(agentId, data);
+ const sanitizedData = await this.stripAgentBuilderProtectedFields(
+ agentId,
+ this.stripImmutableFields(data),
+ );
return this.db
.update(agents)
@@ -1105,8 +1172,10 @@ export class AgentModel {
return result?.id ?? null;
};
- updateConfig = async (agentId: string, data: PartialDeep<AgentItem> | undefined | null) => {
- if (!data || Object.keys(data).length === 0) return;
+ updateConfig = async (agentId: string, input: PartialDeep<AgentItem> | undefined | null) => {
+ if (!input || Object.keys(input).length === 0) return;
+
+ const data = this.stripImmutableFields(input);
const agent = await this.db.query.agents.findFirst({
where: and(eq(agents.id, agentId), this.ownership()),
diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.ts
index 39e9fe4e57b..3b3d90177e4 100644
--- a/packages/locales/src/default/chat.ts
+++ b/packages/locales/src/default/chat.ts
@@ -39,9 +39,13 @@ export default {
'agentNotFound.desc':
'This agent does not exist or is no longer accessible — it may have been deleted or set to private by its owner.',
'permission.configAccess.agentChatOnly':
- 'Only collaborators with Can edit can configure this Agent. You were returned to chat.',
+ 'You can only use this Agent, not configure it. You were returned to chat.',
+ 'permission.configAccess.agentRoleRestricted':
+ 'Your workspace role cannot configure Agents. You were returned to chat.',
'permission.configAccess.groupChatOnly':
- 'Only collaborators with Can edit can configure this Agent Group. You were returned to chat.',
+ 'You can only use this Agent Group, not configure it. You were returned to chat.',
+ 'permission.configAccess.groupRoleRestricted':
+ 'Your workspace role cannot configure Agent Groups. You were returned to chat.',
'agentNotFound.title': 'Agent Unavailable',
'groupNotFound.desc':
'This group does not exist or is no longer accessible — it may have been deleted or set to private by its owner.',
diff --git a/src/features/DevDock/registerBuiltinItems.ts b/src/features/DevDock/registerBuiltinItems.ts
index a63be50cbf6..beee311b515 100644
--- a/src/features/DevDock/registerBuiltinItems.ts
+++ b/src/features/DevDock/registerBuiltinItems.ts
@@ -13,6 +13,12 @@ export const registerBuiltinDevDockItems = () => {
placement: 'left',
type: 'widget',
},
+ {
+ id: 'locale',
+ load: () => import('./widgets/LocaleWidget'),
+ placement: 'left',
+ type: 'widget',
+ },
{
icon: Bot,
id: 'agent-mock',
diff --git a/src/features/DevDock/widgets/BarButton.tsx b/src/features/DevDock/widgets/BarButton.tsx
index 787b087b89c..a660af05baa 100644
--- a/src/features/DevDock/widgets/BarButton.tsx
+++ b/src/features/DevDock/widgets/BarButton.tsx
@@ -4,7 +4,11 @@ import { createStaticStyles, cssVar } from 'antd-style';
import type { LucideIcon } from 'lucide-react';
import { memo } from 'react';
-const styles = createStaticStyles(({ css }) => ({
+/**
+ * Shared with the dropdown-style widgets (locale / workspace role), whose
+ * trigger has to be a plain element instead of a `<button>` with `onClick`.
+ */
+export const barButtonStyles = createStaticStyles(({ css }) => ({
button: css`
cursor: pointer;
@@ -36,7 +40,7 @@ interface BarButtonProps {
}
const BarButton = memo<BarButtonProps>(({ icon: Icon, label, onClick }) => (
- <button className={styles.button} type={'button'} onClick={onClick}>
+ <button className={barButtonStyles.button} type={'button'} onClick={onClick}>
<Icon size={11} />
<span>{label}</span>
</button>
diff --git a/src/features/DevDock/widgets/LocaleWidget.tsx b/src/features/DevDock/widgets/LocaleWidget.tsx
new file mode 100644
index 00000000000..2bc3fa27e6f
--- /dev/null
+++ b/src/features/DevDock/widgets/LocaleWidget.tsx
@@ -0,0 +1,54 @@
+'use client';
+
+import { DropdownMenu, type DropdownMenuCheckboxItem } from '@lobehub/ui/base-ui';
+import { Languages } from 'lucide-react';
+import { memo, useMemo } from 'react';
+
+import { localeOptions } from '@/locales/resources';
+import { useGlobalStore } from '@/store/global';
+import { globalGeneralSelectors } from '@/store/global/selectors';
+import type { LocaleMode } from '@/types/locale';
+
+import { barButtonStyles } from './BarButton';
+
+const LocaleWidget = memo(() => {
+ const language = useGlobalStore(globalGeneralSelectors.language);
+ const switchLocale = useGlobalStore((s) => s.switchLocale);
+
+ const items = useMemo<DropdownMenuCheckboxItem[]>(() => {
+ const options: { label: string; value: LocaleMode }[] = [
+ { label: 'Follow system', value: 'auto' },
+ ...localeOptions.map((item) => ({ label: item.label, value: item.value })),
+ ];
+
+ return options.map((option) => ({
+ checked: language === option.value,
+ closeOnClick: true,
+ key: option.value,
+ // Dev tool — the locale code is what you actually want to read here, the
+ // native name is only there to tell the CJK variants apart at a glance.
+ label: `${option.value} · ${option.label}`,
+ onCheckedChange: (checked: boolean) => {
+ if (checked) switchLocale(option.value);
+ },
+ type: 'checkbox' as const,
+ }));
+ }, [language, switchLocale]);
+
+ return (
+ <DropdownMenu
+ items={items}
+ placement={'topLeft'}
+ popupProps={{ style: { maxHeight: 360, minWidth: 180, overflow: 'auto' } }}
+ >
+ <span className={barButtonStyles.button} title={'Switch language'}>
+ <Languages size={11} />
+ <span>{language}</span>
+ </span>
+ </DropdownMenu>
+ );
+});
+
+LocaleWidget.displayName = 'DevDockLocaleWidget';
+
+export default LocaleWidget;
diff --git a/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx b/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx
index 49f67f75e5a..e8f6063e80e 100644
--- a/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx
+++ b/src/features/ResourcePermission/ResourceConfigAccessGate.test.tsx
@@ -5,6 +5,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import ResourceConfigAccessGate from './ResourceConfigAccessGate';
const mocks = vi.hoisted(() => ({
+ canEditContent: true,
+ canEditResource: false,
navigate: vi.fn(),
toastInfo: vi.fn(),
}));
@@ -18,36 +20,75 @@ vi.mock('@/components/Loading/BrandTextLoading', () => ({ default: () => null })
vi.mock('@/features/Workspace/useWorkspaceAwareNavigate', () => ({
useWorkspaceAwareNavigate: () => mocks.navigate,
}));
-vi.mock('@/hooks/usePermission', () => ({ usePermission: () => ({ allowed: true }) }));
+vi.mock('@/hooks/usePermission', () => ({
+ usePermission: () => ({ allowed: mocks.canEditContent }),
+}));
vi.mock('./useResourceAccess', () => ({
useResourceAccess: () => ({
accessError: undefined,
- canEditResource: false,
+ canEditResource: mocks.canEditResource,
isAccessResolved: true,
isLoading: false,
retryAccess: vi.fn(),
}),
}));
+const renderGate = (resourceType: 'agent' | 'agentGroup' = 'agent') =>
+ render(
+ <ResourceConfigAccessGate
+ redirectPath="/agent/agent-1"
+ resourceId="agent-1"
+ resourceType={resourceType}
+ >
+ <div>Agent config</div>
+ </ResourceConfigAccessGate>,
+ );
+
describe('ResourceConfigAccessGate', () => {
beforeEach(() => {
vi.clearAllMocks();
+ mocks.canEditContent = true;
+ mocks.canEditResource = false;
});
it('uses workspace-aware navigation when returning a chat-only collaborator to chat', async () => {
- render(
- <ResourceConfigAccessGate
- redirectPath="/agent/agent-1"
- resourceId="agent-1"
- resourceType="agent"
- >
- <div>Agent config</div>
- </ResourceConfigAccessGate>,
- );
+ renderGate();
await waitFor(() => {
expect(mocks.navigate).toHaveBeenCalledWith('/agent/agent-1', { replace: true });
});
expect(mocks.toastInfo).toHaveBeenCalledWith('permission.configAccess.agentChatOnly');
});
+
+ // LOBE-12374: "only collaborators with Can edit" read as an authorship denial to
+ // users who had authored the resource; the two denial reasons are now distinct.
+ it('names the workspace role as the reason when the role cannot configure Agents', async () => {
+ mocks.canEditContent = false;
+ mocks.canEditResource = true;
+
+ renderGate();
+
+ await waitFor(() => {
+ expect(mocks.toastInfo).toHaveBeenCalledWith('permission.configAccess.agentRoleRestricted');
+ });
+ });
+
+ it('names the workspace role as the reason for agent groups too', async () => {
+ mocks.canEditContent = false;
+ mocks.canEditResource = true;
+
+ renderGate('agentGroup');
+
+ await waitFor(() => {
+ expect(mocks.toastInfo).toHaveBeenCalledWith('permission.configAccess.groupRoleRestricted');
+ });
+ });
+
+ it('keeps the resource-level message for a group the caller may only use', async () => {
+ renderGate('agentGroup');
+
+ await waitFor(() => {
+ expect(mocks.toastInfo).toHaveBeenCalledWith('permission.configAccess.groupChatOnly');
+ });
+ });
});
diff --git a/src/features/ResourcePermission/ResourceConfigAccessGate.tsx b/src/features/ResourcePermission/ResourceConfigAccessGate.tsx
index 231886b0033..25c1377a263 100644
--- a/src/features/ResourcePermission/ResourceConfigAccessGate.tsx
+++ b/src/features/ResourcePermission/ResourceConfigAccessGate.tsx
@@ -34,15 +34,31 @@ const ResourceConfigAccessGate = memo<ResourceConfigAccessGateProps>(
if (!accessReady || accessError || canConfigure || hasRedirected.current) return;
hasRedirected.current = true;
- toast.info(
- t(
- resourceType === 'agent'
- ? 'permission.configAccess.agentChatOnly'
- : 'permission.configAccess.groupChatOnly',
- ),
- );
+ // Name the actual reason: a workspace role that cannot configure Agents at
+ // all reads very differently from holding use-only access on this one
+ // resource, and conflating them made authors think their own Agent had
+ // rejected them (LOBE-12374).
+ const isRoleRestricted = !canEditContent;
+ const messageKey =
+ resourceType === 'agent'
+ ? isRoleRestricted
+ ? 'permission.configAccess.agentRoleRestricted'
+ : 'permission.configAccess.agentChatOnly'
+ : isRoleRestricted
+ ? 'permission.configAccess.groupRoleRestricted'
+ : 'permission.configAccess.groupChatOnly';
+ toast.info(t(messageKey));
navigate(redirectPath, { replace: true });
- }, [accessError, accessReady, canConfigure, navigate, redirectPath, resourceType, t]);
+ }, [
+ accessError,
+ accessReady,
+ canConfigure,
+ canEditContent,
+ navigate,
+ redirectPath,
+ resourceType,
+ t,
+ ]);
return (
<AsyncBoundary
diff --git a/src/features/WorkspaceSetting/hooks/useCategory.test.tsx b/src/features/WorkspaceSetting/hooks/useCategory.test.tsx
index d23a26cb976..20c3d93e1b5 100644
--- a/src/features/WorkspaceSetting/hooks/useCategory.test.tsx
+++ b/src/features/WorkspaceSetting/hooks/useCategory.test.tsx
@@ -18,8 +18,8 @@ vi.hoisted(() => {
});
const mocks = vi.hoisted(() => ({
- canManageSubscription: true,
canManageWorkspace: true,
+ canViewBilling: true,
}));
vi.mock('react-i18next', () => ({
@@ -30,8 +30,7 @@ vi.mock('react-i18next', () => ({
vi.mock('@/hooks/usePermission', () => ({
usePermission: (action: string) => ({
- allowed:
- action === 'manage_subscription' ? mocks.canManageSubscription : mocks.canManageWorkspace,
+ allowed: action === 'view_billing' ? mocks.canViewBilling : mocks.canManageWorkspace,
reason: '',
}),
}));
@@ -45,8 +44,8 @@ const getItemKeys = () => {
};
beforeEach(() => {
- mocks.canManageSubscription = true;
mocks.canManageWorkspace = true;
+ mocks.canViewBilling = true;
});
afterEach(() => {
@@ -108,8 +107,17 @@ describe('workspace settings useCategory', () => {
expect(itemKeys).not.toContain(WorkspaceSettingsTabs.APIKey);
});
- it('hides financial settings below Owner', () => {
- mocks.canManageSubscription = false;
+ // Admin-or-higher reads the billing numbers; the pages keep the
+ // money-moving controls behind the narrower manage_subscription gate.
+ it('shows Credits and Billing to roles that may view billing', () => {
+ const itemKeys = getItemKeys();
+
+ expect(itemKeys).toContain(WorkspaceSettingsTabs.Credits);
+ expect(itemKeys).toContain(WorkspaceSettingsTabs.Billing);
+ });
+
+ it('hides financial settings below Admin', () => {
+ mocks.canViewBilling = false;
const itemKeys = getItemKeys();
diff --git a/src/features/WorkspaceSetting/hooks/useCategory.tsx b/src/features/WorkspaceSetting/hooks/useCategory.tsx
index 797bfe9a36b..dcd384cb8cc 100644
--- a/src/features/WorkspaceSetting/hooks/useCategory.tsx
+++ b/src/features/WorkspaceSetting/hooks/useCategory.tsx
@@ -50,7 +50,7 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] =
const { t: tAuth } = useTranslation('auth');
const { t: tSubscription } = useTranslation('subscription');
const { allowed: canManageWorkspace } = usePermission('manage_settings');
- const { allowed: canManageSubscription } = usePermission('manage_subscription');
+ const { allowed: canViewBilling } = usePermission('view_billing');
const enableOAuthApps = useUserStore(labPreferSelectors.enableOAuthApps);
return useMemo(
@@ -99,12 +99,15 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] =
key: WorkspaceSettingsTabs.Usage,
label: t('tab.usage'),
},
- canManageSubscription && {
+ // Credits / Billing are readable by Admin-or-higher; the pages
+ // themselves keep the money-moving controls (top-up, payment
+ // methods, plan changes) behind the narrower subscription gate.
+ canViewBilling && {
icon: Coins,
key: WorkspaceSettingsTabs.Credits,
label: tSubscription('tab.credits'),
},
- canManageSubscription && {
+ canViewBilling && {
icon: CreditCard,
key: WorkspaceSettingsTabs.Billing,
label: tSubscription('tab.billing'),
@@ -187,6 +190,6 @@ export const useWorkspaceSettingCategory = (): WorkspaceSettingCategoryGroup[] =
title: t('workspaceSetting.group.admin'),
},
].filter(Boolean) as WorkspaceSettingCategoryGroup[],
- [t, tAuth, tSubscription, enableOAuthApps, canManageWorkspace, canManageSubscription],
+ [t, tAuth, tSubscription, enableOAuthApps, canManageWorkspace, canViewBilling],
);
};
diff --git a/src/routes/(main)/agent/profile/features/Header/index.test.tsx b/src/routes/(main)/agent/profile/features/Header/index.test.tsx
index 00c45dbd682..60ab7c53550 100644
--- a/src/routes/(main)/agent/profile/features/Header/index.test.tsx
+++ b/src/routes/(main)/agent/profile/features/Header/index.test.tsx
@@ -16,6 +16,7 @@ const mocks = vi.hoisted(() => ({
provider: 'openai',
},
isInbox: false,
+ isBuiltinAgent: false,
isCurrentAgentHeterogeneous: false,
meta: {
description: 'Test description',
@@ -210,6 +211,8 @@ vi.mock('@/store/agent/selectors', () => ({
state.isCurrentAgentHeterogeneous,
},
builtinAgentSelectors: {
+ isBuiltinAgent: (agentId?: string) => (state: typeof mocks.agentState) =>
+ !!agentId && !!state.isBuiltinAgent,
isInboxAgent: (state: typeof mocks.agentState) => state.isInbox,
},
}));
diff --git a/src/routes/(main)/agent/profile/features/Header/index.tsx b/src/routes/(main)/agent/profile/features/Header/index.tsx
index 644c71d0157..8c44376ee0d 100644
--- a/src/routes/(main)/agent/profile/features/Header/index.tsx
+++ b/src/routes/(main)/agent/profile/features/Header/index.tsx
@@ -135,7 +135,12 @@ const Header = memo(() => {
'agent',
showPermissionsEntry ? activeAgentId : undefined,
);
- const canManage = hasEditPermission && canManageResource;
+ // `canManageResource` also unlocks *configuring* the collaborative builtin
+ // rows (Lobe AI, the builders, the page agent) for any workspace member, but
+ // those rows can never be deleted or rehomed — the server rejects it, so the
+ // affordance must not be offered at all.
+ const isBuiltinAgent = useAgentStore(builtinAgentSelectors.isBuiltinAgent(activeAgentId));
+ const canManage = hasEditPermission && canManageResource && !isBuiltinAgent;
const handleDelete = useCallback(() => {
if (!canManage || !activeAgentId) return;
diff --git a/src/store/agent/selectors/builtinAgentSelectors.test.ts b/src/store/agent/selectors/builtinAgentSelectors.test.ts
index d892ce1c795..0ddd743b2a3 100644
--- a/src/store/agent/selectors/builtinAgentSelectors.test.ts
+++ b/src/store/agent/selectors/builtinAgentSelectors.test.ts
@@ -169,4 +169,51 @@ describe('builtinAgentSelectors', () => {
expect(builtinAgentSelectors.isInboxAgent(state)).toBe(false);
});
});
+
+ // LOBE-12374: workspace members may now *configure* the collaborative builtin
+ // rows, so ownership affordances (delete / transfer) have to be suppressed for
+ // them explicitly — the server still rejects those actions.
+ describe('isBuiltinAgent', () => {
+ const state = createState({
+ agentMap: {
+ 'agt_user_created': { slug: 'my-own-slug', virtual: false },
+ // legacy collision: reserved slug, but never provisioned
+ 'legacy-collision': { slug: 'agent-builder', virtual: false },
+ 'page-agent-row': { slug: 'page-agent', virtual: true },
+ // hydrated from the list payload, which carries neither marker
+ 'partially-hydrated': { title: 'From the list' },
+ },
+ builtinAgentIdMap: { [INBOX_SESSION_ID]: 'inbox-agent', 'agent-builder': 'builder-agent' },
+ });
+
+ it('should classify a hydrated row by slug + virtual', () => {
+ // `page-agent` is absent from `builtinAgentIdMap` — this is the case that
+ // used to leak a Delete action onto a builtin profile opened directly.
+ expect(builtinAgentSelectors.isBuiltinAgent('page-agent-row')(state)).toBe(true);
+ expect(builtinAgentSelectors.isBuiltinAgent('agt_user_created')(state)).toBe(false);
+ });
+
+ // Matches the server: a reserved slug alone does not make a row infrastructure,
+ // so its owner keeps the ownership actions.
+ it('should treat a non-provisioned reserved-slug row as ordinary', () => {
+ expect(builtinAgentSelectors.isBuiltinAgent('legacy-collision')(state)).toBe(false);
+ });
+
+ it('should fall back to the init map when the row lacks the markers', () => {
+ expect(builtinAgentSelectors.isBuiltinAgent('partially-hydrated')(state)).toBe(false);
+ });
+
+ it('should fall back to the init map when the row is not hydrated', () => {
+ expect(builtinAgentSelectors.isBuiltinAgent('inbox-agent')(state)).toBe(true);
+ expect(builtinAgentSelectors.isBuiltinAgent('builder-agent')(state)).toBe(true);
+ });
+
+ it('should return false for an unknown agent', () => {
+ expect(builtinAgentSelectors.isBuiltinAgent('agt_never_seen')(state)).toBe(false);
+ });
+
+ it('should return false without an agent id', () => {
+ expect(builtinAgentSelectors.isBuiltinAgent(undefined)(state)).toBe(false);
+ });
+ });
});
diff --git a/src/store/agent/selectors/builtinAgentSelectors.ts b/src/store/agent/selectors/builtinAgentSelectors.ts
index d9e597a0a96..19f15648df6 100644
--- a/src/store/agent/selectors/builtinAgentSelectors.ts
+++ b/src/store/agent/selectors/builtinAgentSelectors.ts
@@ -53,6 +53,38 @@ const isInboxAgent = (s: AgentStoreState) => {
return !!id && s.activeAgentId === id;
};
+/** Every provisioned builtin slug, for classifying a hydrated agent row. */
+const BUILTIN_SLUG_SET: ReadonlySet<string> = new Set<string>([
+ ...Object.values(BUILTIN_AGENT_SLUGS),
+ INBOX_SESSION_ID,
+]);
+
+/**
+ * Whether `agentId` is one of the builtin agent rows (inbox, the builders, the
+ * page/task agents, …). Ownership actions must never be offered for these: they
+ * are provisioned infrastructure, so deleting or rehoming one would break the
+ * workspace (or the personal account) rather than remove user content.
+ *
+ * Read from the hydrated row's own `slug` + `virtual` — the same pair the server
+ * uses (`isCollaborativeBuiltinAgent`), so a legacy ordinary agent that merely
+ * holds a reserved slug stays ordinary here too and keeps its owner's Delete
+ * action. `builtinAgentIdMap` only holds the builtins this session happened to
+ * initialize, so opening e.g. `/agent/<page-agent-id>/profile` without having
+ * visited the Page editor would otherwise misclassify a real builtin as ordinary
+ * content; it remains the fallback for rows whose config is not hydrated (the
+ * agent *list* payload carries neither marker).
+ */
+const isBuiltinAgent = (agentId?: string) => (s: AgentStoreState) => {
+ if (!agentId) return false;
+
+ const agent = s.agentMap[agentId];
+ if (agent?.slug && agent.virtual !== undefined) {
+ return agent.virtual === true && BUILTIN_SLUG_SET.has(agent.slug);
+ }
+
+ return Object.values(s.builtinAgentIdMap).includes(agentId);
+};
+
/**
* Get web onboarding agent id (convenience selector)
*/
@@ -72,6 +104,7 @@ export const builtinAgentSelectors = {
getBuiltinAgentId,
groupAgentBuilderId,
inboxAgentId,
+ isBuiltinAgent,
isBuiltinAgentInit,
isInboxAgent,
isInboxAgentConfigInit,
diff --git a/src/store/home/slices/homeInput/action.test.ts b/src/store/home/slices/homeInput/action.test.ts
index 3a2abf84ab5..c47e4c3d1d5 100644
--- a/src/store/home/slices/homeInput/action.test.ts
+++ b/src/store/home/slices/homeInput/action.test.ts
@@ -18,17 +18,27 @@ const createGroupMock = vi.hoisted(() => vi.fn());
const loadGroupsMock = vi.hoisted(() => vi.fn());
const createDocumentMock = vi.hoisted(() => vi.fn());
+const enabledModels = vi.hoisted(() => ({
+ isInit: true,
+ list: [{ id: 'deepseek-v4-pro', provider: 'lobehub' }],
+}));
+
const agentState = vi.hoisted(() => ({
agentConfigMap: {
+ agentBuilder: { model: 'deepseek-v4-pro', provider: 'lobehub' },
+ groupAgentBuilder: { model: 'deepseek-v4-pro', provider: 'lobehub' },
inbox: {
model: 'gpt-4o-mini',
provider: 'openai',
},
+ pageAgent: { model: 'deepseek-v4-pro', provider: 'lobehub' },
},
agentMap: {
- agentBuilder: {},
- groupAgentBuilder: {},
- pageAgent: {},
+ // Personal-mode rows by default; a test flips `workspaceId` on to assert the
+ // workspace-shared behaviour.
+ agentBuilder: {} as { workspaceId?: string },
+ groupAgentBuilder: {} as { workspaceId?: string },
+ pageAgent: {} as { workspaceId?: string },
},
builtinAgentIdMap: {
'agent-builder': 'agentBuilder',
@@ -65,7 +75,27 @@ vi.mock('@/store/agent', () => ({
getAgentStoreState: () => agentState,
}));
+vi.mock('@/store/aiInfra', () => ({
+ getAiInfraStoreState: () => enabledModels,
+}));
+
+vi.mock('@/store/aiInfra/selectors', () => ({
+ aiModelSelectors: {
+ getEnabledModelById: (id: string, provider: string) => (s: typeof enabledModels) =>
+ s.list.find((m) => m.id === id && m.provider === provider),
+ },
+ aiProviderSelectors: {
+ isInitAiProviderRuntimeState: (s: typeof enabledModels) => s.isInit,
+ },
+}));
+
vi.mock('@/store/agent/selectors', () => ({
+ agentByIdSelectors: {
+ getAgentById:
+ (id: string) =>
+ (state: typeof agentState): { workspaceId?: string } | undefined =>
+ state.agentMap[id as keyof typeof state.agentMap],
+ },
agentSelectors: {
getAgentConfigById:
(id: string) =>
@@ -139,6 +169,12 @@ describe('HomeInputActionImpl', () => {
},
});
createDocumentMock.mockResolvedValue({ id: 'doc-new' });
+ for (const key of ['agentBuilder', 'groupAgentBuilder', 'pageAgent'] as const) {
+ delete agentState.agentMap[key].workspaceId;
+ agentState.agentConfigMap[key] = { model: 'deepseek-v4-pro', provider: 'lobehub' };
+ }
+ enabledModels.list = [{ id: 'deepseek-v4-pro', provider: 'lobehub' }];
+ enabledModels.isInit = true;
});
describe('sendAsAgent', () => {
@@ -191,6 +227,63 @@ describe('HomeInputActionImpl', () => {
}),
);
});
+
+ // LOBE-12374: a personal builtin is the user's own row, so it keeps following
+ // the inbox model; the workspace-scoped row of the same slug is shared by
+ // every member and must never be repointed.
+ it('keeps syncing model/provider onto a personal agent builder', async () => {
+ const action = createAction();
+
+ await action.sendAsAgent({ message: 'build a support agent' });
+
+ expect(updateAgentConfigByIdMock).toHaveBeenCalledWith('agentBuilder', {
+ model: 'gpt-4o-mini',
+ provider: 'openai',
+ });
+ // the newly created Agent still inherits the inbox model/provider
+ expect(createAgentMock).toHaveBeenCalledWith(
+ expect.objectContaining({
+ config: expect.objectContaining({ systemRole: 'build a support agent' }),
+ }),
+ );
+ });
+
+ it('never writes model/provider onto a workspace-shared agent builder', async () => {
+ agentState.agentMap.agentBuilder.workspaceId = 'ws-1';
+ const action = createAction();
+
+ await action.sendAsAgent({ message: 'build a support agent' });
+
+ expect(updateAgentConfigByIdMock).not.toHaveBeenCalled();
+ });
+
+ // A shared row pointing at a model this deployment cannot invoke would fail
+ // the builder request outright, so it is repaired once rather than left broken.
+ // A pre-hydration model catalog makes every model look unusable; repairing then
+ // would overwrite the workspace's model on a race. Unknown must not mean invalid.
+ it('leaves a workspace-shared builder alone before the model catalog hydrates', async () => {
+ agentState.agentMap.agentBuilder.workspaceId = 'ws-1';
+ enabledModels.isInit = false;
+ enabledModels.list = [];
+ const action = createAction();
+
+ await action.sendAsAgent({ message: 'build a support agent' });
+
+ expect(updateAgentConfigByIdMock).not.toHaveBeenCalled();
+ });
+
+ it('repairs a workspace-shared builder whose own model is not invocable', async () => {
+ agentState.agentMap.agentBuilder.workspaceId = 'ws-1';
+ enabledModels.list = [{ id: 'gpt-4o-mini', provider: 'openai' }];
+ const action = createAction();
+
+ await action.sendAsAgent({ message: 'build a support agent' });
+
+ expect(updateAgentConfigByIdMock).toHaveBeenCalledWith('agentBuilder', {
+ model: 'gpt-4o-mini',
+ provider: 'openai',
+ });
+ });
});
describe('sendAsGroup', () => {
@@ -224,6 +317,26 @@ describe('HomeInputActionImpl', () => {
}),
);
});
+
+ it('keeps syncing model/provider onto a personal group agent builder', async () => {
+ const action = createAction();
+
+ await action.sendAsGroup({ message: 'build a research group' });
+
+ expect(updateAgentConfigByIdMock).toHaveBeenCalledWith('groupAgentBuilder', {
+ model: 'gpt-4o-mini',
+ provider: 'openai',
+ });
+ });
+
+ it('never writes model/provider onto a workspace-shared group agent builder', async () => {
+ agentState.agentMap.groupAgentBuilder.workspaceId = 'ws-1';
+ const action = createAction();
+
+ await action.sendAsGroup({ message: 'build a research group' });
+
+ expect(updateAgentConfigByIdMock).not.toHaveBeenCalled();
+ });
});
describe('sendAsWrite', () => {
@@ -244,6 +357,26 @@ describe('HomeInputActionImpl', () => {
);
});
+ it('keeps syncing model/provider onto a personal page agent', async () => {
+ const action = createAction();
+
+ await action.sendAsWrite({ message: 'write me a doc' });
+
+ expect(updateAgentConfigByIdMock).toHaveBeenCalledWith('pageAgent', {
+ model: 'gpt-4o-mini',
+ provider: 'openai',
+ });
+ });
+
+ it('never writes model/provider onto a workspace-shared page agent', async () => {
+ agentState.agentMap.pageAgent.workspaceId = 'ws-1';
+ const action = createAction();
+
+ await action.sendAsWrite({ message: 'write me a doc' });
+
+ expect(updateAgentConfigByIdMock).not.toHaveBeenCalled();
+ });
+
it('passes the workspace slug to the page agent message context', async () => {
const action = createAction();
diff --git a/src/store/home/slices/homeInput/action.ts b/src/store/home/slices/homeInput/action.ts
index c9dc98b1c66..d5be3384fb1 100644
--- a/src/store/home/slices/homeInput/action.ts
+++ b/src/store/home/slices/homeInput/action.ts
@@ -6,8 +6,10 @@ import { stableWorkspaceAwareNavigate } from '@/features/Workspace/stableWorkspa
import { chatGroupService } from '@/services/chatGroup';
import { documentService } from '@/services/document';
import { getAgentStoreState } from '@/store/agent';
-import { agentSelectors, builtinAgentSelectors } from '@/store/agent/selectors';
+import { agentByIdSelectors, agentSelectors, builtinAgentSelectors } from '@/store/agent/selectors';
import { getChatGroupStoreState } from '@/store/agentGroup';
+import { getAiInfraStoreState } from '@/store/aiInfra';
+import { aiModelSelectors, aiProviderSelectors } from '@/store/aiInfra/selectors';
import { useChatStore } from '@/store/chat';
import { useGlobalStore } from '@/store/global';
import { useGroupProfileStore } from '@/store/groupProfile';
@@ -47,6 +49,61 @@ const ensureBuiltinAgentHydrated = async (slug: string): Promise<string | undefi
return getAgentStoreState().builtinAgentIdMap[slug];
};
+/**
+ * Point a builtin helper agent (agent-builder / group-agent-builder / page-agent)
+ * at the model the user just picked in the inbox — but only when that row is the
+ * user's own.
+ *
+ * A personal-mode builtin is a private per-user row, so inheriting the inbox
+ * model is both safe and expected: without it the first builder request runs on
+ * the builtin's static default, which may name a provider the user never enabled.
+ *
+ * The workspace-scoped row of the same slug is shared by every member, so a
+ * personal preference must not repoint it — that write both broke for
+ * non-creators and silently changed the model for everyone else (LOBE-12374).
+ * The single exception is a shared row whose own model cannot be invoked in this
+ * deployment; leaving it would fail the request outright, so it is repaired once.
+ *
+ * Ownership is read off the hydrated row rather than a `workspaceSlug` argument,
+ * because some call sites (e.g. the command menu) omit that argument while still
+ * running inside a workspace.
+ */
+const syncBuiltinAgentModel = async (
+ builtinAgentId: string,
+ model?: string,
+ provider?: string,
+): Promise<void> => {
+ if (!model || !provider) return;
+
+ const state = getAgentStoreState();
+ const builtin = agentByIdSelectors.getAgentById(builtinAgentId)(state);
+
+ if (builtin?.workspaceId) {
+ // The shared row keeps whatever model the workspace configured — unless that
+ // model isn't invocable here (a provider this deployment never enabled, a
+ // retired model id), in which case the builder request would fail outright.
+ // Repair it once instead of leaving the flow broken.
+ const aiInfraState = getAiInfraStoreState();
+
+ // Before the provider runtime state hydrates, `enabledAiModels` is undefined
+ // and EVERY model would look unusable — repairing then would overwrite the
+ // workspace's model with this member's pick on a mere race. Unknown ≠ invalid.
+ if (!aiProviderSelectors.isInitAiProviderRuntimeState(aiInfraState)) return;
+
+ const builtinConfig = agentSelectors.getAgentConfigById(builtinAgentId)(state);
+ const currentModel = builtinConfig?.model;
+ const currentProvider = builtinConfig?.provider;
+ const isUsable =
+ !!currentModel &&
+ !!currentProvider &&
+ !!aiModelSelectors.getEnabledModelById(currentModel, currentProvider)(aiInfraState);
+
+ if (isUsable) return;
+ }
+
+ await state.updateAgentConfigById(builtinAgentId, { model, provider });
+};
+
type Setter = StoreSetter<HomeStore>;
export const createHomeInputSlice = (set: Setter, get: () => HomeStore, _api?: unknown) =>
new HomeInputActionImpl(set, get, _api);
@@ -122,7 +179,7 @@ export class HomeInputActionImpl {
// 4. Refresh agent list
this.#get().refreshAgentList();
- // 5. Update agentBuilder's model config and send initial message
+ // 5. Send the initial builder message
if (result.agentId) {
const { sendMessage } = useChatStore.getState();
// Ensure agentBuilder is loaded before reading its id — the host
@@ -130,12 +187,9 @@ export class HomeInputActionImpl {
// navigation completes, which would otherwise race with sendMessage.
const agentBuilderId = await ensureBuiltinAgentHydrated(BUILTIN_AGENT_SLUGS.agentBuilder);
- // Update agentBuilder's model to match inbox selection
- if (agentBuilderId && model && provider) {
- await agentState.updateAgentConfigById(agentBuilderId, { model, provider });
- }
-
if (agentBuilderId) {
+ await syncBuiltinAgentModel(agentBuilderId, model, provider);
+
await sendMessage({
context: {
agentId: agentBuilderId,
@@ -180,7 +234,7 @@ export class HomeInputActionImpl {
const model = inboxConfig?.model;
const provider = inboxConfig?.provider;
- // 2. Create new Group with inherited model/provider for orchestrator
+ // 2. Create new Group
const { group } = await chatGroupService.createGroup({
config: {
systemPrompt: message,
@@ -203,17 +257,14 @@ export class HomeInputActionImpl {
// 5. Navigate to Group profile page
stableWorkspaceAwareNavigate(`/group/${group.id}/profile`);
- // 6. Update groupAgentBuilder's model config and send initial message.
+ // 6. Send the initial builder message.
// Hydrate first so we don't race with the group profile page's own init.
const groupAgentBuilderId = await ensureBuiltinAgentHydrated(
BUILTIN_AGENT_SLUGS.groupAgentBuilder,
);
if (groupAgentBuilderId) {
- // Update groupAgentBuilder's model to match inbox selection
- if (model && provider) {
- await agentState.updateAgentConfigById(groupAgentBuilderId, { model, provider });
- }
+ await syncBuiltinAgentModel(groupAgentBuilderId, model, provider);
const { sendMessage } = useChatStore.getState();
await sendMessage({
@@ -276,15 +327,12 @@ export class HomeInputActionImpl {
// 3. Navigate to Page
stableWorkspaceAwareNavigate(`/page/${newDoc.id}`);
- // 4. Update pageAgent's model config and send initial message. Hydrate
- // first to avoid the same race the agent/group flows hit.
+ // 4. Send the initial page-agent message. Hydrate first to avoid the same
+ // race the agent/group flows hit.
const pageAgentId = await ensureBuiltinAgentHydrated(BUILTIN_AGENT_SLUGS.pageAgent);
if (pageAgentId) {
- // Update pageAgent's model to match inbox selection
- if (model && provider) {
- await agentState.updateAgentConfigById(pageAgentId, { model, provider });
- }
+ await syncBuiltinAgentModel(pageAgentId, model, provider);
const { sendMessage } = useChatStore.getState();
await sendMessage({