Skip to content

Fix review findings: integration/tui-prompts (hy-3a7ri)#32

Merged
philcunliffe merged 1 commit into
integration/tui-promptsfrom
polecat/hy-3a7ri
May 23, 2026
Merged

Fix review findings: integration/tui-prompts (hy-3a7ri)#32
philcunliffe merged 1 commit into
integration/tui-promptsfrom
polecat/hy-3a7ri

Conversation

@philcunliffe
Copy link
Copy Markdown
Contributor

Summary

Fix review findings: integration/tui-prompts

Addressed all 3 findings (2 major + 1 minor) on PR #26 dual-review. Branch polecat/hy-3a7ri pushed. Tests (345), lint, typecheck, walkthrough smokes all pass. Refinery rebases onto integration/tui-prompts.

Delivery

  • Issue: hy-3a7ri
  • Branch: polecat/hy-3a7ri
  • Integration target: integration/tui-prompts
  • Eventual target: master

This PR is auto-merged into the integration branch once CI is green. Human
review for the full feature happens on the downstream PR
(integration/tui-prompts -> master), which is opened separately when the feature
is ready to ship.

…) (PR #26)

Address the three findings on integration/tui-prompts dual-review:

- Contract & Interface Fidelity (major): shouldUseTui and TUI runtime
  now read HYP_NO_TUI/NO_COLOR through opts.env when supplied, falling
  back to process.env only when nothing is injected. The walkthrough
  threads env through multiselect/text so env-injected runs flip the
  TUI path consistently.

- Error Handling & Resilience (major): runPickerWalkthrough catches
  PromptCancelledError and returns exit code 130 (SIGINT convention)
  with a "hyp init: cancelled" stderr line, instead of letting cancels
  fall into the dispatcher's generic unhandled-exception path.

- Release Safety (minor): replace shell find/xargs in `npm test` with
  scripts/run-tests.js (Node-driven, mirrors check-syntax.js). The
  script discovers *.test.js under test/ and execs `node --test` with
  the resolved paths so the suite runs on Windows shells too.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@philcunliffe philcunliffe merged commit c1caabb into integration/tui-prompts May 23, 2026
6 checks passed
@philcunliffe philcunliffe deleted the polecat/hy-3a7ri branch May 23, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant