Skip to content

Free, open-source AI video generator for Mac. Run LTX-2.5 and MiniMax H3 (Hailuo) locally on Apple Silicon: text-to-video and image-to-video with sound, lip-sync, character LoRA training, songs from lyrics (YuE2) and image editing (Qwen-Image-Edit). One-click install via Pinokio. Offline: no cloud, no API key, no NVIDIA GPU.

release(v4.17.1): the clip toolbar fits the player

mrbizarro50a73f80455b
diff --git a/README.md b/README.md
index b9ff595..e4c2954 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@
</p>
-> **Current release: v4.17.0.** **Honest times, faces that survive, and films you can fix.** We used every flow on small and big Macs and fixed the 222 places it lied, lost work or made you hunt. Time estimates are for your Mac, not ours. Portrait and phone photos keep the face (right way up, right shape, with a crop you can drag). Stop, Clear queue and Hide have Undo or a confirm, and One Shot keeps its finished parts. Lip-sync is a Video mode with a 3 s draft, a sync verdict and Continue the song. The Editor gains Sync to song, Match colour, slip and roll edits, Replace and take history, and renders are versions you can cancel. Press Update in Pinokio, then restart. Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).
+> **Current release: v4.17.1.** **The clip toolbar fits again.** 4.17.0 added four actions to the player toolbar, and at a laptop-sized window their labels wrapped over two or three lines and covered the clip name; the toolbar now fits the player and drops secondary labels (icons keep their tooltips) when space is short. 4.17.0 was the big one: estimates for your Mac, faces kept in portrait and phone photos, Undo on Stop/Clear/Hide, Lip-sync as a Video mode, and an Editor with Sync to song, Match colour, slip and roll edits, Replace and versioned renders. Press Update in Pinokio, then restart. Full notes on the [releases page](https://github.com/mrbizarro/Phosphene/releases).
## Overview
diff --git a/VERSION b/VERSION
index 43b5827..1b0a87f 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.17.0
+4.17.1
diff --git a/docs/STATE.md b/docs/STATE.md
index 2b3fd3f..d1bc23b 100644
--- a/docs/STATE.md
+++ b/docs/STATE.md
@@ -1,3 +1,5 @@
+> **🧰 2026-09-29 — v4.17.1: the clip toolbar fits the player.** Found while capturing the 4.17.0 post media on the clean-room panel: 4.17.0's landscape toolbar has ten actions (Finish at, New take, Retake a moment, To film …) and the only compact rule was `@media (max-width: 1100px)`, so at 1440×900 every label wrapped over 2–3 lines and Finish covered the clip name. `fitPlayerActions()` (queue.js) measures the cluster against the player after every fit and every selection and sets `data-po-compact` 1 (secondary labels off) / 2 (all but Finish); labels are `nowrap`; the name/meta line pads by `--po-actions-w`. Verified at 1280/1366/1440/1920 with landscape, H3 and portrait clips (labels one line, cluster inside the player). Tests: `test_render_check_4170.TheClipToolbarFitsThePlayer` (node-executed, fails on 4.17.0).
+
> **🚀 2026-09-29 — v4.17.0: the flow-review mega ship (222 findings).** Five hands-on reviews drove every flow on a clean panel at four window sizes (video-core, video-advanced, H3, film, system; `review-2026-09-29-ux/` in the PM hub) and ten fix packages landed on `int-4170` off beta `70665d3`, merged in order system → est → size-faces → safety → h3 → lipsync → video-ui → board → editor-a → editor-b. **Headline for users:** estimates are for THEIR Mac (fleet p25–p75 per chip+RAM from `data/fleet_timings.json`, rebuilt at release, self-calibrating on the install's own renders); no silent downgrades (16:9 stays 16:9 under 48 GB, size chips show the delivered size); faces survive (EXIF rotation, HEIC, portrait shape picked from the photo, draggable crop, original photo kept in the sidecar); Stop/Clear/Hide have confirm or Undo and One Shot keeps finished parts; New take everywhere; Lip-sync is a Video mode (3 s draft, verdict chip, Continue the song, Split into clips on Compact, Retake a moment); the Editor gets Sync to song, Match colour + per-clip grade, slip/roll, Replace, take history, versioned cancelable renders. **Merge notes:** conflicts and every resolution are in the PM hub's `INTEGRATION_NOTES.txt` §1–6 (notable: video-ui reparented onto safety's real commits; two Retry-smaller implementations unified; `_ensure_video_poster` defined twice → the editor's renamed `_ensure_proxy_poster`; est's `window.BOOT` read (BOOT is a top-level const) made Keyframe/Extend refuse on every Mac). **Codex:** one round, 7 areas, 80 findings, all fixed or proven duplicate, each with a failing-first test (`test_codex_4170*.py`). **Render checks** (both GPU locks, Pinokio-shaped env): T2V, I2V from a sideways EXIF-6 portrait, lip-sync + Continue the song, H3 Draft, Retake, Windows partial (helper killed mid-chain), Split into clips on a faked-32 GB Compact panel, Editor render with Match colour. They found six more bugs, fixed with tests in `test_render_check_4170.py`: **Save dropped every per-clip grade** (`sbeCleanClip` rebuilt `adjust` as brightness only — Match colour never reached a render), a2v/keyframe live preview never fills (pinned engine drops the monitor → held out of `LTX_LIVE_PREVIEW_MODES`), the Compact cap + Split link hidden behind a 0.1 s silent-tail note, Retake's size cap unstated, the windows-partial sidecar keeping the ASKED frames, and the portrait player header wrapping inside items. **Open, deliberately:** `lipsync_score` reads weak on synthetic TTS voices; Match colour at 100% pulls a night shot orange when the cut mixes night and day (strength slider + Undo); mixed-orientation films render on a max(w)×max(h) canvas; H3 Stop-after-window stays off until the runner keeps windows (`H3_RUNNER_KEEPS_WINDOWS_ON_STOP`).
> **📊 2026-09-29 — beta (mega-est package): time estimates now come from real fleet data, shown as a range.** Owner ruling: "If we have the fleet data, we can provide proper time estimations, or at least a range." Every estimate before this was a MODEL (a per-chip speed factor × a cost function fitted to renders on the maintainer's own Macs) — this adds a REAL-DATA layer on top. `scripts/fleet_timings_build.py` queries PostHog HogQL for `render_completed` events (last 75 days, the maintainer's own install excluded by `distinct_id`) at three levels of granularity — cell (chip + RAM + exact length), chip (any RAM), model (any chip) — and writes `data/fleet_timings.json` (committed; a user's own panel never queries PostHog itself, only reads this table). `fleet_estimate_range()` / `fleet_calibrated_range()` (mlx_ltx_panel.py) walk that table at runtime: exact cell → same chip+RAM at a different length (scaled by the cost model's own ratio between the two lengths) → chip family → model-wide → `None` (caller falls back to the existing cost model). This install's own per-render self-calibration (VC-01) is layered on top of the fleet range, but ONLY once this Mac has finished 2+ renders — one lucky-or-unlucky render must not visibly skew a number built from hundreds of fleet renders. `ltxCellEta`/`h3CellEta` (engines.js) now show "~12-18 min" wherever the fleet has enough data for this exact shape, falling back to the model's single point estimate otherwise; the chip's tooltip says where the number comes from ("based on 523 renders on Macs like yours" / "estimated — few renders on this Mac class yet"). **Release process:** `scripts/fleet_timings_build.py` must run before every release (docs/RELEASE_CHECKLIST.md §3c) — the table is a snapshot, not live. **Tests:** `test_fleet_timings.py` (loader, three-level fallback order including the scaled-length case, range formatting, calibration gating on sample count, and that the runtime key-builder matches the build script's byte-for-byte).
diff --git a/test_render_check_4170.py b/test_render_check_4170.py
index cc2daf5..c6a069f 100644
--- a/test_render_check_4170.py
+++ b/test_render_check_4170.py
@@ -196,5 +196,46 @@ console.log(JSON.stringify(els.audioStudioDurationWarn.style.display === 'none'
self.assertNotIn("Math.round(AUDIO_STUDIO.audioDuration)", src)
+class TheClipToolbarFitsThePlayer(unittest.TestCase):
+ """Render check at 1440x900: the 4.17 landscape toolbar (ten actions)
+ wrapped every label over 2-3 lines and the Finish button covered the
+ clip's name — the only compact rule was a 1100 px viewport query."""
+
+ def _level(self, surface_w, widths, attrs=None):
+ fn = extract_function("fitPlayerActions", QUEUE_JS)
+ js = """
+const attrs = %s; const style = {props: {}, setProperty(k, v) { this.props[k] = v; }, removeProperty(k) { delete this.props[k]; }};
+const W = %s;
+const bar = { getClientRects: () => [1], getBoundingClientRect: () => ({width: W[attrs['data-po-compact'] || '0']}) };
+const surface = { clientWidth: %d, style,
+ hasAttribute: k => k in attrs, getAttribute: k => (k in attrs ? attrs[k] : null),
+ setAttribute: (k, v) => { attrs[k] = v; }, removeAttribute: k => { delete attrs[k]; },
+ querySelector: () => bar };
+const document = { querySelector: () => surface };
+""" % (json.dumps(attrs or {}), json.dumps(widths), surface_w) + fn + """
+fitPlayerActions();
+console.log(JSON.stringify([attrs['data-po-compact'] || null, style.props['--po-actions-w'] || null]));
+"""
+ return _node(js)
+
+ def test_labels_drop_in_steps_until_the_cluster_fits(self):
+ W = {"0": 1000, "1": 620, "2": 560}
+ self.assertEqual(self._level(1500, W), [None, "1000px"])
+ self.assertEqual(self._level(908, W), ["1", "620px"])
+ self.assertEqual(self._level(711, W), ["2", "560px"])
+
+ def test_beside_the_picture_layouts_are_left_alone(self):
+ W = {"0": 1000, "1": 620, "2": 560}
+ self.assertEqual(self._level(300, W, {"data-orient": "vertical"}), [None, None])
+ self.assertEqual(self._level(300, W, {"data-fit": "narrow"}), [None, None])
+
+ def test_labels_never_wrap_and_both_layout_paths_refit(self):
+ css = (ROOT / "webapp" / "style" / "panel.css").read_text(encoding="utf-8")
+ self.assertIn(".po-act-label { white-space: nowrap; }", css)
+ self.assertIn('.player-surface[data-po-compact="2"] .po-act .po-act-label { display: none; }', css)
+ self.assertIn("padding-right: calc(var(--po-actions-w, 0px) + 24px);", css)
+ self.assertGreaterEqual(QUEUE_JS.count("fitPlayerActions();"), 2)
+
+
if __name__ == "__main__":
unittest.main()
diff --git a/webapp/js/queue.js b/webapp/js/queue.js
index 4e51b0d..b006eb5 100644
--- a/webapp/js/queue.js
+++ b/webapp/js/queue.js
@@ -4897,6 +4897,7 @@ function _fitStagePlayerNow() {
const free = stage.clientWidth - surface.offsetWidth;
if (free >= PLAYER_SIDE_ACTIONS_MIN * 2) surface.setAttribute('data-fit', 'narrow');
else surface.removeAttribute('data-fit');
+ fitPlayerActions();
});
}
let _stageFitWired = false;
@@ -5194,6 +5195,37 @@ function selectOutput(path, options) {
if (typeof _syncFinishAffordance === 'function') {
try { _syncFinishAffordance(isPhoto ? null : o); } catch (e) {}
}
+ fitPlayerActions();
+}
+
+// THE CLIP TOOLBAR FITS THE PLAYER (4.17.0 render check). 4.17 grew the
+// landscape toolbar to ten actions (Finish at, New take, Retake a moment, To
+// film …) and the only compact rule was a 1100 px VIEWPORT query, so at a
+// 1440 px window every label wrapped over two or three lines and the Finish
+// button sat on top of the clip's name. Labels never wrap now; the cluster is
+// measured against the player it sits on and, when it would take more than
+// ~70% of the width, sheds labels in two steps — the secondary actions first,
+// then everything but the priced Finish button (icons keep their tooltips).
+// The clip name/meta line stops where the cluster starts (--po-actions-w).
+// Beside-the-picture layouts (portrait, data-fit="narrow") are a column of
+// full labels and are left alone.
+function fitPlayerActions() {
+ const surface = document.querySelector('.stage-pane > .player-surface');
+ if (!surface) return;
+ const bar = surface.querySelector('.player-overlay-actions');
+ surface.removeAttribute('data-po-compact');
+ const beside = surface.hasAttribute('data-fit')
+ || surface.getAttribute('data-orient') === 'vertical';
+ if (!bar || beside || !surface.clientWidth || !bar.getClientRects().length) {
+ surface.style.removeProperty('--po-actions-w');
+ return;
+ }
+ const room = surface.clientWidth * 0.7;
+ for (const level of ['1', '2']) {
+ if (bar.getBoundingClientRect().width <= room) break;
+ surface.setAttribute('data-po-compact', level);
+ }
+ surface.style.setProperty('--po-actions-w', Math.ceil(bar.getBoundingClientRect().width) + 'px');
}
// Expand lightbox — full-viewport viewer for the active output. Reuses
diff --git a/webapp/style/panel.css b/webapp/style/panel.css
index 36999f9..860301d 100644
--- a/webapp/style/panel.css
+++ b/webapp/style/panel.css
@@ -7600,6 +7600,19 @@
border-top: 1px solid rgba(255,255,255,0.08);
}
+ /* Landscape toolbar sized to the player (fitPlayerActions, queue.js):
+ labels never wrap; data-po-compact="1" drops the secondary labels,
+ "2" every label but the priced Finish button. The clip name/meta stop
+ where the cluster starts instead of running underneath it. */
+ .player-overlay-actions { width: max-content; }
+ .po-act-label { white-space: nowrap; }
+ .player-surface:not([data-fit]):not([data-orient="vertical"]) .player-overlay-top {
+ padding-right: calc(var(--po-actions-w, 0px) + 24px);
+ }
+ .player-surface[data-po-compact] .po-act:not(#newTakeBtn):not(#continueSongBtn):not(#windowsContinueBtn) .po-act-label,
+ .player-surface[data-po-compact="2"] .po-act .po-act-label { display: none; }
+ .player-surface[data-po-compact] .po-act { padding: 6px 7px; }
+
/* Compact mode at narrow widths — hide labels, keep icons. */
@media (max-width: 1100px) {
.po-act .po-act-label { display: none; }