mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 01:01:13 +00:00
fix(tasks): restore owner-key task scope
This commit is contained in:
@@ -67,7 +67,8 @@ describe("task-executor", () => {
|
||||
await withTaskExecutorStateDir(async () => {
|
||||
const created = createQueuedTaskRun({
|
||||
runtime: "acp",
|
||||
requesterSessionKey: "agent:main:main",
|
||||
ownerKey: "agent:main:main",
|
||||
scopeKind: "session",
|
||||
childSessionKey: "agent:codex:acp:child",
|
||||
runId: "run-executor-queued",
|
||||
task: "Investigate issue",
|
||||
@@ -103,7 +104,8 @@ describe("task-executor", () => {
|
||||
await withTaskExecutorStateDir(async () => {
|
||||
const created = createRunningTaskRun({
|
||||
runtime: "subagent",
|
||||
requesterSessionKey: "agent:main:main",
|
||||
ownerKey: "agent:main:main",
|
||||
scopeKind: "session",
|
||||
childSessionKey: "agent:codex:subagent:child",
|
||||
runId: "run-executor-fail",
|
||||
task: "Write summary",
|
||||
@@ -143,7 +145,8 @@ describe("task-executor", () => {
|
||||
await withTaskExecutorStateDir(async () => {
|
||||
const created = createRunningTaskRun({
|
||||
runtime: "acp",
|
||||
requesterSessionKey: "agent:main:main",
|
||||
ownerKey: "agent:main:main",
|
||||
scopeKind: "session",
|
||||
requesterOrigin: {
|
||||
channel: "telegram",
|
||||
to: "telegram:123",
|
||||
@@ -179,7 +182,8 @@ describe("task-executor", () => {
|
||||
|
||||
const child = createRunningTaskRun({
|
||||
runtime: "acp",
|
||||
requesterSessionKey: "agent:main:main",
|
||||
ownerKey: "agent:main:main",
|
||||
scopeKind: "session",
|
||||
childSessionKey: "agent:codex:acp:child",
|
||||
runId: "run-linear-cancel",
|
||||
task: "Inspect a PR",
|
||||
@@ -217,7 +221,8 @@ describe("task-executor", () => {
|
||||
|
||||
const child = createRunningTaskRun({
|
||||
runtime: "subagent",
|
||||
requesterSessionKey: "agent:main:main",
|
||||
ownerKey: "agent:main:main",
|
||||
scopeKind: "session",
|
||||
childSessionKey: "agent:codex:subagent:child",
|
||||
runId: "run-subagent-cancel",
|
||||
task: "Inspect a PR",
|
||||
@@ -249,7 +254,8 @@ describe("task-executor", () => {
|
||||
await withTaskExecutorStateDir(async () => {
|
||||
const victim = createRunningTaskRun({
|
||||
runtime: "acp",
|
||||
requesterSessionKey: "agent:victim:main",
|
||||
ownerKey: "agent:victim:main",
|
||||
scopeKind: "session",
|
||||
childSessionKey: "agent:victim:acp:child",
|
||||
runId: "run-shared-executor-scope",
|
||||
task: "Victim ACP task",
|
||||
@@ -257,7 +263,8 @@ describe("task-executor", () => {
|
||||
});
|
||||
const attacker = createRunningTaskRun({
|
||||
runtime: "cli",
|
||||
requesterSessionKey: "agent:attacker:main",
|
||||
ownerKey: "agent:attacker:main",
|
||||
scopeKind: "session",
|
||||
childSessionKey: "agent:attacker:main",
|
||||
runId: "run-shared-executor-scope",
|
||||
task: "Attacker CLI task",
|
||||
|
||||
Reference in New Issue
Block a user