forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/app/src/notices.rsClear filter

2026-10-23

🚚 edith moves to git.tahinli.comAhmet Kaan Gümüş · b02f499
🚚 edith moves to git.tahinli.com

The working tree as of 2026-10-23, as one commit on top of the last one
here. It carries the work up to that date plus the test-slimming work:
integration tests merged into one binary per crate, nextest config,
doctest = false, debug line tables only, perf tests behind --ignored,
and faster generators, reverse, undo, subtitle-export, hevc, stabilise
and hear tests.

2026-09-30

feat(app): a decode failure reaches the strip, as the lost sound device doesAhmet Kaan Gümüş · 6bc4cc2
feat(app): a decode failure reaches the strip, as the lost sound device does

`PlaybackSession::video_failure_reason` (the engine half is the previous
commit) had no consumer, so a decode failure still reached nobody: the
worker printed it to stderr, dropped the channel, and the app read the
closed channel as the film finishing. The transport said ENDED over a
frozen last good frame with nothing in the window saying why.

It goes through the **existing** notice queue, not a second banner
system: `decode_failed_line` is `audio_lost_line`'s twin, and
`decode_change_notice` is `audio_change_notice`'s, step for step, because
the thing that changed is the same kind of thing -- a reason the engine
started or stopped stating between two frames. `watch_decode` sits beside
`watch_audio` in the pump, keyed to `session_gen` for the same reason, so
a preview flip cannot announce the other session's failure.

`AudioStep`/`audio_step` become `ReasonStep`/`reason_step`: the pure
decision was never about audio, it is a comparison of one session
generation and two reasons, and the picture side now needs it too. A
second copy of that state machine would have been the wrong answer.

The retraction is what keeps this from becoming noise: a decode that
fails, is seeked away from and succeeds takes its line back, or the strip
keeps saying DECODE FAILED over a film that plays. Asserted both ways,
along with the two lines not taking each other down.

cargo test -p edith --bin edith tests::media -- 34/34.

2026-09-24

📝 docs(audio): the death writer is the wave branch's tick, not a missing halfAhmet Kaan Gümüş · 56924e8
📝 docs(audio): the death writer is the wave branch's tick, not a missing half

E1 settled by the integrator: the engine writer exists on the wave branch -- `tick`'s dead branch sets `AUDIO_LOST` and `rearm_audio` clears it -- while this lane's base engine carries neither, so the earlier wording read as an engine defect that is not owed. The three documents now say what each side is: the engine writes the reason (wave branch), this lane reads it and spells none of its words, the flip is driven through the seam here and asserted end to end on the merged tree. Nothing in either test depends on when `tick` sets it.
📝 docs(audio): the reason's writer is the engine lane, not this oneAhmet Kaan Gümüş · a091c6d
📝 docs(audio): the reason's writer is the engine lane, not this one

The documents said the engine sets `audio_disabled_reason` on a death and clears it on its re-arm. In this tree nothing assigns that field off the death path: the only mid-session writer is `arm_audio` (`crates/engine/src/playback.rs:2687`), which assigns only when `open_audio` returned a device, so it can only clear. The app side is the *reader* of whatever reason the engine reports, and it never spells the engine's words -- a death that sets nothing stays unsaid, and that is the engine lane's half of this defect.
🐛 fix(audio): the sound watch is keyed to the session it describesAhmet Kaan Gümüş · e87ca88
🐛 fix(audio): the sound watch is keyed to the session it describes

The watch cached one reason while `sound_reason` read `active_session()`, so a preview opening or closing -- a *different* session, and the timeline's own unchanged reason restored behind it -- read as a device that came back and then died again, and the phantom line stayed on the strip. `watch_audio` now asks the pure `audio_step` about the session generation its cache describes against the one the frame serves: a swap seeds and announces nothing, and only a change on the *same* session pushes or clears. `close_preview` bumps `session_gen` like every other install and drop (it was the one door that did not), so the key holds at every swap.

Doc corrected with it: this side is the *reader* of `audio_disabled_reason`; the writer of a mid-session death is the engine's own file (nothing in this tree assigns it off the `Audio::died` route yet -- `arm_audio` can only clear it), which is the wave lane's, and no constant of it is spelled here.
🐛 fix(audio): a device that dies under an open file says so, and unsays itAhmet Kaan Gümüş · c80d1f7
🐛 fix(audio): a device that dies under an open file says so, and unsays it

The engine knows: a death sets its `audio_disabled_reason` to its lost-device word, and its own 1 s re-arm clears it again. No consumer on this side ever looked -- both `audio_notice` call sites are the *open* paths -- so a device that died mid-session played on in silence with no message at all, and the strip went on saying nothing after the sound came back.

`Player::watch_audio` is the per-frame check, run from `Player::pump` (the one place every frame passes through): one read of an `Option<&str>` and one compare, with the strings built only on the change itself. `audio_change_notice` is the queue half and reuses the existing notice path -- `push_notice` for the death, and the same line taken back off the strip when the reason clears, only that line. The two open sites seed the cache (`Player::seed_audio_watch`) so a reason unchanged across the open is not announced a second time, and a line left over from the file before comes off.

2026-09-09

🎨 style(app): the ledger reports state, and never cuts a word to do itAhmet Kaan Gümüş · 9e93f65
🎨 style(app): the ledger reports state, and never cuts a word to do it

Notices lose their instructional tails (DESIGN §8): a remedy is a verb and
its chord (`V2 ADDED · undo z`), never a sentence. The strip ellipsises at
its end and elides a long name through its middle first, so the state word
at the front is never what a narrow window drops.

2026-08-27

🔥 remove(app): floating notice plate — the ledger strip is the one notice channelAhmet Kaan Gümüş · dee569d
🔥 remove(app): floating notice plate — the ledger strip is the one notice channel

The plate doubled what the ledger's last-action line already says (user
2026-08-27). Gone with it: its severity/offset helpers, the keystroke and
click dismiss paths, and its two layout guards; the picture-occlusion guard
now pins the ledger as the sole channel. A refusal or failure keeps its
tone in the strip (notice_tone tints the last-action line for error and
warning; routine messages stay quiet).

2026-08-26

🔥 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.

2026-08-21

fix: format Darkroom integrationAhmet Kaan Gümüş · 9a27ee6Browse files
fix(ui): the notice plate reads the newest message, not the stalestAhmet Kaan Gümüş · d3bace2
fix(ui): the notice plate reads the newest message, not the stalest

notice_plate showed notices.front() while the ledger's "last action"
already read notices.back() -- and nothing but a keystroke ever calls
dismiss_notice(), so a mouse-driven refusal queued behind an earlier,
undismissed notice (a ctrl+s "SAVED ...") never reached the plate at
all. The plate now reads back(), matching the ledger, so the newest
notice is always the one shown; its max width also grows from 360 to
480px so a refusal-plus-remedy sentence gets two or three lines
instead of being left to the ledger's single truncated line.

2026-08-19

🐛 fix(app): an export's own result cannot get buried in the queueAhmet Kaan Gümüş · 601dec3
🐛 fix(app): an export's own result cannot get buried in the queue

push_notice queued strictly oldest-first, so an EXPORT DONE landing
behind a PROXY READY and a caption notice sat three dismissals deep
-- the one line a person started the export to read was the one they
never saw. Export outcomes (done or failed) now jump to the front of
the queue instead of the back.

2026-08-13

🔧 chore(app): the window's file lets sixteen neighbourhoods keep their ownAhmet Kaan Gümüş · 963252a
🔧 chore(app): the window's file lets sixteen neighbourhoods keep their own

main.rs was 10,529 lines with every constant, every helper and the
window itself in one place. The geometry, the transport, the import
state, the menus, the export card, the oracle, the library rows, the
subtitles, the equalizer, the colour card, the viewport and the
timeline's arithmetic each move out to the module they belong to; the
Player and its two impls stay, which is what the file is for.

Pure motion: every line is the line it was, with pub(crate) added only
where a module boundary now stands between it and its caller.
Player::enable still delegates to the one oracle.