Commits
Commits on
bdcc2fb140ba69c613d5d19f64a95fa6d7bedd122026-08-11
✨ feat(backends): the decoder and the encoder say which one is runningAhmet Kaan Gümüş · bdcc2fb
✨ feat(backends): the decoder and the encoder say which one is running A source names its decoder in the library row before anything plays, the transport line names the running one while it does, and the export card names the encoders it would open before the button — the progress line naming the ones it did. Every answer is measured, never promised: `decode::probe` picks a seat by the very rules `open_worker` picks one, the worker publishes what it actually opened (so a hardware session that falls back to software says so), and `export::planned_video` opens the very VA-API encoder the export would and closes it again. `hw_seat` is now the single place that choice is made, so a card and a running job cannot drift apart.
2026-08-10
🔀 merge(T1): mkv HEVC + 5.1 AAC import meets the EQ exportAhmet Kaan Gümüş · 1dc163e
🔀 merge(T1): mkv HEVC + 5.1 AAC import meets the EQ export One rusty_aac, not two: the branch's vendored 0.5.0 (patched IMDCT) is what the workspace patch table points every dependant at, so T5's encoder and this branch's decoder are the same crate. The auto-merge had left two identical `rusty_aac` keys in the engine manifest, which is a duplicate-key error -- one entry now, its comment naming both halves. The three prose conflicts were all one shape: this branch wrote 'no AAC encoder is wired here' while T5 was busy wiring one. T5's wording wins in each. Where main's Av1 doc said this engine's reader 'refuses Matroska audio' the claim is now false the other way round, so that sentence keeps main's writer half and takes this branch's reader half.
✨ feat(import): a Matroska film opens, its 10-bit picture and its 5.1 sound alikeAhmet Kaan Gümüş · b083a3b
✨ feat(import): a Matroska film opens, its 10-bit picture and its 5.1 sound alike mkv HEVC demux (Main/Main10), a P010 pool in the hardware path read back to I420, mkv audio through symphonia's Matroska reader with rusty_aac decoding what symphonia's own AAC refuses (anything wider than stereo), and a BS.775 fold of 5.1 down to the stereo the output device takes. vendor/rusty_aac is 0.5.0 with one local patch: its decoder's IMDCT caches the cosine matrix instead of calling cos() per term, 11x faster and the difference between playable and not.
🔀 merge(T6): zero-source survival + boundary-cardinality class fixesAhmet Kaan Gümüş · 5ef2783Browse files
✨ feat(timeline): the timeline zooms in on the frame you are looking atAhmet Kaan Gümüş · 6dd5951
✨ feat(timeline): the timeline zooms in on the frame you are looking at One mapping, View, turns a moment into a place on the bed and back: the ruler, every clip box, the silence marks, the playhead, a click-seek and an edge drag all read it, so nothing can drift away from the rest when the view moves. At the fit it is the arithmetic the panel already did (start_frac is gone into it), so an unzoomed timeline is drawn exactly as it was. Zoomed, the anchor -- the playhead for a key, the pointer for ctrl+wheel -- stays where it is on screen, out stops at the whole timeline, in stops at eight frames across the bed, and a playhead that runs off the slice pulls the view after it, which is how a zoomed timeline scrolls while it plays. The keys are the chords every editor magnifies with (ctrl+= / ctrl+- / ctrl+0, the bare pair being the volume), the two steppers repeat while held, and the three buttons beside the resolution are the pointer's way to all of it.
✨ feat(ui): every setting has a button, not only a keyAhmet Kaan Gümüş · b362ed5
✨ feat(ui): every setting has a button, not only a key The audit the ask names, and what it found missing. The project resolution was ctrl+r and nothing else, undo was a stroke, an export could only be cancelled with escape, copy and paste had no door at all, the silence card was seven settings a pointer could pick but never move, and the scan itself was a key with no menu item. Each of them now has the pointer path its stroke always had -- the resolution cycles on a button that says where it is, the export button becomes the cancel while one runs, the clip menu carries the clipboard pair and the silence card, and every silence row has its own two steppers, on the same nudge the arrows call. The clip menu's list scrolls past twelve items so a longer menu cannot hang its last item off the window, and the toolbar scrolls sideways for the same reason: at 640 px it was already wider than the panel, and Keys was off the edge before any of this was added. every_action_is_reachable_without_the_keyboard keeps the audit from rotting: no ActionId may be a stroke and nothing else.
🔀 merge(T6): the last media leaves, and nothing assumes source 0 stayedAhmet Kaan Gümüş · 7e4ead7
🔀 merge(T6): the last media leaves, and nothing assumes source 0 stayed Both sides kept: the library-removal slice (a project may name no file, the audio reference is never a still, the clipboard follows its file down the list, a silence edit drops the selection) and main's EQ audio export, image left-trim, track removal, volume slider, hold-repeat and EQ spectrum. The one textual conflict was the test import list; close_session now also drops the gestures and caches those slices added.
🐛 fix(library): the last media leaves and nothing assumes it stayedAhmet Kaan Gümüş · 96c9fbeBrowse files
🐛 fix(export): an equalized mp4 re-encodes the sound the copy could not carryAhmet Kaan Gümüş · 33f7a15Browse files
🔀 merge(T13): EQ graph — live spectrum, gridlines, band readoutAhmet Kaan Gümüş · 6686ecdBrowse files
Merge branch 'main' into worktree-agent-a46e3271de2d17ff3Ahmet Kaan Gümüş · 700a973
Merge branch 'main' into worktree-agent-a46e3271de2d17ff3 # Conflicts: # crates/app/src/keymap.rs # crates/app/src/main.rs
✨ feat(ui): held keys run the sliders, silence speaks dB or dBFS up to full scaleAhmet Kaan Gümüş · 7367dd2Browse files
✨ feat(panel): the volume is a slider, and an empty timeline refuses to playAhmet Kaan Gümüş · c377b3d
✨ feat(panel): the volume is a slider, and an empty timeline refuses to play The level is a hundred steps now rather than twenty, so a drag along the bar reads as continuous; the keys still move five percent a press and mute is still the button beside it. And a timeline with nothing on it is end-of-stream from its one black frame onward, so the transport read it as "played out" and restarted a clock that had nothing to run against: the button said Pause and no press of it ever paused. Nothing to play is a message now, and the button dims -- unless it is playing, which a delete can leave it doing.
🐛 fix(timeline): a still stretches out from its left edge like its rightAhmet Kaan Gümüş · bbc3499Browse files
✨ feat(timeline): a jumpcut reaches as far as you tell it toAhmet Kaan Gümüş · 88fbed0
✨ feat(timeline): a jumpcut reaches as far as you tell it to A ripple used to be the whole timeline's business. It is a choice now: the card's first row says whether an apply reaches this take (its picture and its sound), this track alone, or every track -- and a track nobody named does not move, which is how a podcast track loses its silences while the music under it stays where it was. The engine takes an arbitrary set of lanes, not a kind or a range, so what "selected" means stays the front-end's business. It refuses, by name, a scope that would take one half of a take with it rather than quietly widening to the other half: widening would edit a track the user did not name, which is the surprise scoping exists to end. Naming the take is a row, and detaching is the other answer -- the refusal says both. The notice names what it reached: "5 SILENCES CUT on A1 — other tracks untouched".
🐛 fix(timeline): a silence refusal names the file and the frame it meansAhmet Kaan Gümüş · 564ba30
🐛 fix(timeline): a silence refusal names the file and the frame it means
A still handed to the silence card answered in the mp4 demuxer's words
("a box with a larger size than it"), which is true of a container and
useless to a person: a picture has no sound for the same reason a silent
video has none, so it is refused in the same sentence, by name.
And a rate that cannot be cut at the *end* of a silence said the start
instead -- a frame the cut would have been fine at, and the wrong place to
send anyone looking.✨ feat(timeline): silences are cut out or played fast in one pressAhmet Kaan Gümüş · d4ac3fc
✨ feat(timeline): silences are cut out or played fast in one press A scan of the selected clip's own sound (RMS dBFS over 20 ms windows, off the decode path the waveform already takes) marks every silence on the lane before anything moves; `enter` cuts them all out with a ripple, `f` plays them at 4x with the room they no longer need closed behind them. Either way it is one edit and one undo press, however many it found. Four numbers, all keyboard-driven from the card: the threshold, the quiet short enough to forgive, the padding kept either side of speech, and the kept sliver short enough to swallow -- the last of which is what stops a breath between two silences surviving as one-frame confetti. `set_speed` does not ripple, so speed mode closes the gaps itself; a clip on another lane lapping over a silence is refused by name, because the lanes would shrink by different amounts. A source with no audio track at all is refused by name too rather than read as one long silence. Output is ordinary clips: `.edith` stays v8.
🐛 fix(timeline): a hole punched into a slow clip leaves no overlapAhmet Kaan Gümüş · c892972
🐛 fix(timeline): a hole punched into a slow clip leaves no overlap `place` punches a hole with `clear`, and `clear` handed the remainder whatever source range rounding produced. At a quarter speed one source frame *is* four timeline frames, so a punch three frames into such a clip left a head that reached past the hole and overlapped what was placed -- the lane invariant, broken by the one edit that is allowed to overwrite. `Speed::fit` now answers `None` for a room nothing fits in and both remainders go through it: no fit, no remainder. The sweep that found it found a second of the same shape. `set_speed` put one rate on a whole linked group without asking whether the group still covered one span: two halves of *different source lengths* can occupy the same frames at 4x (rounding collapses neighbouring lengths onto one footprint) and re-rating them pulls the halves apart, which is a project that will not load again. Refused by name now, like the collision is. The trim walls move with it: one frame of clip always survives, and at a rate below real time one frame of clip is several frames of timeline (`Speed::room`). A trim that cannot fit refuses before it snapshots rather than writing a range wider than its room. Both fuzz sweeps go to 2000 seeds -- 200 walked straight past this, and a sweep this cheap has no business being the narrow one -- and place now lands speeded clips over speeded clips on purpose. Falsified: with the guard removed, `place`'s own `sorted_disjoint` assert fires. Grafted from the rival build of this feature, which the judge preferred on these three points: - floor/ceil pairing on `Speed`: `source_at` (floor) is what an export encodes, `timeline_at` (ceil) is the stamp playback puts on a decoded frame, and the pair makes the frame the pump is holding *exactly* the frame the export writes, at every rate (`speed_maps_both_ways`, 3751 speeds). The floor/floor this had put the preview a whole held frame off the export at slow rates. - the picture now **honours** a rate: the export walk takes the source frame each timeline frame shows and encodes a held one again rather than decoding it twice. `Span::source_len` reads the last shown frame's own source frame and not one more. - the refusal narrows to the mp4's *copied audio lane* only. AV1 has no audio to copy and honours a speeded take whole; WAV and FLAC always did. EVIDENCE: a mixed-rate mp4 (2x then 1x on one lane) reopens as 135 frames at 30 fps and its bright frames are exactly [15, 16, 75, 76, 77, 78] -- the fixture's four-frame flash halved inside the fast clip, whole inside the slow one -- read back both by the engine's own decoder and by ffmpeg.
✨ feat(timeline): clips play at a speed of their ownAhmet Kaan Gümüş · f8effe8
✨ feat(timeline): clips play at a speed of their own A clip gains a rate (`Speed`, thousandths of real time, 0.25x to 4x) and every speed question is answered at the mapping seams that were already there: `Clip::frames` is the source range divided by the rate, `end` is built on it, and `map`/`span_at`/`composite_span_at` walk the offset through `Speed::source_at`. `in_frame`/`out_frame` stay *source* frames, so a trim and a split still address the file. The picture needs no new decoder: the span says how many source frames it reads, and `try_frame` brings the decoder's numbers back through the same rate -- at 2x two decoded frames land on one timeline frame and the display's drop-when-behind policy takes it from there. The sound is resampled per segment inside the worker playback and the audio export already share (linear interpolation, carried across packet seams), so the pitch moves with the rate: tape, not pitch-preserve, and the card says so. Each segment is told how much timeline it owes and pads or trims to it, which is what keeps a run of speeded cuts from drifting. Rounding is where a rate could break the lane, so it does not: `Speed::fit` never hands a trim more source than its room holds, and `Speed::split_at` refuses a cut a slow clip's rate cannot address rather than leaving two halves that no longer add up. The fuzz sweeps set_speed in with the rest. - card in the eq/colour pattern, on `j` and in the clip menu; a drag is one undo step for the whole linked group, 1.00x reachable by hand and by `r` - clip boxes carry a "2.00x" mark, and their width, waveform and details row are the timeline length - WAV/FLAC honour it; mp4 and AV1 *refuse* by name -- that path copies AAC packets and a resample is not a copy (ponytail names the upgrade path) - .edith v8 carries the rate; v7 and older load at 1.00x - `assets/test_speed_sync.mp4`: one flash, one beep, same instant. At 2x they still land together, to the frame.
🐛 fix(timeline): a pasted still never lands on the audio laneAhmet Kaan Gümüş · b586b85
🐛 fix(timeline): a pasted still never lands on the audio lane `Project::paste` routed by `is_audio` alone, so a *copied* still clip -- the one door that does not go through `place_stream_at` -- was pasted as a grouped take across `V1` and `A1`. The A1 half is a PNG the audio worker demuxes: "file contains a box with a larger size than it", which silences the whole session rather than that clip, and the save it writes is one `open_project` then refuses by name. An `is_image` arm mirrors the audio-only one. Same-shape sweep of every clip-level door that routes by source kind: - `Project::paste` (project.rs) -- this defect, fixed. - `PlaybackSession::place_stream_at` -- already routed, image arm returns on the video lane before the audio fork. - `PlaybackSession::open`/`open_project` -- both directions refused by name at load. - `Project::move_to_lane` -- refuses a move across kinds, so no clip can cross by drag. Clean. - `Project::place`, `split`, `regroup`, `lift`, `delete_in`, `trim` -- the caller names the lane or the lane never changes. Clean, and the loader is the backstop for a hand-written file either way. - `Player::insert_source` (app) -- guarded both ways already. Falsification: with the `(_, true) => &[LaneKind::Video]` arm removed the new test fails at the lane count (A1 1 -> 2), and with that assertion lifted it fails on the WAV export with the demux error above -- the two consequences the test names, both reachable. Two doc corrections found with it: `Still::open` now says alpha is dropped by `to_rgb8` (a transparent PNG lands opaque, with the blend as the ponytail), and `first_audio_of` no longer implies an image-first timeline accepts a later audio import -- it widens which source is asked, not what "the timeline is silent" means. tests: images 7/7 (new `pasting_a_copied_still_never_reaches_the_audio_lane` asserts no A1 clip, no audio clip from a picture, the WAV export still carries the sound, and the save reopens), engine lib 155, saveload 12, audio_files 16, lanes 5 (serial), bin 56.
Merge branch 'main' into worktree-agent-ae7a2aef268502a46Ahmet Kaan Gümüş · 934361c
Merge branch 'main' into worktree-agent-ae7a2aef268502a46 # Conflicts: # crates/engine/Cargo.toml
✨ feat(timeline): still images import and place as clipsAhmet Kaan Gümüş · 30d430d
✨ feat(timeline): still images import and place as clips A PNG, JPEG or WebP is a source like any other: it imports into the library, drags onto a video lane, shows at the playhead, trims, saves and exports. `engine::is_image` is the door, beside `is_audio`, and every choice it forces is made in one place. The decisions, spelled out: - Extensions: png, jpg, jpeg, webp -- exactly what the `image` crate is built with here. Anything else is refused by the door that refuses a .txt. - Length: an image has none, so it is *held to* ten minutes (600 s at the timeline's rate) and *placed* at five seconds. The cap is finite on purpose -- a u32::MAX sentinel would hand a trim drag a wall past anything the timeline can hold -- and it is recomputed identically at load, so a clip trimmed out to it reopens. - Image-first project: its own picture is the canvas (a still *has* a resolution, unlike a song) at 30 fps, silent, one 5 s clip on V1. The A2 audio-only precedent for everything else. - Scaling: none of its own. The still is decoded once to I420 and goes through the same grade, the same `Composer` and the same conversion a decoded picture does, so a 640x360 image on a 1280x720 canvas is letterboxed by its fit policy and never stretched. - Lanes: the mirror of a song. A still goes on the video lane it was asked for or on V1, never on an audio one, and never as a grouped take -- a clip on A1 playing a PNG is a segment the audio worker cannot open. Hand-written projects are refused by name. - The timeline's audio parameters are now the first source that *could* have any, so an image as source 0 no longer holds every later import to its silence. Playback opens a still worker (one conversion, then a memcpy per frame, as the black-gap worker does); the export's `ClipDecoder` hands the same planes out for as long as the span runs, so a mixed video/still timeline encodes at the cut. tests: engine/tests/images.rs -- import registers only, placed pixels match the file's own (top/bottom bands catch a flip, RGB order catches a swap), trim walls at the cap, .edith round trip incl. the audio-lane refusal, mp4 export pixel-checked at the cut, audio-lane placement lands on V1. Fixture: scripts/gen_fixtures.sh writes assets/test_still.png.
🔀 merge(export): AV1 format meets the library-only importAhmet Kaan Gümüş · c5aa329
🔀 merge(export): AV1 format meets the library-only import Test import list resolved: format_key/format_refusal in, mp4_refusal and the deleted lane_clips/source_frames helpers out.
🔀 merge(import): library-only import meets the library row menuAhmet Kaan Gümüş · b514187
🔀 merge(import): library-only import meets the library row menu The row menu (C3) and the source lengths this branch made native meet in one place: the card's Length line and its "plays in N clips" count now read the engine's own `file_frames` and walk `session.lanes()`, since the app's clips-derived length helper and its free `lane_clips` walker are gone. Two tests assumed an import that places: `removing_a_source_takes_its_frame_ count_with_it` and `removing_a_row_is_refused_while_it_plays_and_takes_the_ row_away` both need a take on the timeline to have something to refuse, so each drags its import onto the end first. New coverage: the audio fork of `open_library` -- a song as the first import into an empty window. Empty timeline over the 1920x1080@30 song canvas, the row at its own 90 frames, not undoable, a file it never took in refused by name, and the drag that follows plays it on A1 alone.
✨ feat(export): AV1 comes back out, in a Matroska file this editor reopensAhmet Kaan Gümüş · dd3a2a8
✨ feat(export): AV1 comes back out, in a Matroska file this editor reopens
The export card's second picture format. AV1 already *arrives* here as
Matroska (`mp4 0.14` has no `av01` sample entry at all, so `demux` walks
the EBML by hand); it now leaves the same way, through an `MkvMuxer`
written beside the mp4 one -- EBML header, `Info`, one `V_AV1` track whose
`CodecPrivate` is a real `av1C` record built from the first keyframe's
sequence header OBU, then clusters that open on every keyframe. The
segment size and the duration are the only two fields patched at `finish`.
Matroska rather than AV1-in-mp4 because the reader for it already exists:
the round trip closes against this project's own `Demuxer`.
Picture only, and said so on the row before a destination is picked ("AV1
picture in .mkv — no sound: export WAV or FLAC for that"). Matroska
carries no sound this project can *write* -- no AAC or Opus encoder here
-- and an AAC track copied in would be one this engine's own reader leaves
silent (`AudioSession::open` refuses Matroska audio). A silent track
written anyway is the one failure a user would not notice.
The encoder pair mirrors H.264's: `rav1e` in software, the plugin's new
`vh_enc_av1_open` on the GPU. The hardware seat is wired, tested and
**opt-in** (`VE_HW_AV1=1`): the vendored cros-codecs AV1 encoder took the
radeonsi box this was written on into an amdgpu hard recovery, and a
driver reset is not an export. `rav1e` is not a new dependency at all --
`ravif` already locks the same 0.8.1 -- and is built with `asm` off (no
`nasm` in this build) and `threading` on: 39 s for the 5 s 720p fixture,
progress reported the whole way.
HEVC and VP9 are rows too, refused by name: no encoder in this stack and
patent-encumbered, and superseded by the AV1 row above.✨ feat(import): imported files land in the library, never on the timelineAhmet Kaan Gümüş · 5cb33d8
✨ feat(import): imported files land in the library, never on the timeline An import is not a decision about where a file plays. It registers a source, notes its native length and stops there; the timeline changes when the user drags the row onto a lane. - `PlaybackSession::import`/`import_audio` probe, check and register only, returning the source index. No clip, no reseek, and no undo step -- a library row changes nothing playable, so there is nothing for `z` to take back, and the notice no longer pretends otherwise. - `PlaybackSession::file_frames` is the native length of a file this session has taken in, so a row that has never been placed is placeable at its full length. `place_stream_at` takes it from there instead of a `frames` argument, and the app drops the clips-derived guesser that returned 0 for a source with no clips. - `PlaybackSession::open_library` is the first import into an empty window: the file's canvas, rate and clock over an empty timeline. - Doors: the Import button, a file dropped on the window and every argv argument after the first fill the library. A file *named first* at launch is an open, not an import, and still becomes the timeline. - Fixture + tests: a 25 fps H.264 file, refused by name at both video doors.
🔀 merge(main): library row menu meets the edge-trim source lengthsAhmet Kaan Gümüş · 5f60e19
🔀 merge(main): library row menu meets the edge-trim source lengths Both sides appended a test at the same place in the app suite; both kept. Seam: `PlaybackSession::counts` (the per-source frame lengths a trim is walled by) is indexed exactly as `sources` is, and `remove_source` is the one thing that shortens that list -- so it takes the matching count out too. Left behind, the gone file's length walled the survivor and the next import landed its count one index late, tripping `note_frames`'s alignment assert.
🐛 fix(timeline): Group reaches the sound before a video layer over itAhmet Kaan Gümüş · ccd1ffa
🐛 fix(timeline): Group reaches the sound before a video layer over it `span_partner` walked the lanes in storage order, and a project file may hold them in any order: with the audio lane stored after a second video one, Group on a detached picture paired it with the layer above it and left the sound out. The walk now takes the lanes of the *other* kind first -- "group this" means the other half of the take -- and keeps a same-kind lane as the fallback, so two video lanes are still groupable where no sound covers the span. The test builds exactly that order, which only a saved project can hold: the project is written, its audio lines moved to the end, and loaded back.
🔀 merge(playback): audio-only sessions carry their frame count for trimAhmet Kaan Gümüş · a3e9dc2
🔀 merge(playback): audio-only sessions carry their frame count for trim The audio-only branch predates the trim feature's per-source counts; open_audio_only now feeds them like open does (verifier-prescribed seam fix).
🔀 merge(main): detach and group beside the colour drag and the edge trimAhmet Kaan Gümüş · 7cce619
🔀 merge(main): detach and group beside the colour drag and the edge trim The one conflict is the test module's import list: both sides added names to it, so the resolution is the union of the two.
🔀 merge(main): edge trim beside the colour drag on the root carriersAhmet Kaan Gümüş · dcd2d0f
🔀 merge(main): edge trim beside the colour drag on the root carriers Both features hang a drag off the root's mouse-move and mouse-up, which is where they collided. Kept both, in press-target order: equalizer, trim, colour, scrub. They cannot overlap -- a gesture belongs to whatever was pressed, and no two of those hitboxes are the same element.
✨ feat(audio): a song opens as a timeline of its ownAhmet Kaan Gümüş · eb9a278
✨ feat(audio): a song opens as a timeline of its own An audio file could not start a project: `PlaybackSession::open` refused every `is_audio` path because a timeline was scaffolded from source 0's *picture*. It now scaffolds the canvas instead -- 1080p at 30 fps H.264, the rate a later video import is held to -- takes its length from the audio, puts the one clip on `A1` and leaves the video lane empty, so the existing gap path plays it black while the song keeps the clock. `open_project` does the same when source 0 has no picture, so an audio-only `.edith` loads. An mp4 of such a timeline is refused by name in `export::start` (it would be black over the sound) and the export card says so on the MP4 row before a destination is picked; WAV and FLAC export as they always did. The Export button now re-asks that question too, since mp4 is the default and a timeline can lose its picture after the format was chosen.
✨ feat(timeline): a take detaches into halves and groups back togetherAhmet Kaan Gümüş · 0c00d5c
✨ feat(timeline): a take detaches into halves and groups back together
A music video's picture and its sound come apart on demand: Detach hands every
half of the group an id of its own, so each one selects, moves, trims and is
removed alone, and Group puts two clips covering the same frames back into one
take. Both are menu items and both are keys ("d" and ctrl+g), like every other
gesture here.
Engine: Project::ungroup(lane, idx) and Project::group(a, a_idx, b, b_idx), one
snapshot each, metadata only. A group id is one span on however many lanes
(links_are_consistent), so group refuses clips whose bounds disagree and names
the bounds to trim to; two clips of one lane, an index that is not there and a
pair that is already one take are refused in the engine's own words. Whatever
either side was grouped with is merged in, since all of it covers that span.
whole_take now reads the same rule on the picture as on the sound: a group id no
other lane carries is half a take on either lane, so Delete on a detached half
leaves the other half exactly where it is instead of rippling it away.🐛 fix(timeline): a ripple-closed clip's head no longer overflows on grabAhmet Kaan Gümüş · affa0a3
🐛 fix(timeline): a ripple-closed clip's head no longer overflows on grab `trim_room` read a clip's head room as `start - in_frame`, which assumes a clip never carries more source in front of it than the timeline has room for. A ripple delete leaves exactly that: cut at 5, delete the first piece, and the survivor slides back to frame 0 still holding in-point 5. Grabbing its left edge then subtracted with overflow -- a panic in debug on every pointer sample of the drag, and a wrapped `lo` in release, which is a clamp that means nothing. Saturating, because frame 0 is the other wall that room was always bounded by: a head can be pulled back to the start of the timeline and no further, whatever the file still has behind it.
🔒 fix(export): an empty timeline is refused by the engine, in every formatAhmet Kaan Gümüş · dc82aff
🔒 fix(export): an empty timeline is refused by the engine, in every format Grafted from the rival empty-timeline candidate: the app's `is_empty` refusal was the only fence, so an export started by anything that is not that button still wrote a file of no frames. The refusal now lives in `export::start`, in the rival's exact words. Placed ahead of the format match rather than inside `run`, so a WAV and a FLAC refuse in the same words an mp4 does -- `run_audio` would otherwise have written a zero-sample file or refused as "no audio to export", which names the wrong thing. The app keeps its own check: two fences, and only the app's has a keystroke to blame. The end-to-end test asserts the exact message for all three formats and that no file is left behind.
✨ feat(timeline): clips are trimmed by dragging their edgesAhmet Kaan Gümüş · 222336b
✨ feat(timeline): clips are trimmed by dragging their edges A 6 px strip at each end of a clip box takes the press the body-drag would otherwise take (gpui `occlude`), so one gesture stays one thing: an edge trims, the middle still moves the clip to another lane, and both ends still select and open the clip menu. The box follows the pointer while the button is down and the engine hears about it once, at the release -- one edit, one undo step for the whole drag, exactly as an equalizer gesture works. `Project::trim` clamps rather than refuses: one frame of clip always survives, an edge never crosses its neighbour on the lane, an in-point never walks back past the source's first frame, and an out-point never runs past the file's own last frame -- a clip ending past it is a project that will not open again. `Project` does not know how long a file is, so `PlaybackSession` now keeps the frame counts it already computes at every import and fills them in. Linked halves trim together to one clamped edge, the tightest wall of the group winning, because a link is one span on however many lanes. `trim_room` is the same clamp without the mutation: the drag asks it where the edge may land, so the width drawn is the width the release commits. A timeline drawn to fit the window has no room past its own last frame, so while a tail is dragged the bed is drawn out to as far as that tail may go -- without it the last clip could be pulled in and never let back out.