[PR #235] [MERGED] fix: address setup, upgrade, and process test regressions #1885

Closed
opened 2026-10-16 21:12:11 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/235
Author: @morluto
Created: 7/15/2026
Status: ✅ Merged
Merged: 7/15/2026
Merged by: @morluto

Base: main ← Head: fix/open-bug-regressions


📝 Commits (3)

  • 02f12b9 fix: address setup, upgrade, and process test regressions
  • acaf030 test: keep package setup verification read-only
  • 0ca93f9 fix(setup): replace managed Hopper on reinstall

📊 Changes

8 files changed (+128 additions, -34 deletions)

View changed files

📝 scripts/verify-package.mjs (+5 -4)
📝 src/application/MacHopper.ts (+20 -3)
📝 src/application/Setup.ts (+37 -15)
📝 src/application/Upgrade.ts (+1 -2)
📝 tests/macHopper.test.ts (+24 -5)
📝 tests/processCapture.test.ts (+2 -2)
📝 tests/setup.test.ts (+33 -3)
📝 tests/setupConfig.test.ts (+6 -0)

📄 Description

Description

Fix three open CLI and test regressions:

  • make rea setup --yes --install-hopper plan and perform an explicit Hopper reinstall even when a launcher already exists;
  • re-evaluate client registrations against the installed launcher and retain the first .rea.backup across later configuration updates;
  • keep package-manager stdout out of structured upgrade output while preserving stderr;
  • give the two real process-capture integration cases explicit 20-second Vitest budgets while their scenario timeouts remain 2 seconds.

The packaged setup verifier now proves that ordinary aligned reruns remain idempotent while an explicit install request remains actionable.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactor

Testing Performed

  • npm run check
  • npm run verify:package
  • Focused setup, upgrade, and process-capture tests
  • npm pack --dry-run
  • Real Hopper verification (not run: this host does not provide a real Hopper installation and two distinct binaries)

Tool Contract Impact

None. The tool inventory and caller-visible schemas are unchanged.

Suggested Review Order

  1. src/application/Setup.ts and its setup tests
  2. src/application/Upgrade.ts
  3. Process-capture timeout and packaged verification updates

Closes #149
Closes #163
Closes #164


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/235 **Author:** [@morluto](https://github.com/morluto) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@morluto](https://github.com/morluto) **Base:** `main` ← **Head:** `fix/open-bug-regressions` --- ### 📝 Commits (3) - [`02f12b9`](https://github.com/morluto/rea/commit/02f12b927a17615150d6e1126d1b841c5dca648b) fix: address setup, upgrade, and process test regressions - [`acaf030`](https://github.com/morluto/rea/commit/acaf03056d6b457d85c6b7744565d6c7d56c424c) test: keep package setup verification read-only - [`0ca93f9`](https://github.com/morluto/rea/commit/0ca93f9779bc6c576479561c488982963fbb9167) fix(setup): replace managed Hopper on reinstall ### 📊 Changes **8 files changed** (+128 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `scripts/verify-package.mjs` (+5 -4) 📝 `src/application/MacHopper.ts` (+20 -3) 📝 `src/application/Setup.ts` (+37 -15) 📝 `src/application/Upgrade.ts` (+1 -2) 📝 `tests/macHopper.test.ts` (+24 -5) 📝 `tests/processCapture.test.ts` (+2 -2) 📝 `tests/setup.test.ts` (+33 -3) 📝 `tests/setupConfig.test.ts` (+6 -0) </details> ### 📄 Description ## Description Fix three open CLI and test regressions: - make `rea setup --yes --install-hopper` plan and perform an explicit Hopper reinstall even when a launcher already exists; - re-evaluate client registrations against the installed launcher and retain the first `.rea.backup` across later configuration updates; - keep package-manager stdout out of structured upgrade output while preserving stderr; - give the two real process-capture integration cases explicit 20-second Vitest budgets while their scenario timeouts remain 2 seconds. The packaged setup verifier now proves that ordinary aligned reruns remain idempotent while an explicit install request remains actionable. ## Type of Change - [x] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update - [ ] Refactor ## Testing Performed - [x] `npm run check` - [x] `npm run verify:package` - [x] Focused setup, upgrade, and process-capture tests - [x] `npm pack --dry-run` - [ ] Real Hopper verification (not run: this host does not provide a real Hopper installation and two distinct binaries) ## Tool Contract Impact None. The tool inventory and caller-visible schemas are unchanged. ## Suggested Review Order 1. `src/application/Setup.ts` and its setup tests 2. `src/application/Upgrade.ts` 3. Process-capture timeout and packaged verification updates ## Related Issues Closes #149 Closes #163 Closes #164 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-16 21:12:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#1885
No description provided.