You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this PR — plugging the partial-parse hole (previously --limit 12abc was silently accepted as 12) and consolidating the duplicate parser in artifacts-command.ts into the shared module are both exactly the right calls. Two things before this can land:
(Must) Take packages/utils/src/path.test.ts and shell.test.ts out of this PR. Those two files address Windows local-test compatibility, which is unrelated to this PR's topic — and #75 is already handling exactly these two files, using the vi.skipIf pattern that CONTRIBUTING.md prescribes (the process.platform === "win32" ? it.skip : it approach here is the hardcoded platform check the guideline advises against). Dropping them won't break CI — those failures only occur on local Windows without Developer Mode; the GitHub Windows lane is green on main. Acceptance criterion: the file list shrinks to option-parsers, artifacts-command, and their tests.
(Must) Add tests for the new behavior. The existing cases in option-parsers.test.ts only cover fully non-numeric input ("abc"), which the old code rejected too. The rejections this PR actually introduces — "12abc", "3.14xyz", "1e3" as an integer, values beyond the safe-integer range — currently have zero coverage. Please add cases for these. Acceptance criterion: new test cases cover the partial-parse scenarios and pass.
Ping us after you push — once slimmed down, this can land quickly.
Thanks for this PR — the new theme.test.ts deserves a special mention: a proper WCAG relative-luminance contrast check with well-chosen thresholds (7:1 for body text, 4.5:1 for muted text, 3:1 for structural lines), which gives every future theme change a regression guard. The brightened muted / line values across the five builtin themes and the improved /theme recovery copy are also the right calls. Two things before this lands:
(Must) Rebase onto the latest main and drop the changes to packages/utils/src/path.test.ts and shell.test.ts. Windows test compatibility has been handled by #75, which landed on main using the vi.skipIf pattern that docs/TESTING.md prescribes. The equivalent changes in this branch will conflict on rebase — resolve by keeping main's version and discarding this branch's. Acceptance criterion: the file list shrinks to the three files under src/tui/ (the one-line docs fix is fine to keep).
(Must) Keep the role colors — errors must stay red. The current change renders all badge text in theme.foreground and all rails in the line color. Contrast passes, but the transcript loses its color coding: user/assistant/tool entries become indistinguishable by color and error entries are no longer red, which is not what we want. Please restore per-tone colors in resolveTranscriptBadgeStyle, picking contrast-passing brighter variants per theme — danger stays red, warning stays yellow, success stays green; only brighten the values that are too dark on the badge backgrounds. Also add contrast assertions for these tone colors against the badge backgrounds to theme.test.ts (we'd suggest ≥ 4.5:1), so "role colors and legibility" is guaranteed by tests. Acceptance criteria: across all five themes the danger badge and rail read visibly red, and the new tone-color contrast assertions pass.
Ping us after you push — and we'd suggest running pnpm tui:dev and cycling through the five themes with /theme to sanity-check the look.
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
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.
Summary
parseInt/parseFloatparses.step artifacts list --limit.mainand make the newly merged Windows-sensitive tests pass under normal Windows permissions.Verification
pnpm exec vitest run src/commands/option-parsers.test.tspnpm exec vitest run packages/utils/src/path.test.ts packages/utils/src/shell.test.tspnpm exec prettier --check src/commands/option-parsers.ts src/commands/artifacts-command.ts src/commands/option-parsers.test.tspnpm exec tsc --noEmit --pretty falsepnpm checkNotes