Remove Ghost Mask reference mode

This commit is contained in:
OpenClaw Agent
2026-07-17 07:45:53 +00:00
parent 7b4e8865d6
commit 5c4349d9b9
5 changed files with 35 additions and 89 deletions

View File

@@ -2534,24 +2534,28 @@ class TimelineEditor {
this.deleteBtn = deleteBtn;
// --- Ref Option dropdown (sits to the right of Delete) ---
const refOptionSelect = document.createElement("select");
refOptionSelect.className = "prcs-ref-option-select";
refOptionSelect.title = "Character reference mode";
const REF_OPTIONS = [
{ value: "Ghost Mask (End)", label: "Ghost Mask mode" },
{ value: "Licon MSR (Prefix)", label: "Licon MSR" },
{ value: "OFF", label: "OFF" },
];
REF_OPTIONS.forEach(opt => {
const o = document.createElement("option");
o.value = opt.value;
o.textContent = opt.label;
refOptionSelect.appendChild(o);
});
refOptionSelect.value = this.timeline.reference_mode || "OFF";
refOptionSelect.addEventListener("change", (e) => {
this.timeline.reference_mode = e.target.value;
this.commitChanges();
const refOptionSelect = document.createElement("select");
refOptionSelect.className = "prcs-ref-option-select";
refOptionSelect.title = "Character reference mode";
const REF_OPTIONS = [
{ value: "Licon MSR (Prefix)", label: "Licon MSR" },
{ value: "OFF", label: "OFF" },
];
REF_OPTIONS.forEach(opt => {
const o = document.createElement("option");
o.value = opt.value;
o.textContent = opt.label;
refOptionSelect.appendChild(o);
});
const refOptionValues = new Set(REF_OPTIONS.map(opt => opt.value));
const initialRefMode = refOptionValues.has(this.timeline.reference_mode)
? this.timeline.reference_mode
: "OFF";
refOptionSelect.value = initialRefMode;
this.timeline.reference_mode = initialRefMode;
refOptionSelect.addEventListener("change", (e) => {
this.timeline.reference_mode = e.target.value;
this.commitChanges();
});
this.refOptionSelect = refOptionSelect;