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: label canvas featured works and type the connector OAuth cancel error (#21419)

Arvin Xu0e8fc5b2af46
diff --git a/locales/en-US/agent.json b/locales/en-US/agent.json
index 49fb1f117a0..ad199ed6043 100644
--- a/locales/en-US/agent.json
+++ b/locales/en-US/agent.json
@@ -589,6 +589,7 @@
"share.visitor.profile.works.desc": "Selected by the creator. See what this agent can deliver.",
"share.visitor.profile.works.open": "Open work",
"share.visitor.profile.works.title": "Featured works",
+ "share.visitor.profile.works.type.canvas": "Canvas",
"share.visitor.profile.works.type.document": "Document",
"share.visitor.profile.works.type.external": "Linked work",
"share.visitor.profile.works.type.file": "File",
diff --git a/locales/zh-CN/agent.json b/locales/zh-CN/agent.json
index 715658397a3..11e5bec8e13 100644
--- a/locales/zh-CN/agent.json
+++ b/locales/zh-CN/agent.json
@@ -589,6 +589,7 @@
"share.visitor.profile.works.desc": "由创建者精选,看看这个助手能交付什么。",
"share.visitor.profile.works.open": "打开成果",
"share.visitor.profile.works.title": "精选成果",
+ "share.visitor.profile.works.type.canvas": "画布",
"share.visitor.profile.works.type.document": "文档",
"share.visitor.profile.works.type.external": "外部成果",
"share.visitor.profile.works.type.file": "文件",
diff --git a/packages/locales/src/default/agent.ts b/packages/locales/src/default/agent.ts
index e99a6e522f2..20854bc11ec 100644
--- a/packages/locales/src/default/agent.ts
+++ b/packages/locales/src/default/agent.ts
@@ -824,6 +824,7 @@ export default {
'share.visitor.profile.works.desc': 'Selected by the creator. See what this agent can deliver.',
'share.visitor.profile.works.untitled': 'Untitled work',
'share.visitor.profile.works.open': 'Open work',
+ 'share.visitor.profile.works.type.canvas': 'Canvas',
'share.visitor.profile.works.type.document': 'Document',
'share.visitor.profile.works.type.task': 'Task',
'share.visitor.profile.works.type.file': 'File',
diff --git a/src/utils/connectorOAuth.ts b/src/utils/connectorOAuth.ts
index 5901ea4e3ea..6257db3a96b 100644
--- a/src/utils/connectorOAuth.ts
+++ b/src/utils/connectorOAuth.ts
@@ -27,7 +27,7 @@ export const waitForConnectorOAuth = async (
const oauth = ensureElectronIpc().connectorOAuth;
const requestId = crypto.randomUUID();
const onAbort = () => {
- oauth.cancel({ requestId }).catch((error) => {
+ oauth.cancel({ requestId }).catch((error: unknown) => {
console.error('Failed to cancel native connector authorization', error);
});
};