Skip to content

Add browser-local AI workflow repair - #56149

Closed
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/update-workflow-editor-html
Closed

Add browser-local AI workflow repair#56149
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/update-workflow-editor-html

Conversation

Copilot AI commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Adds an in-browser prompt experience that uses local AI inference and the WASM compiler to iteratively produce a valid workflow.

  • Local inference

    • Lazily loads a pinned Transformers.js runtime and SmolLM2 model in a Web Worker.
    • Keeps inference off the UI thread and validates worker requests.
  • Compile-repair loop

    • Applies generated workflow Markdown only after successful compilation.
    • Feeds compiler diagnostics back to the model for up to three attempts.
    • Treats model output as untrusted text and bounds prompt, workflow, diagnostic, and output sizes.
  • Loading experience

    • Reports WASM compiler download progress.
    • Shows model download, initialization, generation, and validation progress.
    • Discloses the approximate first-use model download before execution.
  • Coverage

    • Verifies inference remains unloaded until requested.
    • Covers compiler-error feedback and successful retry behavior.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Add browser-local AI workflow fixer Add browser-local AI workflow repair Aug 26, 2026
Copilot AI requested a review from pelikhan August 26, 2026 23:06
@pelikhan pelikhan closed this Aug 26, 2026
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