Testing from the launcher · Node summary requirements
The application default graph and the optional-summary demonstration are separate
tests. Both use the selected real UI and provider; the latter selects its own
declared graph.
E2E describes the exercised browser-to-provider path, rather than requiring the
application's default graph. Keep test_studio_graph as its separate acceptance
check.
./launch.sh --tui-mode e2e --e2e-reruns 0 --no-std-in --start=E2E api-agent::tests/e2e/test_studio_reasoning.py::test_studio_reasoningThe test submits a request, observes nonempty reasoning while the final node is
waiting, releases that node, verifies the exact final answer Ok, and expands
response details. The earlier preview must be present there. The normal turn
screenshot captures the expanded details. This proves delivery and retention;
the controlled rendezvous does not measure provider streaming latency.
The demonstration explicitly selects explanation, so it can require visible
text even when a native-summary-capable model legitimately returns none. Native
text takes precedence when supplied. auto is tested independently; it does not
make another inference call just because one native summary was empty.
First configure test storage. Keep account selection and
credentials local; the examples do not change authentication or provision access.
Filter both model settings to the exact selection you intend to test. For
example, LLM_ALLOWED_MODELS=gpt-6-luna and LLM_DEFAULT_MODEL=gpt-6-luna
select Luna on the GPT provider. Bedrock IDs use periods and may have regional
prefixes: escape periods in regular expressions.
For a Bedrock Runtime/Completions example, first select the bundled Bedrock provider and your existing session or access-key authentication. Then run:
./launch.sh --tui-mode e2e --e2e-reruns 0 --no-std-in --start=E2E --bedrock-endpoint runtime --bedrock-api-mode completions --llm-allowed-models 'openai[.]gpt-oss-20b(?:-1:0)?' --llm-default-model 'openai[.]gpt-oss-20b(?:-1:0)?' api-agent::tests/e2e/test_studio_reasoning.py::test_studio_reasoningFor GPT/Luna, select the bundled GPT provider, the official base URL and Responses
mode, then use --llm-allowed-models gpt-6-luna --llm-default-model gpt-6-luna
with the first E2E command. These overrides do not save configuration.
| Provider and model | Route | Behavior to inspect |
|---|---|---|
GPT, gpt-6-luna |
Official OpenAI, Responses; subscription or API key | Opted-in native reasoning summary when supported; encrypted continuation stays private. A particular response can have an empty summary. |
GPT, gpt-6-luna |
Official OpenAI, Completions; API key | No qualified native display carrier; an opted-in node requests a generated explanation in its JSON response. |
Bedrock, openai.gpt-oss-20b-1:0 |
Runtime, Completions; session or access key | Qualified tagged reasoning separated from the final answer; explicit literal preserves tags as answer text instead. |
Bedrock, zai.glm-5 |
Mantle, Completions; supported authentication | The live short probe returned neither native reasoning alias. Use generated explanation; the decoder also admits plaintext aliases when supplied. Native availability is not advertised from effort support or a model name alone. |
| Bedrock, an available GPT/Luna inference profile | Runtime, Responses; session or access key | Encrypted replay state can accompany an answer without display text. Without a qualified native display capability, the optional node requests an explanation. |
Catalog access does not prove that an account can invoke a model or that every feature works on every endpoint. Use the exact discovered execution ID. Do not switch endpoint or authentication automatically to make a test pass. Authentication permissions remain specific to the selected endpoint and API; see Bedrock setup. Native Bedrock replay requires an identity-bound frozen credential snapshot. The bundled session adapter supplies one; legacy custom profile-only adapters must adopt that contract before they can replay native reasoning state.
Model/API availability changes. Consult the OpenAI reasoning guide, AWS model cards and GLM 5 card before adding another qualified example. A native display capability is distinct from support for categorical reasoning effort.
See Bedrock Converse controls, budgets and replay for the native Converse route and its qualification limits.
See OpenRouter routes, controls and known limitations for the independently tested overlap matrix and GPT-OSS settings.
The optional eighth Functions column is Display summary, after Fallback.
Existing four- and seven-column declarations keep their behavior.
| Value | Behavior |
|---|---|
- |
Existing behavior; no schema transformation. |
native |
Request native display summary where the provider supports the hint; never generate an explanation. Empty display text is valid. |
auto |
Prefer the selected catalog's display_reasoning capability. Otherwise wrap the declared JSON response with a bounded explanation. Disabled reasoning effort uses the explanation path. |
explanation |
Always request the explanation envelope; prefer an actual native summary if one also arrives. |
Generated policies require a declared JSON response schema. They use the node's
existing output mode and fallback permission. The inference envelope has
progress_summary and result; the node receives only result. Generated text
is prefixed Explanation:. It is not decrypted reasoning and does not prove
reasoning-token use. No second call is made merely because native display text
was empty. Resolve the policy before dispatch and keep it stable across retries.
The Studio preview appears with Thinking, then the final answer replaces it.
Completed display text remains in collapsed response details. Native fields can
stream where supported; buffered and structured calls can publish after a node
completes. Display text is not automatically a friendly translation.
Responses plaintext content is held until completion so a native summary
can take precedence without changing an already published prefix.
Run focused offline tests without spending inference:
.venv/bin/python -m pytest tests/unit/test_reasoning_replay.py tests/unit/test_node_summary.py tests/unit/test_bedrock_reasoning_carrier.py tests/unit/test_bedrock_progress_reasoning.pyFor a selected-provider two-call replay check, run:
./launch.sh --tui-mode integration --no-std-in --start=True api-agent::tests/integration/test_provider_reasoning_replay.py::test_provider_reasoning_replayIts Workflow execution evidence attachment records whether the first reply contained native continuation and display text. A pass with no native state proves ordinary conversation replay only. A short successful replay does not establish a prompt-cache hit.
These cover ordered completed-answer replay, tool continuations, generated envelopes, native precedence, malformed carriers, fragmented streams and privacy. Append-only history belongs to one workflow invocation and node dialogue; it is not a persistent conversation store across independent browser turns.
Preserve original native items and their order, including encrypted state, rather than replaying the display projection. Cache eligibility is different from a guaranteed cache hit: inspect reported cached tokens with sufficiently long, stable prefixes. Unknown token splits remain unknown. Converse signed reasoning with tool continuations and redacted blocks remains explicitly unsupported. Completed non-tool Converse plaintext blocks retain their signatures for replay; the display projection never contains the signature.