Skip to content

[BUG] doppler completion makes a network request on every run, slowing shell startup #539

Description

@saveman71

Describe the bug

The docs and doppler completion --help recommend sourcing completions live from your shell rc:

source <(doppler completion)   # zsh; bash is equivalent

The completion script is static text, but running doppler completion performs a network request every time : the anonymous analytics POST (and, when enabled, the update check).

Because it's sourced on every interactive shell start, shell startup blocks on that request. On a high-latency or flaky connection the delay is very noticeable, on every new shell/tab/split.

--no-check-version does not fix it: the analytics POST still fires. There appears to be no flag that makes completion fully offline.

To Reproduce

$ doppler --no-check-version completion --debug 2>&1 >/dev/null | grep -i http
Debug: Sending anonymous analytics payload: '{"command":"doppler.completion"}'
Debug: Performing HTTP POST to https://cli.doppler.com/v1/analytics

(Same analytics POST documented for secrets get in #511.) To see startup impact:

strace -f -e trace=connect zsh -i -c exit 2>&1 | grep AF_INET

Expected behavior

doppler completion should never make a network call: its output is static per CLI version.

Screenshots

N/A

Desktop (please complete the following information):

  • OS: Arch Linux
  • Version: zsh 5.9

CLI Version:
Version 3.76.0

Additional context

N/A

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions