mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #2073] Windows first-run custom path setup can hang on missing drive roots #1264
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1264
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 @VectorPeak on GitHub (Jul 6, 2026).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/2073
## Bug
During first-run interactive setup,
ktasks users to choose or enter a model storage path. When a custom path does not already exist,_prompt_custom_path()walks upward until it finds an existing parent directory and then checks whether that parent is writable.The current loop only treats
/as the filesystem root:That works for POSIX-style paths, but it can hang on Windows roots. For example, if a user enters a path on a missing drive such as
Z:\models,Path("Z:\\").parentremainsZ:\. The loop keeps assigning the same parent value whileparent != "/"remains true.Impact
The first-run setup can appear frozen before saving or rejecting the custom model path. This is realistic when a user enters a disconnected external drive, unavailable network drive, or mistyped Windows drive letter.
Reproduction
Observed on Windows:
Expected behavior
The parent-directory walk should stop once it reaches a filesystem root or any parent path that no longer changes, then reject the unwritable path and prompt again instead of looping forever.
@yyj6666667 commented on GitHub (Jul 6, 2026):
The windows path is not usable on ktransformers till now. Thanks for the pointing out anyway.