graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
fix(shell): auto-promoted jobs still snapshot, not wait-until-exit
Rach Pradhan215689065372
diff --git a/src/exec_bash.zig b/src/exec_bash.zigindex f91b2176..ef55005f 100644--- a/src/exec_bash.zig+++ b/src/exec_bash.zig@@ -78,7 +78,7 @@ fn startedText(gpa: Allocator, id: u32, cmd: []const u8, ssh: bool, auto_bg: booif (@import("job_wait.zig").followup_pending.load(.acquire)) {try w.print("Follow-up received while this was running; it was moved to the background so you can talk. Process is still running as job {d}. shell action=output wait_ms>0 waits until it exits; omit wait_ms for a snapshot. action=kill stops it.", .{id});} else if (auto_bg) {- try w.print("Command exceeded the {d}s foreground wait and was automatically moved to the background. Process is still running. Waiting via shell action=output shows elapsed-time pulses so a long rebuild is distinguishable from a hang. You are notified on exit — do not poll. shell action=output id {d} wait_ms>0 waits until it exits; omit wait_ms for a snapshot. action=kill stops it.", .{ wait_s, id });+ try w.print("Command exceeded the {d}s foreground wait and was automatically moved to the background. Process is still running. You are notified on exit — do not poll. shell action=output id {d} is a snapshot, not wait-until-exit; omit wait_ms for an immediate snapshot. Leave it on /jobs or action=kill it. Explicit run_in_background keeps wait-until-exit for intentional long work.", .{ wait_s, id });} else {try w.print("This is a persistent job. shell action=output wait_ms is a snapshot timeout, not wait-until-exit — omit wait_ms for an immediate snapshot. You are notified on exit — do not poll. action=output id {d} reads unread output. action=kill stops it.", .{id});}