Просмотр исходного кода

Merge latest PR 956 stack base

Hypatia May 1 месяц назад
Родитель
Сommit
11bbb77f74

+ 12 - 0
apps/web/tests/scaffold.ts

@@ -10,6 +10,8 @@
 //
 // Composition divergences from `dsh web`, all deliberate, all via include
 // patches over the SAME tree (never a second yml): temp persistenceRoot;
+// user skill roots redirected to empty temp directories (project skill
+// discovery remains real);
 // workspace-context disabled (recorded fixtures must not embed this repo's
 // AGENTS.md); session-title-llm disabled (its fire-and-forget title call
 // would race the loop for the session's replay cursor); webserver pinned to
@@ -169,6 +171,16 @@ export async function launchWebScaffold(options: LaunchOptions = {}): Promise<We
     // per write; the scaffold restores the original cwd after boot, so the
     // row gets an absolute temp root (removed with the workspace at close).
     { id: 'storage-json', config: { root: join(workspaceCwd, '.dsh-storages') } },
+    // Host-level skills are ambient machine state and must not change replay
+    // goldens. Keep the provider enabled so project skills under workspaceCwd
+    // remain discoverable, but give its user roots empty scaffold-owned paths.
+    {
+      id: 'skill-local',
+      config: {
+        dshHome: join(persistenceRoot, 'skill-dsh-home'),
+        agentsHome: join(persistenceRoot, 'skill-agents-home'),
+      },
+    },
     // fs/bash cwd default to process.cwd(); the gateway injects the same
     // value into session.cwd — chdir below anchors all three to the temp
     // workspace, keeping the composition untouched.

+ 0 - 1
apps/web/tests/snapshots/code-mode-round/ui.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - 'button "Think The user wants me to write a single `run_code` program that:"':
   - img
   - img

+ 0 - 1
apps/web/tests/snapshots/cordis-tool-round/ui.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - button "Think The user wants me to:":
   - img
   - img

+ 0 - 1
apps/web/tests/snapshots/fresh-round-trip/ui.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - button "Think The user wants me to run a simple bash command and reply with \"DONE\".":
   - img
   - img

+ 0 - 1
apps/web/tests/snapshots/lifecycle-chrome/reloaded.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - button "Think The user wants me to reply with a single word. Let me comply.":
   - img
   - img

+ 0 - 1
apps/web/tests/snapshots/live-interactions/cancel.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - paragraph: partial
 - text: 已停止
 - button "复制":

+ 0 - 1
apps/web/tests/snapshots/live-interactions/error-auth.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - textbox "Message the agent"
 - button "Add attachment":
   - img

+ 0 - 1
apps/web/tests/snapshots/live-interactions/retry.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - button "Think The user is asking for a one-sentence description of event sourcing. This is a straightforward knowledge question that doesn't require any skill loading or tool calls.":
   - img
   - img

+ 0 - 1
apps/web/tests/snapshots/question-composer/answered.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - button "Think The user wants me to use the ask_user_question tool with specific parameters. Let me do exactly that.":
   - img
   - img

+ 0 - 1
apps/web/tests/snapshots/queue-actions/editing.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - paragraph: partial
 - list:
   - listitem:

+ 0 - 1
apps/web/tests/snapshots/queue-actions/ui.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - paragraph: partial
 - list:
   - listitem:

+ 0 - 1
apps/web/tests/snapshots/steering/mid-steer.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - button "Think The user wants me to use the ask_user_question tool to ask them a specific question with the given parameters. Let me do exactly that.":
   - img
   - img

+ 0 - 1
apps/web/tests/snapshots/steering/settled.expected.md

@@ -11,7 +11,6 @@
   - img
 - button "编辑":
   - img
-- button "▸ 上下文注入"
 - button "Think The user wants me to use the ask_user_question tool to ask them a specific question with the given parameters. Let me do exactly that.":
   - img
   - img