Commits
Commits on
47c08dd67ea60e0f3c529ca262714efc96908e792026-08-19
🧹 fix(engine): the inverse admits its hole, the scale law lives onceAhmet Kaan Gümüş · 47c08dd
🧹 fix(engine): the inverse admits its hole, the scale law lives once invert fabricated an answer for the frames a shift-right piece never produces -- the hole between the identity run and the piece's own image -- against its own doc. It answers None there now, and a test walks the hole asserting so. The caption scale law lived twice, one copy clamped and one not, the exact duplication that drifted a frame before: scaled_caption_frame is now the single fn both write_speed and speeded_playhead call. The successor guard saturates instead of overflowing at the clamp ceiling, and the ungrouped-layer arm of whole_take is pinned by its own test again -- a layer is lifted, never rippled.
🐛 fix(playback): a captions-only group delete clamps the playhead tooAhmet Kaan Gümüş · b980282
🐛 fix(playback): a captions-only group delete clamps the playhead too Since a grouped caption delete ripples every member's own sub lane, a caption grouped only with other captions can shrink timeline_frames() -- and the branch that said such a delete "moves nothing that plays" skipped the one clamp mechanism there is. Grouped-ness for a caption is its link alone, so the dispatch now asks that, and the caption-only group takes the Dirty::Both path like its clip-anchored kin. Cue text itself was never stale: subtitle overlay is pull-rendered every paint.
✅ test(engine): the sweep says what it covers, and asserts what it saysAhmet Kaan Gümüş · 3e1c94d
✅ test(engine): the sweep says what it covers, and asserts what it says Two asserts were disjunctions under comments claiming conjunctions -- either half passing hid real failures. One was a true conjunction (single's V1 and A1 are linked from creation, the span leaves both); the other papered over two genuinely different per-shape outcomes, now a match asserting each shape's exact state. The header claimed every mutating op and swept 8 of 37. Six new sweeps take ripple_delete, cut_regions, lift, lift_sub, move_sub, trim_sub, place, place_take, place_sub, delete, set_speed_live and retime through the laws; the ops that move no placement -- group bookkeeping, lane and source tables -- are scoped out by name instead of silently missing. retime costs no undo step by design and is swept order-only.
🐛 fix(engine): a merged group stays one placement per laneAhmet Kaan Gümüş · b1724e2
🐛 fix(engine): a merged group stays one placement per lane group_all folded pre-existing links into the new id transitively with no check on what the merge produced: two captions on one sub lane, each grouped with a different picked clip, both took the id -- a state links_are_consistent only debug_asserts against, where group_of sees the first and delete_members orphans the second. The merge is now counted per lane before anything mutates and refused by name when a lane would carry two, the same refusal remove_lane speaks.
🐛 fix(engine): the captions of a re-rate go through the map itselfAhmet Kaan Gümüş · 675eb6f
🐛 fix(engine): the captions of a re-rate go through the map itself write_speed re-timed a group's captions with its own ratio formula, round(frames * new/old) -- one frame adrift from the TimelineMap that speeded_playhead answers with (92 divergent cells over a length x rate grid; a 90f clip at 2x landed its caption's last frame on 48 while the playhead was sent to 47). The write now builds the same per-caption map and takes start and end from apply(), one source of truth. Two coverage holes closed: the caption arm of speeded_playhead (a playhead in a caption's overhang past its clip) had never been exercised; the write-vs-playhead agreement is now pinned over the grid, exact for compression, containment for expansion where apply() answers the start of a frame's new block by construction.
🐛 fix(engine): a shifted piece walks forward, a point collapse is realAhmet Kaan Gümüş · 84be3e4
🐛 fix(engine): a shifted piece walks forward, a point collapse is real A piece whose new run started before its old one collided with the identity run in front of it: apply(29)=29 then apply(30)=15, thirty frames of the domain not invertible -- against the module's own law. piece() now prepends an anchor knot at min(old.lo,new.lo), folding the band between the two los into the same collapse a removal makes, so apply stays one non-decreasing walk. new.lo==new.hi used to be refused as identity while the docs called it the removal shape; only an empty OLD run is identity now, and a literal point collapse is constructible. Docs rewritten to the truth: knots strictly increase on old, non-decreasing on new; one map per member; invert is a linear walk. The shape test now checks monotonicity and inversion over every shape: expansion, compression, both shifts, point collapse.
🐛 fix(timeline): a grouped clip is a whole take from any laneAhmet Kaan Gümüş · b1daa98
🐛 fix(timeline): a grouped clip is a whole take from any lane whole_take answered false for any clip on an added row before it ever asked whether the clip was grouped, so Delete on a grouped clip on V2/A2 routed to lift_clip and left the group's caption behind with an orphan link -- the same one-law-from-every-anchor class cdc53a6 closed on the caption side. The pairing check now comes first; the ord gate only catches genuinely ungrouped layers, which are still lifted. One existing test had the bug baked into its assertion (!whole_take on a grouped V2 take) and now asserts the law instead.
2026-08-16
🧹 fix(engine): the map's law is real, its inverse honest, its docs trueAhmet Kaan Gümüş · d2ac4e7
🧹 fix(engine): the map's law is real, its inverse honest, its docs true The sweep's survivor-continuity cell built its TimelineMap out of the playhead's own answer and then discarded it -- a law claimed and never asked. The map now comes from the member's own old geometry (old span, source length over the new rate) and the law is the clip's landed span against the map's ends, non-circular. invert() walked into a shifted piece's lerp from the wrong end below its first knot -- frames under min(old lo, new lo) are identity outright, and the shifted-piece test pins the whole run both ways. And the delete docs and one old test name still told the caption-lift story the ripple replaced; they tell the one-law story now.
✅ test(engine): restore the playhead's own scene assertionAhmet Kaan Gümüş · 734c321
✅ test(engine): restore the playhead's own scene assertion The probe teardown dropped the commit path's assertions by accident; the live path's stayed and passed, which is why nothing went red. Back in: the same source frame under the playhead after the write, and the minute moved with it.
✅ test(engine): the re-timing sweep, every op against the lawAhmet Kaan Gümüş · 5832d81
✅ test(engine): the re-timing sweep, every op against the law A table-driven property suite over every mutating op (delete from each anchor kind, speed at 2x and half, split, regroup, move, trim, paste) against four project shapes (ungrouped, grouped clips, aligned group with caption, the offset group) under the universal laws: links consistent, every lane sorted and disjoint on both its lists, the playhead's scene within the frame a rate can hold, and the undo round-trip byte-identical at one snapshot per op. Two harness findings on the way in, both of the harness and not the engine: a two-op cell must capture its pre-state between the ops, and a stretch the neighbours refuse is a valid cell -- the refusal names its wall and changed nothing. Paste is the named exception the suite pins directly: media lanes ripple, the words never move. TimelineMap's invert and the total shift answer the laws today and are gated test-only until the delete/paste migrations consume them in a build path.
🐛 fix(timeline): a caption deleted with its group closes its laneAhmet Kaan Gümüş · ac71b75
🐛 fix(timeline): a caption deleted with its group closes its lane The offset rewrite made a grouped delete ripple each media member's span out of its own lane but still LIFT the caption members -- so the sub lane kept the hole while every other lane closed, and the captions after the deleted one never slid up with the rest. One law now, from whichever member the delete was clicked on: a caption deleted WITH its group goes by the same span-out-of-its-own-lane ripple its clip siblings take, and a caption deleted alone keeps the lift that leaves a gap, exactly as before. ripple() is the one mechanism -- the same law the scoped cuts already apply to sub lanes.
🐛 fix(playback): the playhead follows the re-rate through the same mapAhmet Kaan Gümüş · 6d8f3a1
🐛 fix(playback): the playhead follows the re-rate through the same map A speed change left the playhead at its own timeline position while write_speed re-timed the group under it, so the scene changed with the rate -- at 2x from the middle of a clip the cursor jumped a clip's worth of content. Both the commit and every live sample of the bar now map the playhead through a TimelineMap built from the group's own old geometry: each clip member by its old rate against the new one about its own head, each caption member by the held clip's proportion about the held clip's head, and a playhead outside every member unmoved -- nothing ripples, so the difference is the gap's to absorb. TimelineMap (engine/src/map.rs) is the one piecewise-affine answer the re-timing ops will share; this is its read-side consumer, with the laws pinned (monotone, exact on the ends, invertible on the image) and the playhead its first user. The delete and paste migrations land next; until they do, invert and the total shift answer the laws tests alone.
2026-08-15
🐛 fix(timeline): the strips are their own mouse regions, and a jump is a proportionAhmet Kaan Gümüş · 640189f
🐛 fix(timeline): the strips are their own mouse regions, and a jump is a proportion The lane stack's strip lay over the beds as painted pixels and as nothing else: a press fell through to the clip beneath it -- selected it, started its drag, opened its menu -- and a notch over it scrolled the stack twice, once by the strip's own handler and once by the column's native scroll behind it. The strip now occludes: gpui's hit test stops at it, so nothing under it hears a button or a wheel, and the wheel it answers with is the column's own unit (pixel_delta, a line a notch) so a notch there moves the stack exactly as far as a notch over the names does. An occluder is also deaf itself to the root that follows every drag, so the thumb's two listeners ride on the strip exactly as drag_scrim's do -- a vertical thumb drag never leaves the strip's own 14 px, and a drag that does is picked up by the root's copies without a seam. The time axis's strip takes the press and the wheel for the same reason: its row sits over nothing today, but a gesture it drew was not its to share. The time axis's click-beside-the-thumb jump was worked out in pixels at the view's own pps, which lands at span-over-duration of the target -- the first drag sample, read through the track's proportion like every other, then snapped the view to where the hand had not put it. The jump now goes through that same proportion, so the thumb centres on the press, at its own width and at its floor width alike, and the drag that carries on from the press lands exactly where the jump left the view.
✨ feat(engine): a speeded clip keeps its pitchAhmet Kaan Gümüş · 475f10c
✨ feat(engine): a speeded clip keeps its pitch The tape effect is gone: a speeded clip's audio was resampled at its speed, so its pitch moved with its rate. The resample is now only what it always should have been -- the rate conversion, reading a source written at another sample rate at the ratio of the two rates, pitch- true by construction -- and the time the Speed asks for is taken by a WSOLA stretch behind it: windows overlap-added at a different hop, each placed where it best continues the one before it, so the timeline compresses or stretches while every period of the signal keeps its own length. The beep stays a 1 kHz beep at 2x, the words stay spoken. Hand-rolled, no new dependencies: N=1024 Hann windows, 512-frame synthesis hop, ±512 search on the first channel by normalized cross- correlation against the natural continuation, one offset for every channel so a stereo pair stays coherent. A silent continuation is placed nominally -- nothing to match -- and a segment too short to prime a window passes through as the decoder read it. Both halves of the chain pace the timeline's promise to the frame, which is the A/V sync invariant the speed suite pins. Measured, not felt: the stretch's own tests put a 440 Hz sine through 2x and 0.5x and read 440 back by Goertzel with the octave gone; the sync fixture's 1 kHz beep plays at 1 kHz at 2x and 0.5x through the real open path (the tape effect's ladder peak read 1350 Hz there), and a 2x WAV export carries the same 1 kHz back out.
🐛 fix(engine-hw): a forward reposition replaces the skip, never adds to itAhmet Kaan Gümüş · 1077f5f
🐛 fix(engine-hw): a forward reposition replaces the skip, never adds to it pump's one law is 'the picture delivered is position + skip': position advances for every handle popped, dropped ones included, so a forward reseek to a target ahead of the decoder must leave skip = ahead -- exactly the distance still to walk. The landed code added to whatever skip was still standing, so a second forward reseek before the first drained (rapid small seeks on the kept worker, or a flush whose RAP skip was undrained when a forward span was asked) delivered ahead frames past its target -- silently, because the pictures kept coming. forward_skip() is the seam the law lives in, with a pinning test for the stacked-forward and flush-then-forward shapes (red on the add, green on the replace).
✨ feat(timeline): the scrollbar is only there while there is somewhere to goAhmet Kaan Gümüş · dd77ab0
✨ feat(timeline): the scrollbar is only there while there is somewhere to go Zoomed out to the whole timeline the horizontal strip was furniture for a view that cannot move: a dim full-width thumb under the lanes, holding its row whether anyone could use it or not. The strip now vanishes at the fit -- and its row goes with it, out of every budget at once. The budget grew a door: timeline_fixed_h(scroll) answers the region (timeline_h), the fold the lanes are laid out against and the seam's drag floor together, so the three cannot disagree about whether the strip is there, and the lanes keep exactly the room they had at either side of the zoom that crosses the line. The share stays sized for the taller, strip-bearing floor -- the one the clamp would otherwise overrule at the 640x360 floor. The lane stack gets its own bar too, over the beds' right edge -- over and not beside, because a gutter would take its width off the bed and the ruler above would stop pointing at the moment the lanes are drawn at. The thumb is the visible share of the rows, read straight off the column's own scroll handle -- box, fold and how far down it has been taken are all the handle's to know, so nothing about the stack is a second truth -- and a drag is followed on the root like every gesture that outlives its strip. Names and beds are one column, so they move together; the wheel over the strip scrolls the stack a notch's share of what it is showing, and with the whole stack on screen there is no strip at all.
🐛 fix(bench): the cutloop timeline is the keeps aloneAhmet Kaan Gümüş · 4bd886f
🐛 fix(bench): the cutloop timeline is the keeps alone The freeze metric's harness, corrected on its first live runs: the holes are the odd clips of the cut list and the tail past the last keep is the last one, deleted from the far end down so no delete moves an index still to be named (repeatedly deleting index 1 alternated hole, keep, hole, keep); V1 names each hole and the group takes the A1 half of the take with it; the end of the last keep is cut so the run plays the keeps and not the rest of the film; and a shape guard refuses a timeline that is not the keeps it asked for. The spans before and after the deletes go to the log as provenance.
🐛 fix(timeline): the scrollbar strip is panel furniture, not lane pixelsAhmet Kaan Gümüş · 27b5f78
🐛 fix(timeline): the scrollbar strip is panel furniture, not lane pixels f69ba33 stood the new strip under the lanes as one more flex_none row of the panel but left TIMELINE_FIXED_H describing a panel without it, and every lane-height decision reads that number: the region's own height (timeline_h), the fold the column is laid out against (lanes_box), and the seam's drag floor. The region came out 22 px short of its furniture, the flex_1 lane column paid the difference, and the last lane slid under the fold cut to 28 of its 48 px -- the lane-header-cut-in-half class again, now at the default size, with the affordance silent because the prediction still said the lane fit. The strip's row (SCROLL_HIT_H and its gap) now rides in TIMELINE_FIXED_H beside the ruler's, and TIMELINE_SHARE grows to the floor that yields: 171 px of the 360 at the 640x360 floor, where the old 0.42 (151 px) is smaller than the floor and the clamp made the floor the answer anyway -- the share said the panel took less of a short window than it did. The pixels at that floor do not move; the two constants agree again.
🐛 fix(playback): a silence cut's boundary decodes forward, not flushAhmet Kaan Gümüş · e045b5e
🐛 fix(playback): a silence cut's boundary decodes forward, not flush Cutting silences leaves a timeline of same-file micro-clips, and every boundary reseeked the worker the expensive way: decoder FLUSH, demuxer seek to the RAP, skip-decode RAP->clip-start (up to a GOP of VCN work, the GPU spikes), then a re-prime whose ~178ms ttff at 4K outlasts the 0.15-0.65s clips -- so the picture starved while the continuous audio feeder played on (the freeze), and LATE_RESYNC answered the starved picture with another flush storm every RESYNC_GAP. - engine-hw: seek_to reaches a target ahead of the decoder, within FORWARD_SECS (0.5s) of it, by decoding forward and dropping through the existing skip path -- no flush, no RAP seek, no re-prime; behind, past the reach, and past EOF keep the flush. Decision extracted as the pure reposition() + tests; position tracked per popped handle. - playback: the session reports picture_priming() -- owed from span start until its first frame -- and the player's resync waits out a prime instead of restarting into it (resync_due, constants kept). - bench cutloop: the freeze metric -- an N-region cut timeline played end to end, displayed/dropped per second, restarts and resyncs.
✨ feat(timeline): a scrollbar under the lanesAhmet Kaan Gümüş · c707e9d
✨ feat(timeline): a scrollbar under the lanes The time axis was the one dimension the panel scrolled with no bar to scroll it by -- only the wheel and the keys reached it. A strip under the lanes now carries a thumb that is the visible share of the drawn duration at its own place on the track: read off the very Scale every box is drawn through, so a wheel notch, a zoom about the pointer and the follow of the playhead all move it, because they all move the one state. Drag the thumb and the view follows live (the pointer leaves the 6 px strip at once, so the gesture is followed on the root like a scrub); press beside it and the view jumps to the press and carries on from there; the wheel still works over it. The strip is its own mouse region -- a press there never reaches a lane -- and with nothing to scroll the thumb fills the track and dims.
🐛 fix(timeline): an arriving clip never touches the captionsAhmet Kaan Gümüş · a3dc07c
🐛 fix(timeline): an arriving clip never touches the captions The rippling paste -- the door a video arriving on the timeline goes through, and the clipboard's own -- opened room on the subtitle lanes too, splitting a caption the landing fell inside and sliding the rest behind the new clips. On a timeline of words alone, adding a video cut the caption in half and pushed its tail to the video's end, which no hand asked for. A paste inserts media; the words keep their own clock. A caption that should travel with a clip is what a group is for, and a group moves as one. The razor still cuts captions with the picture, and a cut region still removes the words over it -- those are cuts, and this was an add.
🐛 fix(timeline): a caption's unity gate is measured in framesAhmet Kaan Gümüş · 71b7468
🐛 fix(timeline): a caption's unity gate is measured in frames The badge's unity gate was two permille, but placement rounding is an absolute error: frames_of_us leaves a short track up to half a frame off real time, which is sixteen permille of a one-second window — most palette drops under two and a half seconds badged, one of them a self-contradicting 1.00x. Unity is now 'the window lands within a frame and a half of the span', in the timeline's own frames; the permille survives only as the rate the badge shows.
✨ feat(timeline): captions keep their own clock through a re-rateAhmet Kaan Gümüş · f8f5c46
✨ feat(timeline): captions keep their own clock through a re-rate A placement's cues crossed the timeline one window-microsecond to one timeline-microsecond, which is only the truth at unity: a group's re-rate compresses the frames and leaves the window alone, so the plate and the lane export drew the words falling behind their box, cue by cue, and the tail past the end. The map now goes by the placement's own proportion -- at unity every cue lands exactly where it always did, to the microsecond, and at 2x the words cross in half the time. A caption's box wears the rate its window plays at, derived off the placement itself (so the badge survives the group coming apart), gated past placement rounding; and the grade and the fit resolve a caption in hand to the picture it was pinned to, saying so out loud when there is none -- the speed, silence and equalizer cards' own rule.
🐛 fix(timeline): a region's caption pieces re-time by boundaries, forced apartAhmet Kaan Gümüş · 3a0448f
🐛 fix(timeline): a region's caption pieces re-time by boundaries, forced apart Rounding each in-region caption piece's start and length independently could land two pieces on the same frame (two one-frame cues of a thirty-frame region at 2x both want frame 15) and let the region's last cue run past where its first follower lands -- a debug-assert panic, and in release a silent overlap the lane invariant forbids. The pieces now re-time by their mapped boundaries walked in order: each piece at least one frame, none past the region's own new end, and the first caption behind the region lands exactly on it. A rounding artifact is clamped rather than refused -- nothing about the words asked for an overlap.
✨ feat(timeline): tempo ops carry the captions of a groupAhmet Kaan Gümüş · b801cf5
✨ feat(timeline): tempo ops carry the captions of a group A group's caption now travels with everything that re-times it. A rate set on any member re-times the caption members by the ratio the held clip's own frames take -- the span on the timeline compresses about the held clip's head while the words keep their own window -- and a stretch that would run a caption into its neighbour is refused in the clip arm's words. The silence scan's speed-up shrinks the caption pieces inside its regions and slides the rest up with the clips; its Take scope carries the caption's lane so the cut does too; and the scope law names a caption half left outside a scoped cut, in the words it always used for a clip's. The cards stop dead-ending on a caption in hand: speed and silence resolve a caption anchor to the media half of its group (the picture and the sound respectively) and say so out loud -- with the how-to -- when there is no media behind the words; the equalizer takes the group's sound the same way. Colour and Fit are untouched: a caption anchor retargets to the playhead's picture exactly as an audio anchor always has.
🐛 fix(timeline): caption flag resets match the engine's reseek exactlyAhmet Kaan Gümüş · cda6d0e
🐛 fix(timeline): caption flag resets match the engine's reseek exactly The app gated its grouped-caption drag and trim flag resets on the caption carrying any link at all, while the engine reseeks only when the group holds clips: a caption grouped only with another caption (ctrl-click two captions, Group) latched the seek wait with no frame ever delivered -- an unbounded repaint loop while paused. PlaybackSession::caption_grouped_with_clips is now the one public answer, asked before the edit moves indices, and both reset gates read it: drag from the press's lane and live index, trim from the trim's own lane and index. The two sides can no longer disagree.
🐛 fix(timeline): grouped caption edits reseek, and the link counter clears caption idsAhmet Kaan Gümüş · 25855e8
🐛 fix(timeline): grouped caption edits reseek, and the link counter clears caption ids A grouped caption's drag and trim move the group's clips with it -- a timeline->source change -- so PlaybackSession::move_sub and trim_sub now invalidate Dirty::Both when the caption is grouped with clips (the check delete_sub already made, now shared as caption_grouped_with_clips), and the app pays the reset_after_reseek a clip's drag and trim pay on the same paths. The link counter a load seeds now sits past every id the file names: from_parts chains the subs a lane already holds, and with_subs -- the door a load's placements actually come through, after from_parts -- raises the counter past the ids its captions carry. A hand-grouped caption holding the file's highest id could have had it re-issued to the next group that asked, silently grouping it with clips it never met. A palette drop onto a subtitle lane renumbers that lane alone; the picks it held now follow the discipline of every other renumbering edit -- kept off the lane, re-read for the marked caption, other lanes' picks untouched. Also folds in the v16 caption-group round-trip test that had been left out of the previous commit.
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+aAhmet Kaan Gümüş · 66d5395
✨ feat(timeline): ctrl-click multi-selection, manual groups, ctrl+a The app half of manual clip grouping: the timeline's selection becomes a list of picks (Selection, click order kept, anchor = last), ctrl+click toggles a pick on every clip box, caption box and edge strip, and a right-click on a picked placement keeps the selection so the menu's Group row acts on all of it — one pick keeps the span-partner flow. SelectAll takes ctrl+a (every clip and caption, one selection) and RemoveAudioLane moves to ctrl+q beside its own letter. The oracle unhides Group and Detach over captions, words the one-clip-per-lane refusal, and the caption menu grows the group rows. marked() lights every pick and its link-mates — captions included — captions wear the grouped border, trims preview each member by the drag's delta clamped to its own room, deletes route a grouped caption through the group door, and a drag's snap excludes the group it carries. The save-format tests and every affected app suite updated with the new shapes.
✨ feat(engine): offset-preserving groups over clips and captionsAhmet Kaan Gümüş · 48cacb6
✨ feat(engine): offset-preserving groups over clips and captions The engine half of manual clip grouping: SubClip gains a link id, the group invariant becomes one-placement-per-lane (span equality dropped), group_all builds a hand group over clips and captions with mates riding along, splits keep the left group and share one fresh id on the right (captions included), deletes ripple each media member's own span on its own lane and lift caption members, grouped caption drags and group trims move every member by one delta clamped to each member's own walls, and the save format grows an optional 6th sub field as v16. App half (Selection refactor, ctrl+click, ctrl+A, oracle/menu, marks) follows.
✨ feat(timeline): a caption is taken off the lane by the same stroke and row a clip isAhmet Kaan Gümüş · 888f39d
✨ feat(timeline): a caption is taken off the lane by the same stroke and row a clip is A placed caption could only be lifted by a ✕ that vanished on narrow boxes. Captions are now marked by a click, lifted by x/delete and the menu, and dragged — parity with every other thing on a lane. The mark is keyed by a caption's start frame, so a refused drop, a sorted insert or a removal cannot shift it onto the caption beside it. With a caption marked the playhead actions stay live while its menu carries only its own rows: the playhead's clip actions — split, rate, grade, fit — would read as the caption's.
✨ feat(library): a stand-in switch on every row — on, off, and one encoder at a timeAhmet Kaan Gümüş · 3da7bd9
✨ feat(library): a stand-in switch on every row — on, off, and one encoder at a time The ✕ that stopped a stand-in being made read as taking the file out of the library. What a row shows now is a switch: a hollow dot when the film plays itself, a filled one when a stand-in plays, a stop square while one is being made, with how far it has got drawn under it. A click in the asked window stops rather than starts a second encoder; the engine takes a claim on the .part before the header is read so no two encoders ever write one path. A delete that could not happen says so and the row stays on over the proxy that is still what plays. The off choice is written beside the cache entry and outlives the session, and the detail line keeps its width past the switch.
2026-08-14
🐛 fix(ui): the lane header cut in half at the timeline's floorAhmet Kaan Gümüş · 99354cc
🐛 fix(ui): the lane header cut in half at the timeline's floor The floor a timeline may be dragged to was one lane under the chrome, which left nothing for the line saying the rest of the tracks are below -- and that line is always drawn there once a project has a second track, out of the lane's own pixels. The header came out 27 px of its 48: the track's name, its subtitle dot and its × all cut in half. The affordance's line and gap are part of the floor now, so the lane it promises is a whole one. A size dragged with one track is raised to the new floor as it is read when a second arrives, not drawn under it.
🧹 chore(app): items nothing calls are gone or sit with the testsAhmet Kaan Gümüş · 0ec584d
🧹 chore(app): items nothing calls are gone or sit with the tests `cargo build` was warning about five items in the app and two in the vendored `rusty_h264-common`. Each is sited where its callers actually are rather than silenced: - `PANEL_H`, `panel_h`, `Volume::label` and `PaletteId::palette` are asked for only by the guards, so they are `#[cfg(test)]` now. - `STROKE_FOCUS` is deleted: the keyboard ring it was drawn for was never painted, in any palette, since the token landed -- nothing in the editor takes gpui focus. The twelve values are in the history for whoever wires a focus ring. - vendored `bs_tile` is called only by that crate's own tile guards, and `qpel_compose` only from `#[cfg(accel)]` blocks; both carry their call sites' cfg now, marked as edith patches like the manifest's. No behaviour change. `cargo test -p edith`: 142 passed.
✨ feat(subs): only the picked subtitle lane shows, every lane on the timeline exportsAhmet Kaan Gümüş · 1361b3cBrowse files
✨ feat(subs): one subtitle track is shown and every placed one is exportedAhmet Kaan Gümüş · 1139174
✨ feat(subs): one subtitle track is shown and every placed one is exported The picture drew every subtitle lane at once, so three lanes of different words were three plates over one film and two hundred were nonsense. One lane draws now -- the one whose header dot is lit -- and clicking another lane's header moves the picture to it. The pick is resolved against the lanes there are at the moment it is read (`subs::active_lane`), so one lane needs no picking, the first lane added draws, and removing the shown lane promotes the first one left instead of blanking the picture. The overlay asks the shown lane for its cues and no other, so a frame costs what one lane costs whatever the stack is. What travels in a file is untouched by that pick: every subtitle lane on the timeline is its own track in the output. What did travel wrongly is a track sitting in the *palette* on no lane at all -- with every subtitle lane emptied, the engine's palette fallback wrote all of them into the file. `Player::export_subs` now answers with the tracks a lane places, which is the same sentence the card says.
✨ feat(ui): panels grow and shrink by dragging the seams between themAhmet Kaan Gümüş · b422485Browse files
✨ feat(ui): panels resize by dragging their dividersAhmet Kaan Gümüş · a39a88f
✨ feat(ui): panels resize by dragging their dividers The library, the inspector and the timeline were laid out at a fixed share of the window; the three seams between them are handles now. A press on a strip is tracked from the root like every other drag here (a 6 px strip is not where the pointer stays), the size lands in the model and every region reads it back through one door -- so a dragged width survives the release and cannot disagree with what is drawn. Each panel stops at its own floor and at a third of the window (most of it, for the timeline), so neither a panel nor its neighbour can be dragged away and lost. The bed's pixel-to-time answer is measured off the ruler's own prepaint box, so a click still names the frame it points at at every size.
🐛 fix(ui): a stand-in being made can be stoppedAhmet Kaan Gümüş · e534575
🐛 fix(ui): a stand-in being made can be stopped A proxy is a whole film through a decoder and an encoder, started without being asked for, and until now there was nothing that could stop one: the row said "proxy 12%" for as long as it took, on a machine somebody was trying to cut on. So the row that shows the encode running carries the way out of it: a × beside the percentage, the subtitle row's button and the subtitle row's rule -- it stops the click there, since the row under it picks a file and stopping an encode is not a way of choosing one. The engine already had the stop (`proxy::Job::cancel`, the export's own checkpoints), so nothing new was invented for it. What is new is the two states between the click and the end: `Cancelling` holds the job while the worker winds down -- it gives up at its next frame and deletes its own half-written file -- and `Cancelled` is where it settles, kept in the map so no repaint starts the encode that was just stopped all over again. The worker's own answer is what settles it, which is what makes the three claims checkable rather than hopeful: nothing is left under the name a finished stand-in would have (the cache is looked up by existence alone, so a file left there is a cut made on a truncated picture), the `.part` goes with it, and an encode that *beat* the stop settles as the ready stand-in it is rather than being deleted underneath the switch that is playing it. Asking twice is asking once. The new test in tests/export.rs is those four in one pass, on the software seat: stop it mid-encode, wait for the worker, then look at the directory.
🐛 fix(ui): the stand-in switches are answerable before the first filmAhmet Kaan Gümüş · 2995059
🐛 fix(ui): the stand-in switches are answerable before the first film Both proxy switches were dead with nothing open: the availability oracle refuses everything below "no timeline open", and the state they toggled lived in the session, so a window with no session had nowhere to keep an answer and the buttons read a bare "Proxies" with no state at all. That is backwards for what these two are. They are import options -- one decides whether an arriving film gets a stand-in made for it, the other what its picture is then decoded from -- so the moment a person can act on them is *before* the import, and a switch that waited for a film was a switch that came too late to stop the encode it was about. So the pair joins the four the oracle already answers with nothing open (the snap and the monitoring level), and the window keeps them the way it keeps its volume: its own, pushed at every session it opens (`apply_proxies`), and taken back from a project as it loads, since a `.edith` carries its own two and they are what it was saved with. The buttons now say on or off with an empty window, an import made while Auto proxies is off starts no encode, and the keyboard and the pointer go on answering the same question -- which is the rule that put the four in the oracle in the first place. Two dead imports in the same two files go with it: the build printed them and they are one line each.
🧹 chore(app): the dead imports and the arguments nothing readsAhmet Kaan Gümüş · 07ee3c7
🧹 chore(app): the dead imports and the arguments nothing reads A build printed thirteen warnings and every one of them was something the code had stopped using: four imports nobody names any more, a picture duration the timeline is handed and never reads, and the export flag a rewrite of the hint line left behind. Removed rather than hushed. An unused argument is a caller handing over something the callee has no use for, and the two bindings that were computed and dropped read state on every frame to throw it away. What is left of the thirteen is five dead-code warnings whose only callers are tests -- a panel-height ladder, a volume label, the theme's focus stroke, the palette lookup beside it -- and taking those out means taking their tests out, which is a decision about that code and not a warning to be tidied on the way past.
🐛 fix(engine): a bar that has been filled is not taken back when the GPU diesAhmet Kaan Gümüş · 197d1e2
🐛 fix(engine): a bar that has been filled is not taken back when the GPU dies The hardware encoder's process dying puts the whole export through the software encoder again, and the bar was put back to zero to do it: a person watching 93% of a film written suddenly saw 5%, at the one moment they most needed to believe the editor was still working. The mark holds instead, and the re-run moves it on once it passes it -- which needed the copied-picture path to publish with `fetch_max` like everything else. With it, the rest of that same seam: * the audio pass is joined however `run` leaves, not detached. The mp4 path runs the sound beside the picture, and a picture that failed left that thread running: the re-run then started a second pass, so a machine that had just lost its GPU mixed the same film's sound twice at once. * a dead child is a *type* (`hwproc::Lost`) and not a phrase. `is_lost` commits an export to being written again from the first frame, and a substring match handed that decision to any future error whose wording happened to mention the child. * a wedged child is waited out by its own measure. The 15 s ceiling is what an encoder opening on a 4K frame may need, and it is also fifteen seconds an export spends on a child that will never answer again, before the software encoder it is owed can begin. Once a child has answered its first frames it has said what its frames cost, and eight times the slowest of them (never under two seconds) contains a wedge in two or three rather than fifteen -- while a slow open still gets the whole ceiling and is never killed for being slow. The editor is live throughout either way: the wait is on the export's own thread. * the countdown cannot be handed a rate below zero or a division by nothing: a bar that went backwards read as "~0:00 left" over six minutes of encoding, and the estimate is a guess, never a lie.
🐛 fix(engine): the seat a test cycles is one no other test is sitting inAhmet Kaan Gümüş · 88ce23e
🐛 fix(engine): the seat a test cycles is one no other test is sitting in The stand-in encoder seat was armed by a process-wide variable and read by `hw_seat`, so a software test that had already opened its own export picked it up mid-flight, met the hang injection, and stalled: `cargo test -p engine --test export` was green or five-failed depending on the interleaving. The progress reset the fallback does made it worse -- one cancel test hot-spins on progress reaching 1.0 and a regression there never ends. The seat is process state, so it is borrowed rather than assumed: the whole software suite shares a read guard, exactly as parallel as it always was, and the encoder-death family takes it exclusively, lifting the software encode pin only for its own exports and putting it back before it lets go. Which lets `hw_seat` go back to being production policy with no test flag in it. Also: a child that does not answer `vh_enc_dma_geometry` is now reaped there instead of costing the next picture a second whole timeout; the plugin's own note no longer claims the editor never loads the encode half, when what it never does is *call* it -- the availability check is a dlopen and opens no VA-API display; and the guard that refuses to write an export again in software when a person picked the GPU by name now has the test it was shipped without.
🐛 fix(engine): the export stops with the last picture, caption or no captionAhmet Kaan Gümüş · 64e09f9
🐛 fix(engine): the export stops with the last picture, caption or no caption A caption hanging past the media held the timeline open and the picture loop walked it: 312 encoded frames under a 240-frame delivery, 72 of them black, the copied sound padded to match, and the plan card saying cues were "cut off there" of a file three seconds longer than it said. `export_spans` is now the one place that end is decided -- the composite walk cut to `media_frames` -- and both the encoding loop and the copy plan take it; `copy_audio` drops the trailing gap the same walk leaves on its play list. Playback still walks `timeline_frames`, so the transport parks on the tail.
✨ feat(app): the export that locks the editor says so as a card, and takes two answers to stopAhmet Kaan Gümüş · ef7689f
✨ feat(app): the export that locks the editor says so as a card, and takes two answers to stop An export takes the whole editor -- nothing may touch the edit list while the worker reads it -- and until now it said that in a hint line under a panel it had just switched off. The running export is drawn as what it is: the same scrim, width and raised box the export card itself uses, so the answer arrives where the question was put, with the bar, the percentage and both clocks, the row and the seats the worker really opened, the source it reads and the file it writes. The timeline is still read around it, and the ruler keeps the fill -- the one part of the progress the card does not cover. Getting out of it now takes intent, twice over. The chord is ctrl+esc: bare escape is the stroke a hand throws at anything on screen, and thrown at an export it used to delete an hour of encoding. Bare escape now does nothing at all here -- the card is not dismissable, so there is nothing left for it to mean. And the pointer's way out is a pair, never a cycle: "Cancel export" swaps the row for "Keep exporting" beside it, both on screen at once, each saying which one it is. Rebinding still works and still adds a way out rather than replacing this one, and the card shows whatever the keymap has.
🧹 chore(app): the subtitles toggle says what is placed, not what is pickedAhmet Kaan Gümüş · d6c0e92
🧹 chore(app): the subtitles toggle says what is placed, not what is picked
Under lanes the picture reads the subtitle lanes, so the toggle's notice
naming the palette row named a track the stroke never touches: it now counts
the captions actually placed, and so does the toolbar's own label ('No subs'
for a palette full of tracks nobody dragged anywhere).
- actions.rs: toggle_subtitles words itself off placed captions; subtitle_track
(the last pick-shows-it reader) gone, placed_captions in its place.
- toolbar.rs: the subs control reads placed captions.
- subs.rs/export.rs: docs that still said a pick draws.