karlexmarin Claude Opus 4.7 (1M context) commited on
Commit
3590d22
·
1 Parent(s): ab15c91

fix: attach HF autocomplete to niah-id input (was missed in v0.7.6)

Browse files

Adding NIAH mode in v0.7.6 missed updating attachAllHfAutocompletes()'s id list. Without this, NIAH model-id input had no search-as-you-type dropdown — user typed but no suggestions appeared.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files changed (1) hide show
  1. js/hf_autocomplete.js +3 -2
js/hf_autocomplete.js CHANGED
@@ -197,9 +197,10 @@ export function attachHfAutocomplete(inputEl, options = {}) {
197
  });
198
  }
199
 
200
- // Convenience: attach to all 5 known HF-id inputs in TAF Agent.
 
201
  export function attachAllHfAutocompletes() {
202
- const ids = ["hf-id", "profile-hf-id", "unmask-id", "template-id", "quant-id"];
203
  for (const id of ids) {
204
  const el = document.getElementById(id);
205
  if (el) attachHfAutocomplete(el);
 
197
  });
198
  }
199
 
200
+ // Convenience: attach to all known HF-id inputs in TAF Agent.
201
+ // NIAH was added in v0.7.6 — keep this list in sync when adding new modes.
202
  export function attachAllHfAutocompletes() {
203
+ const ids = ["hf-id", "profile-hf-id", "unmask-id", "template-id", "quant-id", "niah-id"];
204
  for (const id of ids) {
205
  const el = document.getElementById(id);
206
  if (el) attachHfAutocomplete(el);