Skip to content

fix(workflows): set a node's system prompt in Settings (#1393) - #1400

Merged
Birfy merged 1 commit into
mainfrom
dev/1393-workflow-settings-prompt
Oct 27, 2026
Merged

Birfy merged 1 commit into
mainfrom
dev/1393-workflow-settings-prompt

Conversation

@Birfy

@Birfy Birfy commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Owner: Dev
Reviewer: Reviewer
Written-by: Dev

Fixes #1393

What changed

Settings → Workflows could draw the graph but not set a node's system prompt, so a run Bot's prompt was configurable only from the sidebar Workflow panel or define_workflow in a chat — although plugins/workflow/README.md says both surfaces edit the graph, prompt included. Edit mode now renders a System prompt field per node, pre-filled with the saved prompt; committing it saves the same graph through workflow/graph, so the prompt a node's run Bot receives can be typed where the graph is drawn. changelog.d/1393-workflow-settings-prompt.fixed.md is the user-visible note.

Verification at the tip

Tip SHA: 0cbf18f
Ran:

  • cd core && DSH_HARNESS=/data/har020 TZ=UTC node --import ./test/harness-resolve.mjs --test test/workflows-page.test.js → 8/8 pass; the new case is edit mode sets a node system prompt and the commit keeps the edges.
  • Reverted only core/src/client/workflows.js to main and re-ran that file → 7 pass / 1 fail, and the red one is exactly the new case.
  • test/workflows-page.test.js test/settings-page-slot.test.js → 14/14 pass; test/workflow.test.js test/workflow-run.test.js test/workflow-store.test.js test/workflow-preview.test.js test/workflow-doc.test.js test/workflow-repo-dev.test.js → 64/64 pass.
  • cd plugins/workflow && node --test test/*.test.js → 27/27 pass.
  • node core/scripts/build-client.mjs --check → exit 0.
  • node scripts/ds-bot-patches.mjs check → ok ds-bot/ = Fei2411/DeepSeek-Bot@2b10c70 (tree 5834c00, v0.1.5), ok 10 patches apply cleanly in order, ok core/ equals ds-bot/ + patches/ds-bot/.
  • node core/scripts/check-arch-docs.mjs → OK (12 changed file(s)).
    Not run (and why): the full core suite cannot run in this sandbox — it dies on esbuild … EAGAIN, a missing jsdom, and a missing @deepseek-ai/dsh-session-reference package in the harness, before any file of this change loads; oxlint is not installed here (lint: no oxlint found). CI runs both.

Checkpoint

{
  "pr": 1400,
  "claim": "Dev",
  "issue": 1393,
  "summary": "Settings → Workflows now sets each node's system prompt. The field is pre-filled from the saved graph and commits through workflow/graph, the call the sidebar panel already uses, so a node's run Bot receives the prompt typed where the graph is drawn. A test pins the field, its saved value, that an untouched field commits nothing, and that a commit keeps the edges.",
  "files": ["core/src/client/workflows.js", "core/src/client/styles.js", "core/src/client/i18n.js", "core/test/workflows-page.test.js", "docs/subsystems/core-client.md", "changelog.d/1393-workflow-settings-prompt.fixed.md"],
  "checks": { "ran": "node scripts/ds-bot-patches.mjs check; core/test/workflows-page.test.js; plugins/workflow", "result": "green", "at": "0cbf18f7187c1ca52a45e01d57c3a8bbfe69016b" },
  "next": "none — ready for review"
}

Settings → Workflows could draw the graph but not set a node's system prompt,
while the sidebar Workflow panel and `define_workflow` both could. Edit mode now
renders a system-prompt field per node, pre-filled with the saved prompt, and
saves it through the same `workflow/graph` call, so the prompt a run Bot receives
is configurable where the graph is drawn.

Docs: docs/subsystems/core-client.md gains the field in the Workflows paragraph.
@Birfy Birfy added agent-pr Pull request opened by an agent agent-working An agent has claimed this issue (the claim comment names the branch) labels Oct 27, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 18d567b Oct 27, 2026
15 of 17 checks passed
@Birfy
Birfy deleted the dev/1393-workflow-settings-prompt branch October 27, 2026 09:44
@github-actions github-actions Bot removed agent-working An agent has claimed this issue (the claim comment names the branch) agent-pr Pull request opened by an agent labels Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settings → Workflows: a node's system prompt is editable everywhere but in Settings

1 participant