moo.sdk.output.set_session_setting

moo.sdk.output.set_session_setting(key, value)

Set a session-specific output setting for the current player.

Session settings are stored per-user and cleared on disconnect. Used by PREFIX, SUFFIX, OUTPUTPREFIX/SUFFIX, and the a11y verb.

Writes to the Django cache (accessible cross-process from Celery workers) and also publishes a session_setting event to the player’s Kombu queue so the SSH server’s process_messages() loop can update its own registry.

Parameters:
  • key – setting name (‘output_prefix’, ‘output_suffix’, ‘quiet_mode’, ‘color_system’)

  • value – setting value