Skip to content

feat(cli): Add 'workflow doctor' command for TypeScript plugin setup diagnostics#1314

Open
TooTallNate wants to merge 1 commit intomainfrom
nrajlich/cli-doctor-command
Open

feat(cli): Add 'workflow doctor' command for TypeScript plugin setup diagnostics#1314
TooTallNate wants to merge 1 commit intomainfrom
nrajlich/cli-doctor-command

Conversation

@TooTallNate
Copy link
Member

Summary

  • Adds a workflow doctor command that diagnoses common setup issues preventing the Workflow TypeScript Language Service Plugin from loading correctly in editors
  • Runs 5 checks with clear PASS/WARN/FAIL output and actionable fix instructions

Checks performed

Check What it verifies
tsconfig.json plugin compilerOptions.plugins contains "workflow" or "@workflow/typescript-plugin"
workflow package workflow is installed in node_modules
workspace TypeScript typescript is installed locally (shows version)
VS Code setup Extension is installed, or typescript.tsdk is configured
CoC (Vim) config tsserver.useLocalTsdk is enabled in coc-settings.json

Example output

Workflow DevKit — Doctor
Checking your project setup...

  PASS  tsconfig.json plugin
        Workflow TypeScript plugin is configured in compilerOptions.plugins.

  PASS  workflow package
        The "workflow" package is installed.

  PASS  workspace TypeScript
        TypeScript 5.9.3 is installed in the workspace.

  WARN  VS Code setup
        No .vscode/settings.json found. If using VS Code, the bundled TypeScript
        will not load the Workflow plugin.

        Install the "Workflow DevKit" VS Code extension (recommended), or set the
        workspace TypeScript version:

          Open Command Palette → "TypeScript: Select TypeScript Version" → "Use Workspace Version"

  PASS  CoC (Vim) config
        coc-settings.json has tsserver.useLocalTsdk enabled.

——————————————————————————————————————————————————

All critical checks passed, but there are warnings above.

Usage

workflow doctor
workflow doctor --dir ./my-app

Background

The workflow TypeScript plugin requires editors to use the workspace TypeScript version rather than their bundled copy. When misconfigured, the plugin silently fails to load — no errors, no warnings, just missing functionality. This command helps users identify and fix these issues.

…n setup

Add a diagnostic command that checks common setup issues preventing
the Workflow TypeScript Language Service Plugin from loading correctly
in editors. Checks tsconfig.json plugin config, workspace TypeScript
installation, VS Code settings, and CoC/Vim configuration.
@TooTallNate TooTallNate requested a review from a team as a code owner March 10, 2026 07:18
Copilot AI review requested due to automatic review settings March 10, 2026 07:18
@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2026

⚠️ No Changeset found

Latest commit: 0792216

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Mar 10, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.025s (-24.5% 🟢) 1.005s (~) 0.980s 10 1.00x
💻 Local Express 0.035s (-0.9%) 1.006s (~) 0.971s 10 1.39x
💻 Local Next.js (Turbopack) 0.038s 1.005s 0.967s 10 1.54x
🐘 Postgres Next.js (Turbopack) 0.040s 1.012s 0.972s 10 1.60x
🌐 Redis Next.js (Turbopack) 0.040s 1.005s 0.965s 10 1.62x
🐘 Postgres Express 0.045s (-31.0% 🟢) 1.013s (-0.7%) 0.968s 10 1.80x
🐘 Postgres Nitro 0.071s (+33.9% 🔺) 1.019s (+0.8%) 0.947s 10 2.87x
🌐 MongoDB Next.js (Turbopack) 0.103s 1.008s 0.905s 10 4.15x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 0.414s (-4.2%) 2.147s (-2.3%) 1.734s 10 1.00x
▲ Vercel Express 0.528s (-2.2%) 2.288s (+10.4% 🔺) 1.760s 10 1.28x
▲ Vercel Next.js (Turbopack) 0.615s (+2.0%) 2.302s (+12.2% 🔺) 1.687s 10 1.49x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.069s (-3.0%) 2.006s (~) 0.937s 10 1.00x
🌐 Redis Next.js (Turbopack) 1.080s 2.006s 0.927s 10 1.01x
💻 Local Next.js (Turbopack) 1.102s 2.006s 0.904s 10 1.03x
🐘 Postgres Next.js (Turbopack) 1.110s 2.012s 0.902s 10 1.04x
🐘 Postgres Express 1.112s (-2.2%) 2.013s (~) 0.901s 10 1.04x
💻 Local Express 1.112s (+0.8%) 2.006s (~) 0.894s 10 1.04x
🐘 Postgres Nitro 1.123s (-1.1%) 2.011s (~) 0.888s 10 1.05x
🌐 MongoDB Next.js (Turbopack) 1.298s 2.009s 0.711s 10 1.21x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.954s (-5.9% 🟢) 3.529s (+1.3%) 1.575s 10 1.00x
▲ Vercel Express 1.975s (-3.5%) 3.301s (+6.3% 🔺) 1.326s 10 1.01x
▲ Vercel Next.js (Turbopack) 2.077s (-1.6%) 3.495s (+12.6% 🔺) 1.418s 10 1.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 10.506s (-2.6%) 11.023s (~) 0.517s 3 1.00x
🌐 Redis Next.js (Turbopack) 10.506s 11.023s 0.517s 3 1.00x
🐘 Postgres Next.js (Turbopack) 10.622s 11.040s 0.418s 3 1.01x
🐘 Postgres Express 10.667s (-1.7%) 11.046s (~) 0.378s 3 1.02x
💻 Local Next.js (Turbopack) 10.717s 11.023s 0.306s 3 1.02x
🐘 Postgres Nitro 10.810s (~) 11.038s (~) 0.228s 3 1.03x
💻 Local Express 10.846s (+0.7%) 11.024s (~) 0.178s 3 1.03x
🌐 MongoDB Next.js (Turbopack) 12.293s 13.028s 0.735s 3 1.17x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 18.113s (+4.3%) 19.737s (+5.4% 🔺) 1.623s 2 1.00x
▲ Vercel Express 18.317s (+5.8% 🔺) 19.813s (+10.3% 🔺) 1.496s 2 1.01x
▲ Vercel Nitro 18.363s (+1.9%) 19.748s (+2.4%) 1.385s 2 1.01x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 26.155s 27.054s 0.899s 3 1.00x
🐘 Postgres Next.js (Turbopack) 26.447s 27.057s 0.610s 3 1.01x
💻 Local Nitro 26.477s (-2.6%) 27.052s (-3.6%) 0.575s 3 1.01x
🐘 Postgres Express 26.543s (-1.6%) 27.068s (~) 0.526s 3 1.01x
🐘 Postgres Nitro 26.928s (~) 27.057s (-1.3%) 0.129s 3 1.03x
💻 Local Next.js (Turbopack) 26.976s 27.052s 0.076s 3 1.03x
💻 Local Express 27.346s (~) 28.055s (~) 0.709s 3 1.05x
🌐 MongoDB Next.js (Turbopack) 30.564s 31.049s 0.484s 2 1.17x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 43.200s (~) 44.524s (~) 1.324s 2 1.00x
▲ Vercel Nitro 44.471s (+2.8%) 45.824s (+2.0%) 1.352s 2 1.03x
▲ Vercel Next.js (Turbopack) 45.327s (+3.0%) 47.102s (+4.5%) 1.775s 2 1.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 52.269s 53.101s 0.833s 2 1.00x
🐘 Postgres Next.js (Turbopack) 52.777s 53.095s 0.318s 2 1.01x
🐘 Postgres Express 52.963s (-1.5%) 53.109s (-1.8%) 0.146s 2 1.01x
🐘 Postgres Nitro 53.819s (~) 54.097s (~) 0.279s 2 1.03x
💻 Local Nitro 54.420s (-2.6%) 55.101s (-1.8%) 0.680s 2 1.04x
💻 Local Next.js (Turbopack) 55.756s 56.103s 0.347s 2 1.07x
💻 Local Express 56.370s (~) 57.105s (~) 0.736s 2 1.08x
🌐 MongoDB Next.js (Turbopack) 60.926s 61.079s 0.153s 2 1.17x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 97.225s (+2.5%) 98.882s (+3.0%) 1.657s 1 1.00x
▲ Vercel Nitro 98.432s (+4.6%) 100.128s (+5.1% 🔺) 1.696s 1 1.01x
▲ Vercel Next.js (Turbopack) 101.813s (+2.1%) 104.060s (+2.5%) 2.247s 1 1.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 1.183s 2.006s 0.824s 15 1.00x
🐘 Postgres Express 1.303s (-4.7%) 2.012s (~) 0.709s 15 1.10x
🐘 Postgres Next.js (Turbopack) 1.337s 2.011s 0.674s 15 1.13x
💻 Local Nitro 1.354s (-3.6%) 2.006s (~) 0.652s 15 1.14x
🐘 Postgres Nitro 1.361s (+0.9%) 2.010s (~) 0.649s 15 1.15x
💻 Local Next.js (Turbopack) 1.426s 2.005s 0.579s 15 1.21x
💻 Local Express 1.426s (+1.2%) 2.006s (~) 0.580s 15 1.21x
🌐 MongoDB Next.js (Turbopack) 2.158s 3.009s 0.852s 10 1.82x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.442s (+0.6%) 3.961s (+16.8% 🔺) 1.519s 8 1.00x
▲ Vercel Express 2.539s (+4.2%) 3.577s (+4.2%) 1.038s 9 1.04x
▲ Vercel Nitro 2.641s (-9.4% 🟢) 4.015s (-8.5% 🟢) 1.373s 8 1.08x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.754s (-10.6% 🟢) 2.229s (-14.2% 🟢) 0.474s 14 1.00x
🐘 Postgres Next.js (Turbopack) 1.774s 2.080s 0.306s 15 1.01x
🐘 Postgres Nitro 2.021s (+5.5% 🔺) 2.518s (~) 0.497s 12 1.15x
💻 Local Nitro 2.289s (-9.8% 🟢) 3.008s (~) 0.719s 10 1.31x
🌐 Redis Next.js (Turbopack) 2.377s 3.008s 0.631s 10 1.36x
💻 Local Next.js (Turbopack) 2.571s 3.007s 0.437s 10 1.47x
💻 Local Express 2.698s (+2.8%) 3.008s (~) 0.309s 10 1.54x
🌐 MongoDB Next.js (Turbopack) 4.605s 5.178s 0.574s 6 2.62x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.751s (-5.8% 🟢) 3.782s (-6.4% 🟢) 1.031s 8 1.00x
▲ Vercel Express 2.846s (-3.7%) 4.229s (+7.2% 🔺) 1.384s 8 1.03x
▲ Vercel Next.js (Turbopack) 3.264s (+12.2% 🔺) 4.732s (+23.7% 🔺) 1.467s 7 1.19x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 2.811s 3.458s 0.646s 9 1.00x
🐘 Postgres Express 2.980s (-12.0% 🟢) 4.017s (-3.5%) 1.037s 8 1.06x
🐘 Postgres Nitro 3.716s (+11.2% 🔺) 4.285s (+6.6% 🔺) 0.568s 8 1.32x
🌐 Redis Next.js (Turbopack) 3.811s 4.009s 0.198s 8 1.36x
💻 Local Nitro 6.049s (-15.7% 🟢) 6.815s (-12.3% 🟢) 0.766s 5 2.15x
💻 Local Next.js (Turbopack) 7.519s 7.768s 0.249s 4 2.67x
💻 Local Express 8.011s (+4.9%) 8.521s (+6.3% 🔺) 0.510s 4 2.85x
🌐 MongoDB Next.js (Turbopack) 9.890s 10.353s 0.462s 3 3.52x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.517s (+14.1% 🔺) 4.883s (+4.5%) 1.366s 7 1.00x
▲ Vercel Express 3.625s (+14.7% 🔺) 4.947s (+11.4% 🔺) 1.322s 7 1.03x
▲ Vercel Next.js (Turbopack) 4.069s (+32.7% 🔺) 5.718s (+32.9% 🔺) 1.649s 6 1.16x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🌐 Redis 🥇 Next.js (Turbopack) 1.193s 2.006s 0.813s 15 1.00x
🐘 Postgres Express 1.303s (-5.8% 🟢) 2.012s (~) 0.709s 15 1.09x
🐘 Postgres Next.js (Turbopack) 1.329s 2.012s 0.683s 15 1.11x
💻 Local Nitro 1.369s (-3.4%) 2.006s (~) 0.636s 15 1.15x
🐘 Postgres Nitro 1.381s (~) 2.011s (~) 0.630s 15 1.16x
💻 Local Next.js (Turbopack) 1.441s 2.006s 0.565s 15 1.21x
💻 Local Express 1.472s (+1.6%) 2.006s (~) 0.534s 15 1.23x
🌐 MongoDB Next.js (Turbopack) 2.175s 3.008s 0.833s 10 1.82x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.044s (-26.8% 🟢) 3.417s (-16.2% 🟢) 1.373s 9 1.00x
▲ Vercel Express 2.090s (-12.7% 🟢) 3.302s (-2.7%) 1.212s 10 1.02x
▲ Vercel Next.js (Turbopack) 2.263s (-10.5% 🟢) 3.859s (+2.4%) 1.597s 8 1.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Next.js (Turbopack) 1.670s 2.012s 0.342s 15 1.00x
🐘 Postgres Express 1.770s (-13.5% 🟢) 2.156s (-17.1% 🟢) 0.386s 14 1.06x
🐘 Postgres Nitro 2.180s (+6.0% 🔺) 2.743s (+5.6% 🔺) 0.563s 11 1.31x
🌐 Redis Next.js (Turbopack) 2.380s 3.008s 0.628s 10 1.42x
💻 Local Nitro 2.393s (-9.2% 🟢) 3.008s (~) 0.615s 10 1.43x
💻 Local Next.js (Turbopack) 2.760s 3.109s 0.349s 10 1.65x
💻 Local Express 2.800s (+0.6%) 3.008s (~) 0.208s 10 1.68x
🌐 MongoDB Next.js (Turbopack) 4.788s 5.176s 0.388s 6 2.87x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.265s (-26.9% 🟢) 3.570s (-17.5% 🟢) 1.305s 9 1.00x
▲ Vercel Express 2.303s (-11.0% 🟢) 3.429s (-4.4%) 1.126s 9 1.02x
▲ Vercel Next.js (Turbopack) 3.020s (+2.9%) 4.433s (+15.6% 🔺) 1.412s 7 1.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 2.670s (-37.3% 🟢) 3.573s (-28.9% 🟢) 0.903s 9 1.00x
🐘 Postgres Next.js (Turbopack) 2.866s 3.794s 0.928s 9 1.07x
🌐 Redis Next.js (Turbopack) 3.798s 4.009s 0.212s 8 1.42x
🐘 Postgres Nitro 3.804s (+10.0% 🔺) 4.593s (+7.5% 🔺) 0.789s 7 1.42x
💻 Local Nitro 6.767s (-13.1% 🟢) 7.012s (-12.5% 🟢) 0.246s 5 2.53x
💻 Local Next.js (Turbopack) 8.067s 8.768s 0.701s 4 3.02x
💻 Local Express 8.289s (-2.3%) 9.023s (~) 0.734s 4 3.10x
🌐 MongoDB Next.js (Turbopack) 10.112s 10.685s 0.574s 3 3.79x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.124s (-23.9% 🟢) 4.529s (-17.2% 🟢) 1.405s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.148s (+5.1% 🔺) 4.367s (-0.9%) 1.219s 7 1.01x
▲ Vercel Express 3.356s (+8.3% 🔺) 4.457s (+2.6%) 1.100s 7 1.07x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.106s (-34.9% 🟢) 1.003s (~) 0.009s (-16.2% 🟢) 1.015s (~) 0.909s 10 1.00x
🌐 Redis Next.js (Turbopack) 0.107s 1.000s 0.002s 1.007s 0.900s 10 1.01x
🐘 Postgres Next.js (Turbopack) 0.134s 1.000s 0.001s 1.011s 0.877s 10 1.26x
🐘 Postgres Express 0.146s (-26.8% 🟢) 1.001s (+0.6%) 0.001s (-6.7% 🟢) 1.014s (~) 0.868s 10 1.37x
💻 Local Next.js (Turbopack) 0.148s 1.002s 0.012s 1.018s 0.870s 10 1.39x
💻 Local Express 0.177s (+3.2%) 1.003s (~) 0.012s (+5.2% 🔺) 1.018s (~) 0.841s 10 1.66x
🐘 Postgres Nitro 0.198s (-3.9%) 0.992s (~) 0.002s (+20.0% 🔺) 1.012s (~) 0.814s 10 1.87x
🌐 MongoDB Next.js (Turbopack) 0.495s 0.950s 0.002s 1.009s 0.515s 10 4.66x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 1.532s (-14.5% 🟢) 2.370s (-8.5% 🟢) 0.005s (-2.1%) 2.817s (-8.7% 🟢) 1.286s 10 1.00x
▲ Vercel Express 1.537s (+4.2%) 2.440s (+20.7% 🔺) 0.004s (-6.7% 🟢) 2.842s (+19.6% 🔺) 1.305s 10 1.00x
▲ Vercel Next.js (Turbopack) 1.691s (+3.6%) 2.414s (+1.5%) 0.006s (~) 3.018s (+10.3% 🔺) 1.327s 10 1.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Nitro 12/12
🐘 Postgres Next.js (Turbopack) 8/12
▲ Vercel Nitro 8/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 11/12
Next.js (Turbopack) 🌐 Redis 7/12
Nitro 💻 Local 7/12
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 571 0 67 638
✅ 💻 Local Development 612 0 84 696
✅ 📦 Local Production 612 0 84 696
❌ 🐘 Local Postgres 610 2 84 696
✅ 🪟 Windows 55 0 3 58
❌ 🌍 Community Worlds 118 56 15 189
❌ 📋 Other 146 1 27 174
Total 2724 59 364 3147

❌ Failed Tests

🐘 Local Postgres (2 failed)

nextjs-webpack-canary (1 failed):

  • webhookWorkflow

nitro-stable (1 failed):

  • webhookWorkflow
🌍 Community Worlds (56 failed)

mongodb (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint
  • webhookWorkflow
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously

turso (51 failed):

  • addTenWorkflow
  • addTenWorkflow
  • wellKnownAgentWorkflow (.well-known/agent)
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • importedStepOnlyWorkflow
  • hookWorkflow
  • hookWorkflow is not resumable via public webhook endpoint
  • webhookWorkflow
  • sleepingWorkflow
  • parallelSleepWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling retry behavior workflow completes despite transient 5xx on step_completed
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • cancelRun - cancelling a running workflow
  • cancelRun via CLI - cancelling a running workflow
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control)
📋 Other (1 failed)

e2e-local-postgres-nest-stable (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 51 0 7
✅ example 51 0 7
✅ express 51 0 7
✅ fastify 51 0 7
✅ hono 51 0 7
✅ nextjs-turbopack 56 0 2
✅ nextjs-webpack 56 0 2
✅ nitro 51 0 7
✅ nuxt 51 0 7
✅ sveltekit 51 0 7
✅ vite 51 0 7
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 49 0 9
✅ express-stable 49 0 9
✅ fastify-stable 49 0 9
✅ hono-stable 49 0 9
✅ nextjs-turbopack-canary 55 0 3
✅ nextjs-turbopack-stable 55 0 3
✅ nextjs-webpack-canary 55 0 3
✅ nextjs-webpack-stable 55 0 3
✅ nitro-stable 49 0 9
✅ nuxt-stable 49 0 9
✅ sveltekit-stable 49 0 9
✅ vite-stable 49 0 9
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 49 0 9
✅ express-stable 49 0 9
✅ fastify-stable 49 0 9
✅ hono-stable 49 0 9
✅ nextjs-turbopack-canary 55 0 3
✅ nextjs-turbopack-stable 55 0 3
✅ nextjs-webpack-canary 55 0 3
✅ nextjs-webpack-stable 55 0 3
✅ nitro-stable 49 0 9
✅ nuxt-stable 49 0 9
✅ sveltekit-stable 49 0 9
✅ vite-stable 49 0 9
❌ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 49 0 9
✅ express-stable 49 0 9
✅ fastify-stable 49 0 9
✅ hono-stable 49 0 9
✅ nextjs-turbopack-canary 55 0 3
✅ nextjs-turbopack-stable 55 0 3
❌ nextjs-webpack-canary 54 1 3
✅ nextjs-webpack-stable 55 0 3
❌ nitro-stable 48 1 9
✅ nuxt-stable 49 0 9
✅ sveltekit-stable 49 0 9
✅ vite-stable 49 0 9
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 55 0 3
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 2
❌ mongodb 52 3 3
✅ redis-dev 3 0 2
❌ redis 53 2 3
✅ turso-dev 3 0 2
❌ turso 4 51 3
❌ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 49 0 9
❌ e2e-local-postgres-nest-stable 48 1 9
✅ e2e-local-prod-nest-stable 49 0 9

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: success
  • Local Dev: success
  • Local Prod: success
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new workflow doctor CLI command to diagnose common TypeScript plugin + editor setup issues for Workflow DevKit, with PASS/WARN/FAIL output and suggested fixes.

Changes:

  • Introduces Doctor oclif command with checks for tsconfig plugin configuration, required packages, and editor (VS Code / CoC) setup.
  • Adds best-effort VS Code extension detection plus .vscode/settings.json and coc-settings.json heuristics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +46 to +52
async function readJson<T>(path: string): Promise<T | null> {
try {
const content = await readFile(path, 'utf-8');
return JSON.parse(content) as T;
} catch {
return null;
}
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

readJson() uses JSON.parse, but both tsconfig.json and VS Code settings.json are commonly JSONC (comments/trailing commas). This will frequently return null and cause false FAIL/WARN results. Consider parsing with a JSONC-capable parser (e.g., jsonc-parser) or TypeScript's config parsing utilities instead of JSON.parse.

Copilot uses AI. Check for mistakes.
Comment on lines +99 to +103
const plugins = tsconfig.compilerOptions?.plugins ?? [];
const hasWorkflowPlugin = plugins.some(
(p) =>
p.name === 'workflow' || p.name === '@workflow/typescript-plugin'
);
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The tsconfig plugin check only inspects tsconfig.json directly and ignores extends (even though the type includes it). If the plugin is configured in a base config (a common setup), this will incorrectly report FAIL. Consider resolving the extends chain (and/or using TypeScript's config loader) before checking compilerOptions.plugins.

Copilot uses AI. Check for mistakes.
Comment on lines +225 to +252
const homeDir = process.env['HOME'] ?? process.env['USERPROFILE'] ?? '';
if (homeDir) {
const cocSettingsPath = join(homeDir, '.vim', 'coc-settings.json');
const hasCocSettings = await fileExists(cocSettingsPath);

if (hasCocSettings) {
const cocSettings =
await readJson<Record<string, unknown>>(cocSettingsPath);
const useLocal = cocSettings?.['tsserver.useLocalTsdk'] === true;

if (useLocal) {
results.push({
name: 'CoC (Vim) config',
status: 'pass',
message: 'coc-settings.json has tsserver.useLocalTsdk enabled.',
});
} else {
results.push({
name: 'CoC (Vim) config',
status: 'warn',
message:
'coc-settings.json exists but tsserver.useLocalTsdk is not enabled. The Workflow plugin may not load.',
fix: 'Add to ~/.vim/coc-settings.json:\n\n { "tsserver.useLocalTsdk": true }',
});
}
}
// Don't warn if no CoC settings — user might not use Vim
}
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The CoC/Vim check only adds a result if ~/.vim/coc-settings.json exists (and only if HOME/USERPROFILE is set). That means the command often prints only 4 checks, which conflicts with the PR description/examples that show 5 checks always running. Consider always emitting a CoC result (e.g., PASS/SKIP message) even when the file isn't found.

Copilot uses AI. Check for mistakes.
async function readJson<T>(path: string): Promise<T | null> {
try {
const content = await readFile(path, 'utf-8');
return JSON.parse(content) as T;
Copy link
Contributor

Choose a reason for hiding this comment

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

readJson uses JSON.parse() which fails on JSONC files (tsconfig.json, settings.json, coc-settings.json), causing the doctor command to report false failures/warnings for valid configuration files.

Fix on Vercel

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.

3 participants