[codex] Fix playback dependency handling and bump version#3
[codex] Fix playback dependency handling and bump version#3thepushkarp merged 3 commits intomainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the robustness and user experience of the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request effectively improves the handling of the mpv playback dependency. It introduces a 'fail fast' mechanism for the CLI, prevents the TUI from displaying misleading playback status on startup failure, and enhances the documentation regarding installation dependencies. The addition of regression and unit tests is a great way to ensure these fixes are robust. I have one suggestion to slightly refactor the new error handling function for better readability, aligning with our guidelines on reducing code duplication.
Summary
mpvmpvstartup failscargo installruntime dependency expectations0.0.2to0.0.3Why
A fresh install could reach playback code without a working player backend. In the CLI,
mls playdiscovered that late during process spawn. In the TUI, playback start errors were swallowed and the UI could reportPlaying: ...even though nothing started.This change makes missing
mpvexplicit and actionable for the runtime paths that need it while keeping browse/list features usable without playback.What changed
4withPlayback requires mpv. Install: brew install mpvformls playwhenmpvis absentmpvand a TUI unit test for failed playback startup statecargo installpaths describe different runtime provisioningValidation
cargo testcargo clippy --all-targets --all-features -- -D warningscargo fmt --checkPATH="$(pwd)/tests/fixtures/mock_bin" target/debug/mls --quiet play README.md-> exit4with install hintCompanion change
A companion PR in
thepushkarp/homebrew-tapaddsmpvto the Brew formula and verifies the dependency stays declared. These two PRs should merge together.