Skip to content

fix(uipath-rpa): coded UIA — headless ObjectRepository.cs regeneration, editor using hints, CodedWorkflow.cs restart fix, selector-only targets - #3134

Merged
AlvinStanescu merged 5 commits into
mainfrom
fix/rpa-coded-or-regeneration-and-usings
Sep 17, 2026
Merged

AlvinStanescu merged 5 commits into
mainfrom
fix/rpa-coded-or-regeneration-and-usings

Conversation

@danmunteanu1

Copy link
Copy Markdown
Contributor

Summary

Fixes two failure modes observed in a coded UI-automation session and documents the selector-only coded targeting path.

  • ObjectRepository.cs regeneration (headless): the skill said Studio Desktop was required and that validate/build never trigger it. Verified on uip 1.200.1 / UIA 26.10: headless per-file validate regenerates the file when a [Workflow]/[TestCase] .cs is on disk; the OR write alone and build do not. SKILL.md Step 0 + fast-path step 2a, coded/operations-guide.md § Configure UI Targets, and the execution-maps UIA journey now state this. Descriptors.* is mandatory for OR targets; string target names / constants classes are called out as a non-fallback.
  • Editor "unnecessary using" hints: a UiPath project has no .csproj, so IDE diagnostics flag every using as unnecessary; acting on them produced 19 CS0246/CS0103 errors. § Using Statements Rules, the template note, and a troubleshooting row say to keep the usings and trust only validate/build. Added the namespace map for UiTargetApp, TargetAppOptions, N* enums, and IElementDescriptor (read from assembly metadata).
  • CS0246 'CodedWorkflow' with a green build: the old row said build creates the base partial. Verified: only the first validate/run after the headless host loads a coded project writes CodedWorkflow.cs; build/analyze never do. Fix documented: restart the host, then validate.
  • Selector-only coded targets: TargetAppModel + Target.FromSelector with CLI-captured selectors is now an allowed path for projects with no Object Repository by design or runtime-computed selectors, replacing the blanket "never construct TargetAppModel" rules. Full guidance lives in the UIA package docs (UiPath/Activities PR on fix/coded-or-regeneration-headless); the skill carries category pointers only.

Verification

  • npm run skills:check-links, npm run skills:validate, scripts/check-skill-status.py, scripts/check-skills-sh.py pass.
  • Regeneration and CodedWorkflow.cs behavior reproduced deterministically in a scratch copy of a coded UIA project (delete file → validate/build/analyze → inspect .local/.codedworkflows/).
  • No UIA subcommands, flags, or step numbers added to skill files (skill/package boundary preserved).

…ile validate headless, Descriptors.* mandatory over string targets, ignore editor unnecessary-using hints, CodedWorkflow.cs needs host restart + validate
… Target.FromSelector with CLI-captured selectors) alongside OR descriptors
@github-actions

github-actions Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

PR Review: fix(uipath-rpa): coded UIA — headless ObjectRepository.cs regeneration, editor using hints, CodedWorkflow.cs restart fix, selector-only targets

Reviewing PR changes...

  • Read review criteria and project conventions
  • Get full diff and read changed files
  • Verify relative links resolve
  • Check for cross-skill references, secrets, and structural issues
  • Post review findings

View job run

…file validate rule, independent of Studio flavor
…b before first uip command; .codedworkflows partials are a first-load snapshot (regen on later package/workflow change)
…bug start (build deletes WorkflowRunnerService.cs); use --skip-build or a bare run
@AlvinStanescu
AlvinStanescu merged commit fb5a9d0 into main Sep 17, 2026
19 checks passed
@AlvinStanescu
AlvinStanescu deleted the fix/rpa-coded-or-regeneration-and-usings branch September 17, 2026 14:52
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.

2 participants