mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #146] [CLOSED] fix(models): return the json arm of RunResult from RequestHandle.get() #146
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/146
Author: @mattmillerai
Created: 9/14/2026
Status: ❌ Closed
Base:
main← Head:matt/fix-request-handle-get-kind📝 Commits (1)
036951dfix(models): return the json arm of RunResult from RequestHandle.get()📊 Changes
2 files changed (+12 additions, -3 deletions)
View changed files
📝
src/sdk/modelRequests.test.ts(+4 -1)📝
src/sdk/modelRequests.ts(+8 -2)📄 Description
ELI-5
Two PRs landed on
mainin the right order but were never compiled together: #133 added the queuedRequestHandle.get()returning{ data, requestId }, then #139 changedRunResultinto akind: "json" | "binary"union. The result is thatmaindoes not typecheck — theTestandbuild-checkjobs are red on the latest commit (f886e03), and every open PR inherits that failure. This adds the missingkind: "json"tag to the one return, and asserts it in the existingget()test.What changed
src/sdk/modelRequests.ts—RequestHandle.get()returns{ kind: "json", data, requestId }. The queued result route is decoded as JSON, so there is no binary arm here the way there is onrun.src/sdk/modelRequests.test.ts— the existing "collects the provider payload as a RunResult" test also assertsresult.kind === "json".Not addressed here: the
sdk-parityjob is also red onmainbecauseparity/python-surface.jsonis stale against the Python SDK's default branch. That is a separatepnpm sync:python-surface+ allowlist decision.Testing
pnpm typecheck— clean (was:TS2322 … Property 'kind' is missingat modelRequests.ts:880)pnpm build— cleanpnpm test— 25 files, 554 tests passpnpm lint,pnpm format:check— cleanProvenance
Found while merging
maininto #138 (the discovery-methods PR), whose typecheck went red on code byte-identical tomain. Fix is the one-line union tag; no behaviour change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.