record_telemetry_consent
Records the user's consent for anonymous telemetry. Call this after the user answers the opt-in question to persist their choice.
Instructions
Record the user's choice on anonymous telemetry. Call this exactly once, only when the margins_start response had telemetryConsentNeeded=true AND the user has answered the in-chat opt-in question. Pass enabled=true if they said yes, enabled=false if they said no. The choice persists in ~/.margins/consent.json and applies to all future Margins sessions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | True if the user opted in, false if they declined. |