Gitpulse
LatestReleasesStand-up
Merged
Size
XL
Extra Large: 1000+ weighted lines
Change Breakdown
Feature85%
Dependencies10%
Refactor5%
#3188feat(webapp): Add test payload AI generation to the test page based on payload schemas

AI payload generation added to task testing suite

AI payload generation added to task testing suite
ER
ericallam
·Mar 6, 2026·#3188feat(webapp): Add test payload AI generation to the test page based on payload schemas

Testing background tasks just got easier with a new AI-powered payload generator that reads your schemas and source code to instantly mock valid test data.

Developers can now for background tasks directly from the UI, removing the friction of manually constructing complex test data.

The Test page now features a dedicated sidebar with AI and Schema tabs. Instead of guessing required fields, users can prompt an AI to generate test data that perfectly matches the task's expectations. The system even if an explicit payload shape isn't defined.

Under the hood, the backend streams responses from OpenAI directly to the browser. If a task lacks a strict JSON Schema, the AI uses a fallback tool to . It analyzes the task's function signature and internal variable usage to mathematically determine the correct payload shape before generating the mock data.

View Original GitHub Description
<img width="2191" height="1023" alt="CleanShot 2026-03-06 at 13 36 53" src="https://github.com/user-attachments/assets/4eba0d1a-1528-49a3-be5b-6bde89030193" /> <img width="411" height="1069" alt="CleanShot 2026-03-06 at 13 37 28" src="https://github.com/user-attachments/assets/e5f7bb9c-c894-41cc-9ca6-96b43fcf6005" />

Add a tabbed sidebar to the Test page for standard tasks, reusing the ClientTabs pattern from the Query page.

  • Options tab: existing sidebar content (machine, version, queue, etc.)
  • AI tab: AI-powered payload generation with streaming, supports JSON Schema, inferred schema from recent runs, and task source code lookup via tool calling for tasks without schemas
  • Schema tab: displays payload JSON Schema (from schemaTask), inferred schema (from recent runs via @jsonhero/schema-infer), or empty state with schemaTask docs and example code

Data layer changes:

  • Surface payloadSchema and inferredPayloadSchema from TestTaskPresenter
  • Add payloadSchema and fileId to WorkerDeploymentWithWorkerTasks type
  • Decompress zlib-deflated source files for AI context
© 2026 · via Gitpulse