Skip to content

fix: suppress all GCM interactive prompts in credential store#176

Merged
rhuanbarreto merged 1 commit into
mainfrom
fix/gcm-prompt-suppression
Mar 25, 2026
Merged

fix: suppress all GCM interactive prompts in credential store#176
rhuanbarreto merged 1 commit into
mainfrom
fix/gcm-prompt-suppression

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Add GCM_GUI_PROMPT=false, GIT_ASKPASS="", and SSH_ASKPASS="" to gitCredentialEnv() in src/helpers/credential-store.ts
  • Fixes unwanted credential prompts from Git Credential Manager when running archgate login status or when the CLI runs as a subprocess in editor plugins (MCP/Claude Code)
  • The previous GIT_TERMINAL_PROMPT=0 + GCM_INTERACTIVE=never combo was insufficient — GCM could still show GUI dialogs on Windows and askpass prompts on Linux

Test plan

  • bun run validate passes (599 tests, 21/21 ADR checks, build OK)
  • Run archgate login status on Windows with no stored credentials — no GUI prompt should appear
  • Run archgate login status on Linux — no terminal prompt should appear
  • Verify credentials still save/load correctly after archgate login

GIT_TERMINAL_PROMPT=0 and GCM_INTERACTIVE=never were not sufficient to
prevent Git Credential Manager from showing GUI dialogs on Windows or
askpass prompts on Linux. Add GCM_GUI_PROMPT=false, GIT_ASKPASS="", and
SSH_ASKPASS="" to fully suppress all prompt vectors across platforms.

This fixes unwanted credential prompts when running `archgate login
status` and when the CLI is invoked as a subprocess by editor plugins.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 931ab94
Status: ✅  Deploy successful!
Preview URL: https://e2adc6a7.archgate-cli.pages.dev
Branch Preview URL: https://fix-gcm-prompt-suppression.archgate-cli.pages.dev

View logs

@rhuanbarreto rhuanbarreto enabled auto-merge (squash) March 25, 2026 13:53
@rhuanbarreto rhuanbarreto merged commit 5d9bd33 into main Mar 25, 2026
9 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/gcm-prompt-suppression branch March 25, 2026 13:54
@github-actions github-actions Bot mentioned this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant