Skip to content

Fix Docs vault loading with complete host records - #3428

Merged
SawyerHood merged 1 commit into
mainfrom
bb/i-m-getting-this-when-i-load-the-docs-plugin-can-thr_ncknsxwfba
Sep 10, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/i-m-getting-this-when-i-load-the-docs-plugin-can-thr_ncknsxwfba

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Docs could not load any vault when the host list was nonempty: listNotes returned rpc output validation failed. PR #3227 removed type from Docs' strict host schema, while the SDK continued returning that field. Existing Docs fixtures returned empty host lists, hiding the regression.

What changed

Strip additional host properties from the Docs RPC response while continuing to validate its declared fields. Add regression coverage using the complete SDK host fixture for both successful file listing and the unavailable-vault fallback.

How you verified

  • Both new regression cases failed before the fix with Unrecognized key: "type"; all 68 Docs tests pass afterward.
  • pnpm exec turbo run test typecheck build --filter=bb-plugin-simple-notes passed.
  • Verified in an isolated source dev app with a connected host and synthetic vault. Temporarily restoring the original validator reproduced the exact error in both the browser and real RPC. Rebuilding/reloading the fixed plugin loaded the vault and opened its Markdown note through browser input. Captured before/after screenshots and RPC responses.
  • Secret-model scan clean for the working tree, HEAD, added lines, and commit messages in the push range.
  • SlopCop skipped as requested.

AGENT GENERATED

@SawyerHood
SawyerHood merged commit e02f6e6 into main Sep 10, 2026
16 checks passed
@SawyerHood
SawyerHood deleted the bb/i-m-getting-this-when-i-load-the-docs-plugin-can-thr_ncknsxwfba branch September 10, 2026 18:52
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