Repository navigation
Conversation
Verboo mode skipped the TrustDialog and still marked every folder as trusted, so project hooks, apiKeyHelper, MCP headersHelper, statusLine, project env and plugin marketplaces declared in a freshly cloned repo ran without a prompt. Port upstream's provider-free gate (setupScreenGates, OpenClaude Twigpine#1864) and show the trust prompt once per folder for every provider. Declining exits before anything runs; headless -p is unchanged. The dialog no longer links to the Claude Code security guide. The PTY e2e harness gains trusted/projectFiles/settingSources options and covers both the decline and accept paths with a SessionStart hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
No modo Verboo, a CLI nunca mostrava o aviso "você confia nesta pasta?" e ainda marcava toda pasta como confiável (
src/interactiveHelpers.tsx). Por isso, ao abrir um repositório recém-clonado, rodavam sem nenhuma pergunta:SessionStartem.verboo/settings.json);apiKeyHelpere helpers de AWS/GCP;headersHelperdo MCP;statusLine;envdo projeto;Afeta da v0.7.10 à v0.15.41.
Correção
src/utils/setupScreenGates.tse o teste dele. O gate não depende do provedor.showSetupScreensmostra oTrustDialogsempre que a pasta ainda não foi aceita, uma vez por pasta. "Não", Esc e Ctrl+C encerram antes de qualquer coisa rodar.-p(sem interface) segue sem prompt, como no upstream.Testes
src/utils/setupScreenGates.test.ts, trazido do upstream.src/__tests__/verbooWorkspaceTrust.test.ts, teste estrutural da ordem auth → diálogo → confiança → env.scripts/e2e/cli.e2e.mjs) com um repositório que tem um hookSessionStartque cria um arquivo:.config.json.check-cli-quality --suite, com 364/364 arquivos de teste, build, self-test e pack; e--terminal, com 38/38 testes e2e.Impacto para o usuário
Depois de atualizar, cada usuário vê o aviso uma vez em cada projeto.
🤖 Generated with Claude Code