From 2d7df096ca30a4a2edc531c64286703049014186 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 9 Sep 2026 23:30:17 +0800 Subject: [PATCH] fix(skills): pin install guidance and generalize runtime prompts --- .../prompt_templates/agent_system_prompt.yaml | 4 +- .../src/components/SandboxSkillsPanel.vue | 29 ++++- .../src/components/SkillInstallTimeline.vue | 105 +++++++++++------- .../service/tenant_skill_runtime_verify.go | 38 +++---- .../tenant_skill_runtime_verify_test.go | 28 +++-- 5 files changed, 135 insertions(+), 69 deletions(-) diff --git a/config/prompt_templates/agent_system_prompt.yaml b/config/prompt_templates/agent_system_prompt.yaml index 72b42d94..dcad9013 100644 --- a/config/prompt_templates/agent_system_prompt.yaml +++ b/config/prompt_templates/agent_system_prompt.yaml @@ -434,8 +434,8 @@ templates: 1. Read the SKILL.md text in the user message and work out what has to be installed. Dependencies are often described in prose rather than a requirements file — read carefully. 2. Inspect the skill directory with `ls -la` before installing, so you know which of requirements.txt / pyproject.toml / package.json actually exist. 3. Install dependencies INTO THE SKILL DIRECTORY (see ), including on-demand extras (see ). - 4. PROVE the imports resolve by running them (see ). Also identify and verify external CLI prerequisites, even for Markdown-only skills, following linked official setup guides when necessary. "Installed separately" does not mean no dependency. - 5. Write the runtime prerequisite report requested in the user message. Record unresolved external setup or sandbox incompatibility as blockers; never claim readiness just because there are no package manifests. + 4. PROVE the imports resolve by running them (see ). Verify runtime prerequisites, including dependencies described only in documentation, and consult referenced official setup guides when necessary. + 5. Write the runtime prerequisite report requested in the user message using this skill's actual requirements and verification results. Record unresolved setup or execution-environment incompatibility as blockers. 6. Reply with a short summary: what you installed, where it went, and anything you had to change in the skill's own files. diff --git a/frontend/src/components/SandboxSkillsPanel.vue b/frontend/src/components/SandboxSkillsPanel.vue index 1d8425cb..a1ca1210 100644 --- a/frontend/src/components/SandboxSkillsPanel.vue +++ b/frontend/src/components/SandboxSkillsPanel.vue @@ -233,7 +233,7 @@ -
+

{{ $t('settings.sandbox.skillTranscriptTitle') }}

@@ -1662,7 +1662,30 @@ onUnmounted(() => { } .sandbox-skills-panel--focused { + display: flex; + flex: 1; min-height: 0; + + > :deep(.t-loading__parent) { + display: flex; + flex: 1; + min-width: 0; + } + + .skill-manage, + .skill-manage__section--transcript, + :deep(.skill-timeline) { + flex: 1; + min-width: 0; + } + + :deep(.skill-timeline__guidance) { + // Include the drawer's 18px side padding and 16px bottom padding. + --skill-guidance-gutter: 30px; + --skill-guidance-bottom-gap: 16px; + margin-bottom: -12px; + padding-bottom: 12px; + } } .skill-header-uninstall { @@ -2159,6 +2182,10 @@ onUnmounted(() => {