Repository navigation
fix(dsh): restore companion privacy helper import - #2705
Merged
Merged
Conversation
PsiACE
approved these changes
Nov 18, 2026
hidb4ai
approved these changes
Nov 18, 2026
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.
Which issue or RFC does this PR close?
Fixes the integration regression introduced by #2656 after the helper move in #2644.
Rationale for this change
Companion memory queries import
scrubSecretsfromsecrets.ts, which no longer exports it. The caught error returnsconnection-unavailablebefore sending the prepare request. On current master, the existing companion tests fail, and rebuilding the plugin produces a broken bundle. The previously committed bundle happens to retain a usable same-named function.What changes are included in this PR?
Import
scrubSecretsfromprompt-privacy.ts. A complete rebuild succeeds without the missing-export warning and reproduces the checked-in artifacts byte for byte, so no generated files need changing.Are there any user-facing changes?
Companion memory queries continue to return prepared context after rebuilding the plugin. No API, configuration, or persisted-format changes.
How was this change tested?
Using the pinned Node 22.19.0 and pnpm 11.13.1:
companion-memory.spec.tsreproduced 2 failures before the fix; the complete pluginpnpm testpasses all 811 tests after it.pnpm buildand the generated-artifact diff check pass.pnpm test:e2e: 9 tests pass against a real local PowerContext Server.node --test tests/pack-release.test.mjs: npm archive installation passes.ready, one prepare request. This is not live DSH host acceptance.uv run --locked prek run -aandgit diff --checkpass.The existing failing tests cover this regression; no duplicate test was added.
AI usage statement
Implemented and verified with OpenAI Codex.