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 the report! It looks to me like this is probably an upstream issue in uv check.
With the arguments you're providing to the hook, the hook runs a command equivalent to:
uv check --quiet --preview-features=check-command --ty-version=0.0.63 --no-progress --color never
However, --no-progress and --color never currently apply only to uv itself. uv then starts ty as a separate ty check process without forwarding either setting to ty, so ty still displays its progress bar and colored output.
The disappearing output is caused by the progress bar's cursor-movement and line-clearing escape sequences. Running ty check --no-progress --color never directly works because those options are passed to ty itself.
I think the fix needs to happen in uv check: it should propagate the relevant terminal settings to the ty subprocess. Once that works, this hook should disable ty's progress bar by default.
Until then, codex tells me that setting TERM=dumb when invoking your hook runner should avoid the problematic progress output:
Activity
iamkhav commentedon Jul 27, 2026
It seems to me like this could be an upstream issue.
^ still displays color and a progress bar.
Edit: To be clear, the above is the command being executed by ty-pre-commit with the two args I gave as an example in the issue description.
AlexWaygood commentedon Aug 13, 2026
Thanks for the report! It looks to me like this is probably an upstream issue in
uv check.With the arguments you're providing to the hook, the hook runs a command equivalent to:
uv check --quiet --preview-features=check-command --ty-version=0.0.63 --no-progress --color neverHowever,
--no-progressand--color nevercurrently apply only to uv itself. uv then starts ty as a separatety checkprocess without forwarding either setting to ty, so ty still displays its progress bar and colored output.The disappearing output is caused by the progress bar's cursor-movement and line-clearing escape sequences. Running
ty check --no-progress --color neverdirectly works because those options are passed to ty itself.I think the fix needs to happen in
uv check: it should propagate the relevant terminal settings to the ty subprocess. Once that works, this hook should disable ty's progress bar by default.Until then, codex tells me that setting
TERM=dumbwhen invoking your hook runner should avoid the problematic progress output:TERM=dumb pre-commit run --all-filesForward `uv check` terminal settings to ty (#21086)
AlexWaygood commentedon Aug 13, 2026
This should be fixed in the first ty release that comes after the next uv release, if that makes sense
iamkhav commentedon Aug 14, 2026
Thank you for your work! :)
Forward `uv check` terminal settings to ty (astral-sh#21086)