Keep git fatal stderr off the TUI and teach /yolo - #733
Merged
TheGreatAxios merged 2 commits intoAug 31, 2026
Merged
Conversation
TheGreatAxios
commented
Aug 31, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Critic · Comment
Git probes discard stderr; /yolo is named on landing and the permissions overlay only.
Findings
src/agent/environment.test.ts— async “no git fatal” tests spyprocess.stderr.write, which does not observe inherited fd 2. SynclistWorktreeRootsSyncis a real detector for the originalexecFileSyncleak. Not blocking: production stdio already ignores stderr.
Notes
- Focused tests on the changed files: 58 pass.
bun run typecheckexits 0.
TheGreatAxios
commented
Aug 31, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Greybeard · Comment
Stderr is silenced at the git subprocess, not the renderer. Permissions-overlay /yolo is the right ask-time layer.
Findings
src/agent/environment.ts— hand-rolledspawnis extra. AsyncexecFilealready pipes stderr. The load-bearing fix islistWorktreeRootsSyncwithstdio: ["ignore", "pipe", "ignore"], same assrc/session/project-key.ts.src/tui/landing.ts— a second idle door spends chrome on a sticky skip-permissions switch. Overlay hint is the friction-moment layer.
Notes
- Landing
/yolois the CL-7289 product ask (teach the escape hatch before the first prompt). Overlay stays either way. - Spawn rewrite is being folded back to
execFile+ ignored stderr.
TheGreatAxios
commented
Aug 31, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Draper · Comment
Landing two-door and the permissions title compose at 80-col. Nothing critical.
Findings
src/tui/landing.ts:84—/yolorest is 51 cols;MARK_SMALLis flush at 80-col (77/77).MARK_LARGEnow needs 102 content cols (hero test moved 96 → 120).src/tui/shell.ts:1341— adminpermissions · Enter revokesplus the long hint overflows an 80-col interior and falls back toEsc · Enter · /yolo.
TheGreatAxios
commented
Aug 31, 2026
TheGreatAxios
left a comment
Collaborator
Author
There was a problem hiding this comment.
Review · Comment
Git worktree listing and environment probes discard stderr; idle landing and the permissions overlay name /yolo.
No blocking findings. GitHub blocks self-approve on this PR.
Notes
- Landing /yolo is the CL-7289 product ask. Overlay hint stays at the ask.
- Greybeard spawn rewrite is folded: probes use execFile/execFileSync with ignored stderr, matching project-key.ts.
- Async stderr tests still spy process.stderr.write; the load-bearing detector is listWorktreeRootsSync.
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.
Summary
fatal: not a git repositorythrough the TUI/yoloas a second door, and the permission overlay names/yolo skip promptsBrian Fox hit both on first run: git fatal over the permission prompt, and no discoverable skip-permissions path.
Verification
bun run typecheckandbun run buildpassworktree-roots,environment,landing,overlays)Fixes CL-7290
Fixes CL-7289