From 18d22b014b9d745dfb7c4d2348c9a0751d1e5416 Mon Sep 17 00:00:00 2001 From: nullptr-error <104547331+nullptr-error@users.noreply.github.com> Date: Tue, 25 Aug 2026 11:28:12 +0800 Subject: [PATCH] feat(sandbox): expose tenant skill management over HTTP and in the console (#2789) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(sandbox): enhance skill management in sandbox configurations Updated the skill management system to allow listing, installing, and removing skills within sandbox configurations. The ListSkills function now accepts a sandboxConfigID to filter skills based on the selected configuration. Introduced a new SandboxSkillsDrawer component for managing skills through the UI, along with necessary updates to the API and localization files to support these features. Co-authored-by: Cursor * fix: keep skill maintenance sessions out of the console session list Co-authored-by: Cursor * feat: store and expose the installer transcript locators Co-authored-by: Cursor * feat: record the skill installer agent's conversation Co-authored-by: Cursor * feat: stream and persist the installer transcript during a skill install Co-authored-by: Cursor * feat: expose install transcript locators on the skill type Co-authored-by: Cursor * feat: add the floating skill install transcript window Co-authored-by: Cursor * feat: open the install transcript from the sandbox skills drawer Co-authored-by: Cursor * feat(sandbox): 重构技能安装体验,支持内联时间线、编辑第4步及保留镜像指针 - 替换右下角浮窗为内联安装时间线 (SkillInstallTimeline.vue) - 新增 GET /api/v1/sandbox-configs/:id/skills/:skillId/transcript 接口,支持回放与追尾 - 移除 /sessions/continue-stream 依赖,避免 404 问题 - 事件日志以 install_prompt 开头,不再将工具调用 preamble 拼入最终答案 - 删除 SkillInstallTranscript.vue,技能条目下可展开/折叠时间线 - 编辑向导新增第 4 步「管理技能」 - Cube/E2B 环境:连接 → 模板 → 运行配置 → 技能(第4步) - Docker/Local 环境:无第4步(无快照镜像) - 首次创建必须按 1→2→3 顺序,第3步保存成功后自动进入第4步 - 已有配置支持步骤条数字跳转,可直接访问任意步骤 - 卡片菜单「管理技能」打开同一抽屉并定位至第4步 - SandboxSkillsDrawer.vue 重命名为 SandboxSkillsPanel.vue,去除独立抽屉壳 - 修复保存运行配置时冲掉 skill_image 的问题 - 顶部展示信息(基础模板/快照ID/版本/构建时间)读取 config.skill_image - 编辑器保存 payload 不再包含 skill_image,合并时保留已有 SkillImage 和 VolumeMount - MergeSandboxConfigForUpdate 增加对 SkillImage 和 VolumeMount 的保护 - 已冲掉的配置需重新安装技能才能恢复镜像指针 - 「查看安装过程」在安装开始时即显示 - 技能列表中出现「正在安装」状态即展示按钮 - 若记录尚未写入,展示等待提示并自动重试,避免误报「没有留下记录」 * 沙盒内技能目录从 UUID 改成 SKILL.md 的 name。 * fix(sandbox): heal stuck skill rows and block planted maintenance sessions The reaper left a mid-upgrade install spinning forever when the old snapshot was still live, and restored removals to ready after the pointer had already moved. Client session create/update can no longer hide chats behind the skill_maintenance: prefix. * style: gofumpt the skill reaper test stubs * style: satisfy golangci on the tenant skill admin API * feat(sandbox): rebuild skill images at turn boundaries, not mid-exec Hold a session turn lease through AgentQA so an install cannot tear down the live sandbox between tool calls; the next turn's first resolve picks up the new image. Configs can instead keep existing sandboxes and boot the new snapshot only for new sessions. * fix(sandbox): judge stuck skill runs from the snapshot chain InstalledSnapshotID only records the generation that installed a skill; later installs of other skills advance the live pointer without rewriting older rows. Comparing those IDs made the reaper fail healthy installs and delete live skills whose removal had stalled. --------- Co-authored-by: hailongzhao Co-authored-by: Cursor Co-authored-by: wizardchen --- client/skill.go | 14 +- docker/Dockerfile.sandbox | 17 +- frontend/src/api/agent/index.ts | 5 + frontend/src/api/skill/index.ts | 9 +- frontend/src/api/system/index.ts | 97 +- frontend/src/components/Input-field.vue | 2 +- .../components/SandboxConfigEditorDrawer.vue | 150 ++- .../src/components/SandboxSkillsPanel.vue | 943 ++++++++++++++++++ .../src/components/SkillInstallTimeline.vue | 223 +++++ frontend/src/i18n/locales/en-US.ts | 48 + frontend/src/i18n/locales/ko-KR.ts | 48 + frontend/src/i18n/locales/ru-RU.ts | 48 + frontend/src/i18n/locales/zh-CN.ts | 48 + frontend/src/stores/editorResources.ts | 21 +- frontend/src/utils/request.ts | 4 + frontend/src/views/agent/AgentEditorModal.vue | 23 +- .../src/views/settings/SandboxSettings.vue | 14 +- internal/agent/skills/manager.go | 190 +++- internal/agent/skills/source.go | 32 + internal/agent/skills/tenant_source.go | 388 +++++++ internal/agent/skills/tenant_source_test.go | 308 ++++++ internal/application/repository/session.go | 9 + .../application/repository/session_test.go | 26 + .../repository/tenant_sandbox_config.go | 17 + .../application/repository/tenant_skill.go | 2 + .../repository/tenant_skill_test.go | 6 + internal/application/service/agent_service.go | 69 ++ .../application/service/agent_service_test.go | 51 + internal/application/service/session.go | 80 +- .../application/service/session_agent_qa.go | 27 +- .../service/session_sandbox_turn_test.go | 48 + .../service/session_user_scope_test.go | 50 + .../service/tenant_sandbox_config.go | 287 +++++- .../service/tenant_sandbox_config_test.go | 373 ++++++- .../application/service/tenant_skill_admin.go | 106 ++ .../service/tenant_skill_admin_test.go | 101 ++ .../service/tenant_skill_effective.go | 120 +++ .../service/tenant_skill_effective_test.go | 262 +++++ .../service/tenant_skill_install.go | 196 +++- .../service/tenant_skill_install_test.go | 126 ++- .../service/tenant_skill_reaper.go | 409 ++++++++ .../service/tenant_skill_reaper_test.go | 490 +++++++++ .../service/tenant_skill_remove.go | 19 +- .../service/tenant_skill_remove_test.go | 11 +- .../service/tenant_skill_service.go | 18 + .../service/tenant_skill_service_test.go | 2 +- .../tenant_skill_stale_sandbox_test.go | 130 +++ .../service/tenant_skill_transcript.go | 449 +++++++++ .../service/tenant_skill_transcript_test.go | 267 +++++ internal/container/container.go | 36 +- internal/handler/sandbox_config.go | 20 + internal/handler/sandbox_config_test.go | 30 + internal/handler/sandbox_skill.go | 661 ++++++++++++ internal/handler/sandbox_skill_test.go | 850 ++++++++++++++++ internal/handler/session/handler.go | 2 +- internal/handler/skill_handler.go | 57 +- internal/handler/skill_handler_test.go | 96 ++ internal/router/rbac.go | 4 + internal/router/router.go | 3 +- .../router_api_key_capabilities_test.go | 13 +- internal/router/routes_infra.go | 11 + internal/sandbox/capabilities.go | 9 + internal/sandbox/cube_remote_client.go | 2 +- internal/sandbox/e2b_remote_client.go | 2 +- internal/sandbox/remote_client.go | 4 + internal/sandbox/remote_errors.go | 26 + internal/sandbox/remote_errors_test.go | 49 + internal/sandbox/remote_fake_test.go | 20 +- internal/sandbox/session_binding.go | 291 ++++++ internal/sandbox/session_binding_redis.go | 229 +++++ .../sandbox/session_binding_redis_test.go | 16 + internal/sandbox/session_binding_test.go | 206 ++++ internal/sandbox/session_lifecycle.go | 64 ++ internal/sandbox/session_lifecycle_test.go | 188 ++++ internal/sandbox/session_manager.go | 63 +- internal/sandbox/session_manager_test.go | 83 ++ internal/sandbox/skill_image.go | 45 + internal/sandbox/tenant_config_test.go | 85 ++ internal/types/agent.go | 5 + internal/types/chat.go | 6 + internal/types/config_redaction.go | 36 +- .../types/config_redaction_sandbox_test.go | 61 ++ internal/types/session.go | 26 + internal/types/session_access_test.go | 21 + internal/types/tenant.go | 26 + internal/types/tenant_skill.go | 15 + .../000087_skill_install_transcript.down.sql | 4 + .../000087_skill_install_transcript.up.sql | 10 + 88 files changed, 9597 insertions(+), 161 deletions(-) create mode 100644 frontend/src/components/SandboxSkillsPanel.vue create mode 100644 frontend/src/components/SkillInstallTimeline.vue create mode 100644 internal/agent/skills/source.go create mode 100644 internal/agent/skills/tenant_source.go create mode 100644 internal/agent/skills/tenant_source_test.go create mode 100644 internal/application/service/session_sandbox_turn_test.go create mode 100644 internal/application/service/tenant_skill_admin.go create mode 100644 internal/application/service/tenant_skill_admin_test.go create mode 100644 internal/application/service/tenant_skill_effective.go create mode 100644 internal/application/service/tenant_skill_effective_test.go create mode 100644 internal/application/service/tenant_skill_reaper.go create mode 100644 internal/application/service/tenant_skill_reaper_test.go create mode 100644 internal/application/service/tenant_skill_stale_sandbox_test.go create mode 100644 internal/application/service/tenant_skill_transcript.go create mode 100644 internal/application/service/tenant_skill_transcript_test.go create mode 100644 internal/handler/sandbox_skill.go create mode 100644 internal/handler/sandbox_skill_test.go create mode 100644 internal/handler/skill_handler_test.go create mode 100644 migrations/versioned/000087_skill_install_transcript.down.sql create mode 100644 migrations/versioned/000087_skill_install_transcript.up.sql diff --git a/client/skill.go b/client/skill.go index 11655fe1..b89a04e0 100644 --- a/client/skill.go +++ b/client/skill.go @@ -3,6 +3,7 @@ package client import ( "context" "net/http" + "net/url" ) // SkillInfo represents skill metadata @@ -15,12 +16,17 @@ type SkillInfo struct { type SkillListResponse struct { Success bool `json:"success"` Data []SkillInfo `json:"data"` - SkillsAvailable bool `json:"skills_available"` + SkillsAvailable bool `json:"skills_available"` } -// ListSkills lists all preloaded agent skills -func (c *Client) ListSkills(ctx context.Context) ([]SkillInfo, bool, error) { - resp, err := c.doRequest(ctx, http.MethodGet, "/api/v1/skills", nil, nil) +// ListSkills lists the installed skills a chat turn can invoke on one sandbox +// config. An empty sandboxConfigID returns an empty list. +func (c *Client) ListSkills(ctx context.Context, sandboxConfigID string) ([]SkillInfo, bool, error) { + query := url.Values{} + if sandboxConfigID != "" { + query.Set("sandbox_config_id", sandboxConfigID) + } + resp, err := c.doRequest(ctx, http.MethodGet, "/api/v1/skills", nil, query) if err != nil { return nil, false, err } diff --git a/docker/Dockerfile.sandbox b/docker/Dockerfile.sandbox index edc37d40..3150780e 100644 --- a/docker/Dockerfile.sandbox +++ b/docker/Dockerfile.sandbox @@ -23,13 +23,28 @@ COPY --from=node-base /usr/local/lib/node_modules /usr/local/lib/node_modules RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm && \ ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx +# Python package manager: uv (fast pip replacement). Preinstalled because each +# skill gets its own venv at install time, and building that from a cold pip is +# what dominates an install's wall clock. +COPY --from=ghcr.io/astral-sh/uv:0.12.4 /uv /usr/local/bin/uv +RUN ln -s /usr/local/bin/uv /usr/local/bin/uvx + +# Node package manager: pnpm +RUN npm install -g pnpm + # Install minimal CLI tools (bash/grep/sed/coreutils/findutils already in slim # image). curl is not optional: the sandbox connectivity check probes egress -# with it, and skills that fetch a URL expect it to be there. +# with it, and skills that fetch a URL expect it to be there. The compression +# tools are here because skill bundles and their assets arrive archived. RUN apt-get update && apt-get install -y --no-install-recommends \ jq \ curl \ ca-certificates \ + zip \ + unzip \ + bzip2 \ + xz-utils \ + zstd \ && rm -rf /var/lib/apt/lists/* /var/cache/apt/* # Note: Current preloaded skills only use Python stdlib diff --git a/frontend/src/api/agent/index.ts b/frontend/src/api/agent/index.ts index fc966406..7c64878f 100644 --- a/frontend/src/api/agent/index.ts +++ b/frontend/src/api/agent/index.ts @@ -65,6 +65,11 @@ export interface CustomAgentConfig { skills_selection_mode?: 'all' | 'selected' | 'none'; selected_skills?: string[]; // 选择的Skill名称列表 + // ===== 沙盒设置 ===== + // 该智能体的技能脚本运行在哪个沙盒配置上;为空表示不启用沙盒执行。 + // 指向逻辑配置而非某个具体版本,凭据轮换时无需重新指派每个智能体。 + sandbox_config_id?: string; + // ===== 知识库设置 ===== // 知识库选择模式:all=全部知识库, selected=指定知识库, none=不使用知识库 kb_selection_mode?: 'all' | 'selected' | 'none'; diff --git a/frontend/src/api/skill/index.ts b/frontend/src/api/skill/index.ts index 3edbc96b..80c8c2b5 100644 --- a/frontend/src/api/skill/index.ts +++ b/frontend/src/api/skill/index.ts @@ -6,7 +6,10 @@ export interface SkillInfo { description: string; } -// 获取预装Skills列表;skills_available 为 false 表示沙箱未启用,前端应隐藏/禁用 Skills 配置 -export function listSkills() { - return get<{ data: SkillInfo[]; skills_available?: boolean }>('/api/v1/skills'); +// 获取当前沙盒配置上可执行的 Skills;未传 sandboxConfigId 或 +// skills_available 为 false 时,前端应隐藏/禁用 Skills 配置 +export function listSkills(sandboxConfigId?: string) { + return get<{ data: SkillInfo[]; skills_available?: boolean }>('/api/v1/skills', { + params: sandboxConfigId ? { sandbox_config_id: sandboxConfigId } : {}, + }); } diff --git a/frontend/src/api/system/index.ts b/frontend/src/api/system/index.ts index 47fb2eb7..e18b6d24 100644 --- a/frontend/src/api/system/index.ts +++ b/frontend/src/api/system/index.ts @@ -1,4 +1,4 @@ -import { get, post, put, del } from '@/utils/request' +import { get, post, put, del, patch, postUpload } from '@/utils/request' import type { CreatedTenantAPIKey, TenantAPIKey, TenantAPIKeyCapability } from '@/api/tenant' export interface CreatePlatformAPIKeyPayload { @@ -749,12 +749,22 @@ export interface SandboxE2BConfig { e2b_sandbox_ttl_seconds?: number } +export interface SandboxSkillImage { + snapshot_id?: string + generation?: number + built_at?: string + base_template_id?: string + owner_fingerprint?: string +} + export interface SandboxConfig { sandbox_type?: string default_timeout_sec?: number allow_private_endpoints?: boolean env_vars?: Record volume_mount?: SandboxVolumeMountConfig + skill_image?: SandboxSkillImage + skill_rollout?: 'next_turn' | 'new_session' cube?: SandboxCubeConfig e2b?: SandboxE2BConfig docker?: SandboxDockerConfig @@ -980,3 +990,88 @@ export function parseSandboxConflict(err: unknown): SandboxConflict | null { } return { code: detail.code, message: detail.message, inventory: detail.data } } + +// --- Agent skills installed onto a sandbox config's image --- + +export type ConfigSkillStatus = 'installing' | 'ready' | 'failed' | 'removing' | 'removed' + +export interface ConfigSkill { + id: string + name: string + version?: string + description?: string + enabled: boolean + status: ConfigSkillStatus | string + error?: string + bundle_sha256?: string + installed_snapshot_id?: string + // Locators for this skill's most recent install conversation. Absent for + // skills installed before transcripts existed, which is how the drawer + // decides whether to offer the "view install" entry point. + install_session_id?: string + install_message_id?: string + created_at: string + updated_at: string +} + +export interface ConfigSkillInstallEvent { + percent: number + stage: string + log?: string + status?: string + done: boolean +} + +export function listConfigSkills(configId: string): Promise<{ data: ConfigSkill[] }> { + return get(`/api/v1/sandbox-configs/${configId}/skills`) as unknown as Promise<{ data: ConfigSkill[] }> +} + +export function uploadConfigSkill( + configId: string, file: File, onProgress?: (percent: number) => void, +): Promise<{ data: { skill_id: string } }> { + const form = new FormData() + form.append('file', file) + return postUpload(`/api/v1/sandbox-configs/${configId}/skills`, form, (e: any) => { + if (e.total) onProgress?.(Math.round((e.loaded * 100) / e.total)) + }, { timeout: 5 * 60 * 1000 }) +} + +export function patchConfigSkill( + configId: string, + skillId: string, + payload: { enabled: boolean }, +): Promise<{ data: ConfigSkill }> { + return patch(`/api/v1/sandbox-configs/${configId}/skills/${skillId}`, payload) as unknown as Promise<{ + data: ConfigSkill + }> +} + +export function deleteConfigSkill( + configId: string, + skillId: string, +): Promise<{ data: { skill_id: string } }> { + return del(`/api/v1/sandbox-configs/${configId}/skills/${skillId}`) as unknown as Promise<{ + data: { skill_id: string } + }> +} + +export function getConfigSkill( + configId: string, + skillId: string, +): Promise<{ data: ConfigSkill }> { + return get(`/api/v1/sandbox-configs/${configId}/skills/${skillId}`) as unknown as Promise<{ + data: ConfigSkill + }> +} + +export function configSkillInstallEventsUrl(configId: string, skillId: string): string { + return `/api/v1/sandbox-configs/${configId}/skills/${skillId}/install-events` +} + +// The installer agent's own transcript: its prompt, thinking, commands and +// their output, replayed from the start and then followed live. Answers 404 +// once the event log has expired, which is the signal to read the durable +// message history instead. +export function configSkillTranscriptUrl(configId: string, skillId: string): string { + return `/api/v1/sandbox-configs/${configId}/skills/${skillId}/transcript` +} diff --git a/frontend/src/components/Input-field.vue b/frontend/src/components/Input-field.vue index e1cfef13..f39dbbcc 100644 --- a/frontend/src/components/Input-field.vue +++ b/frontend/src/components/Input-field.vue @@ -1328,7 +1328,7 @@ const loadMentionItems = async (q: string, resetIndex = true, append = false) => const skillsMode = agentSkillsSelectionMode.value; if (skillsMode !== 'none') { - await editorResources.ensureSkills(); + await editorResources.ensureSkills(currentAgentConfig.value?.sandbox_config_id); skillItems = editorResources.skills .filter(skill => isSkillAllowedByAgent(skill.name)) .map(skill => ({ diff --git a/frontend/src/components/SandboxConfigEditorDrawer.vue b/frontend/src/components/SandboxConfigEditorDrawer.vue index fede8182..e01d5298 100644 --- a/frontend/src/components/SandboxConfigEditorDrawer.vue +++ b/frontend/src/components/SandboxConfigEditorDrawer.vue @@ -23,15 +23,26 @@ + + +
@@ -433,6 +456,7 @@ import { MessagePlugin } from 'tdesign-vue-next' import { useI18n } from 'vue-i18n' import SettingDrawer from '@/components/settings/SettingDrawer.vue' import SandboxBackendBadge from '@/components/settings/SandboxBackendBadge.vue' +import SandboxSkillsPanel from '@/components/SandboxSkillsPanel.vue' import { checkSandboxConfig, createSandboxConfig, @@ -452,10 +476,15 @@ import { NAMED_SANDBOX_BACKEND_TYPES, } from '@/api/system' +type SandboxStepKey = 'connection' | 'template' | 'runtime' | 'skills' + const props = defineProps<{ visible: boolean record: SandboxConfigRecord | null presetType?: string + // Which page to land on when opening an existing config, e.g. 'skills' from + // the card's 管理技能 entry. Ignored while creating, where order is enforced. + initialStep?: SandboxStepKey }>() const emit = defineEmits<{ @@ -515,7 +544,6 @@ const currentTemplateId = computed(() => ( backend.value === 'cube' ? cube.template_id : backend.value === 'e2b' ? e2b.template_id : '' )?.trim() || '') const selectedTemplate = computed(() => templates.value.find((item) => item.id === currentTemplateId.value)) -type SandboxStepKey = 'connection' | 'template' | 'runtime' const wizardSteps = computed>(() => { const steps: Array<{ key: SandboxStepKey; title: string }> = [ { key: 'connection', title: t('settings.sandbox.stepConnection') }, @@ -524,6 +552,12 @@ const wizardSteps = computed>(() = steps.push({ key: 'template', title: t('settings.sandbox.stepTemplate') }) } steps.push({ key: 'runtime', title: t('settings.sandbox.stepRuntime') }) + // Skills are baked into the config's snapshot image, which only the remote + // backends have. Docker and local configs therefore end at runtime rather + // than showing a step that could never do anything. + if (isRemoteBackend.value) { + steps.push({ key: 'skills', title: t('settings.sandbox.stepSkills') }) + } return steps }) const currentStepKey = computed(() => wizardSteps.value[wizardStep.value]?.key || 'connection') @@ -531,12 +565,51 @@ const stepDescription = computed(() => t(`settings.sandbox.stepDescriptions.${cu const primaryText = computed(() => { if (currentStepKey.value === 'connection') return t('settings.sandbox.connectAndContinue') if (currentStepKey.value === 'template') return t('common.next') + // Nothing on the skills step is pending a save — each install, toggle and + // removal already went to the server on its own. + if (currentStepKey.value === 'skills') return t('common.finish') return t('common.save') }) const primaryDisabled = computed(() => ( currentStepKey.value === 'template' && (!selectedTemplate.value || !isTemplateSelectable(selectedTemplate.value)) )) + +// savedRecord is the config this drawer is editing, including one it just +// created: after the first save the wizard keeps going into the skills step, +// which needs an ID, and a second press of save must update that config rather +// than create another one. +const savedRecord = ref(null) +const effectiveRecord = computed(() => savedRecord.value || props.record) + +function onSkillsConfigUpdated(record: SandboxConfigRecord) { + savedRecord.value = record +} + +// Jumping is what separates editing from creating. A config that does not exist +// yet has to be built in order — its connection has to check out before there +// are templates to choose from, and it has no image to install skills into. Once +// it exists, every step is just a page of its settings, so all of them open +// directly; steps already visited stay clickable during creation so the rail +// works as a way back. +function canJumpTo(index: number): boolean { + if (index === wizardStep.value) return false + return Boolean(effectiveRecord.value) || index < wizardStep.value +} + +function goToStep(index: number) { + if (!canJumpTo(index)) return + wizardStep.value = index + if (currentStepKey.value !== 'template') { + stopTemplatePolling() + return + } + // Landing on the template step without having passed through the connection + // step still has to ask the cluster what it offers; a step already loaded + // just resumes its poll, as walking back through it always has. + if (templatesLoaded.value) scheduleTemplatePolling() + else void loadTemplates(true) +} const hasPendingTemplates = computed(() => templates.value.some(isTemplatePending)) const backendLabel = (value: string) => t(`settings.sandbox.backends.${value}`) @@ -663,7 +736,14 @@ function reset() { templates.value = [] templatesLoaded.value = false templatesError.value = '' + savedRecord.value = null wizardStep.value = 0 + // "管理技能" opens this drawer straight on the skills step. It is a jump like + // any other, so it only holds for a config that already exists. + if (props.initialStep && props.record) { + const index = wizardSteps.value.findIndex((step) => step.key === props.initialStep) + if (index >= 0) wizardStep.value = index + } } function selectBackend(value: string) { @@ -783,7 +863,7 @@ async function loadTemplates(ensureStandard: boolean, silent = false): Promise step.key === 'skills') + if (!existing && skillsStep >= 0 && savedRecord.value) { + // A config created a moment ago has an empty image; walking into the + // skills step is the whole reason the wizard has a fourth page. + wizardStep.value = skillsStep + return + } close() } catch (e: any) { const refusal = parseSandboxConflict(e) @@ -932,7 +1027,7 @@ async function runCheck(deep: boolean): Promise { // so an edited form can be probed without retyping the API key. const res = await checkSandboxConfig({ config: collectPayload(), - config_id: props.record?.id, + config_id: effectiveRecord.value?.id, deep, }) checkResult.value = res?.data || null @@ -1007,6 +1102,30 @@ onUnmounted(stopTemplatePolling) &.is-done { color: var(--td-text-color-secondary); } + + /* + Reachable steps render as