Skip to content

fix(dsh): restore companion privacy helper import - #2705

Merged
hidb4ai merged 1 commit into
oceanbase:masterfrom
frf12:codex/fix-dsh-companion-import
Nov 18, 2026
Merged

hidb4ai merged 1 commit into
oceanbase:masterfrom
frf12:codex/fix-dsh-companion-import

Conversation

@frf12

@frf12 frf12 commented Nov 18, 2026

Copy link
Copy Markdown
Member

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 scrubSecrets from secrets.ts, which no longer exports it. The caught error returns connection-unavailable before 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 scrubSecrets from prompt-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:

  • Existing companion-memory.spec.ts reproduced 2 failures before the fix; the complete plugin pnpm test passes all 811 tests after it.
  • pnpm build and 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.
  • DSH pet adapter and package tests: 5 pass.
  • A local diagnostic probe calls the actual regenerated companion function with a scripted host/client: ready, one prepare request. This is not live DSH host acceptance.
  • uv run --locked prek run -a and git diff --check pass.

The existing failing tests cover this regression; no duplicate test was added.

AI usage statement

Implemented and verified with OpenAI Codex.

@hidb4ai
hidb4ai merged commit 23d429d into oceanbase:master Nov 18, 2026
44 checks passed

@Zxf-xufeng Zxf-xufeng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.6.0 v1.6.0 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants