-
-
Notifications
You must be signed in to change notification settings - Fork 301
feat: honor outputSchema on dedicated harness adapters #1110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| '@tanstack/ai': minor | ||
| '@tanstack/ai-claude-code': minor | ||
| '@tanstack/ai-codex': minor | ||
| '@tanstack/ai-opencode': minor | ||
| '@tanstack/ai-grok-build': minor | ||
| --- | ||
|
|
||
| Harness adapters honor `chat({ outputSchema })` on the same turn. | ||
|
|
||
| Claude Code and Codex pass a native schema flag. OpenCode and Grok Build parse JSON from the final assistant text. The engine reads a `structured-output.complete` event so harness prose is not parsed as JSON. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -335,17 +335,19 @@ | |
| "label": "Overview", | ||
| "to": "structured-outputs/overview", | ||
| "addedAt": "2026-05-19", | ||
| "updatedAt": "2026-06-10" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "One-Shot Extraction", | ||
| "to": "structured-outputs/one-shot", | ||
| "addedAt": "2026-05-19" | ||
| "addedAt": "2026-05-19", | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "Streaming UIs", | ||
| "to": "structured-outputs/streaming", | ||
| "addedAt": "2026-05-19" | ||
| "addedAt": "2026-05-19", | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "Multi-Turn Chat", | ||
|
|
@@ -356,7 +358,12 @@ | |
| "label": "With Tools", | ||
| "to": "structured-outputs/with-tools", | ||
| "addedAt": "2026-05-19", | ||
| "updatedAt": "2026-07-08" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "Harness Agents", | ||
| "to": "structured-outputs/harnesses", | ||
| "addedAt": "2026-08-14" | ||
| } | ||
| ] | ||
| }, | ||
|
|
@@ -509,7 +516,7 @@ | |
| "label": "Overview", | ||
| "to": "sandbox/overview", | ||
| "addedAt": "2026-06-16", | ||
| "updatedAt": "2026-08-12" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "Quick Start", | ||
|
|
@@ -527,7 +534,7 @@ | |
| "label": "Harnesses", | ||
| "to": "sandbox/harnesses", | ||
| "addedAt": "2026-06-30", | ||
| "updatedAt": "2026-08-04" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "Workspace", | ||
|
|
@@ -864,30 +871,31 @@ | |
| "label": "Claude Code", | ||
| "to": "adapters/claude-code", | ||
| "addedAt": "2026-06-12", | ||
| "updatedAt": "2026-06-30" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "Codex", | ||
| "to": "adapters/codex", | ||
| "addedAt": "2026-06-12", | ||
| "updatedAt": "2026-08-12" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "OpenCode", | ||
| "to": "adapters/opencode", | ||
| "addedAt": "2026-06-12", | ||
| "updatedAt": "2026-06-30" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "Grok Build", | ||
| "to": "adapters/grok-build", | ||
| "addedAt": "2026-06-29", | ||
| "updatedAt": "2026-08-12" | ||
| "updatedAt": "2026-08-14" | ||
| }, | ||
| { | ||
| "label": "ACP-Compatible", | ||
| "to": "adapters/acp-compatible", | ||
| "addedAt": "2026-06-30" | ||
| "addedAt": "2026-06-30", | ||
| "updatedAt": "2026-08-14" | ||
|
Comment on lines
895
to
+898
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Restore the existing ACP-Compatible is an existing page. Do not change its As per coding guidelines, “set 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| }, | ||
| { | ||
| "label": "Amazon Bedrock", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Add a client-side consumption snippet.
Lines 203-205 document
useChat({ outputSchema }).final, but this page only shows the server-sidechat()call. Add a short client example that readsfinal.As per coding guidelines, documentation that spans server and client must include snippets for both the server endpoint and client consumption.
🤖 Prompt for AI Agents
Source: Coding guidelines