Skip to content

fix: Honour the remoteContextLookups option instead of typeChecking's value#5

Draft
jeswr wants to merge 1 commit into
masterfrom
fix/remote-context-lookups-option
Draft

fix: Honour the remoteContextLookups option instead of typeChecking's value#5
jeswr wants to merge 1 commit into
masterfrom
fix/remote-context-lookups-option

Conversation

@jeswr

@jeswr jeswr commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Summary

One-line correctness fix: ComponentsManagerBuilder assigned Boolean(options.typeChecking) to this.remoteContextLookups whenever options.remoteContextLookups was defined — a copy-paste slip.

Effect of the bug: remoteContextLookups: true + typeChecking: false silently disabled remote context lookups; remoteContextLookups: false + default type checking silently enabled them (an unintended network-access toggle).

Found while working in this file for #4; includes a regression test pinning the two options as independent. Full suite green, 100 % coverage retained.


Generated by an agent (Claude Fable 5) on @jeswr's behalf — staged on the fork for his review before upstreaming.

Review timing: This draft was prepared with Claude; I (@jeswr) will personally review it before it progresses. I'm currently batching a lot of work in flight, so expect active review Wednesday–Friday (8–10 July).

… value

ComponentsManagerBuilder assigned `Boolean(options.typeChecking)` to
`this.remoteContextLookups` whenever `options.remoteContextLookups` was
defined - a copy-paste slip. As a result, passing
`remoteContextLookups: true` together with `typeChecking: false`
silently disabled remote context lookups (and conversely,
`remoteContextLookups: false` with default type checking silently
enabled them).

Adds a regression test pinning the two options as independent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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