desk: fix Grok steer-kill on macOS — agent-holders kills the session group and waits (#5706 PR-A) - #2
Open
chasehuh wants to merge 2 commits into
Open
desk: fix Grok steer-kill on macOS — agent-holders kills the session group and waits (#5706 PR-A)#2chasehuh wants to merge 2 commits into
chasehuh wants to merge 2 commits into
Conversation
…ssion group and waits (#5706 PR-A) - sume-bg-launch --resume: pgrep -a on macOS means include-ancestors and prints pids only, so the old awk filter never matched and the steer never killed anything; two grok -p --resume on one uuid then hung the second in session_create (empty live log). - new bin/agent-holders.sh: list|kill holders keyed on --resume/--session-id argv tokens (darwin pgrep -lf / linux -af), excludes ancestors and gt merge/submit, TERMs the process group so the tokenmaxxing supervisor and the orphan-prone raw grok child both die, waits, KILL escalates, exit 3 if still held. - agent-human-stream: refuse grok --resume while a live holder exists (AGENT_HUMAN_STREAM_FORCE_RESUME=1 overrides) and refuse grok --continue while another grok job is open in this cwd. - bin/sume-bg-launch.test.sh: offline fakes for pgrep/ps/kill. Refs sumelabs/sume#5706
chasehuh
force-pushed
the
desk/5706-a-steer-kill
branch
from
September 2, 2026 00:31
17d2b39 to
020a884
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements sumelabs/sume#5706 (desk Grok Build harness at Codex-class long-session resolution). Stacked: A → C → B → D → E; merge in that order (each PR bases on the previous branch). After landing on main:
cd ~/.cstack/src && git stash && git pull && git stash drop && ./install.sh --sume-com ~/sume/sume-com(the desk tree has the same Fable 5.1 edits uncommitted; PR-A carries them as its first commit).What
pgrep -aon macOS = include ancestors (pids only); the old steer never matched → secondgrok -p --resumehung insession_create(empty live log).bin/agent-holders.sh list|kill <uuid>: keys on--resume/--session-id <uuid>argv tokens, excludes ancestors andgt merge/submit, TERMs the process group (wrapper + tokenmaxxing supervisor + raw grok child, which the supervisor orphans), waits, KILL-escalates, exit 3 if still held.--resumewhile a holder is live and grok--continuewhile another job is open in the cwd.Tests
bin/sume-bg-launch.test.sh(fake pgrep/ps/kill, darwin shape) +agent-human-stream --self-test. Real-binary probe: live session steered viasume-bg-launch --resume→ old group released, new run streams (see issue comment).🤖 Generated with Claude Code