Skip to content

[codex] generate polling helpers from vendor metadata#269

Merged
HavenDV merged 11 commits intomainfrom
codex/issue-241-polling-helpers
Apr 11, 2026
Merged

[codex] generate polling helpers from vendor metadata#269
HavenDV merged 11 commits intomainfrom
codex/issue-241-polling-helpers

Conversation

@HavenDV
Copy link
Copy Markdown
Collaborator

@HavenDV HavenDV commented Apr 9, 2026

What changed

  • added parsing for x-speakeasy-polling metadata and carried polling definitions into generated endpoints
  • generated polling wait-helper methods plus shared runtime support for delay, interval, attempt limits, and failure/success evaluation
  • added unit and CLI regression coverage for polling parsing and generated helper output

Why

AutoSDK did not generate any polling/wait helpers from vendor async-workflow metadata, so users had to reimplement polling behavior manually even when the OpenAPI document already described it.

Impact

Generated C# SDKs can now expose first-class wait helpers for supported polling metadata while reusing the normal request pipeline and per-request overrides.

Validation

  • dotnet build src/libs/AutoSDK.CSharp/AutoSDK.CSharp.csproj /p:TreatWarningsAsErrors=true
  • dotnet build src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj /p:TreatWarningsAsErrors=true
  • dotnet test src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj --filter "FullyQualifiedName~PollingGenerationTests|FullyQualifiedName~ExtensionParsingTests.XSpeakeasyPolling_ParsesPollingDefinitions"
  • dotnet test src/tests/AutoSDK.IntegrationTests.Cli/AutoSDK.IntegrationTests.Cli.csproj --filter "FullyQualifiedName~Generate_WithSpeakeasyPolling_EmitsWaitHelpersAndBuilds"

Closes #241

@HavenDV HavenDV marked this pull request as ready for review April 11, 2026 01:16
…ng-helpers

# Conflicts:
#	src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs
@HavenDV HavenDV merged commit b4c7692 into main Apr 11, 2026
3 checks passed
@HavenDV HavenDV deleted the codex/issue-241-polling-helpers branch April 11, 2026 01:26
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.

Generate polling/wait helpers from vendor metadata such as x-speakeasy-polling

1 participant