Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/plugin/command/dag-flow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$ARGUMENTS
</dag-flow-task>

If the task is empty, ask for it and do not start a workflow. Otherwise load
If the task is empty or contains only whitespace, ask for it and do not start a workflow. Otherwise load
the `orchestration-router` skill and route the request through one consolidated
graph. `/dag-flow` explicitly selects DAG execution, but it does not waive a
material user decision.
Expand Down
18 changes: 9 additions & 9 deletions packages/opencode/test/command/command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,23 +97,23 @@ describe("legacy command registry", () => {
const expanded = SessionPrompt.expandCommandTemplate(CommandPlugin.DagFlowContent, "Run two parallel workers")

expect(expanded).toContain("Do not poll")
expect(expanded).toContain("End the current response")
expect(expanded).toContain("and end the response")
}),
)

it.effect("requires profile-aware compilation without dropping task constraints", () =>
it.effect("requires router-driven compilation without dropping task constraints", () =>
Effect.sync(() => {
const expanded = SessionPrompt.expandCommandTemplate(
CommandPlugin.DagFlowContent,
"Use @security-reviewer to review this project. Do not modify files.",
)

expect(expanded).toContain("classify the task as `brainstorm`, `review`, or `develop`")
expect(expanded).toContain("preserve every user constraint")
expect(expanded).toContain("eligible configured worker types")
expect(expanded).toContain("Do not invent a missing role or model")
expect(expanded).toContain("actual error")
expect(expanded).toContain("must actually contain the requested synthesis")
expect(expanded).toContain("orchestration-router")
expect(expanded).toMatch(/Preserve\s+the task, user constraints/)
expect(expanded).toContain("worker types or model IDs")
expect(expanded).toContain("configured capability or model")
expect(expanded).toContain("real error")
expect(expanded).toContain("final synthesis block must contain the requested result")
}),
)

Expand All @@ -123,7 +123,7 @@ describe("legacy command registry", () => {

expect(expanded).toContain("<dag-flow-task>\n \n</dag-flow-task>")
expect(expanded).toContain("empty or contains only whitespace")
expect(expanded).toContain("Do not call the `workflow` tool")
expect(expanded).toContain("do not start a workflow")
}),
)
})
Loading