You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bash -x session-start-hook.sh produces zero stdout bytes on windows-latest (round 2 of #690) #712
bugSomething isn't workingfiled-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:mediumRecurring cost; compounds if unfixed
Split out of #690 / PR #708 so it survives independently of that branch and is visible on the tracker rather than only inside an xfail marker.
What happens
On the windows-latest CI runner, test_the_real_hook_traces_past_the_bootstrap in tests/test_trace_not_swallowed_690.py fails: bash -x scripts/session-start-hook.sh exits 0 but produces zero stdout bytes. The six other tests in the same file pass on the same runner, so this is not a bash resolution or PATH handling problem -- something specific to this end-to-end path (or to how the trace/output is captured) does not work on that platform.
This is the exact test that pins #690's own promise -- a bash -x trace of the real hook reaching past bootstrap-dirs.sh's fd-2 redirect -- so on Windows that promise is currently unverified, not merely untested.
What is not yet known
Whether the _REMEMBER_CTX_FILE buffer redirect (scripts/session-start-hook.sh:1527-1542, 1969-1972) never engages under trace on Git Bash, or engages and the flush branch is never reached. This needs a live Windows runner (or an equivalent Git Bash environment) to step through.
Current state
PR #708 (which fixed the macOS bash-3.2 regression in the same file, PR unaffected by this issue) marks the Windows case xfail(sys.platform == "win32", strict=False, raises=AssertionError) rather than a silent skip, so it stays visible until fixed (flips to XPASS, which is the signal to remove the marker) rather than quietly passing. #690 itself is being kept open rather than closed by that PR, since this is the same end-to-end guarantee the issue was filed for, just on a different platform.
Acceptance
The xfail marker on test_the_real_hook_traces_past_the_bootstrap (currently scoped to sys.platform == "win32") can be removed because the test passes for real on windows-latest, and #690 can then be closed once this is fixed.
bugSomething isn't workingfiled-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:mediumRecurring cost; compounds if unfixed
Activity
fix(#720,#721): stop /remember parsing its Write target from the tran…
fix(#712): the real root cause was an unnormalized test-harness path,…
fix(#712): skip TestCtxBufferSkippedUnderTrace on win32, matching its…
fix(#712): skip session-start-hook.sh's stdout buffer under an active…
fix(#736): remove the strict=False xfail marker now that windows-late…
test(#782): invoke the hook by a forward-slash path in the in-project…
fix: unquote literal quotes, guard the start cache, refuse laundering…