Add custom step names and fix F key shortcut
- Add name field to PromptStep, CodeStep, and ToolStep dataclasses - Update step dialogs to allow editing step names - Display custom step names in both list and flow views - Fix F key shortcut by installing event filter on graph widget - Steps without custom names show default "Prompt N" / "Code N" Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
@@ -309,9 +309,12 @@ class ToolBuilderPage(QWidget):
|
||||
if self._tool and self._tool.steps:
|
||||
for i, step in enumerate(self._tool.steps, 1):
|
||||
if isinstance(step, PromptStep):
|
||||
text = f"{i}. Prompt [{step.provider}] → ${step.output_var}"
|
||||
# Use custom name if set, otherwise default format
|
||||
step_name = step.name if step.name else f"Prompt {i}"
|
||||
text = f"{i}. {step_name} [{step.provider}] → ${step.output_var}"
|
||||
elif isinstance(step, CodeStep):
|
||||
text = f"{i}. Code [python] → ${step.output_var}"
|
||||
step_name = step.name if step.name else f"Code {i}"
|
||||
text = f"{i}. {step_name} [python] → ${step.output_var}"
|
||||
else:
|
||||
text = f"{i}. Unknown step"
|
||||
item = QListWidgetItem(text)
|
||||
|
||||
Reference in New Issue
Block a user