Files
didactyl/src
Didactyl User 3516e0b6fd security: gate provider payload logging behind DIDACTYL_CONTEXT_DEBUG
The log_provider_payload_local() calls in perform_http_request() were
unconditional, writing full LLM conversation transcripts (system prompts,
user messages, tool calls, responses) to context.logs/ on every LLM call
regardless of the DIDACTYL_CONTEXT_DEBUG setting. This caused 326
transcript files containing Nostr keys, relay URLs, and DM contents to
be committed and pushed.

Now the logging only runs when DIDACTYL_CONTEXT_DEBUG is set to 'init'
or 'full' (matching the documented behavior in docs/CONTEXT.md). When
unset or 'off', no transcripts are written to disk.
2026-07-31 06:59:31 -04:00
..