Skip to content

Clean up eager processing and credit contributor#277

Open
peteonrails wants to merge 1 commit intomainfrom
fix/eager-processing-cleanup
Open

Clean up eager processing and credit contributor#277
peteonrails wants to merge 1 commit intomainfrom
fix/eager-processing-cleanup

Conversation

@peteonrails
Copy link
Owner

Summary

Follow-up to #275. Addresses review items and adds contributor credit.

  • Clear eager_transcriber cache after every eager recording stop (push-to-talk release, toggle stop, timeout, external trigger). Previously only cleared on cancel, which left a stale Arc<dyn Transcriber> between recordings.
  • Add Sami Jawhar to README contributors and website news for fix: wire eager processing into daemon recording loop #275.

Why this matters

With on_demand_loading = true or model switching, holding a reference to the transcriber between recordings prevents the model from being unloaded. Clearing the cache after each eager recording ensures model resources can be released when the daemon returns to idle.

Test plan

  • cargo build compiles cleanly
  • cargo test -- 547 tests pass
  • Verified all 4 finish_eager_recording call sites now clear the cache

Co-authored-by: Sami Jawhar sami@trajectorylabs.net

Drop the cached eager_transcriber after each eager recording finishes
(push-to-talk release, toggle stop, timeout, and external trigger paths).
Previously it was only cleared on cancel, leaving a stale Arc<dyn Transcriber>
between recordings that could hold model resources unnecessarily.

Add Sami Jawhar to README contributors and website news for wiring
eager input processing into the daemon event loop (#275).

Co-authored-by: Sami Jawhar <sami@trajectorylabs.net>
@peteonrails
Copy link
Owner Author

@sjawhar Will follow your PR up with this minor cleanup item and do a bunch of testing this weekend. It'll be in the tagged 6.5 release!

@sjawhar
Copy link
Contributor

sjawhar commented Mar 21, 2026

I think I'm noticing in my own testing of the original PR that there is some slight overlap between chunks sometimes. Planning to look into it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants