karlexmarin Claude Opus 4.7 (1M context) commited on
Commit
9acee40
·
1 Parent(s): 7d88f9f

v0.8.8: wire HF autocomplete to longscore-input

Browse files

User-reported gap: LongScore input lacked the search-as-you-type HF Hub
dropdown that Profile / Unmask / Template / Quant / NIAH / Spec-Decode
all have. Inconsistent UX.

Fix: add "longscore-input" to the canonical id list in
attachAllHfAutocompletes(). Same idempotent attachment, same dropdown,
same behavior — paste a partial id, see live HF Hub matches with
download counts, click to fill.

attachAllHfAutocompletes is called once at main.js startup (line 41),
which runs after DOM ready, so the input is found and wired
automatically.

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

Files changed (1) hide show
  1. js/hf_autocomplete.js +2 -2
js/hf_autocomplete.js CHANGED
@@ -198,11 +198,11 @@ export function attachHfAutocomplete(inputEl, options = {}) {
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 = [
204
  "hf-id", "profile-hf-id", "unmask-id", "template-id", "quant-id", "niah-id",
205
- "spec-target-id", "spec-draft-id",
206
  ];
207
  for (const id of ids) {
208
  const el = document.getElementById(id);
 
198
  }
199
 
200
  // Convenience: attach to all known HF-id inputs in TAF Agent.
201
+ // NIAH was added in v0.7.6, LongScore in v0.8.8 — keep this list in sync when adding new modes.
202
  export function attachAllHfAutocompletes() {
203
  const ids = [
204
  "hf-id", "profile-hf-id", "unmask-id", "template-id", "quant-id", "niah-id",
205
+ "spec-target-id", "spec-draft-id", "longscore-input",
206
  ];
207
  for (const id of ids) {
208
  const el = document.getElementById(id);