]> git.ekhem.eu.org Git - guix.git/commit
[ai] Extract build-queue dialog to standalone ask-build-queue script.
authorJakub Czajka <jakub@ekhem.eu.org>
Tue, 23 Jun 2026 20:49:10 +0000 (22:49 +0200)
committerJakub Czajka <jakub@ekhem.eu.org>
Tue, 7 Jul 2026 21:36:27 +0000 (23:36 +0200)
commitc4628212459a14ad6bb20825f5a80d3c0ca7435e
tree857436116fde7913b0533c01a267bd91cbe06da8
parenta64e4f0a9dc52057005dbd5118887a6c00ed8fa3
[ai] Extract build-queue dialog to standalone ask-build-queue script.

Move the AskUserQuestion dialog out of the guix-build Stop hook into
a separate script so it can be invoked proactively (before code changes
begin) rather than only at Stop time.

- ask-build-queue: new script with the build-target selection dialog.
  Exits early if a queue file already exists for the session.
- guix-build: simplified to use $CLAUDE_CODE_SESSION_ID directly
  instead of JSON parsing.  Delegates the no-queue case to
  ask-build-queue.
- CLAUDE.md: instructs to run ask-build-queue before any prompt that
  looks like it will modify code.
.claude/hooks/ask-build-queue [new file with mode: 0755]
.claude/hooks/guix-build
CLAUDE.md