Skip to content

fix(vscode): Fix codeful workflow templates, Add stateless template - #9731

Merged
Andrew Eldridge (andrew-eldridge) merged 3 commits into
mainfrom
aeldridge/codeful-stateless-template
Nov 23, 2026
Merged

Andrew Eldridge (andrew-eldridge) merged 3 commits into
mainfrom
aeldridge/codeful-stateless-template

Conversation

@andrew-eldridge

@andrew-eldridge Andrew Eldridge (andrew-eldridge) commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Commit Type

  • feature - New functionality
  • fix - Bug fix
  • refactor - Code restructuring without behavior change
  • perf - Performance improvement
  • docs - Documentation update
  • test - Test-related changes
  • chore - Maintenance/tooling

Risk Level

  • Low - Minor changes, limited scope
  • Medium - Moderate changes, some user impact
  • High - Major changes, significant user/system impact

What & Why

  • Fix syntax errors in codeful workflow templates related to public api changes in latest SDK version
  • Add template for codeful stateless workflows

Impact of Change

  • Users: Fixed existing codeful workflow templates, adds stateless template
  • Developers: N/A
  • System: N/A

Test Plan

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing completed
  • Tested in:

Contributors

Andrew Eldridge (@andrew-eldridge)

Screenshots

image image

@andrew-eldridge Andrew Eldridge (andrew-eldridge) added VSCode Issues or PRs specific to VS Code extension risk:medium Medium risk change with potential impact labels Nov 23, 2026
Copilot AI balanced review requested due to automatic review settings November 23, 2026 16:52
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🤖 AI PR Validation Report

PR Review Results

Thank you for your submission! Here's detailed feedback on your PR title and body compliance:

✅ PR Title

  • Current: fix(vscode): Fix codeful workflow templates, Add stateless template
  • Issue: The title accurately describes the scope and uses a conventional fix(vscode) prefix. The capitalization could be made more consistent with imperative-style titles.
  • Recommendation: Optional improvement: fix(vscode): fix codeful templates and add stateless workflow template

✅ Commit Type

  • Properly selected (fix).
  • Only one commit type is selected, and the changes address template syntax issues and workflow discovery behavior while adding stateless workflow support.

✅ Risk Level

  • Medium is selected in the PR body and matches the risk:medium label.
  • The assessed risk is appropriate: the change affects VS Code workflow creation, generated C# templates, workflow detection, and UI workflow-type handling, but is limited to a defined feature area and includes tests.

✅ What & Why

  • Current: Fix syntax errors in codeful workflow templates related to public api changes in latest SDK version and Add template for codeful stateless workflows
  • Issue: The rationale is brief but clearly explains both the compatibility fixes and the new stateless workflow capability.
  • Recommendation: No required changes. For additional clarity, you could mention that workflow discovery and UI selection were updated to preserve and expose the stateless workflow type.

⚠️ Impact of Change

  • The affected users are identified, but the developer and system impacts are marked N/A even though the diff updates workflow detection utilities, generated C# templates, and test coverage.
  • Recommendation:
    • Users: State that VS Code users can create stateless codeful workflows and receive corrected generated templates for existing codeful workflows.
    • Developers: Replace N/A with: Updates codeful workflow detection and generated C# template conventions, including stateless workflow classification.
    • System: Replace N/A with: Adds stateless workflow template generation and preserves workflow kind/state metadata during source-only discovery; no dependency or runtime architecture changes.

✅ Test Plan

  • Unit tests are marked and are backed by the diff, including coverage for stateless workflow detection, template content and generation, workflow discovery, and UI workflow-type selection. Manual testing is also marked. Because unit tests are present, E2E tests are not required for this review.

⚠️ Contributors

  • The section identifies @andrew-eldridge as a contributor.
  • Consider crediting PMs, designers, or other reviewers who contributed ideas or validation, if applicable. This is optional and does not block approval.

✅ Screenshots/Videos

  • Screenshots are included, which is appropriate because the change adds a visible workflow type to the creation and review experience.

Summary Table

Section Status Recommendation
Title ✅ Optional capitalization/style refinement
Commit Type ✅ No change needed
Risk Level ✅ Medium selection and label match the assessed scope
What & Why ✅ Optionally mention workflow discovery and UI updates
Impact of Change ⚠️ Replace N/A developer/system entries with specific impacts
Test Plan ✅ Unit test coverage is present in the diff
Contributors ⚠️ Add other contributors if applicable
Screenshots/Videos ✅ Screenshots are provided for the UI change

This PR passes the title and body review. The advised risk level is medium, which matches the submitter's selected risk and label. Updating the developer and system impact descriptions would make the PR documentation more complete.


Powered by: Logic App (fallback) | Last updated: Mon, 23 Nov 2026 17:37:21 GMT

@github-actions

Copy link
Copy Markdown
Contributor

🤖 AI PR Validation Report

PR Review Results

Thank you for your submission! Here's detailed feedback on your PR title and body compliance:

✅ PR Title

  • Current: fix(vscode): Fix codeful workflow templates, Add stateless template
  • Issue: The title is specific and accurately describes both the template fixes and the new stateless template. The capitalization after the conventional-commit prefix could be made more consistent, but this is only a minor style recommendation.
  • Recommendation: Consider fix(vscode): fix codeful workflow templates and add stateless template for consistent lowercase conventional-commit style.

⚠️ Commit Type

  • The PR selects fix, which accurately describes the template corrections, but the PR also introduces new stateless workflow functionality.
  • Consider selecting feature as well, or selecting feature as the primary type if the new template is the main purpose. Multiple selections are acceptable for this review, but the body should acknowledge both aspects of the change.

✅ Risk Level

  • The PR selects Medium, and the risk:medium label is present and matches the body. This is appropriate for changes spanning workflow template generation, workflow discovery, UI workflow selection, and SDK-related template updates. The advised risk level is medium, matching the submitter's estimate.

✅ What & Why

  • Current: Fix syntax errors in codeful workflow templates related to public api changes in latest SDK version and Add template for codeful stateless workflows
  • Issue: The section clearly explains both the bug fixes and the new functionality. It could be slightly more precise about the workflow discovery and UI support added for stateless workflows, but no required information is missing.
  • Recommendation: Optionally clarify the scope: Update codeful templates for the latest SDK API, add a stateless workflow template, and preserve stateless workflow metadata during source discovery and workspace creation.

⚠️ Impact of Change

  • The user impact is described, but Developers: N/A and System: N/A do not fully reflect the code and template changes in this PR.
  • Recommendation:
    • Users: Codeful workflow creators can select and create stateless workflows; existing stateful and agent templates receive SDK compatibility fixes.
    • Developers: Codeful workflow detection now returns stateless workflow metadata, and new provider-based C# template conventions are introduced.
    • System: Workflow discovery and workspace generation now recognize CreateStatelessWorkflow; generated templates use updated SDK connector APIs.

✅ Test Plan

  • Unit tests are added or updated in the diff for stateless workflow detection, workspace generation, workflow discovery, and UI workflow selection/review. This satisfies the test-plan requirement even though E2E tests were not added. Manual testing is also marked as completed.

✅ Contributors

  • @andrew-eldridge is listed as a contributor. This is acceptable. Consider crediting PMs, designers, or other reviewers if they contributed to the feature.

⚠️ Screenshots/Videos

  • The PR adds a visible stateless workflow option and displays stateless workflow details in the creation flow, but no screenshots or videos are included.
  • Screenshots are recommended to document the new workflow-selection and review UI. This is a warning only because the primary change is functional and template-related.

Summary Table

Section Status Recommendation
Title ✅ Optionally use lowercase after the conventional-commit prefix.
Commit Type ⚠️ Consider acknowledging both the fix and feature aspects.
Risk Level ✅ Medium matches the risk:medium label.
What & Why ✅ Optionally mention workflow discovery and UI support.
Impact of Change ⚠️ Replace N/A with concrete developer and system impacts.
Test Plan ✅ Unit tests cover the changed functionality.
Contributors ✅ Contributor is listed.
Screenshots/Videos ⚠️ Add UI screenshots or a short video if available.

The PR passes title and body compliance. Before merging, consider improving the commit-type description, documenting developer/system impact, and adding screenshots for the new UI flow.


Powered by: Logic App (fallback) | Last updated: Mon, 23 Nov 2026 16:53:15 GMT

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

📊 Coverage Check

The following changed files need attention:

⚠️ apps/vs-code-designer/src/app/utils/codeful.ts - 67% covered (needs improvement)

Please add tests for the uncovered files before merging.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The generated C# projects still need compilation and startup verification against the pinned SDK 1.0.0-preview.3, since the added tests check only source text and the available SDK reference is untagged.

No open issues 🎉

What changed in this PR

This PR updates the VS Code extension’s codeful workflow templates for current SDK APIs and adds stateless workflow support across workspace creation and workflow discovery.

Changes:

  • Corrects weather enum and Office 365 email input usage in existing templates.
  • Adds a stateless template, wizard selection, and source-based workflow kind detection.
  • Adds unit tests for stateless creation, display, discovery, and updated template content.
File Description
apps/​vs-code-react/​src/​app/​createWorkspace/​steps/​workflowTypeStep.tsx Adds the codeful stateless option.
apps/​vs-code-react/​src/​app/​createWorkspace/​steps/​reviewCreateStep.tsx Displays the stateless workflow label.
apps/​vs-code-react/​src/​app/​createWorkspace/​steps/​__test__/​workflowTypeStep.test.tsx Tests stateless selection and stored value.
apps/​vs-code-react/​src/​app/​createWorkspace/​steps/​__test__/​reviewCreateStep.test.tsx Tests stateless review details.
apps/​vs-code-designer/​src/​assets/​CodefulProjectTemplate/​StatelessCodefulWorkflow Adds a stateless HTTP request/response template.
apps/​vs-code-designer/​src/​assets/​CodefulProjectTemplate/​StatefulCodefulWorkflow Corrects the weather units enum.
apps/​vs-code-designer/​src/​assets/​CodefulProjectTemplate/​AgenticCodefulWorkflow Updates weather and email SDK usage.
apps/​vs-code-designer/​src/​assets/​CodefulProjectTemplate/​AgentCodefulWorkflow Updates weather and email SDK usage.
apps/​vs-code-designer/​src/​app/​utils/​codeful.ts Detects stateless workflow factory calls.
apps/​vs-code-designer/​src/​app/​utils/​__test__/​codeful.test.ts Tests stateless workflow detection.
apps/​vs-code-designer/​src/​app/​commands/​workflows/​overview/​utils/​codefulHelpers.ts Preserves workflow kinds during source discovery.
apps/​vs-code-designer/​src/​app/​commands/​workflows/​overview/​panels/​__test__/​localCodefulOverviewPanel.test.ts Tests stateless overview metadata without the runtime.
apps/​vs-code-designer/​src/​app/​commands/​createNewCodeProject/​CodeProjectBase/​CreateLogicAppWorkspace.ts Selects the stateless template and rejects unsupported types.
apps/​vs-code-designer/​src/​app/​commands/​createNewCodeProject/​CodeProjectBase/​__test__/​CreateLogicAppWorkspace.test.ts Tests template updates and stateless file generation.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The rendered C# templates still need compilation and startup validation against Microsoft.Azure.Workflows.Sdk 1.0.0-preview.3, since tests only check source strings and pinned-package execution was unavailable.

No open issues 🎉

Review effort: Balanced

@andrew-eldridge
Andrew Eldridge (andrew-eldridge) merged commit b299100 into main Nov 23, 2026
47 of 48 checks passed
@andrew-eldridge
Andrew Eldridge (andrew-eldridge) deleted the aeldridge/codeful-stateless-template branch November 23, 2026 20:17
Andrew Eldridge (andrew-eldridge) added a commit that referenced this pull request Nov 23, 2026
…9733)

fix(vscode): Fix codeful workflow templates, Add stateless template (#9731)

* add stateless codeful workflow template

* fix codeful templates

* fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-validated risk:medium Medium risk change with potential impact VSCode Issues or PRs specific to VS Code extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants