Skip to content

feat(windows): offer long-path repair at startup with a seven-day snooze #2159

Closed

Description

@zackees

Context

fbuild currently offers long-path repair only during interactive ESP32 operations outside CI. A decline is forgotten when the process exits. The existing fbuild --fix-win command performs the repair through a scoped UAC helper.

Proposal

On interactive Windows CLI startup, automatically offer to enable long paths when Windows reports them disabled. Ask for confirmation before requesting UAC. If the user declines, accepts the default No, or cancels UAC, continue the original command and save a seven-day snooze. Offer repair again on the first eligible startup after it expires.

Acceptance criteria

  • Offer repair on the first eligible launch, including non-ESP32 commands such as fbuild device list.
  • Persist a dismissal across CLI processes. With a controlled clock, verify silence before seven days and a prompt at or after seven days.
  • Reuse the existing UAC helper and fresh-process handoff after verified repair. Explicit fbuild --fix-win works during a snooze.
  • Skip automatic offers when long paths are enabled, outside Windows, in CI, or when stdin or stderr is redirected. Keep help and version output free of prompts.
  • Capture failing startup and snooze regression tests before implementation, then verify they pass. Exercise confirmation, UAC, and cancellation on Windows with long paths disabled.

Decisions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions