Skip to content

Commit dd9dce4

Browse files
authored
Merge pull request #2184 from TencentCloud/release/1.0.2
**[1.0.2] - 2026-10-18** **New Features** - Two Octop instances can now connect: collaborate via the cloud using each other's experts — chat, or edit files in each other's workspace - Experts can form teams. The host assigns tasks and summarizes results; member replies flow back into the chat and sync to instant messaging - New connectors: Qichacha, OpenAlex, Yuque, Obsidian, Agent Mail, and DingTalk CLI (after logging in via device code you can query contacts, calendars, and docs) - Log in with your company's LDAP account. Telegram bots can restrict which users can talk to them - Memory can be manually edited — both "user profiles" and "strong memories." When new info conflicts with existing memory, you'll be asked to confirm instead of silently overwriting. Backup and restore supported - Skills and skill packs can be exported as a ZIP and imported on another machine. Skill pack authors can disable third-party bundling/download - Scheduled jobs can run once and auto-disable afterward, staying in the list. You can add more instructions mid-conversation without waiting for the current round to finish - Each expert can set a default conversation style: Q&A, planning, or execution. The sidebar can be reordered by account - Voice support for Tencent Cloud real-time transcription. When the current model is unavailable, you can switch to another one automatically based on health status - Knowledge base now lets you browse documents by folder. New expert templates added: business process, knowledge work, etc. Built-in assistant can answer product and usage questions - Other programs can call this Agent via the Agent MCP gateway. ONNX models can be loaded directly without Hugging Face **Bug Fixes** - On Chinese Windows, encoding issues during search or command execution no longer abort the entire conversation round, and command output is no longer lost - Legacy Word files (.doc) in the knowledge base now show extracted text; in workspace, chat, and skills they are downloaded instead - When a cloud team refreshes the page, ongoing member replies continue to appear. If the other party refuses to log in, your own account stays logged in - Deleting a session clears all its associated data. Remote storage timeouts no longer block the entire service startup - Email subjects with non-standard encoded Chinese characters can now be read normally **Changes** - Chat sidebar split into Experts, Teams, and Cloud sections; if you don't have a team or cloud connection yet, you can create one directly - In Personalization, Skills, Sub-agents, Tools, Plugins, Personality, and Memory can each be toggled separately — no need to enable everything at once - Less-used input bar actions moved into the "+" menu. The approve button is hidden when approval is not enabled - FunOS now provides ARM installation packages; after install, a new account setup wizard runs
2 parents 4f443ba + a2890ae commit dd9dce4

146 files changed

Lines changed: 7177 additions & 1614 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,43 @@
66

77
## [Unreleased]
88

9+
## [1.0.2] - 2026-10-18
10+
11+
### 新增
12+
- 两台 Octop 可以连起来用:通过云端协同使用对方的专家,能聊天,也能改对方工作区里的文件
13+
- 专家可以组队。主持人负责分派任务和收尾总结,成员的回复会回到聊天,也会同步到即时通讯
14+
- 新连接器:企查查、OpenAlex、语雀、Obsidian、Agent Mail,以及钉钉命令行(设备码登录后可查通讯录、日程和文档)
15+
- 可以用公司的 LDAP 账号登录。Telegram 机器人可以限定哪些用户能跟它说话
16+
- 记忆可以手改「用户档案」和「强记忆」。和已有记忆打架时先请你确认,不会悄悄覆盖;也可以备份和恢复
17+
- 技能和技能包可以导出成一个 ZIP,换一台机器再导入。技能包可以关掉别人的打包下载
18+
- 定时任务可以只跑一次,跑完自动停用,仍留在列表里。聊天进行中可以再补一句,不用等这一轮结束
19+
- 每个专家可以设定默认对话方式:问答、规划或动手。侧栏可以按自己的账号重新排列
20+
- 语音支持腾讯云边说边出字。当前模型不可用时,可以按健康状态自动换一个
21+
- 知识库旁边可以按文件夹浏览文档。新增业务流程、知识工作等专家模板。内置助手可以回答产品和用法问题
22+
- 别的程序可以通过 Agent MCP 网关调用这个 Agent。ONNX 模型可以不连 Hugging Face 直接加载
23+
24+
### 修复
25+
- 中文 Windows 上,搜索或执行命令碰到编码问题时,不再把整轮对话判失败,也不再把命令输出弄丢
26+
- 旧版 Word(.doc)在知识库里改为显示抽出的文字,在工作区、对话和技能里改为下载
27+
- 云端团队刷新页面后,正在生成的成员回复还在。对方拒绝登录时,不会把你自己的账号退出
28+
- 删掉会话会一并清掉它留下的数据。远程存储卡住时,不再挡住整个服务启动
29+
- 邮件标题里没有按规范编码的中文,可以正常读出来
30+
31+
### 变更
32+
- 聊天侧栏分成专家、团队、云端三块;还没有团队或云端连接时,可以直接去创建
33+
- 个性化里的技能、子智能体、工具、插件、性格和记忆可以分别授权,不必一次全开
34+
- 输入栏不常用的入口收进「+」。没有开启审批时,不再出现批准按钮
35+
- 飞牛提供 ARM 安装包,安装后走建账号向导
36+
937
## [1.0.2b9] - 2026-10-16
1038

1139
### 新增
40+
- 新增钉钉 CLI 连接器:通过官方钉钉 Workspace CLI(`dws`)操作通讯录、聊天、日程、文档等;保存后在连接器设置里用设备码登录授权钉钉账号,默认使用钉钉官方应用,也可填写自建应用的 AppKey / AppSecret(#930)
41+
- 聊天侧栏可置顶专家,并按专家名或会话标题搜索
42+
- 新增业务流程专家模板,涵盖 SOP、操作手册、流程优化、风险评估、供应商评估和运营报告;中文界面默认使用中文,基于用户提供的材料工作,无需连接器。
43+
- 自建技能可以单个或批量导出为一个 ZIP;技能包也可以整包导出为同一个 ZIP 格式,再导入到其他专家或技能包(#260)。技能包可以关闭打包下载,关闭后其他用户不能导出 ZIP,创建者和管理员仍可下载
44+
- 记忆页新增「用户档案」Tab 手动编辑 USER.md,与「强记忆」复用编辑器和会话快照;Agent 文件工具只读。保存后核对 USER.md/MEMORY.md 与普通记忆:手动文档优先,明确冲突转候选审核并提示用户,重复内容避免重复召回。停止的 Agent 也可检查,语义检查不确定或不可用时明确提示,旧版本候选禁止采纳。
45+
- 记忆页新增「强记忆」Tab,用户可手动编辑 MEMORY.md,支持停止状态的 Agent。每个会话首次加载全文快照并持续复用,修改对新会话生效。用户说「记住」通过 memory_save 保存到 octop-memory,Agent 不再自动改写 MEMORY.md。
1246
- 聊天侧栏置顶专家;业务流程专家;技能与技能包导出 ZIP
1347
- 记忆页可手改用户档案与强记忆,冲突转入审核
1448
- 技能、工具与团队的决策模型;通道插件;模型健康切换

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<p align="center">
1616
<a href="https://www.python.org/downloads/"><img alt="Python 3.12+" src="https://img.shields.io/badge/python-3.12%2B-blue?logo=python&logoColor=white" /></a>
1717
<a href="https://github.com/TencentCloud/Octop/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green" /></a>
18-
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.2b9-orange" /></a>
18+
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.2-orange" /></a>
1919
<a href="https://pypi.org/project/octop/"><img src="https://img.shields.io/pypi/v/octop" alt="PyPI" /></a>
2020
<a href="https://github.com/astral-sh/ruff"><img alt="Code Style: Ruff" src="https://img.shields.io/badge/code%20style-ruff-000000?logo=ruff&logoColor=white" /></a>
2121
<a href="https://github.com/TencentCloud/Octop"><img alt="GitHub stars" src="https://img.shields.io/github/stars/TencentCloud/Octop?style=social" /></a>

‎README_CN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<p align="center">
1616
<a href="https://www.python.org/downloads/"><img alt="Python 3.12+" src="https://img.shields.io/badge/python-3.12%2B-blue?logo=python&logoColor=white" /></a>
1717
<a href="https://github.com/TencentCloud/Octop/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green" /></a>
18-
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.2b9-orange" /></a>
18+
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.2-orange" /></a>
1919
<a href="https://pypi.org/project/octop/"><img src="https://img.shields.io/pypi/v/octop" alt="PyPI" /></a>
2020
<a href="https://github.com/astral-sh/ruff"><img alt="Code Style: Ruff" src="https://img.shields.io/badge/code%20style-ruff-000000?logo=ruff&logoColor=white" /></a>
2121
<a href="https://github.com/TencentCloud/Octop"><img alt="GitHub stars" src="https://img.shields.io/github/stars/TencentCloud/Octop?style=social" /></a>

‎dashboard/src/api/modules/settings.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { request } from "../request";
1+
import { bridgeAgentHeaders, request } from "../request";
22

33
export interface OctopTimezoneSettings {
44
timezone: string;
@@ -49,7 +49,10 @@ export interface CaptchaSettingsPut {
4949
export const octopSettingsApi = {
5050
timezone: () => request<OctopTimezoneSettings>("/settings/timezone"),
5151
upload: () => request<OctopUploadSettings>("/settings/upload"),
52-
hitl: () => request<OctopHitlSettings>("/settings/hitl"),
52+
hitl: (agentId?: string | null) =>
53+
request<OctopHitlSettings>("/settings/hitl", {
54+
headers: bridgeAgentHeaders(agentId),
55+
}),
5356
capabilities: () =>
5457
request<OctopCapabilitiesSettings>("/settings/capabilities", {
5558
cache: "no-store",

‎dashboard/src/api/request.ts‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ function buildAuthHeaders(path: string): Record<string, string> {
302302

303303
let _redirectingToLogin = false;
304304

305+
/** 401 codes that mean this Octop session is no longer valid. */
306+
const SESSION_UNAUTHORIZED_CODES = new Set(["AUTH_FAILED", "TOKEN_EXPIRED"]);
307+
305308
/**
306309
* Send the user to the login screen exactly once, no matter how many parallel
307310
* requests report an expired session.
@@ -330,13 +333,34 @@ function handleUnauthorized(): void {
330333
* Handle 401 responses: clear token, redirect to login, and throw.
331334
* Shared by request(), requestBlob(), and requestUpload().
332335
*/
336+
async function errorCodeOf(response: Response): Promise<string | undefined> {
337+
try {
338+
const body = (await response.clone().json()) as {
339+
error?: { code?: string };
340+
};
341+
const code = body?.error?.code;
342+
return typeof code === "string" && code.trim() ? code : undefined;
343+
} catch {
344+
return undefined;
345+
}
346+
}
347+
333348
async function throwIfUnauthorized(
334349
path: string,
335350
response: Response,
336351
): Promise<void> {
337352
if (response.status !== 401 || path.startsWith("/auth/")) {
338353
return;
339354
}
355+
const code = await errorCodeOf(response);
356+
// Business 401s (peer login, etc.) are not a dead local session.
357+
if (
358+
code &&
359+
!SESSION_UNAUTHORIZED_CODES.has(code) &&
360+
!path.startsWith("/setup/")
361+
) {
362+
return;
363+
}
340364
clearAuthToken();
341365
handleUnauthorized();
342366
let message = "Unauthorized";

‎dashboard/src/api/request.unauthorized.test.ts‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,36 @@ describe("401 handling", () => {
5555
expect(replace).toHaveBeenCalledWith("/login");
5656
});
5757

58+
it("keeps the local session when a 401 is a peer credential error", async () => {
59+
vi.stubGlobal(
60+
"fetch",
61+
vi.fn(() =>
62+
Promise.resolve(
63+
new Response(
64+
JSON.stringify({
65+
error: {
66+
code: "BRIDGE_AUTH_FAILED",
67+
message: "peer rejected credentials",
68+
details: {},
69+
},
70+
}),
71+
{
72+
status: 401,
73+
headers: { "content-type": "application/json" },
74+
},
75+
),
76+
),
77+
),
78+
);
79+
80+
await expect(
81+
mod.request("/bridge/probe", { method: "POST" }),
82+
).rejects.toThrow(/BRIDGE_AUTH_FAILED/);
83+
84+
expect(replace).not.toHaveBeenCalled();
85+
expect(mod.getAuthToken()).toBe("expired-token");
86+
});
87+
5888
it("redirects only once when several requests fail concurrently", async () => {
5989
const listener = vi.fn((event: Event) => event.preventDefault());
6090
window.addEventListener(mod.UNAUTHORIZED_EVENT, listener);
2.13 KB
Loading

‎dashboard/src/assets/connectors/index.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import tencentArdot from "./tencent-ardot.png";
22
import baiduMap from "./baidu-map.png";
33
import ctripWendao from "./ctrip-wendao.png";
44
import didi from "./didi.svg";
5+
import dingtalkCli from "./dingtalk-cli.png";
56
import dida365 from "./dida365.png";
67
import dify from "./dify.svg";
78
import agentlyCli from "./agently-cli.png";
@@ -42,6 +43,7 @@ export const CONNECTOR_LOGOS: Record<string, string> = {
4243
"agently-cli": agentlyCli,
4344
"feishu-cli": feishuCli,
4445
"wecom-cli": wecomCli,
46+
"dingtalk-cli": dingtalkCli,
4547
"tencent-lexiang": tencentLexiang,
4648
"tencent-meeting": tencentMeeting,
4749
notion,

‎dashboard/src/components/CopyableResourceId.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ type CopyableResourceIdProps = {
1414
className?: string;
1515
/** Match surrounding meta text (e.g. creator line). */
1616
inline?: boolean;
17+
/** Inline: show only the value, without the `label:` prefix. */
18+
valueOnly?: boolean;
1719
};
1820

1921
export function CopyableResourceId({
@@ -22,6 +24,7 @@ export function CopyableResourceId({
2224
copyTitle,
2325
className,
2426
inline = false,
27+
valueOnly = false,
2528
}: CopyableResourceIdProps) {
2629
const { t } = useTranslation();
2730

@@ -41,7 +44,7 @@ export function CopyableResourceId({
4144
onClick={() => void copy()}
4245
>
4346
<span className={inline ? styles.inlineText : styles.label}>
44-
{inline ? `${label}: ${value}` : label}
47+
{inline ? (valueOnly ? value : `${label}: ${value}`) : label}
4548
</span>
4649
{!inline ? <span className={styles.value}>{value}</span> : null}
4750
<Copy

‎dashboard/src/components/DocumentPreviewCore.tsx‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ export interface DocumentPreviewCoreProps {
2626
onProgress?: (loaded: number, total: number) => void,
2727
signal?: AbortSignal,
2828
) => Promise<Blob>;
29-
/** Optional download when the kind cannot be rendered (e.g. legacy ``.ppt``). */
29+
/** Optional download when the kind cannot be rendered (legacy ``.ppt`` / ``.doc``). */
3030
onDownload?: () => void | Promise<void>;
3131
}
3232

33+
/** Office binaries with no in-browser renderer (legacy ``.ppt`` / ``.doc``). */
34+
function isDownloadOnlyKind(kind: DocKind): boolean {
35+
return kind === "ppt" || kind === "doc";
36+
}
37+
3338
function isAbortError(err: unknown): boolean {
3439
return (
3540
(err instanceof DOMException && err.name === "AbortError") ||
@@ -398,7 +403,7 @@ export default function DocumentPreviewCore({
398403
pptxViewerRef.current?.destroy();
399404
pptxViewerRef.current = null;
400405
if (containerRef.current) containerRef.current.innerHTML = "";
401-
if (kind === "ppt") {
406+
if (isDownloadOnlyKind(kind)) {
402407
setLoading(false);
403408
return;
404409
}
@@ -567,7 +572,7 @@ export default function DocumentPreviewCore({
567572
);
568573
}
569574

570-
if (kind === "ppt") {
575+
if (isDownloadOnlyKind(kind)) {
571576
return (
572577
<div className={styles.viewerEmpty}>
573578
<p

0 commit comments

Comments
 (0)