#6361·odysseus

Cookbook Hugging Face token field does not persist entered tokens

Author: desmvuCreated Sep 18, 2026Updated Sep 28, 2026
Labelsready for review

Problem

The Hugging Face token entered in Cookbook → Dependencies appears to save, but disappears after reload/restart. The normal debounced Cookbook state sync intentionally strips secrets, and the token field used that same path.

Reproduction

  1. Open Cookbook → Dependencies.
  2. Enter a Hugging Face token and move focus away from the field.
  3. Reload the page or restart the container.
  4. The token is no longer configured.

Expected

A token explicitly entered by the user should be sent once through an authenticated save path and persist, while periodic background state sync continues to redact secrets.

Proposed direction

Add a dedicated explicit-save request for the token, retaining the existing redaction on the background synchronization path. Focused JS syntax and regression checks pass locally.