Repository navigation
fix(install): say what was ignored, and which profile is the live one - #28
Merged
Merged
Conversation
Three things went wrong in one install, all of them the prompt failing to say what it knew. **A dropped token was dropped silently.** Someone typed "20, 4" and got sheet 4 alone. Their terminal had leaked a Page Up escape into the line, so the first token arrived as "\x1b[5~20"; int() refused it and it vanished without a word. parse_selection was working as designed -- under-select on a typo, never over-select, because these sheets get written into a profile someone lives in -- but the silence turned a right instinct into a wrong result. scan_selection now returns the rejects alongside the indices, and the menu prints each one with repr(), so an escape sequence is shown rather than replayed at the terminal. Anything ignored re-asks, with Enter keeping what was already read so a partial answer never costs the whole list. **Nothing said which profile was the live one.** Three profiles, the (Enter) default on dev-edition-default, and the Firefox in daily use on default-release. The kind label distinguishes them, but not which one is actually open, so the theme went into the wrong profile -- which looks exactly like the theme not working. Each line now carries what settles it: whether Firefox holds the profile's lock right now, and whether it already has a chrome/ or an fxcss theme. Paths shorten to ~ so the tail is readable. **The confirmation did not stand out.** The chosen profile and the sheets being written are now bold, so what is about to be installed reads as the answer rather than as more prose. Colour is off when stdout is not a tty and honours NO_COLOR, since these are prompts rather than report output with a --no-colour flag of their own. parse_selection keeps its old signature and its old tests: callers with nothing to say about rejects still get a plain list. Co-Authored-By: Claude Fable 5 <[email protected]>
adamXbot
force-pushed
the
fix/install-prompts-say-what-they-did
branch
from
September 1, 2026 06:23
6287341 to
6ddbc95
Compare
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.
Three things went wrong in a single
fxcss install, and all three are the prompt failing to say something it already knew.A dropped token was dropped silently
Someone typed
20, 4at the optional-sheets menu and got sheet 4 alone:Their terminal had leaked a Page Up escape into the line, so the first token arrived as
\x1b[5~20.int()refused it and it vanished without a word.parse_selectionwas working as designed — under-select on a typo, never over-select, because these sheets are written into a profile someone lives in — but silence turned a right instinct into a wrong result. Ordering was never involved;"4, 20"and"20, 4"both already worked.scan_selectionnow returns the rejects alongside the indices, and the menu shows each one:repr()is deliberate — an escape sequence is shown rather than replayed at the terminal, and seeing the\x1bis the whole diagnosis. Out-of-range numbers are reported the same way ("99, 4"used to give you 4 in silence). Enter on a retry keeps what was already read, so a partial answer never costs the whole list.Nothing said which profile was the live one
Three profiles, the
(Enter)default ondev-edition-default, and the Firefox in daily use ondefault-release. The kind label distinguishes the channels but not which profile is open, so the theme went into the wrong one — which looks exactly like the theme not working.Whether Firefox holds the profile's lock right now is the fact that settles it, and
install.firefox_runningalready computed it — it checks the lock is held, not merely present, so it stays honest after a crash. Whether the profile already has achrome/or an fxcss theme is the other half. Paths shorten to~so the tail is readable.The confirmation did not stand out
The chosen profile and the sheets being written are now bold, so what is about to be installed reads as the answer rather than as more prose. Colour is off when stdout is not a tty and honours
NO_COLOR— these are prompts, not report output with a--no-colourflag of their own.Compatibility
parse_selectionkeeps its old signature and its existing tests: callers with nothing to say about rejects still get a plain list. 274 unit tests, including the escape-sequence case as a direct regression.🤖 Generated with Claude Code