Repository navigation
feat(zcode): persist clone-launch console output to tools/logs transcripts - #21
Conversation
…ripts The launcher windows opened by GHOST.bat ZCode [1]-[6] close automatically when done, and the Desktop/Start-menu shortcuts run the same script with -WindowStyle Hidden - so the ram-guard exchange, seed/telegram/sync steps, spawn PID and taskbar stamping were unreviewable after the fact. launch_zcode_second_instance.ps1 now appends every run to tools/logs/launch_zcode_<Instance>.log via Start-Transcript (one file per instance so the five parallel launchers never interleave; -Append + -IncludeInvocationHeader). Setup and teardown are best-effort: transcript failure prints a yellow warning and never blocks the launch, and Stop-Transcript runs before the ram-guard exit-0 paths and at script end. GHOST.bat ZCode [6] prints the log location after opening the windows.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
GHOST.bat ZCode [1]-[6] open launcher windows that close automatically when done (by design -
start "title" powershellwith no redirect, no pause), and the Desktop/Start-menu shortcuts run the same script with-WindowStyle Hidden(no console at all).launch_zcode_second_instance.ps1wrote zero log files, so the ram-guard question/answer, seed/telegram/sync step results, spawn PID and taskbar stamping were unreviewable after the fact. The only trace of a Launch ALL round was the childsync_zcode_assets.log.Fix
launch_zcode_second_instance.ps1: appends every run totools\logs\launch_zcode_<Instance>.logviaStart-Transcript -Append -IncludeInvocationHeaderright after= 'Stop'. One file per instance so the five parallel launchers never interleave. Fully best-effort: the whole setup sits in try/catch (a transcript failure prints a yellow warning and never blocks the launch), andStop-Transcript(also try/catch) runs before both ram-guardexit 0paths and at script end. No re-indentation of the body; PS 5.1 safe. Hidden shortcut launches benefit automatically.GHOST.bat(gid 18, Launch ALL): one echo line after opening the five windows pointing at the logs.CHANGELOG.md: Unreleased/Added entry.Verification
Parser::ParseFile→ PARSE_OK; all 808 lines CRLF intact.tests/repo-integrity.Tests.ps1→ 11/11 passed.start/pause/timeoutstubbed, pure CRLF): all five :StartClone calls executed with correct args, the new log-path echo printed, zero CMD errors, exit 0.-Instance Sixthwhile Orange was running → already-running guard path, no new app spawn): launcher exit 0 andtools/logs/launch_zcode_Sixth.logcontains the transcript header, every console line (ram-guard, seed, sync, watchers, launch env, taskbar stamp/kick) and the transcript footer.Notes
tools/logs/) - test artifacts did not enter the commit.Summary by CodeRabbit