forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 8a96a5a9416618de58a71ba056ec005f018a22ae

2026-08-26

🐛 fix(engine): cancel an mp4 import mid-moov, same as the mkv armAhmet Kaan Gümüş · 8a96a5a
🐛 fix(engine): cancel an mp4 import mid-moov, same as the mkv arm

Mp4Reader::read_header ran the whole moov parse uncancellable while
the Matroska arm's walk polled the flag per element -- a cancelled
import of a big mp4 blocked until the header finished (debts #57/#58).
Wraps the BufReader<File> handed to Mp4Reader in a CancelableReader
that checks demux::cancelled() on every read(), surfacing a "read
cancelled" io::Error the mp4 crate propagates as-is, so is_cancelled
classifies it the same way as the mkv path. No fork of the mp4 crate.
🧪 test(app): assert the bitrate refusals on the shared NumberEdit itselfAhmet Kaan Gümüş · 9dc7454
🧪 test(app): assert the bitrate refusals on the shared NumberEdit itself

Lane E left commit_mbps dead in the live build (the card now commits through
ui::widgets::NumberEdit) while tests still asserted the dead fn's wording —
a placebo. The fn is gone; the same empty/zero/floor/ceiling refusals are
asserted on the widget, the door the card actually uses.
✨ feat(ui): type-in for the transition duration row (DEBT #111)Ahmet Kaan Gümüş · 1110ca4
✨ feat(ui): type-in for the transition duration row (DEBT #111)

Generalizes export_ui.rs's NumberEdit into ui/widgets.rs with a caller-owned
range/digit-cap/unit instead of the hardcoded Mbps constants, adds a
commit_clamped() alongside the existing refuse-on-commit commit() for rows
whose stepper already clamps silently, and wires it into the Clip tab's
transition duration row (click to open, digits/backspace/enter/esc through
Player::param_card_key, commit through the same set_transition_frames the
± steppers now share).
✨ feat(app): keyboard trim-to-playhead (debt #42)Ahmet Kaan Gümüş · ba764f9
✨ feat(app): keyboard trim-to-playhead (debt #42)

Trim was pointer-only. Adds TrimInToPlayhead/TrimOutToPlayhead on
ctrl+{/ctrl+} (the bracket family's last free rung: bare [ ] nudge,
{ } walk selection, ctrl+[ ctrl+] jump sync points), wired through the
same PlaybackSession::trim_clip primitive the pointer drag commits
with, gated by the oracle on a subject cut with the playhead on it,
and given the same spine widget home as the nudge pair.
🐛 fix(engine): reopen the audio device past a silent first sourceAhmet Kaan Gümüş · c322a69
🐛 fix(engine): reopen the audio device past a silent first source

PlaybackSession::open_project pinned the device to the first non-image
source (audio_source_of) with no check that source actually had a
track. A silent leading source (a clip with no audio) left every later
source unheard for the whole session. Now the scaffold walks forward
past a silent candidate to the first source that really opens a
device.

Regression test in audio_files.rs proves the scan reaches a second
source's audio (verified via audio_disabled_reason, since this sandbox
has no PipeWire device to tap samples from).
⚡️ perf(engine): row-parallel tonemap + i420_to_bgra to hit the 39ms/frame HDR budgetAhmet Kaan Gümüş · 48cb81f
⚡️ perf(engine): row-parallel tonemap + i420_to_bgra to hit the 39ms/frame HDR budget

4K HDR10 film via VA-API: 81.2 ms/frame → 26.0 ms/frame against the 39 ms
budget in hw_decode::the_hdr_film_renders_tone_mapped. Math untouched —
ToneMapper::map fans per-band chroma rows and i420_to_bgra fans row chunks
across available_parallelism() lanes via std:🧵:scope (the same idiom
HevcEnc::code_batch already uses); correctness suites pass unchanged.
🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweepAhmet Kaan Gümüş · b05a649
🐛 fix(app,engine): pay debts — audio-only fallbacks, panic-proof proxy, .part sweep

Twelve debts paid in one batch:

- engine: NoVideoTrack fallback at every video door — open_stream,
  open_project scaffold, and import() now route a video-extension file
  whose header holds no picture to the audio-only path instead of
  refusing (argv open, saved-project reload, and library import).
- engine: proxy/export worker wrapped in catch_unwind — a decoder panic
  settles the shared slot with Err instead of stranding Making/Cancelling.
- vendor/cros-codecs: AV1 setup_shear multiplies checked — malformed warp
  params are a parse error, not a process abort (live-proven on an AV1 film:
  clean PROXY FAILED notice, slot released, app alive).
- engine: startup sweep of orphan proxy .part files.
- app: Player::has_video probe cache — lane_refuses gates drops on the
  probed kind, not the extension; Silences hidden on soundless clips;
  audio import toast names rate/channels/length; stale no-session proxy
  label cleared.
- tests: audio-only mp4 fixture + gen_fixtures.sh line, 2 engine
  NoVideoTrack tests, toast/lane/view cases (246 bin + 14 audio_files).

Harness-proven this batch (runs 20260826-2306..2315): split-at-playhead
with undo, lane-remove mouse door, fade-out drag, argv audio-only open,
AV1 proxy clean failure.
🔥 remove(ui): the legacy tree — darkroom is the only roomAhmet Kaan Gümüş · 5dcc6c2
🔥 remove(ui): the legacy tree — darkroom is the only room

Delete the whole legacy UI (timeline.rs, toolbar.rs, inspector.rs, legacy
render body, OLD_GUI gate — the env read is gone, not a switch) and every
helper only it reached: ~6,900 LOC out. Darkroom stance is the only room.

Real gaps the removal flushed out, fixed here:
- typed bitrate in the export card was completely dead — NumberEdit
  digits/backspace/enter/esc now wired in param_card_key
- ActionId::CancelExport was a no-op while the progress card promised the
  chord — now calls cancel_export (ctrl+esc, oracle-enabled during export)
- actions card had no pointer entry — "?" ghost is clickable, scrim
  click closes, inner list swallows
- snap toggle got a button beside zoom-fit in the VIEW group

Dead-by-construction machinery deleted with its tests: key rebinding
(rebinding/rebind_action/capture never set live), keys_search (no search
box exists), cancels_export/format_key/next_audio_kbps, 17 layout.rs
consts/fns, and the rest of the 32 no-—tests dead-code warnings; both
`cargo build -p edith` and `--tests` are warning-free, 245 tests green.
🐛 fix(ui): guard focus ring to darkroom + ctrl-click uses press modifiersAhmet Kaan Gümüş · 6da98cd
🐛 fix(ui): guard focus ring to darkroom + ctrl-click uses press modifiers

FocusPanels (F6) called window.focus on the ring's handles even under
OLD_GUI=1, where the legacy tree never mounts them -- an unmounted focus
target kills all key dispatch until a mouse click. focus_surface now
no-ops when !self.darkroom, the single door every route goes through.

ClickEvent::modifiers() answers the mouse-up modifiers, so releasing
ctrl before the button undid a ctrl-held toggle decided on mouse-down
(clip_box/sub_box in bench_stance.rs, timeline.rs's two clip boxes).
Added widgets::press_modifiers, reading ClickEvent::Mouse's down event
instead, at all four sites.

Also: dock_stance.rs's doc comments were swapped between transition_row
and clip_tab -- moved each back to its own fn; the transition steppers'
hitmap labels were the raw element id instead of a phrase, given
"Shorten transition"/"Lengthen transition"; and view.rs's stale comment
referencing the old window.focus(&self.focus_dock) call updated to
name focus_surface.
✨ feat(ui): transition duration row in the darkroom clip tabAhmet Kaan Gümüş · 93dd61d
✨ feat(ui): transition duration row in the darkroom clip tab

The darkroom is the default surface (legacy inspector only reachable
via OLD_GUI=1), but its CLIP tab only ever showed verb ghosts -- a
dissolve/crossfade applied via ctrl+x/ctrl+f had no row to see or
edit its duration on the shipped surface. Adds that row, reusing
ui::inspector::transition_of for the pick and Player::nudge_transition
for the clamped step; only the paint is the darkroom's own idiom.
🐛 fix(ui): mouse_down keeps the selection set so a member drag moves the whole set; click collapsesAhmet Kaan Gümüş · 7b56f0a
🐛 fix(ui): mouse_down keeps the selection set so a member drag moves the whole set; click collapses

pick() no longer collapses a multi-pick to set_one on a plain mouse_down
when the pressed clip is already selected, since the set-drag begins on
that same press. Collapsing to the one pressed clip now happens on the
matching plain on_click (gpui drops the pending click once a real drag
starts, so this never fires mid-drag) in both bench_stance.rs and the
legacy timeline.rs clip/caption boxes.
✨ feat(ui): keyboard focus ring — F6 enters, Tab cycles dock/bench/clip, Escape exits; STROKE_FOCUS in all palettes; focused surface always mountedAhmet Kaan Gümüş · 6c35250
✨ feat(ui): keyboard focus ring — F6 enters, Tab cycles dock/bench/clip, Escape exits; STROKE_FOCUS in all palettes; focused surface always mounted
🐛 fix(ui): focus ring flips the dock tab so the focused surface is always mountedAhmet Kaan Gümüş · 49bd1d0
🐛 fix(ui): focus ring flips the dock tab so the focused surface is always mounted

Player::focus_surface flips dock_src_active (via surface_wants_src_active)
before window.focus lands on Dock/Inspector, so the handle being focused
always has a mounted tree node -- focusing the unmounted tab's handle left
gpui with no key listener anywhere, killing keyboard input until a mouse
click. Routes all three focus-move sites (ActionId::FocusPanels, the dock's
cycle_on_key_down, stance.rs's bench handler) through the one door.
✅ test(engine): end-to-end mp4 interleave proof on the live export pathAhmet Kaan Gümüş · 2f0f298
✅ test(engine): end-to-end mp4 interleave proof on the live export path

mp4_interleaves_a_mix_that_lands_early_under_the_rest_of_the_picture
writes straight to Mp4Muxer to force the mix to land early; this adds
the losing branch's real, threaded export.rs test on top of it, so the
interleave boundary is also pinned through PlaybackSession::export_to
rather than only against a hand-constructed muxer call. Reuses this
branch's assert_no_single_stream_span_over for the run-length check
instead of duplicating its merge logic; adds a small first_pts helper
for the A/V sync assertion the losing test's ffprobe_packets covered.
🐛 fix(ui): wire the keyboard focus ring's entry door — F6 → FocusPanelsAhmet Kaan Gümüş · e404617
🐛 fix(ui): wire the keyboard focus ring's entry door — F6 → FocusPanels

The ring built in 75ea728 was unreachable: nothing ever called
window.focus on focus_dock/focus_bench/focus_inspector, so the surface
on_key_down handlers (which do move focus correctly) never fired. Adds
ActionId::FocusPanels bound to F6 (bare Tab stays Select at the root,
unstolen), dispatched in Player::act via window.focus(&self.focus_dock)
to enter the ring at its first stop. Escape inside the ring now hands
focus back to the root (ui::stance::is_focus_exit_key, mirroring
is_focus_cycle_key) instead of bubbling unanswered.
✨ feat(engine): interleave the overlapped mp4 audio pass under the pictureAhmet Kaan Gümüş · 4ba4015
✨ feat(engine): interleave the overlapped mp4 audio pass under the picture

Mp4Muxer holds ~2s of pictures and releases them merged by pts against
landed sound instead of writing whole-picture-then-whole-track;
feed_late_audio hands the mix over the moment it lands.
✨ feat(app): drag moves the whole selection, all-or-nothingAhmet Kaan Gümüş · 33ae7d9
✨ feat(app): drag moves the whole selection, all-or-nothing

A dragged clip that is itself one of the selection's picks now carries
every other pick along by the same frame delta, in one undo step, and
the selection survives the move with its indices remapped rather than
cleared. One pick refused blocks the whole set -- nothing moves, one
notice. A clip dragged from outside the selection is unchanged.

Project::move_clip is now Project::move_selection with a selection of
one, so the existing single-clip path is byte-identical.
✨ feat(ui): editable transition duration in the inspectorAhmet Kaan Gümüş · 8b3853b
✨ feat(ui): editable transition duration in the inspector

A dissolve or crossfade the anchor clip carries now grows a duration
row under selection_section's detail line -- frames, flanked by the
same −/+ steppers mbps_steppers already draws for the export card's
bitrate. Backed by Player::nudge_transition, which routes to
Project::set_transition_out (video) or Project::crossfade (audio); both
already clamp to what the successor clip offers, so a run of presses
past that room stops there. ctrl+f/ctrl+x keep seeding a fresh
transition at one second -- this only moves what is already there.

transition_of (crates/app/src/ui/inspector.rs) is the pure read: a
dissolve is transition_out > 0 on a video lane, a crossfade is both
ends of the join set (fade_out on this clip, fade_in on its adjacent
successor) on an audio lane -- told apart from a plain one-sided fade
drag by that two-sided signature. Pulled out free of Context and of
PlaybackSession, same reason split_drag_owes_save was, so it is
testable without a TestAppContext this binary has none of.
✨ feat(app): persist all five panel seam sizes, not just dock/benchAhmet Kaan Gümüş · d35aa29
✨ feat(app): persist all five panel seam sizes, not just dock/bench

Split::PERSISTED now covers library/inspector/timeline alongside
dock/bench, and split_drag_owes_save follows the same list so every
seam's release actually reaches the config file. load_stance_splits
now takes the opening window's size and clamps each loaded seam to
its own bound (SIDE_MAX_FRAC, TIMELINE_MAX_SHARE, BENCH_MIN_H) so a
file written at one window size can't hand another an illegal layout.
🐛 fix(app): loop honors the i/o range, priority range > trim > timelineAhmet Kaan Gümüş · 0d4b12a
🐛 fix(app): loop honors the i/o range, priority range > trim > timeline

Player::pump and the Ended crossing both restarted only inside
loop_trim or the whole timeline, ignoring a marked i/o range
entirely. active_loop_window() now picks range > loop_trim > whole
timeline, gated so a bare range with neither loop_on nor loop_trim
never starts looping un-looped playback -- it is an export mark
first. Loop button tooltip names which window is in force.
🎨 style(ui): re-add STROKE_FOCUS palette token for the focus-ring taskAhmet Kaan Gümüş · 59c625d
🎨 style(ui): re-add STROKE_FOCUS palette token for the focus-ring task

Reverses 070a260's deletion: the C2 focus-ring feature lands on top of
this in the same worktree next. Values verbatim from that commit's
history; no #[expect(dead_code)] needed since the const is consumed
via the palette!-macro struct-field construction, not a bare unused
item.
🐛 fix(ui): wrap long notice-plate text instead of overflowing the boxAhmet Kaan Gümüş · 9e3e5bc
🐛 fix(ui): wrap long notice-plate text instead of overflowing the box

notice_plate's max_w(480) only bounds the div; a bare text child of a
flex row measures min-content as the whole line, so GPUI never gave it
a Definite width to wrap against. Same shape as overlays.rs's notice
bar: wrap the text in a flex_1 child so it inherits the container's
resolved width.

2026-08-22

🐛 fix(engine): H.264 level_idc from Table A-1 on the software seat tooAhmet Kaan Gümüş · 4a00a35
🐛 fix(engine): H.264 level_idc from Table A-1 on the software seat too

rusty_h264 left level_idc at its default 3.0, out of spec above 720p30.
The Table A-1 lookup moves from the plugin into engine::export so both
seats write the same byte; the plugin maps it onto the vendored enum.
Verified: a 2560x1440@30 software export now carries level 5.0.

Also vendors proc-macro-error2 2.0.1 with its `pub use proc_macro;`
re-export dropped (E0365 future-incompat, the one warning left on a
workspace build; nothing names that re-export).
🐛 fix(engine-hw): rewrite H.264 frame_num/POC the driver zeroesAhmet Kaan Gümüş · 2436826
🐛 fix(engine-hw): rewrite H.264 frame_num/POC the driver zeroes

mesa radeonsi (26.1.7) writes its own slice headers and ignores the
frame_num and pic_order_cnt_lsb cros-codecs passes in, so every slice of
every export carried 0 for both. Desktop decoders tolerate it; stateful
phone decoders judder at every GOP (measured on three real exports).

slice_fix rewrites both fields per access unit on the plugin side
(frame_num on reference pictures, POC per picture, IDR resets), and the
level_idc now follows Table A-1 / Table A.8 instead of a hard-coded L4.
Header-only: macroblock data is byte-identical, bitrate unchanged.

Verified: ffmpeg trace_headers on a plugin dump (frame_num 0..31 wrap,
POC 2n, IDR restart, level 40 at 1080p30); 2560x1440 re-export plays
clean on the phone that juddered before.

2026-08-21

merge oldui-fix1Ahmet Kaan Gümüş · 1638944Browse files
merge oldui-hitmap2Ahmet Kaan Gümüş · 484d07dBrowse files
merge oldui-dissolveAhmet Kaan Gümüş · 488d138Browse files
merge oldui-hitmapAhmet Kaan Gümüş · b90da6dBrowse files
fix: format Darkroom integrationAhmet Kaan Gümüş · 9a27ee6Browse files
merge oldui-homesAhmet Kaan Gümüş · ce03245Browse files
merge oldui-glyphsAhmet Kaan Gümüş · 30984faBrowse files