fix(gtk): lora picker — rebuild combo after remove so the LoRA returns to the dropdown #153
No reviewers
Labels
No labels
area:agents
area:ai
area:config
area:dashboard
area:design
area:design-review
area:devtools
area:entities
area:gallery
area:generate
area:image
area:infra
area:meta
area:model-browser
area:navigation
area:presets
area:security
area:sessions
area:settings
area:sharing
area:test
area:ux
area:webhook
area:workdir
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/loom!153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/lora-picker-remove-rebuild"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
After adding a LoRA via the picker and then removing it (trash button on the row), the LoRA was gone from the picker's dropdown too — unreachable until something else forced a rebuild.
Root cause
crates/loom-gtk/src/components/lora_picker/mod.rs::add_lora_row— the remove button handler only did:activeVecgroup.remove(&lora.row)(removes the row widget)notify_change(...)It never called
rebuild_combo_store. The combo store was last rebuilt when the LoRA was added, and that rebuild excludes active LoRAs from the dropdown. So once removed, the LoRA stayed hidden from the combo forever.Fix
Thread
combo_store/combo_updating/available/combo/checkpoint_familyintoadd_lora_rowso the remove handler can callrebuild_combo_storeafter removal. Updated the 3 call sites (combo selection handler,add_lora,add_lora_pinned).Test plan
🤖 Generated with Claude Code