Skip to content

fix(cli): clarify PiecesOS install completion wording#455

Merged
gavin-at-pieces merged 2 commits into
mainfrom
fix/clarify-install-completion-wording
May 28, 2026
Merged

fix(cli): clarify PiecesOS install completion wording#455
gavin-at-pieces merged 2 commits into
mainfrom
fix/clarify-install-completion-wording

Conversation

@gavin-at-pieces

Copy link
Copy Markdown
Contributor

Summary

On macOS and Windows the installer only downloads the package and launches the OS installer (open / start); the user still has to finish the GUI install. The shared DownloadState.COMPLETED branch printed "✅ Installed PiecesOS successfully", which overclaims on those platforms. Only Linux (snap) actually performs an in-process install.

This PR makes the completion wording match what the CLI actually knows, and lightly clarifies the failure message. No install behavior or control flow changes.

Changes

  • NEW src/pieces/install_messages.py: stdlib-only, pure helper functions returning per-OS install wording (mirrors readiness_messages.py).
  • EDIT src/pieces/core/install_pieces_os.py: COMPLETED/FAILED branches now call the helper with platform.system().
  • NEW tests/test_install_messages.py: pins the per-OS wording contract, guards the call site against reintroducing the legacy overclaiming string, and an import smoke test.

Wording

  • macOS/Windows (COMPLETED): 📥 Downloaded PiecesOS. Finish the installation in the window that just opened, then run \pieces open`.`
  • Linux (COMPLETED): ✅ Installed PiecesOS. Run \pieces open` to launch it.`
  • FAILED: ❌ Couldn't install PiecesOS automatically — opening the manual install page in your browser.

Out of scope

Vendored SDK, MCP, doctor/support artifact, os_server/runtime, SDK #144/#145 vendoring, installer behavior/control flow, readiness_messages.py.

Test plan

  • python -m pytest tests/test_install_messages.py -v (13 passed)
  • python -m pytest tests/test_readiness_messages.py -v (19 passed, no regression)
  • PYTHONPATH=src python -c "import pieces.install_messages, pieces.core.install_pieces_os"
  • ruff check src/pieces/install_messages.py src/pieces/core/install_pieces_os.py tests/test_install_messages.py

@gavin-at-pieces gavin-at-pieces marked this pull request as ready for review May 28, 2026 22:42

@mark-at-pieces mark-at-pieces left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gavin-at-pieces gavin-at-pieces merged commit d621f13 into main May 28, 2026
7 checks passed
@gavin-at-pieces gavin-at-pieces deleted the fix/clarify-install-completion-wording branch May 28, 2026 23:41
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.

2 participants