Skip to content

Commit 29f461b

Browse files
Merge pull request #44 from flowdevs-io/improve-system-prompts
Improve system prompts
2 parents c4df871 + 1ca4a15 commit 29f461b

4 files changed

Lines changed: 746 additions & 158 deletions

File tree

FlowVision/ToolConfigForm.Designer.cs

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FlowVision/ToolConfigForm.cs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,58 @@ private void chkPluginStatus_CheckedChanged(object sender, EventArgs e)
832832
// Update status indicators when any plugin checkbox changes
833833
UpdateStatusIndicators();
834834
}
835+
836+
// Reset button event handlers
837+
private void btnResetActioner_Click(object sender, EventArgs e)
838+
{
839+
if (MessageBox.Show(
840+
"Are you sure you want to reset the Actioner system prompt to default?\n\nThis will overwrite your current prompt.",
841+
"Reset to Default",
842+
MessageBoxButtons.YesNo,
843+
MessageBoxIcon.Question) == DialogResult.Yes)
844+
{
845+
txtActionerSystemPrompt.Text = ToolConfig.GetDefaultActionerPrompt();
846+
MessageBox.Show(
847+
"Actioner system prompt has been reset to default.\n\nDon't forget to click 'Save' to apply the changes!",
848+
"Reset Complete",
849+
MessageBoxButtons.OK,
850+
MessageBoxIcon.Information);
851+
}
852+
}
853+
854+
private void btnResetPlanner_Click(object sender, EventArgs e)
855+
{
856+
if (MessageBox.Show(
857+
"Are you sure you want to reset the Planner system prompt to default?\n\nThis will overwrite your current prompt.",
858+
"Reset to Default",
859+
MessageBoxButtons.YesNo,
860+
MessageBoxIcon.Question) == DialogResult.Yes)
861+
{
862+
txtPlannerSystemPrompt.Text = ToolConfig.GetDefaultPlannerPrompt();
863+
MessageBox.Show(
864+
"Planner system prompt has been reset to default.\n\nDon't forget to click 'Save' to apply the changes!",
865+
"Reset Complete",
866+
MessageBoxButtons.OK,
867+
MessageBoxIcon.Information);
868+
}
869+
}
870+
871+
private void btnResetCoordinator_Click(object sender, EventArgs e)
872+
{
873+
if (MessageBox.Show(
874+
"Are you sure you want to reset the Coordinator system prompt to default?\n\nThis will overwrite your current prompt.",
875+
"Reset to Default",
876+
MessageBoxButtons.YesNo,
877+
MessageBoxIcon.Question) == DialogResult.Yes)
878+
{
879+
txtCoordinatorSystemPrompt.Text = ToolConfig.GetDefaultCoordinatorPrompt();
880+
MessageBox.Show(
881+
"Coordinator system prompt has been reset to default.\n\nDon't forget to click 'Save' to apply the changes!",
882+
"Reset Complete",
883+
MessageBoxButtons.OK,
884+
MessageBoxIcon.Information);
885+
}
886+
}
835887
}
836888

837889
// Simple input dialog for profile name entry

0 commit comments

Comments
 (0)