Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
e6bb61a
Merge pull request #3002 from TencentCloud/chore/sync-develop-after-1…
liukewia Nov 16, 2026
4eb38e9
fix(telegram): preserve context when replying to bot messages
ideshun Nov 16, 2026
c7c2de3
fix(connectors): discover path-scoped MCP OAuth metadata per RFC 8414
huangcheng Nov 16, 2026
6b19a64
chore: stop hosting PR screenshots on the branch
huangcheng Nov 16, 2026
fbee84d
Merge pull request #3004 from huangcheng/fix/mcp-oauth-rfc8414-metada…
jubaoliang Nov 16, 2026
ff078d3
fix(memory): report Postgres orphan checkpoints instead of deleting t…
Bosheng0422 Nov 17, 2026
af99310
feat(cloud): redesign workbench region picker and unify cloud hosts t…
seed30 Nov 17, 2026
4d5e3f9
merge: resolve Telegram context PR against upstream develop
ideshun Nov 17, 2026
bff8d69
fix(memory): 防止过期响应覆盖当前记忆列表 (#1449)
MakerFlyFly Nov 17, 2026
7cbccf1
merge: resolve changelog conflict with upstream develop
ideshun Nov 17, 2026
80f6f0f
fix(dashboard): keep the left edge of wide Word / PDF pages reachable…
alison-xx Nov 17, 2026
ef60684
docs(changelog): record cloud workbench region picker and typography …
seed30 Nov 17, 2026
994598e
Merge remote-tracking branch 'origin/develop' into feat/cloud-region-…
seed30 Nov 17, 2026
0ac614e
Merge pull request #3005 from ideshun/fix/telegram-own-reply-context
seed30 Nov 17, 2026
a2ce54f
fix(dashboard): cover the whole window with the new-user tour mask (#…
alison-xx Nov 17, 2026
18a3882
Merge pull request #3013 from TencentCloud/feat/cloud-region-picker-t…
seed30 Nov 17, 2026
479c86a
chore(deps): bump Octop runtime libraries (#3017)
Bosheng0422 Nov 17, 2026
0a565cd
feat: give managed experts session modes and Octop tools (#3018)
jubaoliang Nov 17, 2026
cba331c
chore: release 1.0.3b7
jubaoliang-tencent Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@

## [Unreleased]

## [1.0.3b7] - 2026-11-17

### 新增
- 托管专家可选会话模式,并能使用连接器、知识库、专家回调和已启用的插件
- 云服务器页的地域筛选改为按大区分组的下拉面板

### 变更
- 工具调用上限只拦截连续的相同调用
- 云服务器页侧栏折叠、字号和未授权提示与对话页对齐

### 修复
- Docker 部署时仍可将宿主机目录挂进 Docker 专家
- Telegram 回复本机器人时保留引用;记忆列表不再被过期响应覆盖
- PostgreSQL 清理孤儿 checkpoint 时只统计,不再误删其他智能体的对话
- 带路径的 MCP OAuth 按规范发现授权信息
- 窄屏下 Word / PDF 左侧可以滚到;新手引导遮罩铺满窗口

## [1.0.3b6] - 2026-11-15

### 新增
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p align="center">
<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>
<a href="https://github.com/TencentCloud/Octop/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green" /></a>
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.3b6-orange" /></a>
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.3b7-orange" /></a>
<a href="https://pypi.org/project/octop/"><img src="https://img.shields.io/pypi/v/octop" alt="PyPI" /></a>
<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>
<a href="https://github.com/TencentCloud/Octop"><img alt="GitHub stars" src="https://img.shields.io/github/stars/TencentCloud/Octop?style=social" /></a>
Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<p align="center">
<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>
<a href="https://github.com/TencentCloud/Octop/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green" /></a>
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.3b6-orange" /></a>
<a href="https://github.com/TencentCloud/Octop/releases"><img alt="Version" src="https://img.shields.io/badge/version-1.0.3b7-orange" /></a>
<a href="https://pypi.org/project/octop/"><img src="https://img.shields.io/pypi/v/octop" alt="PyPI" /></a>
<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>
<a href="https://github.com/TencentCloud/Octop"><img alt="GitHub stars" src="https://img.shields.io/github/stars/TencentCloud/Octop?style=social" /></a>
Expand Down
52 changes: 52 additions & 0 deletions dashboard/src/api/modules/acp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,53 @@ export interface AcpHostRequest {
env: Record<string, string>;
}

export interface AcpSessionMode {
id: string;
name_zh: string;
name_en: string;
hint_zh: string;
hint_en: string;
}

export function acpSessionModeText(
mode: AcpSessionMode,
language: string,
field: "name" | "hint",
): string {
const zh = language.toLowerCase().startsWith("zh");
return zh ? mode[`${field}_zh`] : mode[`${field}_en`];
}

/** Same ids the harness treats as unattended. */
export function isUnattendedSessionMode(modeId: string): boolean {
const folded = modeId.toLowerCase();
return (
folded.includes("yolo") ||
folded.includes("bypass") ||
folded.includes("full-access") ||
folded.includes("fullaccess") ||
folded.includes("auto-accept") ||
folded.includes("autoaccept") ||
folded.includes("unrestricted") ||
folded.includes("danger")
);
}

export function catalogOffersUnattendedMode(modes: { id: string }[]): boolean {
return modes.some((mode) => isUnattendedSessionMode(mode.id));
}

/** Approval stored with a managed expert. A published unattended mode wins. */
export function permissionForSessionMode(
modes: { id: string }[],
sessionMode: string,
yoloSwitch: boolean,
): "ask" | "yolo" {
if (isUnattendedSessionMode(sessionMode)) return "yolo";
if (catalogOffersUnattendedMode(modes)) return "ask";
return yoloSwitch ? "yolo" : "ask";
}

export const acpApi = {
/** Global runner definitions (shared by all agents for the current user). */
getGlobalRunners: (agentId?: string | null) =>
Expand All @@ -63,6 +110,11 @@ export const acpApi = {
headers: optionalAgentHeaders(agentId),
}),

sessionModes: (runner: string) =>
request<{ runner: string; modes: AcpSessionMode[] }>(
`/acp/session-modes?runner=${encodeURIComponent(runner)}`,
),

getRunner: (runnerName: string) =>
request<ACPRunnerConfig>(`/acp/${encodeURIComponent(runnerName)}`),

Expand Down
4 changes: 4 additions & 0 deletions dashboard/src/api/modules/managedAgents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export interface ManagedAgentCreate {
group_ids?: string[];
quick_prompts?: ManagedQuickPrompt[];
file_overrides?: ManagedWorkspaceFile[];
skill_package_ids?: string[];
knowledge_base_ids?: string[];
mcp_servers?: string[];
permission_mode?: "ask" | "yolo";
}

export const managedAgentsApi = {
Expand Down
4 changes: 4 additions & 0 deletions dashboard/src/api/modules/octopThreads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface OctopThread {
reasoning_mode?: "auto" | "enabled" | "disabled" | null;
reasoning_effort?: string | null;
conversation_mode?: "ask" | "plan" | "craft" | null;
session_mode?: string | null;
pending_plan_path?: string | null;
hitl_policy?: HitlSessionPolicy | null;
/** Legacy path list (compat). Prefer ``artifact_refs`` when present. */
Expand Down Expand Up @@ -92,6 +93,7 @@ export interface OctopThreadHistory {
reasoning_mode?: "auto" | "enabled" | "disabled" | null;
reasoning_effort?: string | null;
conversation_mode?: "ask" | "plan" | "craft" | null;
session_mode?: string | null;
pending_plan_path?: string | null;
hitl_policy?: HitlSessionPolicy | null;
has_more?: boolean;
Expand Down Expand Up @@ -126,6 +128,7 @@ export interface OctopThreadPatch {
reasoning_mode?: "auto" | "enabled" | "disabled" | null;
reasoning_effort?: string | null;
conversation_mode?: "ask" | "plan" | "craft" | null;
session_mode?: string | null;
hitl_policy?: HitlSessionPolicy | null;
}

Expand Down Expand Up @@ -251,6 +254,7 @@ export const octopThreadsApi = {
reasoning_mode?: "auto" | "enabled" | "disabled" | null;
reasoning_effort?: string | null;
conversation_mode?: "ask" | "plan" | "craft" | null;
session_mode?: string | null;
pending_plan_path?: string | null;
hitl_policy?: HitlSessionPolicy | null;
}>(
Expand Down
2 changes: 2 additions & 0 deletions dashboard/src/api/modules/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export interface TeamMemberSummary {
state?: string;
is_shared?: boolean;
user_id?: number | null;
kind?: string | null;
managed_runner?: string | null;
}

export interface TeamRecord {
Expand Down
52 changes: 39 additions & 13 deletions dashboard/src/components/AgentProfileDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { request } from "../api/request";
import { withFromWorkspace } from "../utils/fromWorkspace";
import type { OctopAgent } from "../context/AgentContext";
import { useAgent } from "../context/AgentContext";
import { useCurrentUser } from "../hooks/useCurrentUser";
import { isAgentChatReady } from "../utils/agentError";
import { isTeamAgent } from "../utils/teamAgent";
import {
Expand All @@ -26,6 +27,8 @@ import {
ExpertIcon,
metaForFile,
} from "../pages/Experts/components/iconForName";
import { ManagedAvatarMark } from "../pages/Experts/components/ManagedAvatarMark";
import { incomingShareProps, SharedAvatarMark } from "./SharedResourceBadge";
import { fetchConfigMdFiles } from "../pages/Experts/components/expertFileGroups";
import { useSkillDisplayName } from "../pages/Agent/Skills/skillDisplayNames";
import { DEFAULT_SKILL_EMOJI } from "../pages/Agent/Skills/skillMarkdown";
Expand Down Expand Up @@ -114,6 +117,7 @@ export default function AgentProfileDrawer({
}: AgentProfileDrawerProps) {
const { t } = useTranslation();
const { agents } = useAgent();
const viewerId = useCurrentUser()?.id;
const skillDisplayName = useSkillDisplayName();
const [loading, setLoading] = useState(false);
const [filesLoading, setFilesLoading] = useState(false);
Expand Down Expand Up @@ -145,6 +149,12 @@ export default function AgentProfileDrawer({
icon_name: found.icon_name ?? member.icon_name,
icon_url: found.icon_url ?? member.icon_url,
state: found.state || member.state,
kind: found.kind || member.kind,
managed_runner:
(found.kind === "managed" &&
typeof found.config?.managed_runner === "string"
? found.config.managed_runner
: null) || member.managed_runner,
};
}),
[teamMembers, agents],
Expand Down Expand Up @@ -409,23 +419,39 @@ export default function AgentProfileDrawer({
visibleTeamMembers.map((member) => {
const accent = member.color || "#0d9488";
const stateKey = member.state || "unknown";
const memberAgent = agents.find(
(item) => item.agent_id === member.agent_id,
);
const shareSource =
memberAgent ??
(member.user_id != null && viewerId != null
? {
is_shared: member.is_shared,
is_owner: Number(member.user_id) === Number(viewerId),
user_id: member.user_id,
}
: null);
return (
<ProfileEntityCard
key={member.agent_id}
icon={
<div
className={expertStyles.fileIcon}
style={{
color: accent,
background: `${accent}1a`,
}}
>
<ExpertIcon
iconUrl={member.icon_url}
iconName={member.icon_name}
size={16}
/>
</div>
<SharedAvatarMark {...incomingShareProps(shareSource)}>
<ManagedAvatarMark runner={member.managed_runner}>
<div
className={expertStyles.fileIcon}
style={{
color: accent,
background: `${accent}1a`,
}}
>
<ExpertIcon
iconUrl={member.icon_url}
iconName={member.icon_name}
size={16}
/>
</div>
</ManagedAvatarMark>
</SharedAvatarMark>
}
title={member.name}
trailing={
Expand Down
18 changes: 18 additions & 0 deletions dashboard/src/components/AgentSelector.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ describe("AgentSelector groups", () => {
expect(screen.queryByRole("combobox")).not.toBeInTheDocument();
});

it("hides managed experts when the page does not use them", () => {
const hosted = fakeAgent({
agent_id: "hosted",
name: "托管写手",
kind: "managed",
});
state.agents = [writer, hosted];
state.activeAgentId = "hosted";
render(<AgentSelector hideManaged />);
const chips = within(screen.getByTestId("agent-selector-chips"));
expect(chips.getByText("写手")).toBeInTheDocument();
expect(chips.queryByText("托管写手")).not.toBeInTheDocument();
expect(
screen.getByText("当前是托管专家「托管写手」,此页请选择其他专家"),
).toBeInTheDocument();
expect(setActiveAgent).not.toHaveBeenCalled();
});

it("keeps a hidden team selection and asks the user to pick an expert", () => {
state.activeAgentId = "crew";
render(<AgentSelector />);
Expand Down
50 changes: 41 additions & 9 deletions dashboard/src/components/AgentSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ import {
} from "../utils/agentSelector";
import { isTeamAgent } from "../utils/teamAgent";
import { ExpertIcon } from "../pages/Experts/components/iconForName";
import {
ManagedAvatarMark,
managedRunnerId,
} from "../pages/Experts/components/ManagedAvatarMark";
import { incomingShareProps, SharedAvatarMark } from "./SharedResourceBadge";
import RemoteExpertHint from "../pages/Chat/components/RemoteExpertHint";
import styles from "./AgentSelector.module.less";

Expand All @@ -30,6 +35,8 @@ interface AgentSelectorProps {
* expert-only.
*/
showTeams?: boolean;
/** Tools / plugins / MBTI pages do not list managed experts. */
hideManaged?: boolean;
/**
* 受控模式:只改这个面板自己的专家,不写入全局当前 Agent。
* 传入 onChange 即生效。
Expand Down Expand Up @@ -57,13 +64,17 @@ function AgentIcon({
}) {
const photo = Boolean(agent.icon_url?.trim());
return (
<span className={className} style={style}>
<ExpertIcon
iconUrl={agent.icon_url}
iconName={agent.icon_name}
size={photo ? size : Math.max(12, Math.round(size * 0.55))}
/>
</span>
<SharedAvatarMark {...incomingShareProps(agent)}>
<ManagedAvatarMark runner={managedRunnerId(agent)}>
<span className={className} style={style}>
<ExpertIcon
iconUrl={agent.icon_url}
iconName={agent.icon_name}
size={photo ? size : Math.max(12, Math.round(size * 0.55))}
/>
</span>
</ManagedAvatarMark>
</SharedAvatarMark>
);
}

Expand Down Expand Up @@ -168,6 +179,7 @@ export default function AgentSelector({
variant = "auto",
showLabel = true,
showTeams = false,
hideManaged = false,
value,
onChange,
}: AgentSelectorProps) {
Expand All @@ -179,7 +191,13 @@ export default function AgentSelector({
if (onChange) onChange(id);
else setActiveAgent(id);
};
const soloSelectable = useMemo(() => ownedSoloExperts(agents), [agents]);
const soloSelectable = useMemo(
() =>
ownedSoloExperts(agents).filter(
(agent) => !hideManaged || agent.kind !== "managed",
),
[agents, hideManaged],
);
const allTeams = useMemo(() => ownedTeamAgents(agents), [agents]);
const teamSelectable = useMemo(
() => (showTeams ? allTeams : []),
Expand Down Expand Up @@ -222,6 +240,9 @@ export default function AgentSelector({
const activeIsHiddenTeam = Boolean(
activeAgent && isTeamAgent(activeAgent) && !showTeams,
);
const activeIsHiddenManaged = Boolean(
hideManaged && activeAgent?.kind === "managed",
);
const useBar = variant !== "select";
const currentId =
chosenId ?? (controlled ? undefined : selectable[0]?.agent_id);
Expand Down Expand Up @@ -274,7 +295,13 @@ export default function AgentSelector({
);
}

if (selectable.length === 0 && allTeams.length === 0) return null;
if (
selectable.length === 0 &&
allTeams.length === 0 &&
!activeIsHiddenManaged
) {
return null;
}

const disconnectedLabel = t("agentSelector.disconnected");
const selectOptions: DefaultOptionType[] = showGroupLabels
Expand All @@ -292,6 +319,11 @@ export default function AgentSelector({
name: activeAgent?.name ?? "",
defaultValue: "当前是团队「{{name}}」,此页请选择专家",
})
: activeIsHiddenManaged
? t("agentSelector.managedNeedsExpert", {
name: activeAgent?.name ?? "",
defaultValue: "当前是托管专家「{{name}}」,此页请选择其他专家",
})
: soloSelectable.length === 0 && allTeams.length > 0
? t("agentSelector.expertsRequired", "此页需要专家")
: null;
Expand Down
Loading
Loading