Repository navigation
Read the version test's output unstyled - #508
Merged
Merged
Conversation
Rich colors part of the version under FORCE_COLOR, so the raw substring check failed on a shell that sets it (#507). Assert on click's unstyle, and pin it with a console that always styles. Tested: tests/test_cli (147 pass) with and without FORCE_COLOR=1; dropping unstyle fails the new test; ruff check and format clean.
14 of 24 tasks
This was referenced Sep 25, 2026
neuromechanist
added a commit
that referenced
this pull request
Sep 25, 2026
Brings in #502, #503 and #508. The generated runtime bundle and its integrity line are rebuilt from the merged sources; CHANGELOG keeps both Added entries. Tested: bun scripts/build-runtime-bundle.js --check; test-worker-core (220), test-data-lane (106), test-runtime-bundle (25), test-widget-tools (397), test-runtime-lifecycle and test-egress all passed.
This was referenced Sep 25, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #507.
test_version_shows_versionchecked the raw CLI output, and Rich colors part of the version whenFORCE_COLORis set (OSA v0.\x1b[1;36m8.15\x1b[0m.dev4), so it failed on any shell that sets it. This machine's shell does, which is how two implementers hit it today.Changes
click.unstyle(result.output), which the file already imports for the same reason elsewhere.force_terminal=True), asserts the output really is styled, so the test cannot pass vacuously, and that the unstyled text shows the version.Tested
uv run pytest tests/test_cli: 147 pass, withFORCE_COLOR=1and withoutunstylefails the new testruff checkandruff format --checkclean