test(sandbox-policy): refresh durable context snapshots

This commit is contained in:
NI0317
2026-07-30 23:17:33 +08:00
parent 7d8931fa8c
commit e61054c4d1
19 changed files with 198 additions and 60 deletions

View File

@@ -111,7 +111,7 @@ describe('web e2e: queue row actions', () => {
const snapshot = await captureStableAria(page, '[class*="centerCol"]', scaffold.workspaceCwd)
await compareOrRefreshGolden(UI_EXPECTED, snapshot, MODE)
expect(sessionEvents.filter(event => event.type === 'user/message')).toHaveLength(1)
expect(sessionEvents.filter(event => event.type === 'user/message' && event.data.source.kind === 'user')).toHaveLength(1)
expect(tripwire.pageErrors).toEqual([])
expect(tripwire.warnings).toEqual([])

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -11,6 +11,14 @@
- img
- button "编辑":
- img
- button "上下文注入":
- img
- img
- text: 上下文注入
- button "上下文注入":
- img
- img
- text: 上下文注入
- 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

View File

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

View File

@@ -11,6 +11,14 @@
- img
- button "编辑":
- img
- button "上下文注入":
- img
- img
- text: 上下文注入
- button "上下文注入":
- img
- img
- text: 上下文注入
- paragraph: partial
- button "2 条排队消息"
- textbox "Message the agent"

View File

@@ -11,6 +11,14 @@
- img
- button "编辑":
- img
- button "上下文注入":
- img
- img
- text: 上下文注入
- button "上下文注入":
- img
- img
- text: 上下文注入
- paragraph: partial
- button "2 条排队消息" [disabled] [expanded]
- list:

View File

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

View File

@@ -11,6 +11,14 @@
- img
- button "编辑":
- img
- button "上下文注入":
- img
- img
- text: 上下文注入
- button "上下文注入":
- img
- img
- text: 上下文注入
- 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

View File

@@ -11,6 +11,14 @@
- img
- button "编辑":
- img
- button "上下文注入":
- img
- img
- text: 上下文注入
- button "上下文注入":
- img
- img
- text: 上下文注入
- 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