refactor: simplify TestMain signal switch; note procsignal tech debt

main

Commit

Soph2mo ago

Post-review cleanup (no behavior change):

  • main_test.go: collapse the duplicated INT/TERM cases in TestMain's child-mode switch into one signal-selection path.
  • procsignal.go: document why the shared global exists (auth-go's Store interface carries no context) and the path to removing it.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com Entire-Checkpoint: 0fa8a28fa29e

Checkpoints

Fix CLI Ctrl-C Signal-Handling Race

Claude Code
View session
Checkpoint 1