Skip to content

(projects): the deletion preview times out on Windows before the background-job listing answers #1103

Closed

Description

@devsuitup

Found in the live pre-release check of v0.0.106 (isolated instance, throwaway HOME, Windows 11).

Clicking Delete on a project never opens the dialog: the notice reads "Local — : Inventory port deadline expired." Every attempt fails.

Cause: the preview's runtime inventory lists background jobs with claude agents --json --all (src/main/projects/project-delete-main.js:77). The inventory wraps every port call in bounded() with a per-port cap of cap(deps.portTimeoutMs, 3000, 15000), i.e. 3 s by default (src/main/projects/project-delete-inventory.js:40-41). On this workstation that CLI call alone takes 3.4 s with an empty HOME (npm claude.cmd shim), so the port always expires. Real HOMEs with jobs will be slower.

Expected: the preview succeeds when the CLI answers within the overall discovery deadline. The jobs listing gets a bound sized for a CLI process start (taken from the remaining inventory/runtime deadline, not 3 s), the other ports keep their short caps, and a test pins a jobs port that answers after 3 s but before the deadline. Consider whether the job listing can start in parallel with the other ports instead of serially.

Blocks the v0.0.106 release (#1102).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions