You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selected model: Reasoning-capable extension-contributed BYOK model
API: OpenAI Responses-compatible
Does this issue occur when all extensions are disabled?: No. The reproduction requires the built-in Agent Host and an extension-contributed BYOK provider.
Description
A multi-turn Agent Host BYOK request can lose its stateful_marker between the initial response and a tool continuation.
The initial request succeeds and reaches the configured provider. The provider returns a response ID, and the extension emits a stateful_marker data part.
During the next continuation attempt:
The request re-enters the extension with no stateful marker.
No subsequent outbound provider request is sent.
Agent Host retries the same deterministic failure five times.
The final error is:
502 OpenAI Responses reasoning tool continuation is missing its state marker. Start a new chat.
The total retry delay was approximately 32 seconds.
Steps to Reproduce
Configure an extension-contributed BYOK model backed by an OpenAI Responses-compatible endpoint.
Open the Agents window and select the model.
Send a request that causes the model to use a tool.
Allow the tool result to continue the same turn.
Observe the continuation failure and repeated local retries.
Expected Behavior
The stateful marker should be preserved across the Agent Host bridge and supplied to the next reasoning or tool continuation.
If the marker cannot be preserved, the request should fail once with a clear diagnostic instead of retrying the same deterministic failure.
Actual Behavior
The initial request succeeds and emits a stateful marker. The marker is absent when the continuation re-enters the extension, and the Agent Host retries the failure five times.
Additional Context
This appears specific to the Agent Host BYOK Responses path. The observed request sequence places the loss after the extension emits the marker and before the next provider request.
Sanitized diagnostics show the same sequence on both hosts:
The Responses request completes with a response ID.
The provider generates and emits its stateful marker.
The built-in view tool reads package.json successfully.
The next provider invocation has activeToolTurn=true but statefulMarkerCount=0. Its messages contain the assistant reasoning and tool call plus the user tool result.
The extension fails before sending another outbound Responses request. Agent Host retries the deterministic failure five times.
Stable reported 30.59 seconds of retry wait. Insiders reported 29.10 seconds. This confirms the issue remains reproducible in both current Stable and Insiders.
Activity
sgent-epic commentedon Aug 20, 2026
Revalidated on 2026-08-19 with provider extension 0.6.4 built from commit f367c270d600f271f608b15ce6fd494bf393a5c3.
Sanitized diagnostics show the same sequence on both hosts:
Stable reported 30.59 seconds of retry wait. Insiders reported 29.10 seconds. This confirms the issue remains reproducible in both current Stable and Insiders.
agentHost: preserve BYOK state through tool continuations (#331749)