Skip to content

fix(player): open the video player in the app's render mode#98

Merged
detain merged 1 commit into
masterfrom
ai/player-inherits-mode
Jun 28, 2026
Merged

fix(player): open the video player in the app's render mode#98
detain merged 1 commit into
masterfrom
ai/player-inherits-mode

Conversation

@detain

@detain detain commented Jun 28, 2026

Copy link
Copy Markdown
Owner

The player always opened with RendererFactory::autoMode() (terminal-best), ignoring the --mode the rest of the app renders with — so a sixel/iterm2/quarterblock session switched to a different mode on playback.

PosterLoader::protocol() exposes the active render protocol; openPlayer threads it into PlayerScreen::productionFactory(), which maps it to the matching reel Mode (Mode::tryFrom), falling back to auto-detect for an unknown protocol. Combined with sugar-reel's new quarter-block mode (sugarcraft#1129), all of half/quarter-block, ascii/ansi256/truecolor and sixel/kitty/iterm2 now carry through to the player.

Suite green (2220); PHPStan L9 clean.

🤖 Generated with Claude Code

The player always opened with RendererFactory::autoMode() (terminal-best),
ignoring the --mode the rest of the app renders with — so a sixel/iterm2/
quarterblock session dropped to a different mode on playback.

PosterLoader::protocol() exposes the active render protocol; openPlayer threads
it into PlayerScreen::productionFactory(), which maps it to the matching reel
Mode (Mode::tryFrom). An unknown protocol (e.g. 'auto'→'chafa') falls back to
auto-detect. With sugar-reel's new quarter-block mode, all of half/quarter-block,
ascii/ansi256/truecolor and sixel/kitty/iterm2 now carry through to the player.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@detain detain merged commit dfcf982 into master Jun 28, 2026
2 checks passed
@detain detain deleted the ai/player-inherits-mode branch June 28, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant