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
{{ message }}
Repository navigation
fix(ai): ty v0.0.84 rejects calling a text output function with the text alone #510
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
uv run devops ci --force fails the uv check gate on every branch since uv fetched ty v0.0.84:
error[missing-argument]: No argument provided for required parameter 2
--> src/devops_cli/ai/response_repair.py:307:40
307 | parsed_model = cast(T, schema.output_function(final_content))
info: Attempted to call union type `((RunContext[Any], str, /) -> Awaitable[Unknown] | Unknown) | ((str, /) -> Awaitable[Unknown] | Unknown)`
Root cause
TextOutput.output_function may take a RunContext and the text, or the text alone, and may be async. normalize_output_spec wraps any callable in text mode. The repair path calls it with the text alone, so:
a context-taking function raises TypeError, which a bare except Exception swallows, so the reply is not parsed;
an async function returns an un-awaited coroutine, which is cast to the schema type.
The new ty is right to reject the call.
Fix
Call the text output function only when it is synchronous and takes the text alone; otherwise leave the reply to the normal parsing path.
Note
uv check resolves the latest ty on each run, so a ty release can change the gate's verdict without any change to the code. uv check --ty-version can pin it, which trades reproducibility against the project's latest-tools policy.
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/aiAI review pipeline, personas, prompts, LLM client, or RAGtype/bugType bug: the code does not do what it must
Activity
fix(ai): call a text output function only when it takes the text alone
fix(ai): call a text output function only when it takes the text alone (
dan-petty commentedon Sep 24, 2026
Closed by #511, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.feat(release): v0.2.23 (#681)