Skip to content

lorenzo/start kw integration pr 8 - #206

Draft
lorenzoberts wants to merge 6 commits into
lorenzo/start-kw-integration-pr-7from
lorenzo/start-kw-integration-pr-8
Draft

lorenzoberts wants to merge 6 commits into
lorenzo/start-kw-integration-pr-7from
lorenzo/start-kw-integration-pr-8

Conversation

@lorenzoberts

Copy link
Copy Markdown
Collaborator

Stack created with GitHub Stacks CLI • Give Feedback 💬

lorenzoberts and others added 6 commits September 20, 2026 11:18
This commit adds target_kernel_tree to the config update pipeline so
Edit Config can later select among existing kernel_trees keys without
hand-editing JSON. An empty string unsets the target; an unknown key
is refused and leaves the current value unchanged. Trees themselves
are still added by editing the config file.

This commit is part of the kw integration's step 8.

Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit adds a Target Kernel Tree row to Edit Config so the user
can pick among existing kernel_trees keys, including <none> to unset.
Cycling is a state-level operation for now; input wiring comes next.
Keys are sorted so the cycle order does not depend on HashMap iteration.

This commit is part of the kw integration's step 8.

Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit maps Left/Right while editing so the target kernel tree
row can be cycled from the keyboard, shows <none> in the live edit
cursor, and documents the interaction in help and the key hint.
ESC/q already saved and exited; the help text now matches that.

This commit completes the kw integration's step 8.

Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit treats a target_kernel_tree whose key is missing from
kernel_trees as unset when opening Edit Config, so saving an unrelated
field cannot abort the app. Trees are JSON-only, so that on-disk state
is reachable. The repair is logged; surrounding whitespace is trimmed
so it matches validation. Unknown-key errors now list known keys, and
ESC/q is described as save-and-exit in the nav hint.

This commit is part of the kw integration's step 8.

Signed-off-by: lorenzoberts <lorenzobs@usp.br>
Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit reports what kw deploy exits 0 through: initramfs and
mkinitcpio failures, and a GRUB update that never listed the new
kernel. These show as "succeeded ... with N warnings" on KwOps, and
build records and deploy-alone are unchanged. A failed job shows the
first error from its log, and every job shows the full log path.
With a kw env active, an in-tree .config or include/config/ now makes
the tree not ready, since kbuild refuses that O= build. A failed
git am deletes the empty branch it created, and the popup names the
branch the tree is back on.

Signed-off-by: lorenzoberts <lorenzobs@usp.br>
Co-authored-by: Cursor <cursoragent@cursor.com>
@lorenzoberts
lorenzoberts added this pull request to stack #200 October 4, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant