fix: open flow file on editor after generating it [MST-8633]#1805
fix: open flow file on editor after generating it [MST-8633]#1805ayush578 wants to merge 1 commit into
Conversation
After a greenfield flow build finishes (validate + format), open the generated .flow in the editor as the final step so users don't have to locate it manually. Adds an 'open the flow' step to the Completion Output section of the uipath-maestro-flow authoring guide, using the standard `code -r` CLI (the .flow custom editor is the default editor for *.flow), with editor-fork fallbacks and a headless/CI skip. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @ayush578's task in 2m 11s —— View job PR Review: fix: open flow file on editor after generating it MST-8633
SummaryAdds a 17-line "open the generated Change-by-Change Review1.
|
| Current | Tighter |
|---|---|
Once format succeeds, open the .flow in the editor as your final action — a flow you generated otherwise sits closed and the user has to hunt for it: |
After formatsucceeds, open the.flow — otherwise it sits closed: |
Open the **file** you just generated, not its folder. Opening is idempotent: if the file is already open, this just focuses its tab. |
Open the **file**, not its folder. Idempotent — if already open, just focuses the tab. |
Editor-fork binaries differ: if \code` isn't on `PATH`, try `code-insiders` (VS Code Insiders) or `cursor` (Cursor). If none resolve, skip this step and just report the file path below — never fail the build over the open.` |
If \code` isn't on PATH, try `code-insiders` then `cursor`. If none resolve, skip — report the file path below. Never fail the build over the open.` |
The code block comment # -r reuses the current editor window (line 332) restates what surrounding prose explains — per token optimization §2, strip it.
What's Missing
- Turn-map update for the new step — see finding (a) above. Without this, agents following the three-turn map will omit the open command.
Area Ratings
| Area | Status | Notes |
|---|---|---|
| Frontmatter | OK | No frontmatter changes |
| E2E Tests | OK | Instruction-only change to existing reference — no new CLI workflow requiring new test coverage |
| Skill Body | OK | SKILL.md not modified |
| References & Assets | Issue | Turn map inconsistency (Medium); minor verbosity (Low) |
| Repo Hygiene | OK | No secrets, no cross-skill refs, no CODEOWNERS change needed |
Issues for Manual Review
code -rvs. a UiPath-specific mechanism: The PR description asks whether UiPath has a preferred "open in editor" pattern (e.g., auipcommand or a clickable path protocol). If such a mechanism exists, it would be preferable to hardcoding VS Code CLI variants. This is a domain question the reviewer should confirm with the UiPath team.
Conclusion
Approve with minor changes requested. The functional approach is correct and well-guarded (fallbacks, CI skip). The main actionable item is updating the three-turn execution map (line 40) to include this post-chain step — without it, agents using the turn map as their execution template will skip the file open. The prose verbosity is a low-severity polish item.
What & why
When Claude generates a
.flowvia theuipath-maestro-flowskill, the resulting file is written to disk but never opened — the user has to locate and open it by hand (MST-8633).This adds an "open the flow" step to the Completion Output section of the greenfield authoring guide, so the agent opens the generated
.flowas its final action (right aftervalidate+format).Change
skills/uipath-maestro-flow/references/author/references/greenfield.md— one new step (17 lines):code -r "<ProjectName>.flow"CLI..flowis handled by the visual Flow editor automatically (it is the default editor for*.flow), so no viewType/flags are needed.code-insiders,cursor) and — if none resolve — skip and just report the path; never fail the build over the open.Scoped to the greenfield (newly generated) path — the ticket's scenario. Brownfield edits act on an already-open flow, so that path is left unchanged.
Notes
uipcommand or printing a clickable path), happy to align to it.