mirror of
https://github.com/Comfy-Org/desktop.git
synced 2026-11-04 23:47:43 +00:00
[GH-ISSUE #1367] Fix IPC API type mismatches flagged with @ts-expect-error #381
Labels
No labels
area: desktop-app
Bounty
bug
bug-cop:answered
bug-cop:response-received
component: installer
component: preload
custom node
dependencies
Design
documentation
duplicate
enhancement
expected
frontend
good first issue
installation
Low-Priority
performance
Planned
platform: cross-platform
platform: windows
Potential Bug
Potential Bug
pull-request
question
refactor
Release
stale
User Support
V1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/desktop#381
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?
Originally created by @webfiltered on GitHub (Oct 8, 2025).
Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/1367
Originally assigned to: @webfiltered on GitHub.
Several IPC API type mismatches were discovered during the type-safe IPC migration and marked with
@ts-expect-errorfor tracking. These need to be investigated and fixed.API Type Fixes Needed
src/desktopApp.ts:251
IPC_CHANNELS.COMPLETE_VALIDATION- API says this should returnfalse; currently always treated as falsyfalseinstead of returning nothingsrc/install/troubleshooting.ts:60
IPC_CHANNELS.VALIDATE_INSTALLATION- Should not return anything (should returnvoid)src/main-process/comfyDesktopApp.ts:152
IPC_CHANNELS.TERMINAL_RESTORE- Returningundefinedis an error and will throw in frontend component lifecycleundefinedwhen terminal doesn't exist, but type expects non-optional returnundefinedsrc/preload.ts:156
IPC_CHANNELS.GET_BASE_PATH- API typed asPromise<string>but actually returnsPromise<string | undefined>Promise<string | undefined>src/preload.ts:313
IPC_CHANNELS.GET_GPU- ReturnsTorchDeviceTypeinstead ofGpuTypeGpuTypeContext
These type mismatches were flagged during the type-safe IPC system implementation in #1366. Each represents a genuine API mismatch that should be fixed to ensure type safety across the IPC boundary.
┆Issue is synchronized with this Notion page by Unito
@dosubot[bot] commented on GitHub (Jan 7, 2026):
Hi, @webfiltered. I'm Dosu, and I'm helping the desktop team manage their backlog and am marking this issue as stale.
Issue Summary:
@ts-expect-errorduring the type-safe IPC migration.undefined, or convert return types to match API contracts.Next Steps:
Thanks for your understanding and contribution!