Repository navigation
Allow secret requests to write outside workspaces - #731
Merged
Merged
Conversation
ymichael
added a commit
that referenced
this pull request
Sep 17, 2026
## Human comments ## What was wrong PR #731 changed secret request destinations to resolved absolute host paths and reused that unbounded path in the pending interaction title. Deep working directories could therefore exceed the Plugin SDK's 160-character title limit before the secure form was created. ## What changed Secret requests now use the concise `Add secrets` interaction title. The complete resolved destination remains in the typed interaction payload and is still shown in the secure form and command result. A server harness regression covers a relative dotenv destination resolved from an overlong working directory. Pending-interaction headers now add invisible line-break opportunities after `/` and `\\` path separators. This preserves the exact visible and accessible title while preventing path-like labels from wrapping into short, ragged lines. No server/daemon wire contract changed, so `HOST_DAEMON_PROTOCOL_VERSION` is unchanged. ## How you verified - Reproduced on `origin/main` from a 227-character working directory: `bb secret request TEST_SECRET --write-env .env.local` exited 1 with `ui.requestInput title must be 1-160 characters`. - `pnpm exec turbo run test typecheck --filter=bb-plugin-secrets --force` - `pnpm exec turbo run test --filter=@bb/app --force -- src/components/plugin/PluginPendingInteractionComposer.test.tsx` - `pnpm exec turbo run typecheck --filter=@bb/app --force` - `pnpm exec prettier --check plugins/secrets/src/server.ts plugins/secrets/src/server-harness.test.ts` - `git diff --check` > AGENT GENERATED
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.
Summary
Tests
Risk
This intentionally removes workspace root confinement. The secure form displays the resolved absolute destination before the user submits secret values.