Skip to content

Use the consents passed in OptableConfig - #50

Open
jrosendahl-opt wants to merge 1 commit into
masterfrom
fix/config-consents
Open

jrosendahl-opt wants to merge 1 commit into
masterfrom
fix/config-consents

Conversation

@jrosendahl-opt

@jrosendahl-opt jrosendahl-opt commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Why

OptableConfig has a public consents parameter, documented as "custom consent information", but nothing read it: OptableSDK created its ConsentsManager with empty consents. Consents passed in the config were silently dropped, and only setConsents() had an effect. The README note said the opposite ("The custom values provided to the OptableConfig will override…").

OptableConfig.consents was never read: OptableSDK created its
ConsentsManager with empty consents, so consents passed in the config
were silently dropped and only setConsents() had an effect.

Start the ConsentsManager with config.consents; setConsents() still
replaces them. The README note now says what the code does.

Co-Authored-By: Claude Opus 5.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.

2 participants