]> 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)
commit96ed64ce09bcddbe4682e5072882577633443d8e
tree857436116fde7913b0533c01a267bd91cbe06da8
parent0006bb59f4e0640e61ea803da6accf160cb0638c
[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.

Co-Authored-By: Claude <noreply@anthropic.com>
.claude/hooks/ask-build-queue [new file with mode: 0755]
.claude/hooks/guix-build
CLAUDE.md