Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Respect "No, don't ask again" for the shell-completion prompt

Open
#57 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start at the shell-completion prompt and the standard global settings handling used by cf commands. Reproduce the prompt across new processes and working directories, then inspect how temporary and permanent declines, resets, non-interactive execution, and settings write failures are represented. Done means the acceptance scenarios pass with focused tests for each behavior.

Written by the indexing model from the issue text.

Description

bug priority: p1

Problem

The CLI can repeatedly ask whether to enable shell completion even after the user selects “No, don't ask again.” Repeating the prompt on every command makes the preference ineffective and disrupts normal use.

Reproduction

  1. Run a command that displays the shell-completion prompt.
  2. Select “No, don't ask again.”
  3. Run another cf command.

The prompt appears again.

Expected behavior

Persist the opt-out in the standard global settings location and do not show the prompt again unless the user explicitly resets that preference.

Acceptance criteria

  • The opt-out survives new processes and working directories.
  • Declining once without the permanent option retains the intended temporary behavior.
  • Read-only or unwritable settings locations produce a single actionable warning.
  • Non-interactive and CI environments never display the prompt.
  • Tests cover opt-in, one-time decline, permanent decline, reset, and persistence failure.
Dominant language
TypeScript
Stars
853
Forks
42
Avg merge
17h 57m
Merged PRs (30d)
146

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudflare/cf

All issues in cloudflare/cf

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.