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): fix shared-topic sender identity, share access and agent move (#18533)

Rdmclin25f06dd6ccaa6
diff --git a/apps/server/src/routers/lambda/__tests__/integration/topicShare.integration.test.ts b/apps/server/src/routers/lambda/__tests__/integration/topicShare.integration.test.ts
index 62865e8f007..723517d6868 100644
--- a/apps/server/src/routers/lambda/__tests__/integration/topicShare.integration.test.ts
+++ b/apps/server/src/routers/lambda/__tests__/integration/topicShare.integration.test.ts
@@ -1,6 +1,7 @@
// @vitest-environment node
import { type LobeChatDatabase } from '@lobechat/database';
import {
+ agents,
topics,
workspaceAuditLogs,
workspaceMembers,
@@ -40,6 +41,8 @@ describe('Topic Share Router Integration Tests (workspace permission matrix)', (
let ownerId: string;
let workspaceId: string;
let topicId: string;
+ let privateTopicId: string;
+ let unboundTopicId: string;
beforeEach(async () => {
serverDB = await getTestDB();
@@ -65,11 +68,52 @@ describe('Topic Share Router Integration Tests (workspace permission matrix)', (
{ role: 'owner', userId: ownerId, workspaceId },
]);
+ // Share management follows the topic's conversation, so the topics must be
+ // bound to one: a shared agent (every member holds `use` by default) and a
+ // private one (nobody but its creator can reach it).
+ const [sharedAgent] = await serverDB
+ .insert(agents)
+ .values({
+ slug: `share-perm-shared-${creatorId.slice(0, 8)}`,
+ userId: creatorId,
+ visibility: 'public',
+ workspaceId,
+ })
+ .returning();
+ const [privateAgent] = await serverDB
+ .insert(agents)
+ .values({
+ slug: `share-perm-private-${creatorId.slice(0, 8)}`,
+ userId: creatorId,
+ visibility: 'private',
+ workspaceId,
+ })
+ .returning();
+
const [topic] = await serverDB
.insert(topics)
- .values({ title: 'WS Perm Topic', userId: creatorId, workspaceId })
+ .values({ agentId: sharedAgent.id, title: 'WS Perm Topic', userId: creatorId, workspaceId })
.returning();
topicId = topic.id;
+
+ const [privateTopic] = await serverDB
+ .insert(topics)
+ .values({
+ agentId: privateAgent.id,
+ title: 'WS Private Topic',
+ userId: creatorId,
+ workspaceId,
+ })
+ .returning();
+ privateTopicId = privateTopic.id;
+
+ // Legacy shape: no agent, no group, no session — nothing for the
+ // conversation guard to resolve.
+ const [unboundTopic] = await serverDB
+ .insert(topics)
+ .values({ title: 'WS Unbound Topic', userId: creatorId, workspaceId })
+ .returning();
+ unboundTopicId = unboundTopic.id;
});
afterEach(async () => {
@@ -87,7 +131,7 @@ describe('Topic Share Router Integration Tests (workspace permission matrix)', (
where: eq(workspaceAuditLogs.workspaceId, workspaceId),
});
- describe('management permission: creator + workspace owner only', () => {
+ describe('management permission: co-editing rule (same gate as updateTopic)', () => {
it('creator can enable and switch their own share', async () => {
const caller = topicRouter.createCaller(createWorkspaceContext(creatorId, workspaceId));
@@ -98,7 +142,7 @@ describe('Topic Share Router Integration Tests (workspace permission matrix)', (
expect(updated?.visibility).toBe('link');
});
- it("another member cannot manage the creator's share", async () => {
+ it("a co-editing member can manage the creator's share", async () => {
const creatorCaller = topicRouter.createCaller(
createWorkspaceContext(creatorId, workspaceId),
);
@@ -106,17 +150,53 @@ describe('Topic Share Router Integration Tests (workspace permission matrix)', (
const memberCaller = topicRouter.createCaller(createWorkspaceContext(memberId, workspaceId));
+ // A member who may edit the conversation may share it: gating on the
+ // creator instead left co-editors staring at a button that always 403'd.
+ const updated = await memberCaller.updateShareVisibility({ topicId, visibility: 'link' });
+ expect(updated?.visibility).toBe('link');
+ await expect(memberCaller.disableSharing({ topicId })).resolves.not.toThrow();
+ });
+
+ it('a member without access to the conversation cannot manage its share', async () => {
+ const creatorCaller = topicRouter.createCaller(
+ createWorkspaceContext(creatorId, workspaceId),
+ );
+ await creatorCaller.enableSharing({ topicId: privateTopicId, visibility: 'private' });
+
+ const memberCaller = topicRouter.createCaller(createWorkspaceContext(memberId, workspaceId));
+
await expect(
- memberCaller.updateShareVisibility({ topicId, visibility: 'link' }),
+ memberCaller.updateShareVisibility({ topicId: privateTopicId, visibility: 'link' }),
).rejects.toMatchObject({ code: 'FORBIDDEN' });
- await expect(memberCaller.disableSharing({ topicId })).rejects.toMatchObject({
+ await expect(memberCaller.disableSharing({ topicId: privateTopicId })).rejects.toMatchObject({
code: 'FORBIDDEN',
});
await expect(
- memberCaller.enableSharing({ topicId, visibility: 'link' }),
+ memberCaller.enableSharing({ topicId: privateTopicId, visibility: 'link' }),
).rejects.toMatchObject({ code: 'FORBIDDEN' });
});
+ it('a member cannot share a topic that backs no conversation', async () => {
+ // The co-editing guard resolves zero resources here, and a share link
+ // reaches further than an edit — so it falls back to creator-or-owner
+ // instead of letting every member publish the conversation.
+ const memberCaller = topicRouter.createCaller(createWorkspaceContext(memberId, workspaceId));
+
+ await expect(
+ memberCaller.enableSharing({ topicId: unboundTopicId, visibility: 'link' }),
+ ).rejects.toMatchObject({ code: 'FORBIDDEN' });
+ });
+
+ it('workspace owner can still share a topic that backs no conversation', async () => {
+ const ownerCaller = topicRouter.createCaller(createWorkspaceContext(ownerId, workspaceId));
+
+ const created = await ownerCaller.enableSharing({
+ topicId: unboundTopicId,
+ visibility: 'private',
+ });
+ expect(created?.topicId).toBe(unboundTopicId);
+ });
+
it("workspace owner can manage a member's share", async () => {
const creatorCaller = topicRouter.createCaller(
createWorkspaceContext(creatorId, workspaceId),
diff --git a/apps/server/src/routers/lambda/__tests__/topicShare.router.test.ts b/apps/server/src/routers/lambda/__tests__/topicShare.router.test.ts
new file mode 100644
index 00000000000..e7200b25e47
--- /dev/null
+++ b/apps/server/src/routers/lambda/__tests__/topicShare.router.test.ts
@@ -0,0 +1,194 @@
+// @vitest-environment node
+import { TRPCError } from '@trpc/server';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+// serverDatabase middleware calls getServerDB(); stub it (the model mocks
+// ignore the db handle anyway).
+vi.mock('@/database/core/db-adaptor', () => ({
+ getServerDB: vi.fn(() => ({})),
+}));
+
+const mockTopicFindById = vi.fn();
+vi.mock('@/database/models/topic', () => ({
+ TopicModel: vi.fn(() => ({ findById: mockTopicFindById })),
+}));
+
+const mockShareCreate = vi.fn();
+const mockShareGetByTopicId = vi.fn();
+const mockShareUpdateVisibility = vi.fn();
+const mockShareDeleteByTopicId = vi.fn();
+vi.mock('@/database/models/topicShare', () => ({
+ TopicShareModel: vi.fn(() => ({
+ create: mockShareCreate,
+ deleteByTopicId: mockShareDeleteByTopicId,
+ getByTopicId: mockShareGetByTopicId,
+ updateVisibility: mockShareUpdateVisibility,
+ })),
+}));
+
+const mockAuditCreate = vi.fn();
+vi.mock('@/database/models/workspaceAuditLog', () => ({
+ WorkspaceAuditLogModel: vi.fn(() => ({ create: mockAuditCreate })),
+}));
+
+const mockHasPermission = vi.fn();
+vi.mock('@/database/models/rbac', () => ({
+ RbacModel: vi.fn(() => ({ hasPermission: mockHasPermission })),
+}));
+
+const mockAssertCanUseTopicTargets = vi.fn();
+vi.mock('../_helpers/conversationResourceGuard', async (importOriginal) => {
+ const actual = await importOriginal<any>();
+ return {
+ ...actual,
+ assertCanUseTopicTargets: (...args: unknown[]) => mockAssertCanUseTopicTargets(...args),
+ };
+});
+
+const { topicRouter } = await import('../topic');
+
+const creatorId = 'user-creator';
+const memberId = 'user-member';
+const workspaceId = 'ws-1';
+const topicId = 'topic-1';
+/** A topic backed by a real conversation resolves to at least one target. */
+const RESOLVED_CONVERSATION = [{ meta: {}, resourceId: 'agt_1', resourceType: 'agent' }];
+
+describe('topic share management gate', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ mockTopicFindById.mockResolvedValue({ id: topicId, userId: creatorId });
+ mockShareGetByTopicId.mockResolvedValue(null);
+ mockShareCreate.mockResolvedValue({ id: 'share-1', topicId, visibility: 'private' });
+ mockShareUpdateVisibility.mockResolvedValue({ id: 'share-1', topicId, visibility: 'link' });
+ mockAssertCanUseTopicTargets.mockResolvedValue(RESOLVED_CONVERSATION);
+ mockHasPermission.mockResolvedValue(false);
+ });
+
+ describe('enableSharing', () => {
+ it('allows a workspace member with co-edit access on the topic', async () => {
+ mockAssertCanUseTopicTargets.mockResolvedValue(RESOLVED_CONVERSATION);
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ const result = await caller.enableSharing({ topicId });
+
+ expect(mockAssertCanUseTopicTargets).toHaveBeenCalledWith(
+ expect.objectContaining({ userId: memberId, workspaceId }),
+ [topicId],
+ );
+ expect(mockShareCreate).toHaveBeenCalledWith(topicId, undefined);
+ expect(result).toEqual({ id: 'share-1', topicId, visibility: 'private' });
+ });
+
+ it('rejects a workspace member without co-edit access', async () => {
+ mockAssertCanUseTopicTargets.mockRejectedValue(
+ new TRPCError({ code: 'FORBIDDEN', message: 'no use access' }),
+ );
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ await expect(caller.enableSharing({ topicId })).rejects.toMatchObject({
+ code: 'FORBIDDEN',
+ });
+ expect(mockShareCreate).not.toHaveBeenCalled();
+ });
+
+ it('skips the co-edit guard for the topic creator', async () => {
+ const caller = topicRouter.createCaller({ userId: creatorId, workspaceId } as any);
+
+ await caller.enableSharing({ topicId });
+
+ expect(mockAssertCanUseTopicTargets).not.toHaveBeenCalled();
+ expect(mockShareCreate).toHaveBeenCalledWith(topicId, undefined);
+ });
+
+ it('skips the guard entirely in personal mode', async () => {
+ const caller = topicRouter.createCaller({ userId: memberId } as any);
+
+ await caller.enableSharing({ topicId });
+
+ expect(mockTopicFindById).not.toHaveBeenCalled();
+ expect(mockAssertCanUseTopicTargets).not.toHaveBeenCalled();
+ expect(mockShareCreate).toHaveBeenCalledWith(topicId, undefined);
+ });
+
+ it('rejects a member on a topic that backs no conversation at all', async () => {
+ // Legacy row: no agent, no group, no resolvable session — the co-editing
+ // guard has nothing to check and would otherwise pass for everyone.
+ mockAssertCanUseTopicTargets.mockResolvedValue([]);
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ await expect(caller.enableSharing({ topicId })).rejects.toMatchObject({
+ code: 'FORBIDDEN',
+ });
+ expect(mockShareCreate).not.toHaveBeenCalled();
+ });
+
+ it('still lets a workspace owner share a topic that backs no conversation', async () => {
+ mockAssertCanUseTopicTargets.mockResolvedValue([]);
+ mockHasPermission.mockResolvedValue(true);
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ await caller.enableSharing({ topicId });
+
+ expect(mockShareCreate).toHaveBeenCalledWith(topicId, undefined);
+ });
+
+ it('throws NOT_FOUND when the topic does not exist in the workspace', async () => {
+ mockTopicFindById.mockResolvedValue(null);
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ await expect(caller.enableSharing({ topicId })).rejects.toMatchObject({
+ code: 'NOT_FOUND',
+ });
+ });
+ });
+
+ describe('updateShareVisibility', () => {
+ it('allows a workspace member with co-edit access', async () => {
+ mockAssertCanUseTopicTargets.mockResolvedValue(RESOLVED_CONVERSATION);
+ mockShareGetByTopicId.mockResolvedValue({ id: 'share-1', topicId, visibility: 'private' });
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ const result = await caller.updateShareVisibility({ topicId, visibility: 'link' });
+
+ expect(mockAssertCanUseTopicTargets).toHaveBeenCalledWith(
+ expect.objectContaining({ userId: memberId, workspaceId }),
+ [topicId],
+ );
+ expect(result).toEqual({ id: 'share-1', topicId, visibility: 'link' });
+ // private -> link transition is audited
+ expect(mockAuditCreate).toHaveBeenCalledWith(
+ expect.objectContaining({ action: 'resource.shared', userId: memberId }),
+ );
+ });
+
+ it('rejects a workspace member without co-edit access', async () => {
+ mockAssertCanUseTopicTargets.mockRejectedValue(
+ new TRPCError({ code: 'FORBIDDEN', message: 'no use access' }),
+ );
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ await expect(
+ caller.updateShareVisibility({ topicId, visibility: 'link' }),
+ ).rejects.toMatchObject({ code: 'FORBIDDEN' });
+ expect(mockShareUpdateVisibility).not.toHaveBeenCalled();
+ });
+ });
+
+ describe('disableSharing', () => {
+ it('allows a workspace member with co-edit access', async () => {
+ mockAssertCanUseTopicTargets.mockResolvedValue(RESOLVED_CONVERSATION);
+ mockShareGetByTopicId.mockResolvedValue({ id: 'share-1', topicId, visibility: 'link' });
+ mockShareDeleteByTopicId.mockResolvedValue({ rowCount: 1 });
+ const caller = topicRouter.createCaller({ userId: memberId, workspaceId } as any);
+
+ await caller.disableSharing({ topicId });
+
+ expect(mockAssertCanUseTopicTargets).toHaveBeenCalledWith(
+ expect.objectContaining({ userId: memberId, workspaceId }),
+ [topicId],
+ );
+ expect(mockShareDeleteByTopicId).toHaveBeenCalledWith(topicId);
+ });
+ });
+});
diff --git a/apps/server/src/routers/lambda/_helpers/conversationResourceGuard.ts b/apps/server/src/routers/lambda/_helpers/conversationResourceGuard.ts
index bd00b716a4e..7424c73bdfb 100644
--- a/apps/server/src/routers/lambda/_helpers/conversationResourceGuard.ts
+++ b/apps/server/src/routers/lambda/_helpers/conversationResourceGuard.ts
@@ -187,9 +187,9 @@ const assertCanAccessTopicTargets = async (
ctx: ConversationGuardCtx,
topicIds: string[],
action: 'use' | 'view',
-): Promise<void> => {
+): Promise<ResolvedConversationTarget[]> => {
const workspaceId = ctx.workspaceId ?? undefined;
- if (!workspaceId) return;
+ if (!workspaceId) return [];
const resolved = await resolveTopicTargets(ctx, topicIds);
for (const { meta, resourceId, resourceType } of resolved) {
@@ -204,19 +204,29 @@ const assertCanAccessTopicTargets = async (
workspaceId,
});
}
+
+ return resolved;
};
-/** Resolve topic ids to their owning agent/group and assert `use` access. */
+/**
+ * Resolve topic ids to their owning agent/group and assert `use` access.
+ *
+ * Returns the conversation resources it actually checked. An EMPTY result is
+ * not an approval: a topic with no agent, group or resolvable session backs no
+ * resource, so there was nothing to gate on. Callers whose mutation reaches
+ * beyond the conversation — publishing a share link, say — must fail closed on
+ * that instead of reading the vacuous pass as authorization.
+ */
export const assertCanUseTopicTargets = async (
ctx: ConversationGuardCtx,
topicIds: string[],
-): Promise<void> => assertCanAccessTopicTargets(ctx, topicIds, 'use');
+): Promise<ResolvedConversationTarget[]> => assertCanAccessTopicTargets(ctx, topicIds, 'use');
/** Resolve topic ids to their owning agent/group and assert `view` access. */
export const assertCanViewTopicTargets = async (
ctx: ConversationGuardCtx,
topicIds: string[],
-): Promise<void> => assertCanAccessTopicTargets(ctx, topicIds, 'view');
+): Promise<ResolvedConversationTarget[]> => assertCanAccessTopicTargets(ctx, topicIds, 'view');
/**
* Resolve one set of topic resources, then evaluate every active recipient
diff --git a/apps/server/src/routers/lambda/topic.ts b/apps/server/src/routers/lambda/topic.ts
index 158d6d75175..35b71f1f8a5 100644
--- a/apps/server/src/routers/lambda/topic.ts
+++ b/apps/server/src/routers/lambda/topic.ts
@@ -90,10 +90,18 @@ interface TopicShareCtx {
}
/**
- * Workspace share management is creator + workspace-owner only: a member may
- * manage shares of their own topics; managing someone else's requires the
- * `:all` scope (workspace owner). Personal mode needs no extra check — the
- * model's ownership filter already scopes mutations to the caller.
+ * Workspace share management follows the co-editing rule (same gate as
+ * `updateTopic`): any member with `use`-level General access on the topic's
+ * conversation may manage its share by default — view-only members stay
+ * read-only. Personal mode needs no extra check — the model's ownership
+ * filter already scopes mutations to the caller.
+ *
+ * A topic that backs no conversation at all (legacy rows carrying neither an
+ * agent, a group, nor a resolvable session) resolves to zero targets, so the
+ * guard would pass for every member. Sharing is a wider grant than editing —
+ * a link exposes the whole conversation to anyone holding it — so those fall
+ * back to the stricter creator-or-workspace-owner rule rather than inheriting
+ * the vacuous pass.
*/
const assertCanManageTopicShare = async (ctx: TopicShareCtx, topicId: string) => {
if (!ctx.workspaceId) return;
@@ -104,6 +112,9 @@ const assertCanManageTopicShare = async (ctx: TopicShareCtx, topicId: string) =>
}
if (topic.userId === ctx.userId) return;
+ const guardedConversations = await assertCanUseTopicTargets(guardCtx(ctx), [topicId]);
+ if (guardedConversations.length > 0) return;
+
const isWorkspaceAdmin = await new RbacModel(ctx.serverDB, ctx.userId).hasPermission(
`${PERMISSION_ACTIONS.TOPIC_UPDATE}:all`,
{ workspaceId: ctx.workspaceId },
diff --git a/locales/ar/chat.json b/locales/ar/chat.json
index ac3ee855444..64baccff442 100644
--- a/locales/ar/chat.json
+++ b/locales/ar/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "اسأل، ابحث، أو فكر. @ لإحضار وكلاء آخرين.",
"sendPlaceholderHeterogeneous": "اطلب من {{name}} تنفيذ مهمة...",
"sendPlaceholderWithAgentAssignment": "اطلب أو أنشئ أو ابدأ مهمة. @ لإسناد مهام لوكلاء آخرين.",
+ "sender.unknownMember": "عضو",
"sessionGroup.config": "إدارة المجموعة",
"sessionGroup.confirmRemoveGroupAlert": "سيتم حذف هذه المجموعة. بعد الحذف، سيتم نقل الوكلاء إلى القائمة الافتراضية. يرجى تأكيد العملية.",
"sessionGroup.createAgentSuccess": "تم إنشاء الوكيل بنجاح",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "فشل إنشاء PDF",
"shareModal.pdfReady": "PDF جاهز",
"shareModal.popover.export": "تصدير",
+ "shareModal.popover.loadError": "فشل في تحميل إعدادات المشاركة، يرجى المحاولة مرة أخرى لاحقًا",
"shareModal.popover.privacyWarning.confirm": "أفهم، المتابعة",
"shareModal.popover.privacyWarning.content": "يرجى التأكد من أن محادثتك لا تحتوي على أي معلومات شخصية أو حساسة. أنت المسؤول عن أي محتوى تختار مشاركته وما يترتب عليه من نتائج.",
"shareModal.popover.privacyWarning.doNotShowAgain": "لا تُظهر هذا مرة أخرى",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "الذهاب إلى LobeHub",
"sharePage.menu.more": "المزيد",
"sharePage.menu.report": "الإبلاغ",
+ "sharePage.meta.pageDescription": "صفحة تمت مشاركتها من {{appName}}.",
+ "sharePage.meta.topicDescription": "محادثة تمت مشاركتها من {{appName}}.",
"sharePage.pill.edit": "تعديل",
"sharePage.pill.openInApp": "افتح في {{appName}}",
"sharePage.pill.sharedVia": "تمت المشاركة عبر {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "بلا عنوان",
"taskDetail.topicMenu.copyId": "نسخ معرف الموضوع",
"taskDetail.topicMenu.copyOperationId": "نسخ معرف العملية",
+ "taskDetail.topicMenu.delete": "حذف التشغيل",
+ "taskDetail.topicMenu.deleteConfirm.content": "سيتم حذف هذا التشغيل ورسائله بشكل دائم. لا يمكن التراجع عن هذا الإجراء.",
+ "taskDetail.topicMenu.deleteConfirm.title": "حذف التشغيل؟",
"taskDetail.topicMenu.open": "فتح التشغيل",
"taskDetail.topicMenu.openAgentTopic": "الانتقال إلى محادثة الوكيل",
"taskDetail.topicMenu.stop": "إيقاف التشغيل",
diff --git a/locales/ar/setting.json b/locales/ar/setting.json
index 3d15d25902f..e22c5b63dfa 100644
--- a/locales/ar/setting.json
+++ b/locales/ar/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "الهاتف المحمول",
"apps.title": "اكتشف المزيد من الطرق لاستخدام LobeHub",
"artworkStudio.cancel": "إلغاء التوليد",
+ "artworkStudio.composition.avatar": "الصورة الرمزية",
+ "artworkStudio.composition.fullBody": "الجسم الكامل",
+ "artworkStudio.direction.placeholder": "أضف تفصيلاً — \"صبي يرتدي نظارات\"، \"ميكانيكي سايبربانك\" (اختياري)",
"artworkStudio.diyTitle": "اصنع بنفسك",
"artworkStudio.enableModel": "تفعيل نموذج",
- "artworkStudio.generate": "توليد صورة رمزية",
+ "artworkStudio.framePreview": "معاينة ما يظهر في المنزل",
+ "artworkStudio.generate.avatar": "إنشاء",
+ "artworkStudio.generate.characterSet": "إنشاء كلا الصورتين",
+ "artworkStudio.generate.fullBody": "إنشاء",
"artworkStudio.generateFailed": "تعذر توليد الصورة. حاول مرة أخرى.",
"artworkStudio.generateTitle": "توليد باستخدام الذكاء الاصطناعي",
"artworkStudio.generatingHint": "عادةً ما يستغرق هذا حوالي 60 ثانية. يمكنك متابعة التحرير أثناء الانتهاء.",
- "artworkStudio.lobeStyle": "أسلوب Lobe الرسمي",
- "artworkStudio.moreStyles": "المزيد من الأنماط",
"artworkStudio.noModel": "قم بتفعيل نموذج توليد الصور لاستخدام التوليد بنقرة واحدة.",
- "artworkStudio.recommended": "موصى به",
- "artworkStudio.style.clay": "طين ثلاثي الأبعاد",
- "artworkStudio.style.geometric": "هندسي مسطح",
+ "artworkStudio.preview.fullBody": "معاينة شخصية الجسم الكامل",
+ "artworkStudio.reference.remove": "إزالة المرجع",
+ "artworkStudio.reference.title": "المرجع",
+ "artworkStudio.remove": "إزالة",
+ "artworkStudio.style.anime": "أنمي",
+ "artworkStudio.style.lineArt": "خطوط مرسومة يدويًا",
"artworkStudio.style.lobe": "تميمة ثلاثية الأبعاد ناعمة مع خلفية بألوان جريئة",
+ "artworkStudio.style.painterly": "مرسوم يدويًا",
"artworkStudio.style.pixel": "فن البكسل",
- "artworkStudio.style.sticker": "ملصق",
- "artworkStudio.style.watercolor": "ألوان مائية",
+ "artworkStudio.style.title": "النمط",
"artworkStudio.upload": "رفع صورة",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · PNG شفاف ≤ 1 MB",
"checking": "جارٍ التحقق...",
"checkingPermissions": "جارٍ التحقق من الأذونات...",
"creds.actions.delete": "حذف",
diff --git a/locales/ar/verify.json b/locales/ar/verify.json
index ad5b7a103ee..b6d60f7bb27 100644
--- a/locales/ar/verify.json
+++ b/locales/ar/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "العودة إلى {{name}}",
"actions.cancel": "إلغاء",
"actions.delete": "حذف",
+ "actions.goToApp": "اذهب إلى {{name}}",
"badge.errored": "تعذر تشغيل الفحص",
"badge.failed": "فشل التحقق",
"badge.passed": "تم اجتياز التحقق",
diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.json
index aedd4485c90..a03c74d4426 100644
--- a/locales/bg-BG/chat.json
+++ b/locales/bg-BG/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Попитай, търси или генерирай идеи. @ за включване на други агенти.",
"sendPlaceholderHeterogeneous": "Помолете {{name}} да изпълни задача...",
"sendPlaceholderWithAgentAssignment": "Питайте, създайте или започнете задача. Използвайте @, за да възлагате задачи на други агенти.",
+ "sender.unknownMember": "Член",
"sessionGroup.config": "Управление на групата",
"sessionGroup.confirmRemoveGroupAlert": "Тази група ще бъде изтрита. След изтриването агентите ще бъдат преместени в списъка по подразбиране. Потвърдете действието си.",
"sessionGroup.createAgentSuccess": "Агентът е създаден успешно",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Грешка при генериране на PDF",
"shareModal.pdfReady": "PDF е готов",
"shareModal.popover.export": "Експорт",
+ "shareModal.popover.loadError": "Неуспешно зареждане на настройките за споделяне, моля опитайте отново по-късно",
"shareModal.popover.privacyWarning.confirm": "Разбирам, продължи",
"shareModal.popover.privacyWarning.content": "Моля, уверете се, че разговорът ви не съдържа лична или чувствителна информация. Вие носите отговорност за съдържанието, което решите да споделите, и за последствията от това.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Не показвай това отново",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Отиди в LobeHub",
"sharePage.menu.more": "Още",
"sharePage.menu.report": "Докладвай",
+ "sharePage.meta.pageDescription": "Страница, споделена от {{appName}}.",
+ "sharePage.meta.topicDescription": "Разговор, споделен от {{appName}}.",
"sharePage.pill.edit": "Редактиране",
"sharePage.pill.openInApp": "Отвори в {{appName}}",
"sharePage.pill.sharedVia": "Споделено чрез {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Без заглавие",
"taskDetail.topicMenu.copyId": "Копирай ID на темата",
"taskDetail.topicMenu.copyOperationId": "Копирай ID на операцията",
+ "taskDetail.topicMenu.delete": "Изтрий изпълнението",
+ "taskDetail.topicMenu.deleteConfirm.content": "Това изпълнение и неговите съобщения ще бъдат окончателно изтрити. Това действие не може да бъде отменено.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Изтриване на изпълнението?",
"taskDetail.topicMenu.open": "Отвори изпълнението",
"taskDetail.topicMenu.openAgentTopic": "Отиди към разговора с агента",
"taskDetail.topicMenu.stop": "Спри изпълнението",
diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.json
index ae3de8f319c..8df9d47f3af 100644
--- a/locales/bg-BG/setting.json
+++ b/locales/bg-BG/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Мобилно",
"apps.title": "Открийте повече начини да използвате LobeHub",
"artworkStudio.cancel": "Отказ от генериране",
+ "artworkStudio.composition.avatar": "Аватар",
+ "artworkStudio.composition.fullBody": "Цяло тяло",
+ "artworkStudio.direction.placeholder": "Добавете детайл — \"момче с очила\", \"киберпънк механик\" (по избор)",
"artworkStudio.diyTitle": "Създайте сами",
"artworkStudio.enableModel": "Активирайте модел",
- "artworkStudio.generate": "Генерирайте аватар",
+ "artworkStudio.framePreview": "Преглед на това, което се показва у дома",
+ "artworkStudio.generate.avatar": "Генерирай",
+ "artworkStudio.generate.characterSet": "Генерирай и двете изображения",
+ "artworkStudio.generate.fullBody": "Генерирай",
"artworkStudio.generateFailed": "Неуспешно генериране на изображението. Опитайте отново.",
"artworkStudio.generateTitle": "Генериране с AI",
"artworkStudio.generatingHint": "Това обикновено отнема около 60 секунди. Можете да продължите да редактирате, докато завърши.",
- "artworkStudio.lobeStyle": "Официален стил Lobe",
- "artworkStudio.moreStyles": "Още стилове",
"artworkStudio.noModel": "Активирайте модел за генериране на изображения, за да използвате генериране с едно кликване.",
- "artworkStudio.recommended": "Препоръчано",
- "artworkStudio.style.clay": "3D Глина",
- "artworkStudio.style.geometric": "Плоска Геометрия",
+ "artworkStudio.preview.fullBody": "Преглед на персонаж в цял ръст",
+ "artworkStudio.reference.remove": "Премахни референция",
+ "artworkStudio.reference.title": "Референция",
+ "artworkStudio.remove": "Премахни",
+ "artworkStudio.style.anime": "Аниме",
+ "artworkStudio.style.lineArt": "Ръчно рисувани линии",
"artworkStudio.style.lobe": "Мек 3D талисман с ярък цветен фон",
+ "artworkStudio.style.painterly": "Ръчно рисувано",
"artworkStudio.style.pixel": "Пиксел Арт",
- "artworkStudio.style.sticker": "Стикер",
- "artworkStudio.style.watercolor": "Акварел",
+ "artworkStudio.style.title": "Стил",
"artworkStudio.upload": "Качете изображение",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · прозрачен PNG ≤ 1 MB",
"checking": "Проверка...",
"checkingPermissions": "Проверка на разрешенията...",
"creds.actions.delete": "Изтрий",
diff --git a/locales/bg-BG/verify.json b/locales/bg-BG/verify.json
index dbea722efd1..76b6835e19f 100644
--- a/locales/bg-BG/verify.json
+++ b/locales/bg-BG/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Обратно към {{name}}",
"actions.cancel": "Отказ",
"actions.delete": "Изтриване",
+ "actions.goToApp": "Отиди на {{name}}",
"badge.errored": "Проверката не можа да бъде изпълнена",
"badge.failed": "Проверката не е успешна",
"badge.passed": "Проверката е успешна",
diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.json
index c883c820cbb..47b5d88acb0 100644
--- a/locales/de-DE/chat.json
+++ b/locales/de-DE/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Fragen, suchen oder brainstormen. @, um andere Agenten hinzuzuziehen.",
"sendPlaceholderHeterogeneous": "Bitte {{name}} eine Aufgabe erledigen...",
"sendPlaceholderWithAgentAssignment": "Fragen, erstellen oder eine Aufgabe starten. @, um Aufgaben anderen Agenten zuzuweisen.",
+ "sender.unknownMember": "Mitglied",
"sessionGroup.config": "Gruppenverwaltung",
"sessionGroup.confirmRemoveGroupAlert": "Diese Gruppe wird gelöscht. Die Agenten werden danach in die Standardliste verschoben. Bitte bestätigen Sie den Vorgang.",
"sessionGroup.createAgentSuccess": "Agent erfolgreich erstellt",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF-Generierung fehlgeschlagen",
"shareModal.pdfReady": "PDF ist bereit",
"shareModal.popover.export": "Exportieren",
+ "shareModal.popover.loadError": "Fehler beim Laden der Freigabeeinstellungen. Bitte versuchen Sie es später erneut.",
"shareModal.popover.privacyWarning.confirm": "Ich verstehe, weiter",
"shareModal.popover.privacyWarning.content": "Bitte stelle sicher, dass dein Gespräch keine persönlichen oder sensiblen Informationen enthält. Du bist für alle Inhalte, die du teilst, und deren Folgen verantwortlich.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Nicht mehr anzeigen",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Zu LobeHub gehen",
"sharePage.menu.more": "Mehr",
"sharePage.menu.report": "Melden",
+ "sharePage.meta.pageDescription": "Eine Seite, die von {{appName}} geteilt wurde.",
+ "sharePage.meta.topicDescription": "Ein Gespräch, das von {{appName}} geteilt wurde.",
"sharePage.pill.edit": "Bearbeiten",
"sharePage.pill.openInApp": "In {{appName}} öffnen",
"sharePage.pill.sharedVia": "Geteilt über {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Ohne Titel",
"taskDetail.topicMenu.copyId": "Themen-ID kopieren",
"taskDetail.topicMenu.copyOperationId": "Vorgangs-ID kopieren",
+ "taskDetail.topicMenu.delete": "Lauf löschen",
+ "taskDetail.topicMenu.deleteConfirm.content": "Dieser Lauf und seine Nachrichten werden dauerhaft gelöscht. Diese Aktion kann nicht rückgängig gemacht werden.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Lauf löschen?",
"taskDetail.topicMenu.open": "Ausführung öffnen",
"taskDetail.topicMenu.openAgentTopic": "Zur Agenten-Konversation wechseln",
"taskDetail.topicMenu.stop": "Ausführung stoppen",
diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json
index e62c6a7943c..ee3dd614873 100644
--- a/locales/de-DE/setting.json
+++ b/locales/de-DE/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Mobil",
"apps.title": "Entdecken Sie weitere Möglichkeiten, LobeHub zu nutzen",
"artworkStudio.cancel": "Generierung abbrechen",
+ "artworkStudio.composition.avatar": "Avatar",
+ "artworkStudio.composition.fullBody": "Ganzkörper",
+ "artworkStudio.direction.placeholder": "Füge ein Detail hinzu — \"ein Junge mit Brille\", \"Cyberpunk-Mechaniker\" (optional)",
"artworkStudio.diyTitle": "Erstellen Sie Ihr eigenes",
"artworkStudio.enableModel": "Ein Modell aktivieren",
- "artworkStudio.generate": "Avatar generieren",
+ "artworkStudio.framePreview": "Vorschau, was zu Hause angezeigt wird",
+ "artworkStudio.generate.avatar": "Erstellen",
+ "artworkStudio.generate.characterSet": "Beide Bilder erstellen",
+ "artworkStudio.generate.fullBody": "Erstellen",
"artworkStudio.generateFailed": "Das Bild konnte nicht generiert werden. Versuchen Sie es erneut.",
"artworkStudio.generateTitle": "Mit KI generieren",
"artworkStudio.generatingHint": "Dies dauert normalerweise etwa 60 Sekunden. Sie können währenddessen weiter bearbeiten.",
- "artworkStudio.lobeStyle": "Lobe offizieller Stil",
- "artworkStudio.moreStyles": "Weitere Stile",
"artworkStudio.noModel": "Aktivieren Sie ein Bildgenerierungsmodell, um die Ein-Klick-Generierung zu nutzen.",
- "artworkStudio.recommended": "Empfohlen",
- "artworkStudio.style.clay": "3D-Ton",
- "artworkStudio.style.geometric": "Flaches Geometrisch",
+ "artworkStudio.preview.fullBody": "Ganzkörper-Charaktervorschau",
+ "artworkStudio.reference.remove": "Referenz entfernen",
+ "artworkStudio.reference.title": "Referenz",
+ "artworkStudio.remove": "Entfernen",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Handgezeichnete Linien",
"artworkStudio.style.lobe": "Weiches 3D-Maskottchen mit einem kräftigen Farbhintergrund",
+ "artworkStudio.style.painterly": "Handgemalt",
"artworkStudio.style.pixel": "Pixelkunst",
- "artworkStudio.style.sticker": "Sticker",
- "artworkStudio.style.watercolor": "Aquarell",
+ "artworkStudio.style.title": "Stil",
"artworkStudio.upload": "Bild hochladen",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · transparenter PNG ≤ 1 MB",
"checking": "Überprüfung läuft...",
"checkingPermissions": "Berechtigungen werden überprüft...",
"creds.actions.delete": "Löschen",
diff --git a/locales/de-DE/verify.json b/locales/de-DE/verify.json
index d02749d9491..4f948810fde 100644
--- a/locales/de-DE/verify.json
+++ b/locales/de-DE/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Zurück zu {{name}}",
"actions.cancel": "Abbrechen",
"actions.delete": "Löschen",
+ "actions.goToApp": "Gehe zu {{name}}",
"badge.errored": "Überprüfung konnte nicht durchgeführt werden",
"badge.failed": "Prüfung fehlgeschlagen",
"badge.passed": "Prüfung bestanden",
diff --git a/locales/en-US/chat.json b/locales/en-US/chat.json
index c049814ab18..3ed194ab1b1 100644
--- a/locales/en-US/chat.json
+++ b/locales/en-US/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Ask, search, or brainstorm. @ to bring in other agents.",
"sendPlaceholderHeterogeneous": "Describe a task or ask a question to {{name}}",
"sendPlaceholderWithAgentAssignment": "Ask, create, or start a task. @ to assign tasks to other agents.",
+ "sender.unknownMember": "Member",
"sessionGroup.config": "Category Management",
"sessionGroup.confirmRemoveGroupAlert": "This category is about to be deleted. After deletion, the agents in this category will be moved to the default list. Please confirm your operation.",
"sessionGroup.createAgentSuccess": "Agent created successfully",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF generation failed",
"shareModal.pdfReady": "PDF is ready",
"shareModal.popover.export": "Export",
+ "shareModal.popover.loadError": "Failed to load sharing settings, please try again later",
"shareModal.popover.privacyWarning.confirm": "Share & copy link",
"shareModal.popover.privacyWarning.content": "Anyone with the link can open this whole conversation, so take a moment to make sure there's nothing here you'd rather keep private. A shared topic may include:",
"shareModal.popover.privacyWarning.doNotShowAgain": "Don't show this again",
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index 2f44f4af141..1495b0a2604 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -2441,7 +2441,7 @@
"workspace.general.transferAgents.modal.memberDesc": "Hands ownership to this member. They must accept before anything changes; settings and everyone’s conversations stay untouched.",
"workspace.general.transferAgents.modal.memberGroup": "Workspace members",
"workspace.general.transferAgents.modal.moveAgent": "Move Agent",
- "workspace.general.transferAgents.modal.moveAgentDesc": "You can move to personal or workspaces that have permission to create an agent. All associated data moves with the agent: topics, file and knowledge base links, scheduled jobs, and related tasks. Custom plugins may not be available and multi-agent group associations will be removed.",
+ "workspace.general.transferAgents.modal.moveAgentDesc": "You can move to personal or workspaces that have permission to create an agent. All associated data moves with the agent: topics, documents, custom plugins, file and knowledge base links, scheduled jobs, and related tasks. Multi-agent group associations will be removed, and moved connectors may need to be reauthorized.",
"workspace.general.transferAgents.modal.moveTitle": "Move",
"workspace.general.transferAgents.modal.noAgents": "No agents in this workspace",
"workspace.general.transferAgents.modal.requestSent": "Transfer request sent",
@@ -2455,7 +2455,7 @@
"workspace.general.transferAgents.modal.success": "{{count}} agent(s) moved",
"workspace.general.transferAgents.modal.title": "Move Agents",
"workspace.general.transferAgents.modal.transfer": "Move {{count}} agent(s)",
- "workspace.general.transferAgents.modal.warning": "Custom plugins may not be available and multi-agent group associations will be removed.",
+ "workspace.general.transferAgents.modal.warning": "Multi-agent group associations will be removed, and moved connectors may need to be reauthorized.",
"workspace.general.transferAgents.personalAccount": "Personal Account",
"workspace.general.transferPrimary.cta": "Transfer Ownership",
"workspace.general.transferPrimary.description": "Transfer the Owner role and billing responsibility to an Admin in this workspace.",
diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.json
index d40a4909f47..f8b73b54e0f 100644
--- a/locales/es-ES/chat.json
+++ b/locales/es-ES/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Pregunta, busca o genera ideas. @ para incluir a otros agentes.",
"sendPlaceholderHeterogeneous": "Pide a {{name}} que realice una tarea...",
"sendPlaceholderWithAgentAssignment": "Pregunta, crea o inicia una tarea. Usa @ para asignar tareas a otros agentes.",
+ "sender.unknownMember": "Miembro",
"sessionGroup.config": "Gestión de grupos",
"sessionGroup.confirmRemoveGroupAlert": "Este grupo está a punto de eliminarse. Después de la eliminación, los agentes de este grupo se moverán a la lista predeterminada. Por favor, confirma tu acción.",
"sessionGroup.createAgentSuccess": "Agente creado con éxito",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Error al generar el PDF",
"shareModal.pdfReady": "PDF listo",
"shareModal.popover.export": "Exportar",
+ "shareModal.popover.loadError": "No se pudieron cargar los ajustes de compartición, por favor inténtalo de nuevo más tarde",
"shareModal.popover.privacyWarning.confirm": "Entiendo, continuar",
"shareModal.popover.privacyWarning.content": "Asegúrate de que tu conversación no contenga información personal o sensible. Eres responsable del contenido que decidas compartir y de sus consecuencias.",
"shareModal.popover.privacyWarning.doNotShowAgain": "No mostrar esto de nuevo",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Ir a LobeHub",
"sharePage.menu.more": "Más",
"sharePage.menu.report": "Reportar",
+ "sharePage.meta.pageDescription": "Una página compartida desde {{appName}}.",
+ "sharePage.meta.topicDescription": "Una conversación compartida desde {{appName}}.",
"sharePage.pill.edit": "Editar",
"sharePage.pill.openInApp": "Abrir en {{appName}}",
"sharePage.pill.sharedVia": "Compartido vía {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Sin título",
"taskDetail.topicMenu.copyId": "Copiar ID del tema",
"taskDetail.topicMenu.copyOperationId": "Copiar ID de operación",
+ "taskDetail.topicMenu.delete": "Eliminar Ejecución",
+ "taskDetail.topicMenu.deleteConfirm.content": "Esta ejecución y sus mensajes se eliminarán permanentemente. Esta acción no se puede deshacer.",
+ "taskDetail.topicMenu.deleteConfirm.title": "¿Eliminar Ejecución?",
"taskDetail.topicMenu.open": "Abrir ejecución",
"taskDetail.topicMenu.openAgentTopic": "Ir a la conversación del agente",
"taskDetail.topicMenu.stop": "Detener ejecución",
diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json
index 2ef7ad2575b..a9b934eacaa 100644
--- a/locales/es-ES/setting.json
+++ b/locales/es-ES/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Móvil",
"apps.title": "Descubre más formas de usar LobeHub",
"artworkStudio.cancel": "Cancelar generación",
+ "artworkStudio.composition.avatar": "Avatar",
+ "artworkStudio.composition.fullBody": "Cuerpo completo",
+ "artworkStudio.direction.placeholder": "Añade un detalle — \"un chico con gafas\", \"mecánico ciberpunk\" (opcional)",
"artworkStudio.diyTitle": "Hazlo tú mismo",
"artworkStudio.enableModel": "Habilitar un modelo",
- "artworkStudio.generate": "Generar avatar",
+ "artworkStudio.framePreview": "Vista previa de lo que muestra el hogar",
+ "artworkStudio.generate.avatar": "Generar",
+ "artworkStudio.generate.characterSet": "Generar ambas imágenes",
+ "artworkStudio.generate.fullBody": "Generar",
"artworkStudio.generateFailed": "No se pudo generar la imagen. Inténtalo de nuevo.",
"artworkStudio.generateTitle": "Generar con IA",
"artworkStudio.generatingHint": "Esto suele tardar unos 60 segundos. Puedes seguir editando mientras se completa.",
- "artworkStudio.lobeStyle": "Estilo oficial de Lobe",
- "artworkStudio.moreStyles": "Más estilos",
"artworkStudio.noModel": "Habilita un modelo de generación de imágenes para usar la generación con un clic.",
- "artworkStudio.recommended": "Recomendado",
- "artworkStudio.style.clay": "Arcilla 3D",
- "artworkStudio.style.geometric": "Geométrico plano",
+ "artworkStudio.preview.fullBody": "Vista previa del personaje de cuerpo completo",
+ "artworkStudio.reference.remove": "Eliminar referencia",
+ "artworkStudio.reference.title": "Referencia",
+ "artworkStudio.remove": "Eliminar",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Líneas dibujadas a mano",
"artworkStudio.style.lobe": "Mascota 3D suave con un fondo de colores llamativos",
+ "artworkStudio.style.painterly": "Pintado a mano",
"artworkStudio.style.pixel": "Arte Pixel",
- "artworkStudio.style.sticker": "Pegatina",
- "artworkStudio.style.watercolor": "Acuarela",
+ "artworkStudio.style.title": "Estilo",
"artworkStudio.upload": "Subir imagen",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · PNG transparente ≤ 1 MB",
"checking": "Verificando...",
"checkingPermissions": "Verificando permisos...",
"creds.actions.delete": "Eliminar",
diff --git a/locales/es-ES/verify.json b/locales/es-ES/verify.json
index d301f936837..ee3f46e79d2 100644
--- a/locales/es-ES/verify.json
+++ b/locales/es-ES/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Volver a {{name}}",
"actions.cancel": "Cancelar",
"actions.delete": "Eliminar",
+ "actions.goToApp": "Ir a {{name}}",
"badge.errored": "La verificación no pudo ejecutarse",
"badge.failed": "Verificación fallida",
"badge.passed": "Verificación aprobada",
diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.json
index e77d97e1599..6eafa40b0ba 100644
--- a/locales/fa-IR/chat.json
+++ b/locales/fa-IR/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "بپرسید، جستجو کنید یا ایده‌پردازی کنید. @ برای آوردن نمایندگان دیگر.",
"sendPlaceholderHeterogeneous": "از {{name}} بخواهید کاری انجام دهد...",
"sendPlaceholderWithAgentAssignment": "بپرسید، ایجاد کنید، یا وظیفه‌ای شروع کنید. برای واگذاری وظیفه از @ استفاده کنید.",
+ "sender.unknownMember": "عضو",
"sessionGroup.config": "مدیریت گروه",
"sessionGroup.confirmRemoveGroupAlert": "این گروه در حال حذف است. پس از حذف، نماینده‌های این گروه به فهرست پیش‌فرض منتقل می‌شوند. لطفاً عملیات خود را تأیید کنید.",
"sessionGroup.createAgentSuccess": "نماینده با موفقیت ایجاد شد",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "تولید PDF ناموفق بود",
"shareModal.pdfReady": "PDF آماده است",
"shareModal.popover.export": "صادر کردن",
+ "shareModal.popover.loadError": "بارگذاری تنظیمات اشتراک‌گذاری ناموفق بود، لطفاً دوباره تلاش کنید",
"shareModal.popover.privacyWarning.confirm": "متوجه شدم، ادامه بده",
"shareModal.popover.privacyWarning.content": "لطفاً مطمئن شوید که گفتگوی شما حاوی اطلاعات شخصی یا حساس نیست. شما مسئول محتوایی هستید که برای اشتراک‌گذاری انتخاب می‌کنید و پیامدهای آن.",
"shareModal.popover.privacyWarning.doNotShowAgain": "دیگر این پیام را نمایش نده",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "رفتن به LobeHub",
"sharePage.menu.more": "بیشتر",
"sharePage.menu.report": "گزارش",
+ "sharePage.meta.pageDescription": "صفحه‌ای به اشتراک گذاشته شده از {{appName}}.",
+ "sharePage.meta.topicDescription": "گفتگویی به اشتراک گذاشته شده از {{appName}}.",
"sharePage.pill.edit": "ویرایش",
"sharePage.pill.openInApp": "باز کردن در {{appName}}",
"sharePage.pill.sharedVia": "به اشتراک گذاشته شده از طریق {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "بدون عنوان",
"taskDetail.topicMenu.copyId": "کپی کردن شناسه موضوع",
"taskDetail.topicMenu.copyOperationId": "کپی کردن شناسه عملیات",
+ "taskDetail.topicMenu.delete": "حذف اجرا",
+ "taskDetail.topicMenu.deleteConfirm.content": "این اجرا و پیام‌های آن به طور دائمی حذف خواهند شد. این عمل قابل بازگشت نیست.",
+ "taskDetail.topicMenu.deleteConfirm.title": "حذف اجرا؟",
"taskDetail.topicMenu.open": "باز کردن اجرا",
"taskDetail.topicMenu.openAgentTopic": "رفتن به مکالمه عامل",
"taskDetail.topicMenu.stop": "توقف اجرا",
diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.json
index 46fcce800c9..619e2846fca 100644
--- a/locales/fa-IR/setting.json
+++ b/locales/fa-IR/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "موبایل",
"apps.title": "راه‌های بیشتری برای استفاده از LobeHub کشف کنید",
"artworkStudio.cancel": "لغو تولید",
+ "artworkStudio.composition.avatar": "آواتار",
+ "artworkStudio.composition.fullBody": "تمام بدن",
+ "artworkStudio.direction.placeholder": "جزئیات اضافه کنید — «پسر با عینک»، «مکانیک سایبرپانک» (اختیاری)",
"artworkStudio.diyTitle": "خودتان بسازید",
"artworkStudio.enableModel": "فعال کردن یک مدل",
- "artworkStudio.generate": "تولید آواتار",
+ "artworkStudio.framePreview": "پیش‌نمایش آنچه در خانه نمایش داده می‌شود",
+ "artworkStudio.generate.avatar": "تولید",
+ "artworkStudio.generate.characterSet": "تولید هر دو تصویر",
+ "artworkStudio.generate.fullBody": "تولید",
"artworkStudio.generateFailed": "تصویر تولید نشد. دوباره تلاش کنید.",
"artworkStudio.generateTitle": "تولید با هوش مصنوعی",
"artworkStudio.generatingHint": "این معمولاً حدود ۶۰ ثانیه طول می‌کشد. می‌توانید در حین اتمام، به ویرایش ادامه دهید.",
- "artworkStudio.lobeStyle": "سبک رسمی Lobe",
- "artworkStudio.moreStyles": "سبک‌های بیشتر",
"artworkStudio.noModel": "برای استفاده از تولید با یک کلیک، یک مدل تولید تصویر را فعال کنید.",
- "artworkStudio.recommended": "پیشنهادی",
- "artworkStudio.style.clay": "خاک رس سه‌بعدی",
- "artworkStudio.style.geometric": "هندسی تخت",
+ "artworkStudio.preview.fullBody": "پیش‌نمایش شخصیت تمام بدن",
+ "artworkStudio.reference.remove": "حذف مرجع",
+ "artworkStudio.reference.title": "مرجع",
+ "artworkStudio.remove": "حذف",
+ "artworkStudio.style.anime": "انیمه",
+ "artworkStudio.style.lineArt": "خطوط دست‌کشیده",
"artworkStudio.style.lobe": "شخصیت سه‌بعدی نرم با پس‌زمینه رنگی برجسته",
+ "artworkStudio.style.painterly": "دست‌نقاشی شده",
"artworkStudio.style.pixel": "هنر پیکسلی",
- "artworkStudio.style.sticker": "برچسب",
- "artworkStudio.style.watercolor": "آبرنگ",
+ "artworkStudio.style.title": "سبک",
"artworkStudio.upload": "بارگذاری تصویر",
+ "artworkStudio.uploadSpec.avatar": "۱:۱ · PNG / JPG ≤ ۱ مگابایت",
+ "artworkStudio.uploadSpec.fullBody": "۳:۴ · PNG شفاف ≤ ۱ مگابایت",
"checking": "در حال بررسی...",
"checkingPermissions": "در حال بررسی مجوزها...",
"creds.actions.delete": "حذف",
diff --git a/locales/fa-IR/verify.json b/locales/fa-IR/verify.json
index e28e5bde0e6..8893d26d331 100644
--- a/locales/fa-IR/verify.json
+++ b/locales/fa-IR/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "بازگشت به {{name}}",
"actions.cancel": "لغو",
"actions.delete": "حذف",
+ "actions.goToApp": "برو به {{name}}",
"badge.errored": "بررسی اجرا نشد",
"badge.failed": "بررسی ناموفق",
"badge.passed": "بررسی موفق",
diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.json
index 684a3fe2854..2598d4f2124 100644
--- a/locales/fr-FR/chat.json
+++ b/locales/fr-FR/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Demandez, recherchez ou réfléchissez. @ pour faire intervenir d'autres agents.",
"sendPlaceholderHeterogeneous": "Demander à {{name}} d’effectuer une tâche...",
"sendPlaceholderWithAgentAssignment": "Demander, créer ou lancer une tâche. @ pour attribuer des tâches à d’autres agents.",
+ "sender.unknownMember": "Membre",
"sessionGroup.config": "Gestion de groupe",
"sessionGroup.confirmRemoveGroupAlert": "Ce groupe va être supprimé. Après suppression, les agents seront déplacés vers la liste par défaut. Veuillez confirmer votre action.",
"sessionGroup.createAgentSuccess": "Agent créé avec succès",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Échec de la génération du PDF",
"shareModal.pdfReady": "Le PDF est prêt",
"shareModal.popover.export": "Exporter",
+ "shareModal.popover.loadError": "Échec du chargement des paramètres de partage, veuillez réessayer plus tard",
"shareModal.popover.privacyWarning.confirm": "Je comprends, continuer",
"shareModal.popover.privacyWarning.content": "Veuillez vous assurer que votre conversation ne contient aucune information personnelle ou sensible. Vous êtes responsable du contenu que vous choisissez de partager et des conséquences qui en découlent.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Ne plus afficher ce message",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Aller à LobeHub",
"sharePage.menu.more": "Plus",
"sharePage.menu.report": "Signaler",
+ "sharePage.meta.pageDescription": "Une page partagée depuis {{appName}}.",
+ "sharePage.meta.topicDescription": "Une conversation partagée depuis {{appName}}.",
"sharePage.pill.edit": "Modifier",
"sharePage.pill.openInApp": "Ouvrir dans {{appName}}",
"sharePage.pill.sharedVia": "Partagé via {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Sans titre",
"taskDetail.topicMenu.copyId": "Copier l'ID du sujet",
"taskDetail.topicMenu.copyOperationId": "Copier l'ID de l'opération",
+ "taskDetail.topicMenu.delete": "Supprimer l'exécution",
+ "taskDetail.topicMenu.deleteConfirm.content": "Cette exécution et ses messages seront définitivement supprimés. Cette action est irréversible.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Supprimer l'exécution ?",
"taskDetail.topicMenu.open": "Ouvrir l'exécution",
"taskDetail.topicMenu.openAgentTopic": "Aller à la conversation de l'agent",
"taskDetail.topicMenu.stop": "Arrêter l'exécution",
diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json
index 1bc79f3afa4..9d222a7b335 100644
--- a/locales/fr-FR/setting.json
+++ b/locales/fr-FR/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Mobile",
"apps.title": "Découvrez plus de façons d'utiliser LobeHub",
"artworkStudio.cancel": "Annuler la génération",
+ "artworkStudio.composition.avatar": "Avatar",
+ "artworkStudio.composition.fullBody": "Corps entier",
+ "artworkStudio.direction.placeholder": "Ajoutez un détail — « un garçon avec des lunettes », « mécanicien cyberpunk » (facultatif)",
"artworkStudio.diyTitle": "Créez le vôtre",
"artworkStudio.enableModel": "Activer un modèle",
- "artworkStudio.generate": "Générer un avatar",
+ "artworkStudio.framePreview": "Aperçu de ce que montre l'accueil",
+ "artworkStudio.generate.avatar": "Générer",
+ "artworkStudio.generate.characterSet": "Générer les deux images",
+ "artworkStudio.generate.fullBody": "Générer",
"artworkStudio.generateFailed": "Impossible de générer l'image. Veuillez réessayer.",
"artworkStudio.generateTitle": "Générer avec l'IA",
"artworkStudio.generatingHint": "Cela prend généralement environ 60 secondes. Vous pouvez continuer à éditer pendant que cela se termine.",
- "artworkStudio.lobeStyle": "Style officiel Lobe",
- "artworkStudio.moreStyles": "Plus de styles",
"artworkStudio.noModel": "Activez un modèle de génération d'image pour utiliser la génération en un clic.",
- "artworkStudio.recommended": "Recommandé",
- "artworkStudio.style.clay": "Argile 3D",
- "artworkStudio.style.geometric": "Géométrique plat",
+ "artworkStudio.preview.fullBody": "Aperçu du personnage en pied",
+ "artworkStudio.reference.remove": "Supprimer la référence",
+ "artworkStudio.reference.title": "Référence",
+ "artworkStudio.remove": "Supprimer",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Lignes dessinées à la main",
"artworkStudio.style.lobe": "Mascotte 3D douce avec un arrière-plan coloré audacieux",
+ "artworkStudio.style.painterly": "Peint à la main",
"artworkStudio.style.pixel": "Art Pixel",
- "artworkStudio.style.sticker": "Autocollant",
- "artworkStudio.style.watercolor": "Aquarelle",
+ "artworkStudio.style.title": "Style",
"artworkStudio.upload": "Télécharger une image",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 Mo",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · PNG transparent ≤ 1 Mo",
"checking": "Vérification...",
"checkingPermissions": "Vérification des autorisations...",
"creds.actions.delete": "Supprimer",
diff --git a/locales/fr-FR/verify.json b/locales/fr-FR/verify.json
index 6fc2dff4ce3..787908fb34d 100644
--- a/locales/fr-FR/verify.json
+++ b/locales/fr-FR/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Retour à {{name}}",
"actions.cancel": "Annuler",
"actions.delete": "Supprimer",
+ "actions.goToApp": "Aller à {{name}}",
"badge.errored": "La vérification n'a pas pu être effectuée",
"badge.failed": "Échec de la vérification",
"badge.passed": "Vérification réussie",
diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.json
index 3819dad9d77..5581e63a87f 100644
--- a/locales/it-IT/chat.json
+++ b/locales/it-IT/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Chiedi, cerca o fai brainstorming. @ per coinvolgere altri agenti.",
"sendPlaceholderHeterogeneous": "Chiedi a {{name}} di svolgere un compito...",
"sendPlaceholderWithAgentAssignment": "Chiedi, crea o avvia un’attività. Usa @ per assegnare attività ad altri agenti.",
+ "sender.unknownMember": "Membro",
"sessionGroup.config": "Gestione gruppi",
"sessionGroup.confirmRemoveGroupAlert": "Questo gruppo sta per essere eliminato. Dopo l'eliminazione, gli agenti verranno spostati nella lista predefinita. Confermi l'operazione?",
"sessionGroup.createAgentSuccess": "Agente creato con successo",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Generazione PDF fallita",
"shareModal.pdfReady": "PDF pronto",
"shareModal.popover.export": "Esporta",
+ "shareModal.popover.loadError": "Impossibile caricare le impostazioni di condivisione, riprova più tardi",
"shareModal.popover.privacyWarning.confirm": "Ho capito, continua",
"shareModal.popover.privacyWarning.content": "Assicurati che la tua conversazione non contenga informazioni personali o sensibili. Sei responsabile del contenuto che scegli di condividere e delle sue conseguenze.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Non mostrare più questo messaggio",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Vai a LobeHub",
"sharePage.menu.more": "Altro",
"sharePage.menu.report": "Segnala",
+ "sharePage.meta.pageDescription": "Una pagina condivisa da {{appName}}.",
+ "sharePage.meta.topicDescription": "Una conversazione condivisa da {{appName}}.",
"sharePage.pill.edit": "Modifica",
"sharePage.pill.openInApp": "Apri in {{appName}}",
"sharePage.pill.sharedVia": "Condiviso tramite {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Senza titolo",
"taskDetail.topicMenu.copyId": "Copia ID Argomento",
"taskDetail.topicMenu.copyOperationId": "Copia ID Operazione",
+ "taskDetail.topicMenu.delete": "Elimina Esecuzione",
+ "taskDetail.topicMenu.deleteConfirm.content": "Questa esecuzione e i suoi messaggi saranno eliminati definitivamente. Questa azione non può essere annullata.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Eliminare l'Esecuzione?",
"taskDetail.topicMenu.open": "Apri Esecuzione",
"taskDetail.topicMenu.openAgentTopic": "Vai alla conversazione dell'agente",
"taskDetail.topicMenu.stop": "Interrompi Esecuzione",
diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json
index 1bf617a0b16..e77ce144893 100644
--- a/locales/it-IT/setting.json
+++ b/locales/it-IT/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Mobile",
"apps.title": "Scopri altri modi per utilizzare LobeHub",
"artworkStudio.cancel": "Annulla generazione",
+ "artworkStudio.composition.avatar": "Avatar",
+ "artworkStudio.composition.fullBody": "Corpo intero",
+ "artworkStudio.direction.placeholder": "Aggiungi un dettaglio — \"un ragazzo con gli occhiali\", \"meccanico cyberpunk\" (opzionale)",
"artworkStudio.diyTitle": "Crea il tuo",
"artworkStudio.enableModel": "Abilita un modello",
- "artworkStudio.generate": "Genera avatar",
+ "artworkStudio.framePreview": "Anteprima di ciò che mostra la home",
+ "artworkStudio.generate.avatar": "Genera",
+ "artworkStudio.generate.characterSet": "Genera entrambe le immagini",
+ "artworkStudio.generate.fullBody": "Genera",
"artworkStudio.generateFailed": "Impossibile generare l'immagine. Riprova.",
"artworkStudio.generateTitle": "Genera con l'AI",
"artworkStudio.generatingHint": "Di solito richiede circa 60 secondi. Puoi continuare a modificare mentre termina.",
- "artworkStudio.lobeStyle": "Stile ufficiale Lobe",
- "artworkStudio.moreStyles": "Altri stili",
"artworkStudio.noModel": "Abilita un modello di generazione di immagini per utilizzare la generazione con un clic.",
- "artworkStudio.recommended": "Consigliato",
- "artworkStudio.style.clay": "Argilla 3D",
- "artworkStudio.style.geometric": "Geometrico piatto",
+ "artworkStudio.preview.fullBody": "Anteprima del personaggio a corpo intero",
+ "artworkStudio.reference.remove": "Rimuovi riferimento",
+ "artworkStudio.reference.title": "Riferimento",
+ "artworkStudio.remove": "Rimuovi",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Linee disegnate a mano",
"artworkStudio.style.lobe": "Mascotte 3D morbida con uno sfondo dai colori vivaci",
+ "artworkStudio.style.painterly": "Dipinto a mano",
"artworkStudio.style.pixel": "Arte Pixel",
- "artworkStudio.style.sticker": "Adesivo",
- "artworkStudio.style.watercolor": "Acquerello",
+ "artworkStudio.style.title": "Stile",
"artworkStudio.upload": "Carica immagine",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · PNG trasparente ≤ 1 MB",
"checking": "Verifica in corso...",
"checkingPermissions": "Verifica dei permessi in corso...",
"creds.actions.delete": "Elimina",
diff --git a/locales/it-IT/verify.json b/locales/it-IT/verify.json
index 7ae429f906a..6ad6b82a62f 100644
--- a/locales/it-IT/verify.json
+++ b/locales/it-IT/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Torna a {{name}}",
"actions.cancel": "Annulla",
"actions.delete": "Elimina",
+ "actions.goToApp": "Vai a {{name}}",
"badge.errored": "Impossibile eseguire il controllo",
"badge.failed": "Controllo fallito",
"badge.passed": "Controllo superato",
diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.json
index 5141d0a23cc..676fdc1b9d0 100644
--- a/locales/ja-JP/chat.json
+++ b/locales/ja-JP/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "質問、検索、またはブレインストーミングを行う。@で他のエージェントを呼び出す。",
"sendPlaceholderHeterogeneous": "{{name}} にタスクを依頼...",
"sendPlaceholderWithAgentAssignment": "依頼、作成、またはタスク開始。@で他のエージェントに割り当て。",
+ "sender.unknownMember": "メンバー",
"sessionGroup.config": "グループ管理",
"sessionGroup.confirmRemoveGroupAlert": "このグループを削除してもよろしいですか?グループ内のアシスタントはデフォルトリストに移動します",
"sessionGroup.createAgentSuccess": "アシスタントの作成に成功しました",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF の生成に失敗しました",
"shareModal.pdfReady": "PDF の準備ができました",
"shareModal.popover.export": "エクスポート",
+ "shareModal.popover.loadError": "共有設定の読み込みに失敗しました。後でもう一度お試しください。",
"shareModal.popover.privacyWarning.confirm": "理解しました。続行します",
"shareModal.popover.privacyWarning.content": "会話に個人情報や機密情報が含まれていないことをご確認ください。共有する内容およびその結果については、あなた自身が責任を負うものとします。",
"shareModal.popover.privacyWarning.doNotShowAgain": "今後このメッセージを表示しない",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "LobeHubに移動",
"sharePage.menu.more": "その他",
"sharePage.menu.report": "報告",
+ "sharePage.meta.pageDescription": "{{appName}}から共有されたページです。",
+ "sharePage.meta.topicDescription": "{{appName}}から共有された会話です。",
"sharePage.pill.edit": "編集",
"sharePage.pill.openInApp": "{{appName}}で開く",
"sharePage.pill.sharedVia": "{{appName}}経由で共有",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "無題",
"taskDetail.topicMenu.copyId": "トピックIDをコピー",
"taskDetail.topicMenu.copyOperationId": "操作IDをコピー",
+ "taskDetail.topicMenu.delete": "実行を削除",
+ "taskDetail.topicMenu.deleteConfirm.content": "この実行とそのメッセージは完全に削除されます。この操作は元に戻せません。",
+ "taskDetail.topicMenu.deleteConfirm.title": "実行を削除しますか?",
"taskDetail.topicMenu.open": "実行を開く",
"taskDetail.topicMenu.openAgentTopic": "エージェント会話に移動",
"taskDetail.topicMenu.stop": "実行を停止",
diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json
index 5f58355b958..afeadaea531 100644
--- a/locales/ja-JP/setting.json
+++ b/locales/ja-JP/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "モバイル",
"apps.title": "LobeHubを活用するさらなる方法を発見",
"artworkStudio.cancel": "生成をキャンセル",
+ "artworkStudio.composition.avatar": "アバター",
+ "artworkStudio.composition.fullBody": "全身",
+ "artworkStudio.direction.placeholder": "詳細を追加 — 「眼鏡をかけた少年」、「サイバーパンクの整備士」(オプション)",
"artworkStudio.diyTitle": "自分で作る",
"artworkStudio.enableModel": "モデルを有効化",
- "artworkStudio.generate": "アバターを生成",
+ "artworkStudio.framePreview": "ホーム画面のプレビュー",
+ "artworkStudio.generate.avatar": "生成",
+ "artworkStudio.generate.characterSet": "両方の画像を生成",
+ "artworkStudio.generate.fullBody": "生成",
"artworkStudio.generateFailed": "画像を生成できませんでした。再試行してください。",
"artworkStudio.generateTitle": "AIで生成",
"artworkStudio.generatingHint": "通常は約60秒かかります。生成中も編集を続けることができます。",
- "artworkStudio.lobeStyle": "Lobe公式スタイル",
- "artworkStudio.moreStyles": "その他のスタイル",
"artworkStudio.noModel": "ワンクリック生成を使用するには、画像生成モデルを有効化してください。",
- "artworkStudio.recommended": "おすすめ",
- "artworkStudio.style.clay": "3Dクレイ",
- "artworkStudio.style.geometric": "フラット幾何学",
+ "artworkStudio.preview.fullBody": "全身キャラクターのプレビュー",
+ "artworkStudio.reference.remove": "参照を削除",
+ "artworkStudio.reference.title": "参照",
+ "artworkStudio.remove": "削除",
+ "artworkStudio.style.anime": "アニメ",
+ "artworkStudio.style.lineArt": "手描きの線画",
"artworkStudio.style.lobe": "柔らかい3Dマスコットと大胆な色の背景",
+ "artworkStudio.style.painterly": "手描き風",
"artworkStudio.style.pixel": "ピクセルアート",
- "artworkStudio.style.sticker": "ステッカー",
- "artworkStudio.style.watercolor": "水彩画",
+ "artworkStudio.style.title": "スタイル",
"artworkStudio.upload": "画像をアップロード",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · 透明PNG ≤ 1 MB",
"checking": "確認中...",
"checkingPermissions": "権限を確認中...",
"creds.actions.delete": "削除",
diff --git a/locales/ja-JP/verify.json b/locales/ja-JP/verify.json
index 47691f269a9..2a3815e3a4b 100644
--- a/locales/ja-JP/verify.json
+++ b/locales/ja-JP/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "{{name}}に戻る",
"actions.cancel": "キャンセル",
"actions.delete": "削除",
+ "actions.goToApp": "{{name}} に移動",
"badge.errored": "チェックを実行できませんでした",
"badge.failed": "チェック失敗",
"badge.passed": "チェック成功",
diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.json
index e37ba1b52bc..63a9bc6af49 100644
--- a/locales/ko-KR/chat.json
+++ b/locales/ko-KR/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "질문, 검색, 또는 브레인스토밍. @를 사용하여 다른 에이전트를 호출하세요.",
"sendPlaceholderHeterogeneous": "{{name}}에게 작업 요청...",
"sendPlaceholderWithAgentAssignment": "질문, 생성 또는 작업 시작. 다른 에이전트에게 할당하려면 @ 사용.",
+ "sender.unknownMember": "회원",
"sessionGroup.config": "그룹 관리",
"sessionGroup.confirmRemoveGroupAlert": "이 그룹을 삭제하시겠습니까? 그룹 내 도우미는 기본 목록으로 이동합니다",
"sessionGroup.createAgentSuccess": "도우미 생성 성공",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF 생성 실패",
"shareModal.pdfReady": "PDF 준비 완료",
"shareModal.popover.export": "내보내기",
+ "shareModal.popover.loadError": "공유 설정을 불러오는 데 실패했습니다. 나중에 다시 시도해주세요.",
"shareModal.popover.privacyWarning.confirm": "이해했습니다. 계속하기",
"shareModal.popover.privacyWarning.content": "대화에 개인 정보나 민감한 정보가 포함되어 있지 않은지 확인하세요. 공유한 콘텐츠와 그로 인한 결과에 대한 책임은 사용자 본인에게 있습니다.",
"shareModal.popover.privacyWarning.doNotShowAgain": "다시 표시하지 않기",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "LobeHub로 이동",
"sharePage.menu.more": "더보기",
"sharePage.menu.report": "신고",
+ "sharePage.meta.pageDescription": "{{appName}}에서 공유된 페이지입니다.",
+ "sharePage.meta.topicDescription": "{{appName}}에서 공유된 대화입니다.",
"sharePage.pill.edit": "편집",
"sharePage.pill.openInApp": "{{appName}}에서 열기",
"sharePage.pill.sharedVia": "{{appName}}을(를) 통해 공유됨",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "제목 없음",
"taskDetail.topicMenu.copyId": "주제 ID 복사",
"taskDetail.topicMenu.copyOperationId": "작업 ID 복사",
+ "taskDetail.topicMenu.delete": "실행 삭제",
+ "taskDetail.topicMenu.deleteConfirm.content": "이 실행과 해당 메시지는 영구적으로 삭제됩니다. 이 작업은 되돌릴 수 없습니다.",
+ "taskDetail.topicMenu.deleteConfirm.title": "실행을 삭제하시겠습니까?",
"taskDetail.topicMenu.open": "실행 열기",
"taskDetail.topicMenu.openAgentTopic": "에이전트 대화로 이동",
"taskDetail.topicMenu.stop": "실행 중지",
diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json
index 8821bc136fc..1e088ddee2a 100644
--- a/locales/ko-KR/setting.json
+++ b/locales/ko-KR/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "모바일",
"apps.title": "LobeHub를 사용하는 더 많은 방법을 발견하세요",
"artworkStudio.cancel": "생성 취소",
+ "artworkStudio.composition.avatar": "아바타",
+ "artworkStudio.composition.fullBody": "전신",
+ "artworkStudio.direction.placeholder": "세부사항 추가 — \"안경을 쓴 소년\", \"사이버펑크 정비공\" (선택 사항)",
"artworkStudio.diyTitle": "직접 만들기",
"artworkStudio.enableModel": "모델 활성화",
- "artworkStudio.generate": "아바타 생성",
+ "artworkStudio.framePreview": "홈에서 보여질 미리보기",
+ "artworkStudio.generate.avatar": "생성",
+ "artworkStudio.generate.characterSet": "두 이미지 모두 생성",
+ "artworkStudio.generate.fullBody": "생성",
"artworkStudio.generateFailed": "이미지를 생성할 수 없습니다. 다시 시도하세요.",
"artworkStudio.generateTitle": "AI로 생성하기",
"artworkStudio.generatingHint": "보통 약 60초 정도 소요됩니다. 완료되는 동안 계속 편집할 수 있습니다.",
- "artworkStudio.lobeStyle": "Lobe 공식 스타일",
- "artworkStudio.moreStyles": "더 많은 스타일",
"artworkStudio.noModel": "이미지 생성 모델을 활성화하여 원클릭 생성을 사용하세요.",
- "artworkStudio.recommended": "추천",
- "artworkStudio.style.clay": "3D 클레이",
- "artworkStudio.style.geometric": "평면 기하학",
+ "artworkStudio.preview.fullBody": "전신 캐릭터 미리보기",
+ "artworkStudio.reference.remove": "참조 제거",
+ "artworkStudio.reference.title": "참조",
+ "artworkStudio.remove": "제거",
+ "artworkStudio.style.anime": "애니메이션",
+ "artworkStudio.style.lineArt": "손으로 그린 선화",
"artworkStudio.style.lobe": "선명한 색상의 배경과 부드러운 3D 마스코트",
+ "artworkStudio.style.painterly": "손으로 그린 회화",
"artworkStudio.style.pixel": "픽셀 아트",
- "artworkStudio.style.sticker": "스티커",
- "artworkStudio.style.watercolor": "수채화",
+ "artworkStudio.style.title": "스타일",
"artworkStudio.upload": "이미지 업로드",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · 투명 PNG ≤ 1 MB",
"checking": "확인 중...",
"checkingPermissions": "권한 확인 중...",
"creds.actions.delete": "삭제",
diff --git a/locales/ko-KR/verify.json b/locales/ko-KR/verify.json
index 19ffdb4ba38..7c2e272174f 100644
--- a/locales/ko-KR/verify.json
+++ b/locales/ko-KR/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "{{name}}로 돌아가기",
"actions.cancel": "취소",
"actions.delete": "삭제",
+ "actions.goToApp": "{{name}}로 이동",
"badge.errored": "검사를 실행할 수 없습니다",
"badge.failed": "검사 실패",
"badge.passed": "검사 통과",
diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.json
index c8a90b11e93..52a3c062efb 100644
--- a/locales/nl-NL/chat.json
+++ b/locales/nl-NL/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Vraag, zoek of brainstorm. @ om andere agents erbij te betrekken.",
"sendPlaceholderHeterogeneous": "Vraag {{name}} om een taak uit te voeren...",
"sendPlaceholderWithAgentAssignment": "Vraag, maak of start een taak. @ om taken toe te wijzen aan andere agenten.",
+ "sender.unknownMember": "Lid",
"sessionGroup.config": "Groepsbeheer",
"sessionGroup.confirmRemoveGroupAlert": "Deze groep wordt verwijderd. Na verwijdering worden de agenten in deze groep verplaatst naar de standaardlijst. Bevestig je actie.",
"sessionGroup.createAgentSuccess": "Agent succesvol aangemaakt",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF-generatie mislukt",
"shareModal.pdfReady": "PDF is klaar",
"shareModal.popover.export": "Exporteren",
+ "shareModal.popover.loadError": "Het laden van de deelinstellingen is mislukt, probeer het later opnieuw.",
"shareModal.popover.privacyWarning.confirm": "Ik begrijp het, ga verder",
"shareModal.popover.privacyWarning.content": "Zorg ervoor dat je gesprek geen persoonlijke of gevoelige informatie bevat. Je bent zelf verantwoordelijk voor de inhoud die je deelt en de gevolgen daarvan.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Niet opnieuw weergeven",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Ga naar LobeHub",
"sharePage.menu.more": "Meer",
"sharePage.menu.report": "Rapporteren",
+ "sharePage.meta.pageDescription": "Een pagina gedeeld vanuit {{appName}}.",
+ "sharePage.meta.topicDescription": "Een gesprek gedeeld vanuit {{appName}}.",
"sharePage.pill.edit": "Bewerken",
"sharePage.pill.openInApp": "Openen in {{appName}}",
"sharePage.pill.sharedVia": "Gedeeld via {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Zonder titel",
"taskDetail.topicMenu.copyId": "Kopieer Topic-ID",
"taskDetail.topicMenu.copyOperationId": "Kopieer Operatie-ID",
+ "taskDetail.topicMenu.delete": "Run verwijderen",
+ "taskDetail.topicMenu.deleteConfirm.content": "Deze run en zijn berichten worden permanent verwijderd. Deze actie kan niet ongedaan worden gemaakt.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Run verwijderen?",
"taskDetail.topicMenu.open": "Run openen",
"taskDetail.topicMenu.openAgentTopic": "Ga naar Agent-gesprek",
"taskDetail.topicMenu.stop": "Run stoppen",
diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json
index be3745902e1..e281b7f4c8d 100644
--- a/locales/nl-NL/setting.json
+++ b/locales/nl-NL/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Mobiel",
"apps.title": "Ontdek meer manieren om LobeHub te gebruiken",
"artworkStudio.cancel": "Generatie annuleren",
+ "artworkStudio.composition.avatar": "Avatar",
+ "artworkStudio.composition.fullBody": "Volledig lichaam",
+ "artworkStudio.direction.placeholder": "Voeg een detail toe — \"een jongen met een bril\", \"cyberpunk monteur\" (optioneel)",
"artworkStudio.diyTitle": "Maak je eigen",
"artworkStudio.enableModel": "Schakel een model in",
- "artworkStudio.generate": "Avatar genereren",
+ "artworkStudio.framePreview": "Voorbeeld van wat thuis wordt weergegeven",
+ "artworkStudio.generate.avatar": "Genereren",
+ "artworkStudio.generate.characterSet": "Beide afbeeldingen genereren",
+ "artworkStudio.generate.fullBody": "Genereren",
"artworkStudio.generateFailed": "Kon de afbeelding niet genereren. Probeer het opnieuw.",
"artworkStudio.generateTitle": "Genereren met AI",
"artworkStudio.generatingHint": "Dit duurt meestal ongeveer 60 seconden. Je kunt blijven bewerken terwijl het wordt voltooid.",
- "artworkStudio.lobeStyle": "Lobe officiële stijl",
- "artworkStudio.moreStyles": "Meer stijlen",
"artworkStudio.noModel": "Schakel een afbeeldingsgeneratiemodel in om eenmalige generatie te gebruiken.",
- "artworkStudio.recommended": "Aanbevolen",
- "artworkStudio.style.clay": "3D Klei",
- "artworkStudio.style.geometric": "Vlak Geometrisch",
+ "artworkStudio.preview.fullBody": "Voorbeeld van volledig lichaam personage",
+ "artworkStudio.reference.remove": "Referentie verwijderen",
+ "artworkStudio.reference.title": "Referentie",
+ "artworkStudio.remove": "Verwijderen",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Handgetekende lijnen",
"artworkStudio.style.lobe": "Zachte 3D-mascotte met een gedurfde kleurachtergrond",
+ "artworkStudio.style.painterly": "Handgeschilderd",
"artworkStudio.style.pixel": "Pixelkunst",
- "artworkStudio.style.sticker": "Sticker",
- "artworkStudio.style.watercolor": "Aquarel",
+ "artworkStudio.style.title": "Stijl",
"artworkStudio.upload": "Afbeelding uploaden",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · transparante PNG ≤ 1 MB",
"checking": "Bezig met controleren...",
"checkingPermissions": "Bezig met controleren van machtigingen...",
"creds.actions.delete": "Verwijderen",
diff --git a/locales/nl-NL/verify.json b/locales/nl-NL/verify.json
index 86d132fa456..fa13308b5b6 100644
--- a/locales/nl-NL/verify.json
+++ b/locales/nl-NL/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Terug naar {{name}}",
"actions.cancel": "Annuleren",
"actions.delete": "Verwijderen",
+ "actions.goToApp": "Ga naar {{name}}",
"badge.errored": "Controle kon niet worden uitgevoerd",
"badge.failed": "Controle mislukt",
"badge.passed": "Controle geslaagd",
diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.json
index a270ac5559f..3f5a128aab3 100644
--- a/locales/pl-PL/chat.json
+++ b/locales/pl-PL/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Zapytaj, wyszukaj lub burza mózgów. @ aby włączyć innych agentów.",
"sendPlaceholderHeterogeneous": "Poproś {{name}} o wykonanie zadania...",
"sendPlaceholderWithAgentAssignment": "Poproś, utwórz lub rozpocznij zadanie. Użyj @, aby przypisać zadania innym agentom.",
+ "sender.unknownMember": "Członek",
"sessionGroup.config": "Zarządzanie grupą",
"sessionGroup.confirmRemoveGroupAlert": "Ta grupa zostanie usunięta. Po usunięciu agenci z tej grupy zostaną przeniesieni do listy domyślnej. Potwierdź operację.",
"sessionGroup.createAgentSuccess": "Agent utworzony pomyślnie",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Nie udało się wygenerować PDF",
"shareModal.pdfReady": "PDF gotowy",
"shareModal.popover.export": "Eksportuj",
+ "shareModal.popover.loadError": "Nie udało się załadować ustawień udostępniania, spróbuj ponownie później",
"shareModal.popover.privacyWarning.confirm": "Rozumiem, kontynuuj",
"shareModal.popover.privacyWarning.content": "Upewnij się, że Twoja rozmowa nie zawiera danych osobowych ani poufnych informacji. Jesteś odpowiedzialny za treści, które udostępniasz, oraz za ich konsekwencje.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Nie pokazuj tego ponownie",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Przejdź do LobeHub",
"sharePage.menu.more": "Więcej",
"sharePage.menu.report": "Zgłoś",
+ "sharePage.meta.pageDescription": "Strona udostępniona z {{appName}}.",
+ "sharePage.meta.topicDescription": "Rozmowa udostępniona z {{appName}}.",
"sharePage.pill.edit": "Edytuj",
"sharePage.pill.openInApp": "Otwórz w {{appName}}",
"sharePage.pill.sharedVia": "Udostępniono przez {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Bez tytułu",
"taskDetail.topicMenu.copyId": "Skopiuj ID tematu",
"taskDetail.topicMenu.copyOperationId": "Skopiuj ID operacji",
+ "taskDetail.topicMenu.delete": "Usuń przebieg",
+ "taskDetail.topicMenu.deleteConfirm.content": "Ten przebieg i jego wiadomości zostaną trwale usunięte. Tej operacji nie można cofnąć.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Usunąć przebieg?",
"taskDetail.topicMenu.open": "Otwórz uruchomienie",
"taskDetail.topicMenu.openAgentTopic": "Przejdź do rozmowy z Agentem",
"taskDetail.topicMenu.stop": "Zatrzymaj uruchomienie",
diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json
index e0cc15a0cbf..4bdc79175a3 100644
--- a/locales/pl-PL/setting.json
+++ b/locales/pl-PL/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Mobilna",
"apps.title": "Odkryj więcej sposobów na korzystanie z LobeHub",
"artworkStudio.cancel": "Anuluj generowanie",
+ "artworkStudio.composition.avatar": "Awatar",
+ "artworkStudio.composition.fullBody": "Cała postać",
+ "artworkStudio.direction.placeholder": "Dodaj szczegół — \"chłopiec w okularach\", \"cyberpunkowy mechanik\" (opcjonalne)",
"artworkStudio.diyTitle": "Stwórz własne",
"artworkStudio.enableModel": "Włącz model",
- "artworkStudio.generate": "Generuj awatar",
+ "artworkStudio.framePreview": "Podgląd tego, co pokazuje strona główna",
+ "artworkStudio.generate.avatar": "Generuj",
+ "artworkStudio.generate.characterSet": "Generuj oba obrazy",
+ "artworkStudio.generate.fullBody": "Generuj",
"artworkStudio.generateFailed": "Nie udało się wygenerować obrazu. Spróbuj ponownie.",
"artworkStudio.generateTitle": "Generuj za pomocą AI",
"artworkStudio.generatingHint": "To zazwyczaj zajmuje około 60 sekund. Możesz kontynuować edycję w trakcie generowania.",
- "artworkStudio.lobeStyle": "Oficjalny styl Lobe",
- "artworkStudio.moreStyles": "Więcej stylów",
"artworkStudio.noModel": "Włącz model generowania obrazu, aby skorzystać z generowania jednym kliknięciem.",
- "artworkStudio.recommended": "Polecane",
- "artworkStudio.style.clay": "3D Glina",
- "artworkStudio.style.geometric": "Płaski geometryczny",
+ "artworkStudio.preview.fullBody": "Podgląd postaci całej postaci",
+ "artworkStudio.reference.remove": "Usuń referencję",
+ "artworkStudio.reference.title": "Referencja",
+ "artworkStudio.remove": "Usuń",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Rysunek odręczny",
"artworkStudio.style.lobe": "Miękki 3D maskotka z odważnym kolorowym tłem",
+ "artworkStudio.style.painterly": "Malarskie",
"artworkStudio.style.pixel": "Pixel Art",
- "artworkStudio.style.sticker": "Naklejka",
- "artworkStudio.style.watercolor": "Akwarela",
+ "artworkStudio.style.title": "Styl",
"artworkStudio.upload": "Prześlij obraz",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · przezroczysty PNG ≤ 1 MB",
"checking": "Sprawdzanie...",
"checkingPermissions": "Sprawdzanie uprawnień...",
"creds.actions.delete": "Usuń",
diff --git a/locales/pl-PL/verify.json b/locales/pl-PL/verify.json
index 8563f0792af..38d39ac315a 100644
--- a/locales/pl-PL/verify.json
+++ b/locales/pl-PL/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Powrót do {{name}}",
"actions.cancel": "Anuluj",
"actions.delete": "Usuń",
+ "actions.goToApp": "Przejdź do {{name}}",
"badge.errored": "Nie można uruchomić sprawdzania",
"badge.failed": "Sprawdzenie nie powiodło się",
"badge.passed": "Sprawdzenie zakończone pomyślnie",
diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.json
index 198ca4b6d5b..d13117e5365 100644
--- a/locales/pt-BR/chat.json
+++ b/locales/pt-BR/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Pergunte, pesquise ou faça brainstorming. @ para chamar outros agentes.",
"sendPlaceholderHeterogeneous": "Peça ao {{name}} para executar uma tarefa...",
"sendPlaceholderWithAgentAssignment": "Pergunte, crie ou inicie uma tarefa. Use @ para atribuir tarefas a outros agentes.",
+ "sender.unknownMember": "Membro",
"sessionGroup.config": "Gerenciamento de Grupo",
"sessionGroup.confirmRemoveGroupAlert": "Este grupo será excluído. Após a exclusão, os agentes serão movidos para a lista padrão. Confirme sua ação.",
"sessionGroup.createAgentSuccess": "Agente criado com sucesso",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Falha na geração do PDF",
"shareModal.pdfReady": "PDF pronto",
"shareModal.popover.export": "Exportar",
+ "shareModal.popover.loadError": "Falha ao carregar as configurações de compartilhamento, tente novamente mais tarde",
"shareModal.popover.privacyWarning.confirm": "Entendi, continuar",
"shareModal.popover.privacyWarning.content": "Certifique-se de que sua conversa não contenha informações pessoais ou sensíveis. Você é responsável por qualquer conteúdo que decidir compartilhar e pelas consequências disso.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Não mostrar novamente",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Ir para o LobeHub",
"sharePage.menu.more": "Mais",
"sharePage.menu.report": "Denunciar",
+ "sharePage.meta.pageDescription": "Uma página compartilhada do {{appName}}.",
+ "sharePage.meta.topicDescription": "Uma conversa compartilhada do {{appName}}.",
"sharePage.pill.edit": "Editar",
"sharePage.pill.openInApp": "Abrir no {{appName}}",
"sharePage.pill.sharedVia": "Compartilhado via {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Sem título",
"taskDetail.topicMenu.copyId": "Copiar ID do Tópico",
"taskDetail.topicMenu.copyOperationId": "Copiar ID da Operação",
+ "taskDetail.topicMenu.delete": "Excluir Execução",
+ "taskDetail.topicMenu.deleteConfirm.content": "Esta execução e suas mensagens serão permanentemente excluídas. Esta ação não pode ser desfeita.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Excluir Execução?",
"taskDetail.topicMenu.open": "Abrir Execução",
"taskDetail.topicMenu.openAgentTopic": "Ir para a conversa do Agente",
"taskDetail.topicMenu.stop": "Parar Execução",
diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json
index 47cbf61b02a..c9175998a0a 100644
--- a/locales/pt-BR/setting.json
+++ b/locales/pt-BR/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Móvel",
"apps.title": "Descubra mais maneiras de usar o LobeHub",
"artworkStudio.cancel": "Cancelar geração",
+ "artworkStudio.composition.avatar": "Avatar",
+ "artworkStudio.composition.fullBody": "Corpo inteiro",
+ "artworkStudio.direction.placeholder": "Adicione um detalhe — \"um menino com óculos\", \"mecânico cyberpunk\" (opcional)",
"artworkStudio.diyTitle": "Crie o seu próprio",
"artworkStudio.enableModel": "Ativar um modelo",
- "artworkStudio.generate": "Gerar avatar",
+ "artworkStudio.framePreview": "Pré-visualizar o que aparece em casa",
+ "artworkStudio.generate.avatar": "Gerar",
+ "artworkStudio.generate.characterSet": "Gerar ambas as imagens",
+ "artworkStudio.generate.fullBody": "Gerar",
"artworkStudio.generateFailed": "Não foi possível gerar a imagem. Tente novamente.",
"artworkStudio.generateTitle": "Gerar com IA",
"artworkStudio.generatingHint": "Isso geralmente leva cerca de 60 segundos. Você pode continuar editando enquanto finaliza.",
- "artworkStudio.lobeStyle": "Estilo oficial Lobe",
- "artworkStudio.moreStyles": "Mais estilos",
"artworkStudio.noModel": "Ative um modelo de geração de imagem para usar a geração com um clique.",
- "artworkStudio.recommended": "Recomendado",
- "artworkStudio.style.clay": "Argila 3D",
- "artworkStudio.style.geometric": "Geométrico plano",
+ "artworkStudio.preview.fullBody": "Pré-visualização do personagem de corpo inteiro",
+ "artworkStudio.reference.remove": "Remover referência",
+ "artworkStudio.reference.title": "Referência",
+ "artworkStudio.remove": "Remover",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Linhas desenhadas à mão",
"artworkStudio.style.lobe": "Mascote 3D suave com fundo de cores vibrantes",
+ "artworkStudio.style.painterly": "Pintado à mão",
"artworkStudio.style.pixel": "Arte em Pixel",
- "artworkStudio.style.sticker": "Adesivo",
- "artworkStudio.style.watercolor": "Aquarela",
+ "artworkStudio.style.title": "Estilo",
"artworkStudio.upload": "Carregar imagem",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · PNG transparente ≤ 1 MB",
"checking": "Verificando...",
"checkingPermissions": "Verificando permissões...",
"creds.actions.delete": "Excluir",
diff --git a/locales/pt-BR/verify.json b/locales/pt-BR/verify.json
index 1abb29af752..3a78c9d9997 100644
--- a/locales/pt-BR/verify.json
+++ b/locales/pt-BR/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Voltar para {{name}}",
"actions.cancel": "Cancelar",
"actions.delete": "Excluir",
+ "actions.goToApp": "Ir para {{name}}",
"badge.errored": "A verificação não pôde ser executada",
"badge.failed": "Verificação falhou",
"badge.passed": "Verificação aprovada",
diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.json
index 143067384c0..8ea2c0ca0fd 100644
--- a/locales/ru-RU/chat.json
+++ b/locales/ru-RU/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Спросите, ищите или проводите мозговой штурм. @ чтобы привлечь других агентов.",
"sendPlaceholderHeterogeneous": "Попросите {{name}} выполнить задачу...",
"sendPlaceholderWithAgentAssignment": "Спросите, создайте или начните задачу. Используйте @, чтобы назначать задачи другим агентам.",
+ "sender.unknownMember": "Участник",
"sessionGroup.config": "Управление группой",
"sessionGroup.confirmRemoveGroupAlert": "Эта группа будет удалена. После удаления агенты будут перемещены в список по умолчанию. Подтвердите действие.",
"sessionGroup.createAgentSuccess": "Агент успешно создан",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Ошибка генерации PDF",
"shareModal.pdfReady": "PDF готов",
"shareModal.popover.export": "Экспорт",
+ "shareModal.popover.loadError": "Не удалось загрузить настройки общего доступа, попробуйте позже",
"shareModal.popover.privacyWarning.confirm": "Понимаю, продолжить",
"shareModal.popover.privacyWarning.content": "Пожалуйста, убедитесь, что ваш разговор не содержит личной или конфиденциальной информации. Вы несёте ответственность за любой контент, которым решите поделиться, и за последствия этого.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Больше не показывать",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Перейти в LobeHub",
"sharePage.menu.more": "Еще",
"sharePage.menu.report": "Пожаловаться",
+ "sharePage.meta.pageDescription": "Страница, поделённая из {{appName}}.",
+ "sharePage.meta.topicDescription": "Беседа, поделённая из {{appName}}.",
"sharePage.pill.edit": "Редактировать",
"sharePage.pill.openInApp": "Открыть в {{appName}}",
"sharePage.pill.sharedVia": "Поделено через {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Без названия",
"taskDetail.topicMenu.copyId": "Скопировать ID темы",
"taskDetail.topicMenu.copyOperationId": "Скопировать ID операции",
+ "taskDetail.topicMenu.delete": "Удалить запуск",
+ "taskDetail.topicMenu.deleteConfirm.content": "Этот запуск и его сообщения будут удалены навсегда. Это действие нельзя отменить.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Удалить запуск?",
"taskDetail.topicMenu.open": "Открыть выполнение",
"taskDetail.topicMenu.openAgentTopic": "Перейти к беседе с агентом",
"taskDetail.topicMenu.stop": "Остановить выполнение",
diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json
index 43ecb150335..ffa4a1ff459 100644
--- a/locales/ru-RU/setting.json
+++ b/locales/ru-RU/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Мобильное",
"apps.title": "Откройте больше способов использовать LobeHub",
"artworkStudio.cancel": "Отменить генерацию",
+ "artworkStudio.composition.avatar": "Аватар",
+ "artworkStudio.composition.fullBody": "Полный рост",
+ "artworkStudio.direction.placeholder": "Добавьте деталь — «мальчик с очками», «киберпанк-механик» (опционально)",
"artworkStudio.diyTitle": "Создайте сами",
"artworkStudio.enableModel": "Включить модель",
- "artworkStudio.generate": "Создать аватар",
+ "artworkStudio.framePreview": "Предварительный просмотр того, что показывается дома",
+ "artworkStudio.generate.avatar": "Создать",
+ "artworkStudio.generate.characterSet": "Создать оба изображения",
+ "artworkStudio.generate.fullBody": "Создать",
"artworkStudio.generateFailed": "Не удалось создать изображение. Попробуйте снова.",
"artworkStudio.generateTitle": "Создать с помощью ИИ",
"artworkStudio.generatingHint": "Обычно это занимает около 60 секунд. Вы можете продолжать редактирование, пока процесс завершится.",
- "artworkStudio.lobeStyle": "Официальный стиль Lobe",
- "artworkStudio.moreStyles": "Больше стилей",
"artworkStudio.noModel": "Включите модель генерации изображений, чтобы использовать генерацию в один клик.",
- "artworkStudio.recommended": "Рекомендуется",
- "artworkStudio.style.clay": "3D Глина",
- "artworkStudio.style.geometric": "Плоская геометрия",
+ "artworkStudio.preview.fullBody": "Предварительный просмотр персонажа в полный рост",
+ "artworkStudio.reference.remove": "Удалить ссылку",
+ "artworkStudio.reference.title": "Ссылка",
+ "artworkStudio.remove": "Удалить",
+ "artworkStudio.style.anime": "Аниме",
+ "artworkStudio.style.lineArt": "Ручная графика",
"artworkStudio.style.lobe": "Мягкий 3D маскот с ярким цветным фоном",
+ "artworkStudio.style.painterly": "Ручная живопись",
"artworkStudio.style.pixel": "Пиксельная графика",
- "artworkStudio.style.sticker": "Стикер",
- "artworkStudio.style.watercolor": "Акварель",
+ "artworkStudio.style.title": "Стиль",
"artworkStudio.upload": "Загрузить изображение",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · прозрачный PNG ≤ 1 MB",
"checking": "Проверка...",
"checkingPermissions": "Проверка разрешений...",
"creds.actions.delete": "Удалить",
diff --git a/locales/ru-RU/verify.json b/locales/ru-RU/verify.json
index efe1cb25833..3e8fd5da8df 100644
--- a/locales/ru-RU/verify.json
+++ b/locales/ru-RU/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Вернуться к {{name}}",
"actions.cancel": "Отмена",
"actions.delete": "Удалить",
+ "actions.goToApp": "Перейти в {{name}}",
"badge.errored": "Проверка не выполнена",
"badge.failed": "Проверка не пройдена",
"badge.passed": "Проверка пройдена",
diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.json
index 7b47bd28df6..3f194a99abc 100644
--- a/locales/tr-TR/chat.json
+++ b/locales/tr-TR/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Sor, ara veya beyin fırtınası yap. Diğer ajanları getirmek için @ kullanın.",
"sendPlaceholderHeterogeneous": "{{name}}'den bir görev yapmasını isteyin...",
"sendPlaceholderWithAgentAssignment": "Sorun, oluşturun veya bir görev başlatın. Diğer ajanlara görev atamak için @ kullanın.",
+ "sender.unknownMember": "Üye",
"sessionGroup.config": "Grup Yönetimi",
"sessionGroup.confirmRemoveGroupAlert": "Bu grup silinmek üzere. Silindikten sonra, bu gruptaki ajanlar varsayılan listeye taşınacaktır. Lütfen işlemi onaylayın.",
"sessionGroup.createAgentSuccess": "Ajan başarıyla oluşturuldu",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF oluşturma başarısız oldu",
"shareModal.pdfReady": "PDF hazır",
"shareModal.popover.export": "Dışa Aktar",
+ "shareModal.popover.loadError": "Paylaşım ayarları yüklenemedi, lütfen daha sonra tekrar deneyin",
"shareModal.popover.privacyWarning.confirm": "Anladım, devam et",
"shareModal.popover.privacyWarning.content": "Lütfen konuşmanızın kişisel veya hassas bilgiler içermediğinden emin olun. Paylaşmayı seçtiğiniz içerikten ve sonuçlarından siz sorumlusunuz.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Bir daha gösterme",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "LobeHub'a Git",
"sharePage.menu.more": "Daha Fazla",
"sharePage.menu.report": "Rapor Et",
+ "sharePage.meta.pageDescription": "{{appName}} uygulamasından paylaşılan bir sayfa.",
+ "sharePage.meta.topicDescription": "{{appName}} uygulamasından paylaşılan bir konuşma.",
"sharePage.pill.edit": "Düzenle",
"sharePage.pill.openInApp": "{{appName}} içinde aç",
"sharePage.pill.sharedVia": "{{appName}} üzerinden paylaşıldı",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Başlıksız",
"taskDetail.topicMenu.copyId": "Konu Kimliğini Kopyala",
"taskDetail.topicMenu.copyOperationId": "Operasyon Kimliğini Kopyala",
+ "taskDetail.topicMenu.delete": "Çalışmayı Sil",
+ "taskDetail.topicMenu.deleteConfirm.content": "Bu çalışma ve mesajları kalıcı olarak silinecek. Bu işlem geri alınamaz.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Çalışmayı Sil?",
"taskDetail.topicMenu.open": "Çalışmayı Aç",
"taskDetail.topicMenu.openAgentTopic": "Ajan konuşmasına git",
"taskDetail.topicMenu.stop": "Çalışmayı Durdur",
diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json
index 7d419d7ba83..49878a86077 100644
--- a/locales/tr-TR/setting.json
+++ b/locales/tr-TR/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Mobil",
"apps.title": "LobeHub'u kullanmanın daha fazla yolunu keşfedin",
"artworkStudio.cancel": "Oluşturmayı iptal et",
+ "artworkStudio.composition.avatar": "Avatar",
+ "artworkStudio.composition.fullBody": "Tam vücut",
+ "artworkStudio.direction.placeholder": "Bir detay ekleyin — \"gözlüklü bir çocuk\", \"siberpunk tamirci\" (isteğe bağlı)",
"artworkStudio.diyTitle": "Kendi tasarımını yap",
"artworkStudio.enableModel": "Bir modeli etkinleştir",
- "artworkStudio.generate": "Avatar oluştur",
+ "artworkStudio.framePreview": "Ana sayfanın nasıl görüneceğini önizleyin",
+ "artworkStudio.generate.avatar": "Oluştur",
+ "artworkStudio.generate.characterSet": "Her iki resmi de oluştur",
+ "artworkStudio.generate.fullBody": "Oluştur",
"artworkStudio.generateFailed": "Görsel oluşturulamadı. Tekrar deneyin.",
"artworkStudio.generateTitle": "Yapay Zeka ile oluştur",
"artworkStudio.generatingHint": "Bu genellikle yaklaşık 60 saniye sürer. Tamamlanırken düzenlemeye devam edebilirsiniz.",
- "artworkStudio.lobeStyle": "Lobe resmi stili",
- "artworkStudio.moreStyles": "Daha fazla stil",
"artworkStudio.noModel": "Tek tıkla oluşturma için bir görsel oluşturma modelini etkinleştirin.",
- "artworkStudio.recommended": "Önerilen",
- "artworkStudio.style.clay": "3D Kil",
- "artworkStudio.style.geometric": "Düz Geometrik",
+ "artworkStudio.preview.fullBody": "Tam vücut karakter önizlemesi",
+ "artworkStudio.reference.remove": "Referansı kaldır",
+ "artworkStudio.reference.title": "Referans",
+ "artworkStudio.remove": "Kaldır",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "El çizimi çizgiler",
"artworkStudio.style.lobe": "Canlı renkli bir arka planla yumuşak 3D maskot",
+ "artworkStudio.style.painterly": "El boyaması",
"artworkStudio.style.pixel": "Piksel Sanatı",
- "artworkStudio.style.sticker": "Çıkartma",
- "artworkStudio.style.watercolor": "Sulu Boya",
+ "artworkStudio.style.title": "Stil",
"artworkStudio.upload": "Görsel yükle",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · şeffaf PNG ≤ 1 MB",
"checking": "Kontrol ediliyor...",
"checkingPermissions": "İzinler kontrol ediliyor...",
"creds.actions.delete": "Sil",
diff --git a/locales/tr-TR/verify.json b/locales/tr-TR/verify.json
index 12716f88542..511a9f9b2a2 100644
--- a/locales/tr-TR/verify.json
+++ b/locales/tr-TR/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "{{name}}'e geri dön",
"actions.cancel": "İptal",
"actions.delete": "Sil",
+ "actions.goToApp": "{{name}} uygulamasına git",
"badge.errored": "Kontrol çalıştırılamadı",
"badge.failed": "Kontrol başarısız",
"badge.passed": "Kontrol başarılı",
diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.json
index 552017d9191..1836dcae618 100644
--- a/locales/vi-VN/chat.json
+++ b/locales/vi-VN/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "Hỏi, tìm kiếm, hoặc động não. @ để mời các đại lý khác.",
"sendPlaceholderHeterogeneous": "Yêu cầu {{name}} thực hiện một nhiệm vụ...",
"sendPlaceholderWithAgentAssignment": "Yêu cầu, tạo hoặc bắt đầu một nhiệm vụ. Dùng @ để giao nhiệm vụ cho tác tử khác.",
+ "sender.unknownMember": "Thành viên",
"sessionGroup.config": "Quản lý nhóm",
"sessionGroup.confirmRemoveGroupAlert": "Nhóm này sắp bị xóa. Sau khi xóa, các tác nhân trong nhóm sẽ được chuyển về danh sách mặc định. Vui lòng xác nhận thao tác.",
"sessionGroup.createAgentSuccess": "Tạo tác nhân thành công",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "Tạo PDF thất bại",
"shareModal.pdfReady": "PDF đã sẵn sàng",
"shareModal.popover.export": "Xuất",
+ "shareModal.popover.loadError": "Không thể tải cài đặt chia sẻ, vui lòng thử lại sau",
"shareModal.popover.privacyWarning.confirm": "Tôi hiểu, tiếp tục",
"shareModal.popover.privacyWarning.content": "Vui lòng đảm bảo cuộc trò chuyện của bạn không chứa thông tin cá nhân hoặc nhạy cảm. Bạn chịu trách nhiệm về bất kỳ nội dung nào bạn chọn chia sẻ và hậu quả của nó.",
"shareModal.popover.privacyWarning.doNotShowAgain": "Không hiển thị lại",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "Đi tới LobeHub",
"sharePage.menu.more": "Thêm",
"sharePage.menu.report": "Báo cáo",
+ "sharePage.meta.pageDescription": "Một trang được chia sẻ từ {{appName}}.",
+ "sharePage.meta.topicDescription": "Một cuộc trò chuyện được chia sẻ từ {{appName}}.",
"sharePage.pill.edit": "Chỉnh sửa",
"sharePage.pill.openInApp": "Mở trong {{appName}}",
"sharePage.pill.sharedVia": "Chia sẻ qua {{appName}}",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "Không có tiêu đề",
"taskDetail.topicMenu.copyId": "Sao chép ID Chủ đề",
"taskDetail.topicMenu.copyOperationId": "Sao chép ID Hoạt động",
+ "taskDetail.topicMenu.delete": "Xóa Lần Chạy",
+ "taskDetail.topicMenu.deleteConfirm.content": "Lần chạy này và các tin nhắn của nó sẽ bị xóa vĩnh viễn. Hành động này không thể hoàn tác.",
+ "taskDetail.topicMenu.deleteConfirm.title": "Xóa Lần Chạy?",
"taskDetail.topicMenu.open": "Mở Chạy",
"taskDetail.topicMenu.openAgentTopic": "Đi đến hội thoại của Tác nhân",
"taskDetail.topicMenu.stop": "Dừng Chạy",
diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json
index 980b9d1a0c2..a7d74c8e0fc 100644
--- a/locales/vi-VN/setting.json
+++ b/locales/vi-VN/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "Di động",
"apps.title": "Khám phá thêm cách sử dụng LobeHub",
"artworkStudio.cancel": "Hủy tạo",
+ "artworkStudio.composition.avatar": "Hình đại diện",
+ "artworkStudio.composition.fullBody": "Toàn thân",
+ "artworkStudio.direction.placeholder": "Thêm chi tiết — \"một cậu bé đeo kính\", \"thợ máy cyberpunk\" (tùy chọn)",
"artworkStudio.diyTitle": "Tự làm của bạn",
"artworkStudio.enableModel": "Kích hoạt một mô hình",
- "artworkStudio.generate": "Tạo avatar",
+ "artworkStudio.framePreview": "Xem trước hiển thị tại nhà",
+ "artworkStudio.generate.avatar": "Tạo",
+ "artworkStudio.generate.characterSet": "Tạo cả hai hình ảnh",
+ "artworkStudio.generate.fullBody": "Tạo",
"artworkStudio.generateFailed": "Không thể tạo hình ảnh. Vui lòng thử lại.",
"artworkStudio.generateTitle": "Tạo bằng AI",
"artworkStudio.generatingHint": "Quá trình này thường mất khoảng 60 giây. Bạn có thể tiếp tục chỉnh sửa trong khi chờ hoàn thành.",
- "artworkStudio.lobeStyle": "Phong cách chính thức của Lobe",
- "artworkStudio.moreStyles": "Thêm phong cách",
"artworkStudio.noModel": "Kích hoạt một mô hình tạo hình ảnh để sử dụng tính năng tạo một chạm.",
- "artworkStudio.recommended": "Được đề xuất",
- "artworkStudio.style.clay": "Đất sét 3D",
- "artworkStudio.style.geometric": "Hình học phẳng",
+ "artworkStudio.preview.fullBody": "Xem trước nhân vật toàn thân",
+ "artworkStudio.reference.remove": "Xóa tham chiếu",
+ "artworkStudio.reference.title": "Tham chiếu",
+ "artworkStudio.remove": "Xóa",
+ "artworkStudio.style.anime": "Anime",
+ "artworkStudio.style.lineArt": "Nét vẽ tay",
"artworkStudio.style.lobe": "Linh vật 3D mềm mại với nền màu đậm",
+ "artworkStudio.style.painterly": "Vẽ tay",
"artworkStudio.style.pixel": "Nghệ thuật Pixel",
- "artworkStudio.style.sticker": "Hình dán",
- "artworkStudio.style.watercolor": "Màu nước",
+ "artworkStudio.style.title": "Phong cách",
"artworkStudio.upload": "Tải lên hình ảnh",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · PNG trong suốt ≤ 1 MB",
"checking": "Đang kiểm tra...",
"checkingPermissions": "Đang kiểm tra quyền...",
"creds.actions.delete": "Xóa",
diff --git a/locales/vi-VN/verify.json b/locales/vi-VN/verify.json
index 91f43905047..9077a3991a1 100644
--- a/locales/vi-VN/verify.json
+++ b/locales/vi-VN/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "Quay lại {{name}}",
"actions.cancel": "Hủy",
"actions.delete": "Xóa",
+ "actions.goToApp": "Đi đến {{name}}",
"badge.errored": "Không thể chạy kiểm tra",
"badge.failed": "Kiểm tra thất bại",
"badge.passed": "Kiểm tra thành công",
diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.json
index cb9fb209583..4aebc5fb241 100644
--- a/locales/zh-CN/chat.json
+++ b/locales/zh-CN/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "提问、搜索或头脑风暴。@ 召唤其他智能体加入。",
"sendPlaceholderHeterogeneous": "描述任务或向 {{name}} 提问",
"sendPlaceholderWithAgentAssignment": "提问、创建或开始任务。使用 @ 分配任务给其他智能体。",
+ "sender.unknownMember": "成员",
"sessionGroup.config": "分类管理",
"sessionGroup.confirmRemoveGroupAlert": "确认删除该分类吗?分类内的助理会移回默认列表",
"sessionGroup.createAgentSuccess": "助理创建成功",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF 生成失败",
"shareModal.pdfReady": "PDF 已准备就绪",
"shareModal.popover.export": "导出",
+ "shareModal.popover.loadError": "分享设置加载失败,请稍后重试",
"shareModal.popover.privacyWarning.confirm": "分享并复制链接",
"shareModal.popover.privacyWarning.content": "拿到链接的人都能查看整段对话,分享前花点时间确认其中没有不便公开的内容。被分享的话题可能包含:",
"shareModal.popover.privacyWarning.doNotShowAgain": "不再显示此提示",
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index 1ccaad3b7e0..ce2ac0e1c98 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -2441,7 +2441,7 @@
"workspace.general.transferAgents.modal.memberDesc": "将所有权转让给该成员。对方接受前不会有任何变化;配置和所有人的会话保持不变。",
"workspace.general.transferAgents.modal.memberGroup": "工作区成员",
"workspace.general.transferAgents.modal.moveAgent": "移动助理",
- "workspace.general.transferAgents.modal.moveAgentDesc": "您可以移动到有权限创建助理的个人账户或工作区。全部关联数据会随助理一并迁移:话题、文件与知识库关联、定时任务及关联任务。自定义技能可能不可用,多助理群组关联将被移除。",
+ "workspace.general.transferAgents.modal.moveAgentDesc": "您可以移动到有权限创建助理的个人账户或工作区。全部关联数据会随助理一并迁移:话题、文档、自定义技能、文件与知识库关联、定时任务及关联任务。多助理群组关联将被移除,迁移后的连接器可能需要重新授权。",
"workspace.general.transferAgents.modal.moveTitle": "移动",
"workspace.general.transferAgents.modal.noAgents": "此工作区中没有助理",
"workspace.general.transferAgents.modal.requestSent": "转让请求已发送",
@@ -2455,7 +2455,7 @@
"workspace.general.transferAgents.modal.success": "{{count}} 个助理已移动",
"workspace.general.transferAgents.modal.title": "移动助理",
"workspace.general.transferAgents.modal.transfer": "移动 {{count}} 个助理",
- "workspace.general.transferAgents.modal.warning": "自定义技能可能不可用,多助理群组关联将被移除。",
+ "workspace.general.transferAgents.modal.warning": "多助理群组关联将被移除,迁移后的连接器可能需要重新授权。",
"workspace.general.transferAgents.personalAccount": "个人账户",
"workspace.general.transferPrimary.cta": "转让所有权",
"workspace.general.transferPrimary.description": "将此工作区的所有者角色和计费责任转让给一名管理员。",
diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.json
index 116e7cffef9..ab366f8a078 100644
--- a/locales/zh-TW/chat.json
+++ b/locales/zh-TW/chat.json
@@ -1161,6 +1161,7 @@
"sendPlaceholderChatWithAgentAssignment": "詢問、搜索或頭腦風暴。@ 來引入其他代理。",
"sendPlaceholderHeterogeneous": "請 {{name}} 執行任務...",
"sendPlaceholderWithAgentAssignment": "請求、建立或開始任務。使用 @ 指派任務給其他代理。",
+ "sender.unknownMember": "成員",
"sessionGroup.config": "分組管理",
"sessionGroup.confirmRemoveGroupAlert": "即將刪除該分組,刪除後該分組的助手將移動到預設清單,請確認你的操作",
"sessionGroup.createAgentSuccess": "助手建立成功",
@@ -1222,6 +1223,7 @@
"shareModal.pdfGenerationError": "PDF 產生失敗",
"shareModal.pdfReady": "PDF 已準備就緒",
"shareModal.popover.export": "匯出",
+ "shareModal.popover.loadError": "無法載入分享設定,請稍後再試",
"shareModal.popover.privacyWarning.confirm": "我了解,繼續",
"shareModal.popover.privacyWarning.content": "請確認你的對話中不包含任何個人或敏感資訊。你需自行承擔所分享內容及其後果的責任。",
"shareModal.popover.privacyWarning.doNotShowAgain": "不要再顯示此訊息",
@@ -1258,6 +1260,8 @@
"sharePage.menu.goToLobeHub": "前往 LobeHub",
"sharePage.menu.more": "更多",
"sharePage.menu.report": "檢舉",
+ "sharePage.meta.pageDescription": "從 {{appName}} 分享的頁面。",
+ "sharePage.meta.topicDescription": "從 {{appName}} 分享的對話。",
"sharePage.pill.edit": "編輯",
"sharePage.pill.openInApp": "在{{appName}}中開啟",
"sharePage.pill.sharedVia": "通過{{appName}}分享",
@@ -1454,6 +1458,9 @@
"taskDetail.topicDrawer.untitled": "未命名",
"taskDetail.topicMenu.copyId": "複製主題 ID",
"taskDetail.topicMenu.copyOperationId": "複製操作 ID",
+ "taskDetail.topicMenu.delete": "刪除執行",
+ "taskDetail.topicMenu.deleteConfirm.content": "此執行及其訊息將被永久刪除。此操作無法復原。",
+ "taskDetail.topicMenu.deleteConfirm.title": "確定刪除執行?",
"taskDetail.topicMenu.open": "開啟執行",
"taskDetail.topicMenu.openAgentTopic": "前往代理對話",
"taskDetail.topicMenu.stop": "停止執行",
diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json
index fea0185613d..83a95358988 100644
--- a/locales/zh-TW/setting.json
+++ b/locales/zh-TW/setting.json
@@ -242,23 +242,32 @@
"apps.mobile.title": "行動應用程式",
"apps.title": "探索更多使用 LobeHub 的方式",
"artworkStudio.cancel": "取消生成",
+ "artworkStudio.composition.avatar": "頭像",
+ "artworkStudio.composition.fullBody": "全身",
+ "artworkStudio.direction.placeholder": "添加細節 — 「戴眼鏡的男孩」、「賽博朋克技工」(可選)",
"artworkStudio.diyTitle": "自己製作",
"artworkStudio.enableModel": "啟用模型",
- "artworkStudio.generate": "生成頭像",
+ "artworkStudio.framePreview": "預覽主頁顯示效果",
+ "artworkStudio.generate.avatar": "生成",
+ "artworkStudio.generate.characterSet": "生成兩張圖片",
+ "artworkStudio.generate.fullBody": "生成",
"artworkStudio.generateFailed": "無法生成圖片。請再試一次。",
"artworkStudio.generateTitle": "使用 AI 生成",
"artworkStudio.generatingHint": "這通常需要約 60 秒。您可以在完成時繼續編輯。",
- "artworkStudio.lobeStyle": "Lobe 官方風格",
- "artworkStudio.moreStyles": "更多風格",
"artworkStudio.noModel": "啟用圖像生成模型以使用一鍵生成功能。",
- "artworkStudio.recommended": "推薦",
- "artworkStudio.style.clay": "3D 黏土",
- "artworkStudio.style.geometric": "平面幾何",
+ "artworkStudio.preview.fullBody": "全身角色預覽",
+ "artworkStudio.reference.remove": "移除參考",
+ "artworkStudio.reference.title": "參考",
+ "artworkStudio.remove": "移除",
+ "artworkStudio.style.anime": "動漫",
+ "artworkStudio.style.lineArt": "手繪線稿",
"artworkStudio.style.lobe": "柔和 3D 吉祥物搭配鮮明色彩背景",
+ "artworkStudio.style.painterly": "手繪風格",
"artworkStudio.style.pixel": "像素藝術",
- "artworkStudio.style.sticker": "貼紙",
- "artworkStudio.style.watercolor": "水彩",
+ "artworkStudio.style.title": "風格",
"artworkStudio.upload": "上傳圖片",
+ "artworkStudio.uploadSpec.avatar": "1:1 · PNG / JPG ≤ 1 MB",
+ "artworkStudio.uploadSpec.fullBody": "3:4 · 透明 PNG ≤ 1 MB",
"checking": "檢查中...",
"checkingPermissions": "檢查權限中...",
"creds.actions.delete": "刪除",
diff --git a/locales/zh-TW/verify.json b/locales/zh-TW/verify.json
index 7b6c0d82f52..4e52ac82b03 100644
--- a/locales/zh-TW/verify.json
+++ b/locales/zh-TW/verify.json
@@ -288,6 +288,7 @@
"actions.backToApp": "返回{{name}}",
"actions.cancel": "取消",
"actions.delete": "刪除",
+ "actions.goToApp": "前往{{name}}",
"badge.errored": "檢查無法執行",
"badge.failed": "檢查失敗",
"badge.passed": "檢查通過",
diff --git a/packages/database/src/models/__tests__/agentTransfer.test.ts b/packages/database/src/models/__tests__/agentTransfer.test.ts
index 673c9dcce73..c5f703add9e 100644
--- a/packages/database/src/models/__tests__/agentTransfer.test.ts
+++ b/packages/database/src/models/__tests__/agentTransfer.test.ts
@@ -1,11 +1,12 @@
// @vitest-environment node
-import { eq } from 'drizzle-orm';
+import { eq, inArray } from 'drizzle-orm';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { getTestDB } from '../../core/getTestDB';
import {
agentBotProviders,
agentCronJobs,
+ agentDocuments,
agents,
agentsFiles,
agentsKnowledgeBases,
@@ -13,6 +14,7 @@ import {
briefs,
chatGroups,
chatGroupsAgents,
+ documentHistories,
documents,
expertiseBindings,
expertiseHits,
@@ -31,7 +33,10 @@ import {
threads,
topicCommentMentions,
topicComments,
+ topicDocuments,
topics,
+ userConnectors,
+ userConnectorTools,
users,
workspaces,
} from '../../schemas';
@@ -668,18 +673,27 @@ describe('AgentModel.transferAgent', () => {
userId,
workspaceId: wsId1,
});
+ // Dedicated agent provenance + binding, so the document itself rides along
+ // and its pin survives the move (a pin whose document stays behind is
+ // detached instead — see the scope-riders suite).
await serverDB.insert(documents).values({
content: '',
fileType: 'text/plain',
id: 'task-doc',
- source: 'test',
- sourceType: 'file',
+ source: `agent-document://${agent.id}/task-doc.md`,
+ sourceType: 'agent',
title: 'Task doc',
totalCharCount: 0,
totalLineCount: 0,
userId,
workspaceId: wsId1,
});
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'task-doc',
+ userId,
+ workspaceId: wsId1,
+ });
await serverDB.insert(taskDocuments).values({
documentId: 'task-doc',
taskId: 'task-assigned-to-agent',
@@ -796,13 +810,18 @@ describe('AgentModel.transferAgent', () => {
content: '',
fileType: 'text/plain',
id: 'task-vis-doc',
- source: 'test',
- sourceType: 'file',
+ source: `agent-document://${agent.id}/vis.md`,
+ sourceType: 'agent',
title: 'Doc',
totalCharCount: 0,
totalLineCount: 0,
userId,
});
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'task-vis-doc',
+ userId,
+ });
await serverDB.insert(taskDocuments).values({
documentId: 'task-vis-doc',
taskId: 'task-vis',
@@ -1049,6 +1068,685 @@ describe('AgentModel.transferAgent', () => {
});
});
+describe('AgentModel.transferAgent scope riders (connectors & documents)', () => {
+ it('should move agent-scoped connectors with credentials when the owner stays the same', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Plugin Agent' });
+
+ const [connector] = await serverDB
+ .insert(userConnectors)
+ .values({
+ agentId: agent.id,
+ credentials: 'encrypted-secret',
+ identifier: 'my-custom-mcp',
+ isEnabled: true,
+ name: 'My Custom MCP',
+ sourceType: 'custom',
+ status: 'connected',
+ userId,
+ })
+ .returning();
+ await serverDB.insert(userConnectorTools).values({
+ crudType: 'read',
+ permission: 'auto',
+ toolName: 'do_thing',
+ userConnectorId: connector.id,
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [moved] = await serverDB
+ .select()
+ .from(userConnectors)
+ .where(eq(userConnectors.id, connector.id));
+ expect(moved.workspaceId).toBe(wsId1);
+ expect(moved.userId).toBe(userId);
+ // Same owner: credentials ride along, the plugin keeps working.
+ expect(moved.credentials).toBe('encrypted-secret');
+ expect(moved.status).toBe('connected');
+
+ const [tool] = await serverDB
+ .select()
+ .from(userConnectorTools)
+ .where(eq(userConnectorTools.userConnectorId, connector.id));
+ expect(tool.workspaceId).toBe(wsId1);
+ expect(tool.userId).toBe(userId);
+ });
+
+ it('should strip credentials from foreign-owned agent connectors on scope transfer', async () => {
+ const model = new AgentModel(serverDB, userId, wsId1);
+ const agent = await model.create({ title: 'Shared Agent' });
+
+ // Another member connected this agent-scoped connector with THEIR account.
+ const [connector] = await serverDB
+ .insert(userConnectors)
+ .values({
+ agentId: agent.id,
+ credentials: 'their-secret',
+ identifier: 'their-mcp',
+ isEnabled: true,
+ name: 'Their MCP',
+ sourceType: 'custom',
+ status: 'connected',
+ userId: targetUserId,
+ workspaceId: wsId1,
+ })
+ .returning();
+
+ await model.transferAgent(agent.id, null, userId);
+
+ const [moved] = await serverDB
+ .select()
+ .from(userConnectors)
+ .where(eq(userConnectors.id, connector.id));
+ expect(moved.workspaceId).toBeNull();
+ expect(moved.userId).toBe(userId);
+ // Ownership changed: the previous owner's credentials never travel.
+ expect(moved.credentials).toBeNull();
+ expect(moved.status).toBe('disconnected');
+ expect(moved.isEnabled).toBe(false);
+ });
+
+ it('should unmount base connectors linked by the moved agent', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Mount Agent' });
+
+ const [base] = await serverDB
+ .insert(userConnectors)
+ .values({
+ identifier: 'personal-linear',
+ isEnabled: true,
+ metadata: { mountedByAgentId: agent.id },
+ name: 'Linear',
+ sourceType: 'builtin',
+ status: 'connected',
+ userId,
+ })
+ .returning();
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [after] = await serverDB
+ .select()
+ .from(userConnectors)
+ .where(eq(userConnectors.id, base.id));
+ // The base row stays in the source scope, just unmounted.
+ expect(after.workspaceId).toBeNull();
+ expect(after.metadata?.mountedByAgentId).toBeUndefined();
+ });
+
+ it('should move dedicated agent documents with binding and history', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Doc Agent' });
+
+ await serverDB.insert(documents).values({
+ content: '# skill',
+ fileType: 'text/markdown',
+ id: 'dedicated-doc',
+ source: `agent-document://${agent.id}/skill.md`,
+ sourceType: 'agent',
+ title: 'skill.md',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'dedicated-doc',
+ userId,
+ });
+ await serverDB.insert(documentHistories).values({
+ documentId: 'dedicated-doc',
+ editorData: {},
+ saveSource: 'manual',
+ savedAt: new Date(),
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId, 'private');
+
+ const [doc] = await serverDB.select().from(documents).where(eq(documents.id, 'dedicated-doc'));
+ expect(doc.workspaceId).toBe(wsId1);
+ expect(doc.userId).toBe(userId);
+ expect(doc.visibility).toBe('private');
+
+ const [binding] = await serverDB
+ .select()
+ .from(agentDocuments)
+ .where(eq(agentDocuments.agentId, agent.id));
+ expect(binding.workspaceId).toBe(wsId1);
+ expect(binding.userId).toBe(userId);
+
+ const [history] = await serverDB
+ .select()
+ .from(documentHistories)
+ .where(eq(documentHistories.documentId, 'dedicated-doc'));
+ expect(history.workspaceId).toBe(wsId1);
+ });
+
+ it('should detach associated documents and leave them in the source scope', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Assoc Agent' });
+
+ await serverDB.insert(documents).values({
+ content: 'notes',
+ fileType: 'text/plain',
+ id: 'assoc-doc',
+ source: 'https://example.com/notes',
+ sourceType: 'web',
+ title: 'Personal notes',
+ totalCharCount: 5,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'assoc-doc',
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [doc] = await serverDB.select().from(documents).where(eq(documents.id, 'assoc-doc'));
+ // The pre-existing personal document is NOT the agent's property.
+ expect(doc.workspaceId).toBeNull();
+ expect(doc.userId).toBe(userId);
+
+ const bindings = await serverDB
+ .select()
+ .from(agentDocuments)
+ .where(eq(agentDocuments.agentId, agent.id));
+ expect(bindings).toHaveLength(0);
+ });
+
+ it('should keep a dedicated document bound to an outside agent in the source scope', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Moving Agent' });
+ const stayingAgent = await model.create({ title: 'Staying Agent' });
+
+ await serverDB.insert(documents).values({
+ content: 'shared skill',
+ fileType: 'text/markdown',
+ id: 'shared-dedicated-doc',
+ source: `agent-document://${agent.id}/shared.md`,
+ sourceType: 'agent',
+ title: 'shared.md',
+ totalCharCount: 12,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(agentDocuments).values([
+ { agentId: agent.id, documentId: 'shared-dedicated-doc', userId },
+ { agentId: stayingAgent.id, documentId: 'shared-dedicated-doc', userId },
+ ]);
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [doc] = await serverDB
+ .select()
+ .from(documents)
+ .where(eq(documents.id, 'shared-dedicated-doc'));
+ // An external consumer pins the document to the source scope.
+ expect(doc.workspaceId).toBeNull();
+
+ const movedBindings = await serverDB
+ .select()
+ .from(agentDocuments)
+ .where(eq(agentDocuments.agentId, agent.id));
+ expect(movedBindings).toHaveLength(0);
+
+ const stayingBindings = await serverDB
+ .select()
+ .from(agentDocuments)
+ .where(eq(agentDocuments.agentId, stayingAgent.id));
+ expect(stayingBindings).toHaveLength(1);
+ expect(stayingBindings[0].workspaceId).toBeNull();
+ });
+
+ it('should move a dedicated document referenced only by topics that move too', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Topic Doc Agent' });
+
+ await serverDB
+ .insert(topics)
+ .values({ agentId: agent.id, id: 'moving-topic', title: 'T', userId });
+ await serverDB.insert(documents).values({
+ content: 'report',
+ fileType: 'text/markdown',
+ id: 'topic-ref-doc',
+ source: `agent-document://${agent.id}/report.md`,
+ sourceType: 'agent',
+ title: 'report.md',
+ totalCharCount: 6,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'topic-ref-doc',
+ userId,
+ });
+ await serverDB.insert(topicDocuments).values({
+ documentId: 'topic-ref-doc',
+ topicId: 'moving-topic',
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ // The referencing topic moves with the agent, so the document moves too —
+ // and the topic-document link follows its topic's scope.
+ const [doc] = await serverDB.select().from(documents).where(eq(documents.id, 'topic-ref-doc'));
+ expect(doc.workspaceId).toBe(wsId1);
+
+ const [link] = await serverDB
+ .select()
+ .from(topicDocuments)
+ .where(eq(topicDocuments.topicId, 'moving-topic'));
+ expect(link.workspaceId).toBe(wsId1);
+ expect(link.userId).toBe(userId);
+ });
+
+ it('should detach a moved topic link whose document stays in the source scope', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Assoc Topic Agent' });
+
+ await serverDB
+ .insert(topics)
+ .values({ agentId: agent.id, id: 'assoc-link-topic', title: 'T', userId });
+ // Not agent provenance: an ordinary personal document the user attached to
+ // the conversation, so it stays behind when the agent moves.
+ await serverDB.insert(documents).values({
+ content: 'notes',
+ fileType: 'text/plain',
+ id: 'stays-doc',
+ source: 'https://example.com/notes',
+ sourceType: 'web',
+ title: 'Personal notes',
+ totalCharCount: 5,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(topicDocuments).values({
+ documentId: 'stays-doc',
+ topicId: 'assoc-link-topic',
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [doc] = await serverDB.select().from(documents).where(eq(documents.id, 'stays-doc'));
+ expect(doc.workspaceId).toBeNull();
+
+ // A link carried into the target would resolve in neither scope: the read
+ // path joins the junction AND the document against the same predicate.
+ const links = await serverDB
+ .select()
+ .from(topicDocuments)
+ .where(eq(topicDocuments.topicId, 'assoc-link-topic'));
+ expect(links).toHaveLength(0);
+ });
+
+ it('should detach a moved task pin whose document stays in the source scope', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Assoc Task Agent' });
+
+ await serverDB.insert(tasks).values({
+ createdByAgentId: agent.id,
+ createdByUserId: userId,
+ id: 'assoc-link-task',
+ identifier: 'T-assoc',
+ instruction: 'Do the thing',
+ seq: 1,
+ });
+ await serverDB.insert(documents).values({
+ content: 'notes',
+ fileType: 'text/plain',
+ id: 'task-stays-doc',
+ source: 'https://example.com/notes',
+ sourceType: 'web',
+ title: 'Personal notes',
+ totalCharCount: 5,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(taskDocuments).values({
+ documentId: 'task-stays-doc',
+ taskId: 'assoc-link-task',
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [doc] = await serverDB.select().from(documents).where(eq(documents.id, 'task-stays-doc'));
+ expect(doc.workspaceId).toBeNull();
+
+ const pins = await serverDB
+ .select()
+ .from(taskDocuments)
+ .where(eq(taskDocuments.taskId, 'assoc-link-task'));
+ expect(pins).toHaveLength(0);
+ });
+
+ it('should leave a document whose provenance names an agent outside the move', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const outsider = await model.create({ title: 'Outsider Agent' });
+ const agent = await model.create({ title: 'Borrower Agent' });
+
+ // Created for `outsider`, later associated to the moving agent. Provenance
+ // alone would read as "dedicated" and hand it over with the move.
+ await serverDB.insert(documents).values({
+ content: '# skill',
+ fileType: 'text/markdown',
+ id: 'foreign-provenance-doc',
+ source: `agent-document://${outsider.id}/skill.md`,
+ sourceType: 'agent',
+ title: 'skill.md',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'foreign-provenance-doc',
+ userId,
+ });
+ // The originating agent is gone, so no external binding holds it back.
+ await serverDB.delete(agents).where(eq(agents.id, outsider.id));
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [doc] = await serverDB
+ .select()
+ .from(documents)
+ .where(eq(documents.id, 'foreign-provenance-doc'));
+ expect(doc.workspaceId).toBeNull();
+ expect(doc.userId).toBe(userId);
+
+ // Associated policy: the binding is detached, the document stays put.
+ const bindings = await serverDB
+ .select()
+ .from(agentDocuments)
+ .where(eq(agentDocuments.agentId, agent.id));
+ expect(bindings).toHaveLength(0);
+ });
+
+ it("should leave another member's skill bundle that was only associated", async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Skill Borrower' });
+
+ // Skill-management provenance carries no agent id; only the create/convert
+ // flows stamp the binding, and `associate` does not.
+ await serverDB.insert(documents).values({
+ content: '',
+ fileType: 'skills/bundle',
+ id: 'borrowed-skill-doc',
+ source: 'agent-signal:skill-management',
+ sourceType: 'agent-signal',
+ title: 'Borrowed skill',
+ totalCharCount: 0,
+ totalLineCount: 0,
+ userId: targetUserId,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'borrowed-skill-doc',
+ templateId: null,
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [doc] = await serverDB
+ .select()
+ .from(documents)
+ .where(eq(documents.id, 'borrowed-skill-doc'));
+ expect(doc.workspaceId).toBeNull();
+ expect(doc.userId).toBe(targetUserId);
+
+ const bindings = await serverDB
+ .select()
+ .from(agentDocuments)
+ .where(eq(agentDocuments.agentId, agent.id));
+ expect(bindings).toHaveLength(0);
+ });
+
+ it("should move an agent's own skill bundle together with its index", async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Skill Owner' });
+
+ await serverDB.insert(documents).values([
+ {
+ content: '',
+ fileType: 'skills/bundle',
+ id: 'own-skill-bundle',
+ source: 'agent-signal:skill-management',
+ sourceType: 'agent-signal',
+ title: 'Own skill',
+ totalCharCount: 0,
+ totalLineCount: 0,
+ userId,
+ },
+ {
+ content: '# skill',
+ fileType: 'skills/index',
+ id: 'own-skill-index',
+ parentId: 'own-skill-bundle',
+ source: 'agent-signal:skill-management',
+ sourceType: 'agent-signal',
+ title: 'SKILL.md',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId,
+ },
+ ]);
+ await serverDB.insert(agentDocuments).values([
+ { agentId: agent.id, documentId: 'own-skill-bundle', templateId: 'agent-skill', userId },
+ { agentId: agent.id, documentId: 'own-skill-index', templateId: 'agent-skill', userId },
+ ]);
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const docs = await serverDB
+ .select()
+ .from(documents)
+ .where(inArray(documents.id, ['own-skill-bundle', 'own-skill-index']));
+ expect(docs).toHaveLength(2);
+ for (const doc of docs) expect(doc.workspaceId).toBe(wsId1);
+ });
+
+ it('should hold a whole skill tree back when one node is pinned outside the move', async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Pinned Skill Owner' });
+
+ // A task that is NOT moving with this transfer pins the index alone.
+ await serverDB.insert(tasks).values({
+ createdByUserId: userId,
+ id: 'outside-task',
+ identifier: 'T-outside',
+ instruction: 'Unrelated',
+ seq: 1,
+ });
+ await serverDB.insert(documents).values([
+ {
+ content: '',
+ fileType: 'skills/bundle',
+ id: 'pinned-skill-bundle',
+ source: 'agent-signal:skill-management',
+ sourceType: 'agent-signal',
+ title: 'Pinned skill',
+ totalCharCount: 0,
+ totalLineCount: 0,
+ userId,
+ },
+ {
+ content: '# skill',
+ fileType: 'skills/index',
+ id: 'pinned-skill-index',
+ parentId: 'pinned-skill-bundle',
+ source: 'agent-signal:skill-management',
+ sourceType: 'agent-signal',
+ title: 'SKILL.md',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId,
+ },
+ ]);
+ await serverDB.insert(agentDocuments).values([
+ { agentId: agent.id, documentId: 'pinned-skill-bundle', templateId: 'agent-skill', userId },
+ { agentId: agent.id, documentId: 'pinned-skill-index', templateId: 'agent-skill', userId },
+ ]);
+ await serverDB
+ .insert(taskDocuments)
+ .values({ documentId: 'pinned-skill-index', taskId: 'outside-task', userId });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ // `parent_id` is never rewritten, so moving the bundle without its pinned
+ // index would leave a tree straddling two scopes.
+ const docs = await serverDB
+ .select()
+ .from(documents)
+ .where(inArray(documents.id, ['pinned-skill-bundle', 'pinned-skill-index']));
+ expect(docs).toHaveLength(2);
+ for (const doc of docs) expect(doc.workspaceId).toBeNull();
+ });
+
+ it("should drop the slug when it collides with another member's private document", async () => {
+ const model = new AgentModel(serverDB, userId);
+ const agent = await model.create({ title: 'Slug Agent' });
+
+ // Invisible to the mover through the read predicate, but the
+ // `documents_slug_workspace_id_unique` index still covers it.
+ await serverDB.insert(documents).values({
+ content: 'private',
+ fileType: 'text/markdown',
+ id: 'target-private-doc',
+ slug: 'shared-slug',
+ source: 'https://example.com/private',
+ sourceType: 'web',
+ title: 'Private',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId: targetUserId,
+ visibility: 'private',
+ workspaceId: wsId1,
+ });
+ await serverDB.insert(documents).values({
+ content: '# skill',
+ fileType: 'text/markdown',
+ id: 'slug-doc',
+ slug: 'shared-slug',
+ source: `agent-document://${agent.id}/skill.md`,
+ sourceType: 'agent',
+ title: 'skill.md',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'slug-doc',
+ userId,
+ });
+
+ await model.transferAgent(agent.id, wsId1, userId);
+
+ const [doc] = await serverDB.select().from(documents).where(eq(documents.id, 'slug-doc'));
+ expect(doc.workspaceId).toBe(wsId1);
+ expect(doc.slug).toBeNull();
+ });
+
+ it('should rehome revision history to the new owner when moving to personal scope', async () => {
+ const model = new AgentModel(serverDB, userId, wsId1);
+ const agent = await model.create({ title: 'History Agent' });
+
+ await serverDB.insert(documents).values({
+ content: '# skill',
+ fileType: 'text/markdown',
+ id: 'history-doc',
+ source: `agent-document://${agent.id}/skill.md`,
+ sourceType: 'agent',
+ title: 'skill.md',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId,
+ workspaceId: wsId1,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'history-doc',
+ userId,
+ workspaceId: wsId1,
+ });
+ // Authored by the member who is NOT the transfer target.
+ await serverDB.insert(documentHistories).values({
+ documentId: 'history-doc',
+ editorData: {},
+ saveSource: 'manual',
+ savedAt: new Date(),
+ userId,
+ workspaceId: wsId1,
+ });
+
+ await model.transferAgent(agent.id, null, targetUserId);
+
+ const [history] = await serverDB
+ .select()
+ .from(documentHistories)
+ .where(eq(documentHistories.documentId, 'history-doc'));
+ // Personal reads are `user_id = owner AND workspace_id IS NULL`; keeping
+ // the author here would hide the history from its new owner and let it
+ // cascade away with the author's account.
+ expect(history.workspaceId).toBeNull();
+ expect(history.userId).toBe(targetUserId);
+ });
+
+ it('should keep revision authorship when the document lands in a workspace', async () => {
+ const model = new AgentModel(serverDB, userId, wsId1);
+ const agent = await model.create({ title: 'History WS Agent' });
+
+ await serverDB.insert(documents).values({
+ content: '# skill',
+ fileType: 'text/markdown',
+ id: 'history-ws-doc',
+ source: `agent-document://${agent.id}/skill.md`,
+ sourceType: 'agent',
+ title: 'skill.md',
+ totalCharCount: 7,
+ totalLineCount: 1,
+ userId,
+ workspaceId: wsId1,
+ });
+ await serverDB.insert(agentDocuments).values({
+ agentId: agent.id,
+ documentId: 'history-ws-doc',
+ userId,
+ workspaceId: wsId1,
+ });
+ await serverDB.insert(documentHistories).values({
+ documentId: 'history-ws-doc',
+ editorData: {},
+ saveSource: 'manual',
+ savedAt: new Date(),
+ userId,
+ workspaceId: wsId1,
+ });
+
+ await model.transferAgent(agent.id, wsId2, targetUserId);
+
+ const [history] = await serverDB
+ .select()
+ .from(documentHistories)
+ .where(eq(documentHistories.documentId, 'history-ws-doc'));
+ // A workspace target filters on `workspace_id` alone, so the revision keeps
+ // pointing at whoever actually wrote it.
+ expect(history.workspaceId).toBe(wsId2);
+ expect(history.userId).toBe(userId);
+ });
+});
+
describe('AgentModel.transferAgents (batch)', () => {
it('should transfer multiple agents with their topics and messages in one call', async () => {
const model = new AgentModel(serverDB, userId);
diff --git a/packages/database/src/models/__tests__/messages/message.query.test.ts b/packages/database/src/models/__tests__/messages/message.query.test.ts
index deee80ae752..03c2d31a09b 100644
--- a/packages/database/src/models/__tests__/messages/message.query.test.ts
+++ b/packages/database/src/models/__tests__/messages/message.query.test.ts
@@ -388,6 +388,59 @@ describe('MessageModel Query Tests', () => {
);
});
+ it('should hydrate sender in queryByIds like the main query path', async () => {
+ // Regression: messageGroup children are loaded through
+ // queryByIds; without the users join their sender was dropped and the
+ // client misattributed other members' messages to the viewer.
+ await serverDB.update(users).set({ fullName: 'Kermit' }).where(eq(users.id, otherUserId));
+ await serverDB.insert(messages).values({
+ content: 'sender hydration',
+ createdAt: new Date('2023-01-01'),
+ id: 'sender-hydration-message',
+ role: 'user',
+ userId: otherUserId,
+ });
+
+ const otherUserModel = new MessageModel(serverDB, otherUserId);
+ const [message] = await otherUserModel.queryByIds(['sender-hydration-message']);
+
+ expect(message.sender).toEqual({
+ avatar: null,
+ fullName: 'Kermit',
+ id: otherUserId,
+ username: null,
+ });
+ });
+
+ it('should keep sender for an avatar-less user in the main query path', async () => {
+ // Regression: drizzle nullifies a left-joined nested
+ // selection from its FIRST selected column. With `avatar` first, every
+ // avatar-less sender came back as `sender: null` and the client rendered
+ // the viewer's own identity on other members' messages.
+ await serverDB
+ .update(users)
+ .set({ avatar: null, fullName: 'Kermit', username: null })
+ .where(eq(users.id, otherUserId));
+ await serverDB.insert(messages).values({
+ content: 'avatar-less sender',
+ createdAt: new Date('2023-01-01'),
+ id: 'avatarless-sender-message',
+ role: 'user',
+ userId: otherUserId,
+ });
+
+ const otherUserModel = new MessageModel(serverDB, otherUserId);
+ const messagesResult = await otherUserModel.query();
+ const message = messagesResult.find((item) => item.id === 'avatarless-sender-message');
+
+ expect(message?.sender).toEqual({
+ avatar: null,
+ fullName: 'Kermit',
+ id: otherUserId,
+ username: null,
+ });
+ });
+
it('materializes safe audio metadata and only validated duration in both query paths', async () => {
await serverDB.transaction(async (trx) => {
await trx.insert(messages).values({
diff --git a/packages/database/src/models/agent.ts b/packages/database/src/models/agent.ts
index a2590a2ff8c..e69b1a42c1f 100644
--- a/packages/database/src/models/agent.ts
+++ b/packages/database/src/models/agent.ts
@@ -57,6 +57,7 @@ import {
tasks,
taskTopics,
threads,
+ topicDocuments,
topics,
} from '../schemas';
import type { LobeChatDatabase, Transaction } from '../type';
@@ -64,8 +65,14 @@ import {
collectBoundDeviceIds,
sanitizeAgencyConfigsForWorkspace,
} from '../utils/agencyConfigDevices';
-import { rehomeAgentConnectorsForRecipient } from '../utils/agentConnectors';
-import { rehomeAgentDocumentsForRecipient } from '../utils/agentDocumentsOwnership';
+import {
+ rehomeAgentConnectorsForRecipient,
+ rehomeAgentConnectorsForScopeTransfer,
+} from '../utils/agentConnectors';
+import {
+ moveAgentDocumentsForScopeTransfer,
+ rehomeAgentDocumentsForRecipient,
+} from '../utils/agentDocumentsOwnership';
import { rehomeAgentExpertiseForRecipient } from '../utils/agentExpertise';
import {
detachAgentKnowledgeMountsForRecipient,
@@ -2220,15 +2227,12 @@ export class AgentModel {
.set({ ...ownershipUpdate, updatedAt: topics.updatedAt })
.where(topicCondition!)
.returning({ id: topics.id, updatedAt: topics.updatedAt });
+ const movedTopicIds = movedTopics.map((topic) => topic.id);
// 6a. Topic comments denormalize the topic's workspaceId — move them
// with the topic (or drop them when leaving workspace scope entirely),
// otherwise workspace-filtered comment reads go stale. See the helper doc.
- await syncTopicCommentsOnTopicTransfer(
- trx,
- movedTopics.map((topic) => topic.id),
- targetWorkspaceId,
- );
+ await syncTopicCommentsOnTopicTransfer(trx, movedTopicIds, targetWorkspaceId);
// 7. Message scope rewrite — fast/slow split. Rewriting a message row
// maintains every message index (incl. the multi-GB BM25 index), so a
@@ -2245,7 +2249,6 @@ export class AgentModel {
sessionIds.length > 0
? or(inArray(messages.sessionId, sessionIds), inArray(messages.agentId, agentIds))
: inArray(messages.agentId, agentIds);
- const movedTopicIds = movedTopics.map((topic) => topic.id);
const [{ affectedMessages }] = await trx
.select({ affectedMessages: count() })
.from(messages)
@@ -2321,10 +2324,6 @@ export class AgentModel {
.update(taskDependencies)
.set({ ...ownershipUpdate, ...visibilityUpdate })
.where(inArray(taskDependencies.taskId, movedTaskIds));
- await trx
- .update(taskDocuments)
- .set({ ...ownershipUpdate, ...visibilityUpdate })
- .where(inArray(taskDocuments.taskId, movedTaskIds));
await trx
.update(taskTopics)
.set({ ...ownershipUpdate, ...visibilityUpdate, updatedAt: taskTopics.updatedAt })
@@ -2413,6 +2412,72 @@ export class AgentModel {
.set({ ...ownershipUpdate, updatedAt: agentBotProviders.updatedAt })
.where(inArray(agentBotProviders.agentId, agentIds));
+ // 14a. Agent-scoped connectors (custom plugins) ride along, or every
+ // custom tool the agent carries stops resolving in the target scope.
+ // Same-owner rows keep their credentials; a target owner change strips
+ // them to reauthorization shells (member-handover policy).
+ await rehomeAgentConnectorsForScopeTransfer(trx, {
+ agentIds,
+ targetUserId,
+ targetWorkspaceId,
+ });
+
+ // 14b. Agent documents (Skills / VFS files) ride along: dedicated
+ // agent-created documents move with binding + history, associated
+ // personal documents stay behind with their binding detached. Without
+ // this the agent's Documents list arrives empty and the files strand in
+ // the source scope's Resource list.
+ const movedDocumentIds = await moveAgentDocumentsForScopeTransfer(trx, {
+ agentIds,
+ movedTaskIds,
+ movedTopicIds,
+ targetUserId,
+ targetVisibility,
+ targetWorkspaceId,
+ });
+
+ // 14c. Topic- and task-document junction rows denormalize the owner
+ // scope, but a junction only resolves when BOTH it and its document pass
+ // the target predicate — `TopicDocumentModel.findByTopicId` and
+ // `TaskModel.getDocumentsPinnedSince` join the two. So the split can only
+ // be decided once 14b has said which documents actually moved: links
+ // whose document rode along follow their topic/task, and the rest are
+ // detached. Kept, they would be rows no scope can resolve — invisible in
+ // the target, orphaned in the source once their topic/task left it.
+ if (movedTopicIds.length > 0) {
+ const onMovedTopics = inArray(topicDocuments.topicId, movedTopicIds);
+ if (movedDocumentIds.length > 0) {
+ await trx
+ .update(topicDocuments)
+ .set(ownershipUpdate)
+ .where(and(onMovedTopics, inArray(topicDocuments.documentId, movedDocumentIds)));
+ }
+ await trx
+ .delete(topicDocuments)
+ .where(
+ movedDocumentIds.length > 0
+ ? and(onMovedTopics, notInArray(topicDocuments.documentId, movedDocumentIds))
+ : onMovedTopics,
+ );
+ }
+
+ if (movedTaskIds.length > 0) {
+ const onMovedTasks = inArray(taskDocuments.taskId, movedTaskIds);
+ if (movedDocumentIds.length > 0) {
+ await trx
+ .update(taskDocuments)
+ .set({ ...ownershipUpdate, ...visibilityUpdate })
+ .where(and(onMovedTasks, inArray(taskDocuments.documentId, movedDocumentIds)));
+ }
+ await trx
+ .delete(taskDocuments)
+ .where(
+ movedDocumentIds.length > 0
+ ? and(onMovedTasks, notInArray(taskDocuments.documentId, movedDocumentIds))
+ : onMovedTasks,
+ );
+ }
+
// 15. Leave every chat group: a group belongs to the source scope, and a
// roster row pointing at an agent that now lives elsewhere would render
// as a member nobody in either scope can use. Guard 1c above has already
diff --git a/packages/database/src/models/message.ts b/packages/database/src/models/message.ts
index abaaf9f2e4a..cf150a89141 100644
--- a/packages/database/src/models/message.ts
+++ b/packages/database/src/models/message.ts
@@ -729,9 +729,13 @@ export class MessageModel {
targetId: messages.targetId,
sender: {
+ // `id` MUST be the first selected field: drizzle decides whether a
+ // left-joined nested selection is null from its first column, so
+ // leading with a nullable column (avatar) collapsed every
+ // avatar-less sender to `sender: null`.
+ id: users.id,
avatar: users.avatar,
fullName: users.fullName,
- id: users.id,
username: users.username,
},
@@ -1362,6 +1366,15 @@ export class MessageModel {
agentId: messages.agentId,
targetId: messages.targetId,
+ sender: {
+ // `id` MUST be the first selected field — see queryWithWhere's sender
+ // selection for why (drizzle left-join nested-object nullification).
+ id: users.id,
+ avatar: users.avatar,
+ fullName: users.fullName,
+ username: users.username,
+ },
+
tools: messages.tools,
tool_call_id: messagePlugins.toolCallId,
@@ -1391,6 +1404,7 @@ export class MessageModel {
.leftJoin(messagePlugins, eq(messagePlugins.id, messages.id))
.leftJoin(messageTranslates, eq(messageTranslates.id, messages.id))
.leftJoin(messageTTS, eq(messageTTS.id, messages.id))
+ .leftJoin(users, eq(users.id, messages.userId))
.orderBy(asc(messages.createdAt));
if (result.length === 0) return [];
@@ -1536,10 +1550,23 @@ export class MessageModel {
// 6. Transform messages to UIChatMessage format
return result.map(
- ({ model, provider, translate, ttsId, ttsFile, ttsContentMd5, ttsVoice, ...item }) => {
+ ({
+ model,
+ provider,
+ translate,
+ ttsId,
+ ttsFile,
+ ttsContentMd5,
+ ttsVoice,
+ sender,
+ ...item
+ }) => {
const messageQuery = messageQueriesList.find((relation) => relation.messageId === item.id);
return {
...item,
+ // Same presence contract as queryWithWhere: collapse a null-id sender
+ // (deleted account) to `null` so clients can rely on `sender?.id`.
+ sender: sender?.id ? sender : null,
chunksList: chunksList
.filter((relation) => relation.messageId === item.id)
.map((c) => ({
diff --git a/packages/database/src/utils/agentConnectors.ts b/packages/database/src/utils/agentConnectors.ts
index 436c5f4f9a1..5ec3b5d1c38 100644
--- a/packages/database/src/utils/agentConnectors.ts
+++ b/packages/database/src/utils/agentConnectors.ts
@@ -99,6 +99,70 @@ export const rehomeAgentConnectorsForRecipient = async (
.where(foreignMountedRows(params));
};
+/**
+ * Connector policy for a CROSS-SCOPE transfer (personal ↔ workspace): the
+ * agent-owned connector rows are the agent's own configuration and must ride
+ * along, or every custom plugin the agent carries silently stops resolving —
+ * ConnectorModel's ownership predicate is scope-exact, so a row left with the
+ * source `workspace_id` is invisible from the target scope.
+ *
+ * Credential policy mirrors {@link rehomeAgentConnectorsForRecipient}: when
+ * the target owner is the row's owner (the common case — a user moving their
+ * own agent), credentials travel untouched and the plugin keeps working;
+ * when ownership changes, the row is first stripped to a disconnected
+ * reauthorization shell by the handover helper above. Base rows of OTHER
+ * scopes mounted by the agent (`metadata.mountedByAgentId`) unmount — a mount
+ * cannot resolve across scopes, so keeping the marker would only misreport
+ * the base row as linked to an agent it can no longer serve.
+ */
+export const rehomeAgentConnectorsForScopeTransfer = async (
+ db: Db,
+ params: {
+ agentIds: string[];
+ targetUserId: string;
+ targetWorkspaceId: string | null;
+ },
+): Promise<void> => {
+ const { agentIds, targetUserId, targetWorkspaceId } = params;
+ if (agentIds.length === 0) return;
+
+ // Foreign-owned agent rows lose their credentials exactly like a member
+ // handover — the previous owner's OAuth identity never follows an agent to
+ // a new owner. Also unmounts foreign members' mounted base rows.
+ await rehomeAgentConnectorsForRecipient(db, { agentIds, recipientId: targetUserId });
+
+ // Every agent-scoped row (wiped shells above + the target owner's own rows,
+ // credentials intact) now moves to the target scope with the agent.
+ const scopedRows = await db
+ .update(userConnectors)
+ .set({ userId: targetUserId, workspaceId: targetWorkspaceId })
+ .where(inArray(userConnectors.agentId, agentIds))
+ .returning({ id: userConnectors.id });
+
+ if (scopedRows.length > 0) {
+ // Tool rows denormalize scope from their parent connector — left behind
+ // they'd vanish from scope-filtered reads (and cascade away with the
+ // previous owner's account).
+ await db
+ .update(userConnectorTools)
+ .set({ userId: targetUserId, workspaceId: targetWorkspaceId })
+ .where(
+ inArray(
+ userConnectorTools.userConnectorId,
+ scopedRows.map((row) => row.id),
+ ),
+ );
+ }
+
+ // The handover helper only unmounts OTHER members' base rows; the moving
+ // owner's own mounted base rows stay in the source scope and are just as
+ // unreachable from the target — unmount those too.
+ await db
+ .update(userConnectors)
+ .set({ metadata: sql`${userConnectors.metadata} - 'mountedByAgentId'` })
+ .where(inArray(sql`${userConnectors.metadata} ->> 'mountedByAgentId'`, agentIds));
+};
+
/**
* Read-only companion for the transfer manifest: how many connectors the
* handover above will disconnect (agent-owned reauthorization shells) or
diff --git a/packages/database/src/utils/agentDocumentsOwnership.ts b/packages/database/src/utils/agentDocumentsOwnership.ts
index bf10f7cb596..e5be0957b41 100644
--- a/packages/database/src/utils/agentDocumentsOwnership.ts
+++ b/packages/database/src/utils/agentDocumentsOwnership.ts
@@ -1,7 +1,8 @@
-import { and, count, eq, inArray, not, notExists, notInArray, or, sql } from 'drizzle-orm';
+import { and, count, eq, inArray, isNull, not, notExists, notInArray, or, sql } from 'drizzle-orm';
import { alias } from 'drizzle-orm/pg-core';
import {
+ AGENT_SKILL_TEMPLATE_ID,
agentDocuments,
documentHistories,
documents,
@@ -31,6 +32,71 @@ const isDedicatedProvenance = (source: string | null, sourceType: string | null)
!!source &&
(source.startsWith(AGENT_DOCUMENT_SOURCE_PREFIX) || source === SKILL_MANAGEMENT_SOURCE);
+/**
+ * Provenance alone says the file was made by *an* agent, not by one of THESE
+ * agents. Each shape carries its own origin evidence, and a binding without any
+ * fails safe as associated — rehoming on a guess would quietly take another
+ * member's resource out of the source scope.
+ *
+ * - `agent-document://<agentId>/<file>` names the agent it was created for, so
+ * an orphan created for a since-deleted agent and later associated to a
+ * moving one stays put.
+ * - Skill-management documents carry no id in their source, but only the
+ * skill-management create/convert flows stamp `AGENT_SKILL_TEMPLATE_ID` on
+ * the BINDING they open; `AgentDocumentModel.associate` leaves it null. So a
+ * borrowed skill — someone else's bundle made visible to this agent — stays
+ * distinguishable from one the agent actually owns.
+ */
+const isDedicatedToAgents = (
+ row: { bindingTemplateId: string | null; source: string | null; sourceType: string | null },
+ agentIds: Set<string>,
+) => {
+ const { bindingTemplateId, source, sourceType } = row;
+ if (!isDedicatedProvenance(source, sourceType)) return false;
+ if (source === SKILL_MANAGEMENT_SOURCE) return bindingTemplateId === AGENT_SKILL_TEMPLATE_ID;
+
+ const [provenanceAgentId] = source!.slice(AGENT_DOCUMENT_SOURCE_PREFIX.length).split('/');
+ return agentIds.has(provenanceAgentId);
+};
+
+/**
+ * A document tree moves or stays as a WHOLE.
+ *
+ * `documents.parent_id` is never rewritten by a transfer, and agent-document
+ * traversal applies one scope predicate along the entire path — so a tree split
+ * across scopes is unreachable from both ends: the parent loses the child, and
+ * the child hangs under a parent the target cannot see. Managed skills are
+ * exactly this shape (a `skills/bundle` parent over its `SKILL.md` index), so a
+ * single external pin on either node has to hold the other one back too.
+ *
+ * Shrinks `movable` in place until every remaining tree is whole. Each pass can
+ * only remove ids, so the loop terminates.
+ */
+const dropSplitTrees = async (db: Db, movable: Set<string>): Promise<void> => {
+ while (movable.size > 0) {
+ const ids = [...movable];
+ const [moving, children] = await Promise.all([
+ db
+ .select({ id: documents.id, parentId: documents.parentId })
+ .from(documents)
+ .where(inArray(documents.id, ids)),
+ db
+ .select({ id: documents.id, parentId: documents.parentId })
+ .from(documents)
+ .where(inArray(documents.parentId, ids)),
+ ]);
+
+ const blocked = new Set<string>();
+ // An ancestor staying behind pins everything under it.
+ for (const row of moving) if (row.parentId && !movable.has(row.parentId)) blocked.add(row.id);
+ // A descendant staying behind pins everything above it.
+ for (const row of children) if (!movable.has(row.id)) blocked.add(row.parentId!);
+
+ if (blocked.size === 0) return;
+ for (const id of blocked) movable.delete(id);
+ }
+};
+
interface AgentDocumentsHandoverParams {
agentIds: string[];
fromUserId: string;
@@ -81,6 +147,10 @@ export const rehomeAgentDocumentsForRecipient = async (
.where(and(inArray(agentDocuments.agentId, agentIds), eq(agentDocuments.userId, fromUserId)));
if (rows.length === 0) return;
+ // Provenance is not narrowed to `agentIds` here the way the scope transfer
+ // narrows it: `docUserId === fromUserId` already keeps the handover to the
+ // transferring member's own documents, and the SQL mirror in
+ // `countAssociatedAgentDocumentsToDetach` must stay predicate-identical.
const dedicatedCandidates = rows.filter(
(row) => row.docUserId === fromUserId && isDedicatedProvenance(row.source, row.sourceType),
);
@@ -238,3 +308,224 @@ export const countAssociatedAgentDocumentsToDetach = async (
);
return row.value;
};
+
+/**
+ * Document policy for a CROSS-SCOPE transfer (personal ↔ workspace): the
+ * agent's own documents are part of the agent and must move with it, or the
+ * transfer strands them — the binding rows stop matching the target scope's
+ * ownership predicate (the agent's Documents list goes empty) while the
+ * backing rows linger in the source scope's Resource list with no agent left
+ * to reach them from.
+ *
+ * The dedicated/associated split reuses the member-handover doctrine above,
+ * with one scope-transfer twist: references from topics and tasks that move
+ * in the SAME transfer are internal (those rows follow the agent anyway), so
+ * only references from OUTSIDE the moving set make a document shared content
+ * that stays behind.
+ *
+ * - DEDICATED documents (agent-created provenance, no external consumers):
+ * binding + backing document + revision history all re-scope to the target.
+ * Visibility cascades like the task rows in `transferAgents` — a `private`
+ * transfer must not leak previously-personal skill files to every member.
+ * - ASSOCIATED documents (pre-existing content made visible to the agent, or
+ * dedicated files that grew external consumers): the backing document stays
+ * where it lives; the binding is detached — kept, it would be a dead link
+ * no scope can resolve (same rationale as the knowledge-mount detach).
+ *
+ * @returns the ids of the documents that actually moved, so the caller can
+ * split the topic/task junction rows the same way — a junction only resolves
+ * when both it and its document pass the target scope's predicate.
+ */
+export const moveAgentDocumentsForScopeTransfer = async (
+ db: Db,
+ params: {
+ agentIds: string[];
+ /** Tasks moving in the same transfer — their document refs are internal. */
+ movedTaskIds: string[];
+ /** Topics moving in the same transfer — their document refs are internal. */
+ movedTopicIds: string[];
+ targetUserId: string;
+ targetVisibility?: 'private' | 'public';
+ targetWorkspaceId: string | null;
+ },
+): Promise<string[]> => {
+ const {
+ agentIds,
+ movedTaskIds,
+ movedTopicIds,
+ targetUserId,
+ targetVisibility,
+ targetWorkspaceId,
+ } = params;
+ if (agentIds.length === 0) return [];
+
+ const rows = await db
+ .select({
+ agentId: agentDocuments.agentId,
+ bindingId: agentDocuments.id,
+ bindingTemplateId: agentDocuments.templateId,
+ bindingUserId: agentDocuments.userId,
+ documentId: agentDocuments.documentId,
+ slug: documents.slug,
+ source: documents.source,
+ sourceType: documents.sourceType,
+ })
+ .from(agentDocuments)
+ .innerJoin(documents, eq(documents.id, agentDocuments.documentId))
+ .where(inArray(agentDocuments.agentId, agentIds));
+ if (rows.length === 0) return [];
+
+ const movingAgentIds = new Set(agentIds);
+ const dedicatedCandidates = rows.filter((row) => isDedicatedToAgents(row, movingAgentIds));
+
+ // External consumers pin a document to the source scope. Unlike the member
+ // handover, topic/task references only count when the referencing row is
+ // NOT itself moving with this transfer.
+ const externallyBound = new Set<string>();
+ if (dedicatedCandidates.length > 0) {
+ const candidateDocIds = [...new Set(dedicatedCandidates.map((row) => row.documentId))];
+ const [externalAgents, topicRefs, taskRefs] = await Promise.all([
+ db
+ .selectDistinct({ documentId: agentDocuments.documentId })
+ .from(agentDocuments)
+ .where(
+ and(
+ inArray(agentDocuments.documentId, candidateDocIds),
+ notInArray(agentDocuments.agentId, agentIds),
+ ),
+ ),
+ db
+ .selectDistinct({ documentId: topicDocuments.documentId })
+ .from(topicDocuments)
+ .where(
+ and(
+ inArray(topicDocuments.documentId, candidateDocIds),
+ movedTopicIds.length > 0
+ ? notInArray(topicDocuments.topicId, movedTopicIds)
+ : undefined,
+ ),
+ ),
+ db
+ .selectDistinct({ documentId: taskDocuments.documentId })
+ .from(taskDocuments)
+ .where(
+ and(
+ inArray(taskDocuments.documentId, candidateDocIds),
+ movedTaskIds.length > 0 ? notInArray(taskDocuments.taskId, movedTaskIds) : undefined,
+ ),
+ ),
+ ]);
+ for (const row of [...externalAgents, ...topicRefs, ...taskRefs])
+ externallyBound.add(row.documentId);
+ }
+
+ const movable = new Set(
+ dedicatedCandidates
+ .filter((row) => !externallyBound.has(row.documentId))
+ .map((row) => row.documentId),
+ );
+ await dropSplitTrees(db, movable);
+
+ const dedicated = dedicatedCandidates.filter((row) => movable.has(row.documentId));
+ const dedicatedDocIds = [...new Set(dedicated.map((row) => row.documentId))];
+ const dedicatedBindingIds = new Set(dedicated.map((row) => row.bindingId));
+ const associated = rows.filter((row) => !dedicatedBindingIds.has(row.bindingId));
+
+ // Bindings are unique per (agent, document, user): re-scoping every rider to
+ // `targetUserId` would collide where several members hold a binding for the
+ // same pair, so keep the target owner's row (or the first) and merge the
+ // rest away.
+ const keptByPair = new Map<string, string>();
+ const duplicateBindingIds: string[] = [];
+ for (const row of dedicated) {
+ const pair = `${row.agentId}:${row.documentId}`;
+ const kept = keptByPair.get(pair);
+ if (!kept) {
+ keptByPair.set(pair, row.bindingId);
+ } else if (row.bindingUserId === targetUserId) {
+ duplicateBindingIds.push(kept);
+ keptByPair.set(pair, row.bindingId);
+ } else {
+ duplicateBindingIds.push(row.bindingId);
+ }
+ }
+
+ const bindingsToDelete = [...associated.map((row) => row.bindingId), ...duplicateBindingIds];
+ if (bindingsToDelete.length > 0) {
+ await db.delete(agentDocuments).where(inArray(agentDocuments.id, bindingsToDelete));
+ }
+ if (keptByPair.size > 0) {
+ await db
+ .update(agentDocuments)
+ .set({ userId: targetUserId, workspaceId: targetWorkspaceId })
+ .where(inArray(agentDocuments.id, [...keptByPair.values()]));
+ }
+
+ if (dedicatedDocIds.length === 0) return [];
+
+ // Dedicated agent files carry no slug today, but a slugged row colliding
+ // with the target scope's unique index must not abort the whole transfer —
+ // drop the slug instead (the agent reaches its files by binding, not slug).
+ //
+ // The probe mirrors the INDEX, not the read predicate: `documents_slug_*`
+ // covers every row in the target scope, so `buildWorkspaceWhere` would hide
+ // another member's private document behind its visibility clause and let the
+ // collision reach Postgres — aborting the entire transfer transaction.
+ const sluggedDocs = dedicated.filter((row) => row.slug);
+ const conflictedDocIds = new Set<string>();
+ if (sluggedDocs.length > 0) {
+ const targetScope = targetWorkspaceId
+ ? eq(documents.workspaceId, targetWorkspaceId)
+ : and(isNull(documents.workspaceId), eq(documents.userId, targetUserId));
+ const conflictRows = await db
+ .select({ slug: documents.slug })
+ .from(documents)
+ .where(
+ and(
+ targetScope,
+ notInArray(documents.id, dedicatedDocIds),
+ inArray(documents.slug, [...new Set(sluggedDocs.map((row) => row.slug!))]),
+ ),
+ );
+ const taken = new Set(conflictRows.map((row) => row.slug));
+ for (const row of sluggedDocs) if (taken.has(row.slug)) conflictedDocIds.add(row.documentId);
+ }
+
+ // Visibility only applies when landing in a workspace — mirror the task
+ // cascade in `transferAgents`. `clientId` is cleared like the member
+ // handover: it is unique per user and belongs to the source owner's sync.
+ const documentScopeUpdate = {
+ clientId: null,
+ userId: targetUserId,
+ workspaceId: targetWorkspaceId,
+ ...(targetWorkspaceId && targetVisibility ? { visibility: targetVisibility } : {}),
+ };
+ const cleanDocIds = dedicatedDocIds.filter((id) => !conflictedDocIds.has(id));
+ if (cleanDocIds.length > 0) {
+ await db.update(documents).set(documentScopeUpdate).where(inArray(documents.id, cleanDocIds));
+ }
+ if (conflictedDocIds.size > 0) {
+ await db
+ .update(documents)
+ .set({ ...documentScopeUpdate, slug: null })
+ .where(inArray(documents.id, [...conflictedDocIds]));
+ }
+
+ // Revision history denormalizes the scope — left behind, scope-filtered
+ // history reads for the moved document go stale. Author attribution
+ // (`user_id`) survives a WORKSPACE target, which filters on `workspace_id`
+ // alone; a PERSONAL target reads `user_id = owner AND workspace_id IS NULL`,
+ // so another member's revisions would be invisible to the new owner and
+ // would cascade away the day that member's account is deleted. Rehoming the
+ // owner there mirrors the member handover above.
+ await db
+ .update(documentHistories)
+ .set(
+ targetWorkspaceId
+ ? { workspaceId: targetWorkspaceId }
+ : { userId: targetUserId, workspaceId: null },
+ )
+ .where(inArray(documentHistories.documentId, dedicatedDocIds));
+
+ return dedicatedDocIds;
+};
diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.ts
index 00ba2ee1cb4..b30be53220a 100644
--- a/packages/locales/src/default/chat.ts
+++ b/packages/locales/src/default/chat.ts
@@ -1218,6 +1218,7 @@ export default {
'sendPlaceholderHeterogeneous': 'Describe a task or ask a question to {{name}}',
'sendPlaceholderWithAgentAssignment':
'Ask, create, or start a task. @ to assign tasks to other agents.',
+ 'sender.unknownMember': 'Member',
'sessionGroup.config': 'Category Management',
'sessionGroup.manageCategory': 'Manage Category',
'sessionGroup.confirmRemoveGroupAlert':
@@ -1281,6 +1282,7 @@ export default {
'shareModal.pdfGenerationError': 'PDF generation failed',
'shareModal.pdfReady': 'PDF is ready',
'shareModal.popover.export': 'Export',
+ 'shareModal.popover.loadError': 'Failed to load sharing settings, please try again later',
'shareModal.popover.privacyWarning.confirm': 'Share & copy link',
'shareModal.popover.privacyWarning.content':
"Anyone with the link can open this whole conversation, so take a moment to make sure there's nothing here you'd rather keep private. A shared topic may include:",
diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.ts
index 26da869948d..576ad6d2dd5 100644
--- a/packages/locales/src/default/setting.ts
+++ b/packages/locales/src/default/setting.ts
@@ -2501,7 +2501,7 @@ When I am ___, I need ___
'workspace.general.transferAgents.modal.memberGroup': 'Workspace members',
'workspace.general.transferAgents.modal.moveAgent': 'Move Agent',
'workspace.general.transferAgents.modal.moveAgentDesc':
- 'You can move to personal or workspaces that have permission to create an agent. All associated data moves with the agent: topics, file and knowledge base links, scheduled jobs, and related tasks. Custom plugins may not be available and multi-agent group associations will be removed.',
+ 'You can move to personal or workspaces that have permission to create an agent. All associated data moves with the agent: topics, documents, custom plugins, file and knowledge base links, scheduled jobs, and related tasks. Multi-agent group associations will be removed, and moved connectors may need to be reauthorized.',
'workspace.general.transferAgents.modal.moveTitle': 'Move',
'workspace.general.transferAgents.modal.noAgents': 'No agents in this workspace',
'workspace.general.transferAgents.modal.requestSent': 'Transfer request sent',
@@ -2519,7 +2519,7 @@ When I am ___, I need ___
'workspace.general.transferAgents.modal.title': 'Move Agents',
'workspace.general.transferAgents.modal.transfer': 'Move {{count}} agent(s)',
'workspace.general.transferAgents.modal.warning':
- 'Custom plugins may not be available and multi-agent group associations will be removed.',
+ 'Multi-agent group associations will be removed, and moved connectors may need to be reauthorized.',
'workspace.general.transferAgents.personalAccount': 'Personal Account',
'workspace.general.transferScope.private.desc': 'Only accessible to you',
'workspace.general.transferScope.private.label': 'Private',
diff --git a/src/features/Conversation/Messages/CompressedGroup/CompressedMessageItem.tsx b/src/features/Conversation/Messages/CompressedGroup/CompressedMessageItem.tsx
index bc639eb1d4f..b94dd5fa0c6 100644
--- a/src/features/Conversation/Messages/CompressedGroup/CompressedMessageItem.tsx
+++ b/src/features/Conversation/Messages/CompressedGroup/CompressedMessageItem.tsx
@@ -1,14 +1,19 @@
'use client';
-import { type UIChatMessage } from '@lobechat/types';
-import { Avatar, Flexbox } from '@lobehub/ui';
+import { agentDisplayName, type UIChatMessage } from '@lobechat/types';
+import { Flexbox } from '@lobehub/ui';
import { memo } from 'react';
+import { useTranslation } from 'react-i18next';
+import Avatar from '@/components/Avatar';
import { useUserAvatar } from '@/hooks/useUserAvatar';
+import { useUserStore } from '@/store/user';
+import { userProfileSelectors } from '@/store/user/selectors';
import { useAgentMeta } from '../../hooks';
import ContentBlock from '../AssistantGroup/components/ContentBlock';
import UserMessageContent from '../User/components/MessageContent';
+import { resolveSenderIdentity } from '../User/resolveSenderIdentity';
interface CompressedMessageItemProps {
message: UIChatMessage;
@@ -19,15 +24,25 @@ interface CompressedMessageItemProps {
* Reuses existing User and Assistant content components for consistency
*/
const CompressedMessageItem = memo<CompressedMessageItemProps>(({ message }) => {
+ const { t } = useTranslation('chat');
const userAvatar = useUserAvatar();
+ const currentUserId = useUserStore(userProfileSelectors.userId);
const agentAvatar = useAgentMeta(message.agentId);
- const { role, children } = message;
+ const { role, children, sender } = message;
// Render user message
if (role === 'user') {
+ // A shared (workspace) topic's compressed history may hold messages from
+ // other members — render the sender's identity, not the viewer's.
+ const { avatar, title } = resolveSenderIdentity({
+ currentUserId,
+ selfAvatar: userAvatar,
+ sender,
+ unknownLabel: t('sender.unknownMember'),
+ });
return (
<Flexbox horizontal gap={8} paddingBlock={4}>
- <Avatar avatar={userAvatar} size={28} />
+ <Avatar avatar={avatar} name={title} size={28} title={title || undefined} />
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<UserMessageContent {...message} />
</Flexbox>
@@ -39,7 +54,7 @@ const CompressedMessageItem = memo<CompressedMessageItemProps>(({ message }) =>
if (role === 'assistant') {
return (
<Flexbox horizontal gap={8} paddingBlock={4}>
- <Avatar {...agentAvatar} size={28} />
+ <Avatar {...agentAvatar} name={agentDisplayName(agentAvatar)} size={28} />
<Flexbox flex={1} style={{ overflow: 'hidden' }}>
<ContentBlock
disableEditing
@@ -56,7 +71,7 @@ const CompressedMessageItem = memo<CompressedMessageItemProps>(({ message }) =>
if (role === 'assistantGroup' && children) {
return (
<Flexbox horizontal gap={8} paddingBlock={4}>
- <Avatar {...agentAvatar} size={28} />
+ <Avatar {...agentAvatar} name={agentDisplayName(agentAvatar)} size={28} />
<Flexbox flex={1} gap={8} style={{ overflow: 'hidden' }}>
{children.map((block) => (
<ContentBlock {...block} disableEditing assistantId={message.id} key={block.id} />
diff --git a/src/features/Conversation/Messages/User/index.tsx b/src/features/Conversation/Messages/User/index.tsx
index 8b84f8b9cdb..72f9963a260 100644
--- a/src/features/Conversation/Messages/User/index.tsx
+++ b/src/features/Conversation/Messages/User/index.tsx
@@ -24,6 +24,7 @@ import {
import Actions from './Actions';
import UserMessageContent from './components/MessageContent';
import { UserMessageExtra } from './Extra';
+import { resolveSenderIdentity } from './resolveSenderIdentity';
import ScheduledRunFooter from './ScheduledRunFooter';
interface UserMessageProps {
@@ -44,12 +45,17 @@ const UserMessage = memo<UserMessageProps>(({ id, disableEditing, index }) => {
// In workspaces every user bubble shows its sender avatar so ownership is
// visible even during single-user testing; personal mode keeps the legacy
- // hidden-avatar behavior. Optimistic/streaming rows without a `sender`
- // fall back to the current user, which is who authored them.
+ // hidden-avatar behavior. Self identity applies only to the viewer's own
+ // rows — see resolveSenderIdentity.
const showSender = Boolean(activeWorkspaceId);
- const senderName = sender?.fullName || sender?.username || '';
- const avatar = sender?.avatar || senderName || selfAvatar;
- const title = senderName || selfTitle;
+ const currentUserId = useUserStore(userProfileSelectors.userId);
+ const { avatar, title } = resolveSenderIdentity({
+ currentUserId,
+ selfAvatar,
+ selfTitle,
+ sender,
+ unknownLabel: t('sender.unknownMember'),
+ });
// Get editing and loading state from ConversationStore
const editing = useConversationStore(messageStateSelectors.isMessageEditing(id));
diff --git a/src/features/Conversation/Messages/User/resolveSenderIdentity.test.ts b/src/features/Conversation/Messages/User/resolveSenderIdentity.test.ts
new file mode 100644
index 00000000000..81d840aca01
--- /dev/null
+++ b/src/features/Conversation/Messages/User/resolveSenderIdentity.test.ts
@@ -0,0 +1,81 @@
+import { describe, expect, it } from 'vitest';
+
+import { resolveSenderIdentity } from './resolveSenderIdentity';
+
+const viewer = {
+ currentUserId: 'user-viewer',
+ selfAvatar: 'https://a.com/viewer.png',
+ selfTitle: 'Viewer',
+ unknownLabel: 'Member',
+};
+
+describe('resolveSenderIdentity', () => {
+ it('uses the sender profile for another member', () => {
+ expect(
+ resolveSenderIdentity({
+ ...viewer,
+ sender: {
+ avatar: 'https://a.com/kermit.png',
+ fullName: 'Kermit',
+ id: 'user-kermit',
+ username: null,
+ },
+ }),
+ ).toEqual({ avatar: 'https://a.com/kermit.png', isOwn: false, title: 'Kermit' });
+ });
+
+ it('never falls back to the viewer identity for another member without avatar', () => {
+ const result = resolveSenderIdentity({
+ ...viewer,
+ sender: { avatar: null, fullName: 'Kermit', id: 'user-kermit', username: null },
+ });
+
+ expect(result.title).toBe('Kermit');
+ // No picture at all, so the Avatar renders initials from the title — the
+ // viewer's own avatar must never stand in for another member.
+ expect(result.avatar).toBeUndefined();
+ });
+
+ it('labels another nameless member as unknown instead of impersonating the viewer', () => {
+ const result = resolveSenderIdentity({
+ ...viewer,
+ sender: { avatar: null, fullName: null, id: 'user-kermit', username: null },
+ });
+
+ expect(result).toEqual({ avatar: undefined, isOwn: false, title: 'Member' });
+ });
+
+ it('falls back to username when fullName is missing', () => {
+ const result = resolveSenderIdentity({
+ ...viewer,
+ sender: { avatar: null, fullName: null, id: 'user-kermit', username: 'kermit' },
+ });
+
+ expect(result.title).toBe('kermit');
+ });
+
+ it('keeps self identity for the viewer own resolved sender', () => {
+ const result = resolveSenderIdentity({
+ ...viewer,
+ sender: { avatar: null, fullName: null, id: 'user-viewer', username: null },
+ });
+
+ expect(result).toEqual({ avatar: viewer.selfAvatar, isOwn: true, title: 'Viewer' });
+ });
+
+ it('treats sender-less rows as the viewer own optimistic message', () => {
+ const result = resolveSenderIdentity({ ...viewer, sender: null });
+
+ expect(result).toEqual({ avatar: viewer.selfAvatar, isOwn: true, title: 'Viewer' });
+ });
+
+ it('prefers the sender own name over the viewer profile for own messages', () => {
+ const result = resolveSenderIdentity({
+ ...viewer,
+ sender: { avatar: null, fullName: 'Real Name', id: 'user-viewer', username: null },
+ });
+
+ expect(result.title).toBe('Real Name');
+ expect(result.avatar).toBe(viewer.selfAvatar);
+ });
+});
diff --git a/src/features/Conversation/Messages/User/resolveSenderIdentity.ts b/src/features/Conversation/Messages/User/resolveSenderIdentity.ts
new file mode 100644
index 00000000000..53fcde392c4
--- /dev/null
+++ b/src/features/Conversation/Messages/User/resolveSenderIdentity.ts
@@ -0,0 +1,40 @@
+import { type MessageSender } from '@lobechat/types';
+
+interface ResolveSenderIdentityOptions {
+ /** Viewer's user id, used to detect their own messages. */
+ currentUserId?: string | null;
+ /** Viewer's avatar, applied only to their own messages. */
+ selfAvatar: string;
+ /** Viewer's display name, applied only to their own messages. */
+ selfTitle?: string;
+ sender?: MessageSender | null;
+ /** Label for another member whose profile carries no usable name. */
+ unknownLabel: string;
+}
+
+/**
+ * Resolve the avatar/title shown on a user message bubble.
+ *
+ * Only local optimistic/streaming rows lack a `sender` (every server read path
+ * hydrates it), and those are authored by the viewer — so self identity applies
+ * only when the row is theirs. A resolved sender that is someone else must
+ * NEVER fall back to the viewer's avatar/name, or shared workspace topics
+ * misattribute their messages to whoever is looking.
+ */
+export const resolveSenderIdentity = ({
+ currentUserId,
+ selfAvatar,
+ selfTitle,
+ sender,
+ unknownLabel,
+}: ResolveSenderIdentityOptions) => {
+ const isOwn = !sender || sender.id === currentUserId;
+ const senderName = sender?.fullName || sender?.username || '';
+ const title = isOwn ? senderName || selfTitle || '' : senderName || unknownLabel;
+ // Left undefined on purpose for an avatar-less other member: `@/components/Avatar`
+ // derives initials and a hashed background from the resolved `title`, which is a
+ // far better placeholder than borrowing the viewer's picture.
+ const avatar = sender?.avatar || (isOwn ? selfAvatar : undefined);
+
+ return { avatar, isOwn, title };
+};
diff --git a/src/features/SharePopover/index.tsx b/src/features/SharePopover/index.tsx
index d7830a00cdd..b0d2de2dcfb 100644
--- a/src/features/SharePopover/index.tsx
+++ b/src/features/SharePopover/index.tsx
@@ -58,8 +58,12 @@ const SharePopoverContent = memo<SharePopoverContentProps>(({ onOpenModal, topic
s.updateSystemStatus,
]);
+ // Scoped to the topic that failed: the popover is reused across topics, so a
+ // sticky boolean would keep showing the error on the next one.
+ const [failedTopicId, setFailedTopicId] = useState<string>();
const {
data: shareInfo,
+ error: loadError,
isLoading,
mutate,
} = useSWR(
@@ -68,12 +72,18 @@ const SharePopoverContent = memo<SharePopoverContentProps>(({ onOpenModal, topic
{ revalidateOnFocus: false },
);
- // Auto-create share record if not exists
+ // Auto-create share record if not exists. Surface failures (e.g. a 403 from
+ // the share permission gate) instead of leaving the popover on the skeleton.
useEffect(() => {
- if (!isLoading && !shareInfo && activeTopicId && canShare) {
- topicService.enableSharing(activeTopicId, 'private').then(() => mutate());
- }
- }, [isLoading, shareInfo, activeTopicId, canShare, mutate]);
+ if (isLoading || loadError || shareInfo || !activeTopicId || !canShare) return;
+ // One attempt per topic — a rerender must not retry a create we know failed.
+ if (failedTopicId === activeTopicId) return;
+
+ topicService
+ .enableSharing(activeTopicId, 'private')
+ .then(() => mutate())
+ .catch(() => setFailedTopicId(activeTopicId));
+ }, [isLoading, loadError, shareInfo, activeTopicId, canShare, failedTopicId, mutate]);
const shareUrl = shareInfo?.id ? `${appOrigin}/share/t/${shareInfo.id}` : '';
const currentVisibility = (shareInfo?.visibility as Visibility) || 'private';
@@ -162,6 +172,13 @@ const SharePopoverContent = memo<SharePopoverContentProps>(({ onOpenModal, topic
onOpenModal?.();
}, [close, onOpenModal]);
+ // Clearing the per-topic failure re-arms the create effect; `mutate` reruns
+ // the read so a transient load error clears with it.
+ const handleRetry = useCallback(() => {
+ setFailedTopicId(undefined);
+ void mutate();
+ }, [mutate]);
+
if (!canShare) {
return (
<Flexbox className={styles.container} gap={8}>
@@ -171,6 +188,20 @@ const SharePopoverContent = memo<SharePopoverContentProps>(({ onOpenModal, topic
);
}
+ if (loadError || failedTopicId === activeTopicId) {
+ return (
+ <Flexbox className={styles.container} gap={8}>
+ <Text strong>{t('share', { ns: 'common' })}</Text>
+ <Text type="secondary">{t('shareModal.popover.loadError')}</Text>
+ <Flexbox horizontal justify={'flex-end'}>
+ <Button size="small" type="text" onClick={handleRetry}>
+ {t('retry', { ns: 'common' })}
+ </Button>
+ </Flexbox>
+ </Flexbox>
+ );
+ }
+
// Loading state
if (isLoading || !shareInfo) {
return (
diff --git a/src/features/TopicCreatorAvatar/index.test.tsx b/src/features/TopicCreatorAvatar/index.test.tsx
index 2d33dc97d6b..da8e9b788b7 100644
--- a/src/features/TopicCreatorAvatar/index.test.tsx
+++ b/src/features/TopicCreatorAvatar/index.test.tsx
@@ -14,15 +14,31 @@ vi.mock('@/business/client/hooks/useAuthorInfo', () => ({
}));
vi.mock('@lobehub/ui', () => ({
- Avatar: ({ avatar, shape, title }: { avatar?: string; shape?: string; title?: string }) => (
+ Tooltip: ({ children }: { children?: ReactNode }) => <>{children}</>,
+}));
+
+// The identity-preserving wrapper owns the initials/background fallback; this
+// component's contract is only what it hands over.
+vi.mock('@/components/Avatar', () => ({
+ default: ({
+ avatar,
+ name,
+ shape,
+ title,
+ }: {
+ avatar?: string;
+ name?: string;
+ shape?: string;
+ title?: string;
+ }) => (
<span
data-avatar={avatar ?? ''}
+ data-name={name ?? ''}
data-shape={shape ?? ''}
data-testid="avatar"
data-title={title ?? ''}
/>
),
- Tooltip: ({ children }: { children?: ReactNode }) => <>{children}</>,
}));
describe('TopicCreatorAvatar', () => {
@@ -38,6 +54,16 @@ describe('TopicCreatorAvatar', () => {
expect(avatar.getAttribute('data-title')).toBe('Alice');
});
+ it('passes the name so an avatar-less member falls back to their initials', () => {
+ useAuthorInfoMock.mockReturnValue({ avatar: null, fullName: 'Alice' });
+
+ const { getByTestId } = render(<TopicCreatorAvatar userId="any-member" />);
+
+ const avatar = getByTestId('avatar');
+ expect(avatar.getAttribute('data-avatar')).toBe('');
+ expect(avatar.getAttribute('data-name')).toBe('Alice');
+ });
+
it('keeps the avatar primary and shrinks the row icon into the corner badge', () => {
useAuthorInfoMock.mockReturnValue({ avatar: 'https://x/y.png', fullName: 'Alice' });
diff --git a/src/features/TopicCreatorAvatar/index.tsx b/src/features/TopicCreatorAvatar/index.tsx
index 5f354e6c03e..3ef2f3478db 100644
--- a/src/features/TopicCreatorAvatar/index.tsx
+++ b/src/features/TopicCreatorAvatar/index.tsx
@@ -1,10 +1,11 @@
'use client';
-import { Avatar, Tooltip } from '@lobehub/ui';
+import { Tooltip } from '@lobehub/ui';
import { cssVar } from 'antd-style';
import { memo, type ReactNode } from 'react';
import { useAuthorInfo } from '@/business/client/hooks/useAuthorInfo';
+import Avatar from '@/components/Avatar';
/**
* Resolves a topic creator's profile from the *active workspace* members.
@@ -42,6 +43,7 @@ const TopicCreatorAvatar = memo<TopicCreatorAvatarProps>(({ userId, size = 20, c
<Tooltip title={author.fullName}>
<Avatar
avatar={author.avatar ?? undefined}
+ name={author.fullName ?? undefined}
shape={'circle'}
size={size}
style={{ flex: 'none' }}