Files
SUB-OS/scripts
subhobhai943andClaude Opus 5 7929e48b4e fix(kconfig): Repair menuconfig help buttons and preserve pending toggles
The configurator had four defects that made buttons and selection behave
erratically in `make configure`.

lxdialog front-end:
- Pressing <Help> in a subsystem menu discarded every toggle made since the
  menu was opened, because dialog reports only the focused tag and the result
  was thrown away. Pass --help-status and fold the returned state back into
  the config before showing help.
- <Help> always showed the generic subsystem blurb even though all 41 options
  carry their own help text. Resolve the focused tag and show that item's help.
- The main menu prompt promised <Exit> but dialog rendered <Cancel>; label the
  button to match.

curses fallback:
- The Help button raised AttributeError and killed the UI at top level: the
  root node is the MENU_TREE list itself, and the fallback argument
  `current_menu.get("help", ...)` is evaluated eagerly even when the item has
  its own help.
- The '?' hotkey was nested inside the <Enter> branch where `key` can only be
  a newline, so it was unreachable dead code.
- The button-bar spacing went negative on a narrow dialog and pushed the last
  buttons through the right border; centre and clamp the row instead.

Front-end selection no longer swallows exceptions silently, so a crash reports
itself instead of looking like an unresponsive UI.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0161Jh7uCEMLYEMNPsjC1LKf
2026-08-25 05:37:36 +00:00
..