feat(tui): Generate screen — LoRA panel #60

Merged
charles merged 1 commit from tui/generate-lora-21 into main 2026-04-11 20:42:23 +00:00
Owner

Summary

Extends the Generate screen with a LoRA sub-panel. Stacks on #59. Closes charles/loom#21.

  • GenerateFocus::LoraList joins the focus cycle
  • add_lora deduplicates by id; remove_focused_lora and adjust_focused_lora(delta) clamp strength into [-2.0, 2.0]
  • j/k navigate; d removes; +/- adjusts by 0.05; a adds a placeholder row until the real LoRA browser overlay + PluginBridge::list_loras() land in a later PR
  • New render_lora_list widget with empty-state hint

Tests (3 new, 68 total)

  • lora_add_deduplicates_by_id — second add with same id replaces strength
  • lora_strength_clamps — adjust past ±2.0 clamps
  • lora_remove_focused_reclamps_selection
## Summary Extends the Generate screen with a LoRA sub-panel. Stacks on #59. Closes charles/loom#21. - `GenerateFocus::LoraList` joins the focus cycle - `add_lora` deduplicates by id; `remove_focused_lora` and `adjust_focused_lora(delta)` clamp strength into `[-2.0, 2.0]` - `j`/`k` navigate; `d` removes; `+`/`-` adjusts by 0.05; `a` adds a placeholder row until the real LoRA browser overlay + `PluginBridge::list_loras()` land in a later PR - New `render_lora_list` widget with empty-state hint ## Tests (3 new, 68 total) - `lora_add_deduplicates_by_id` — second add with same id replaces strength - `lora_strength_clamps` — adjust past ±2.0 clamps - `lora_remove_focused_reclamps_selection`
Extends GenerateScreen with a LoRA sub-panel:

- GenerateFocus::LoraList added to the focus cycle
- GenerateScreen.lora_selected tracks the focused row
- add_lora / remove_focused_lora / adjust_focused_lora helpers;
  add_lora deduplicates by id (later call replaces strength)
- j/k or Up/Down move selection; d removes; +/- adjusts strength
  by 0.05 clamped to ±2.0; a adds a placeholder entry until the
  LoRA browser overlay + PluginBridge::list_loras() are wired
- New render_lora_list widget with empty-state hint and focus
  border colour

Closes charles/loom#21

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
charles changed target branch from tui/generate-prompt-20 to main 2026-04-11 20:42:21 +00:00
charles deleted branch tui/generate-lora-21 2026-04-11 20:42:23 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/loom!60
No description provided.