Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Calls: Join and record stops by itself once its call has ended, like a recording started from the call card; New note still asks first (#100)

christianmat4d337c4c4278
diff --git a/README.md b/README.md
index 87d47bdf..20f1bede 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@
- **Folders and search.** You can find meetings by folder, title, notes or transcript.
- **Copy and export.** You can copy notes or transcripts, or save both as Markdown.
- **Local MCP server.** When you turn this on, apps on your computer can read your notes, transcripts, saved audio and each meeting's calendar details (attendees' names and emails).
-- **Automatic stop.** By default, Yogurt stops recording when it detects that your call has ended.
+- **Automatic stop.** By default, Yogurt stops recording when it detects that your call has ended. A recording you start yourself with New note asks first instead, since it may not be a call.
## Watch the demo
diff --git a/app/src/main/index.ts b/app/src/main/index.ts
index 9f36b45b..f2b8134c 100644
--- a/app/src/main/index.ts
+++ b/app/src/main/index.ts
@@ -426,7 +426,8 @@ function startDetection() {
os: platform,
host: process.platform === 'linux' && !BACKGROUND ? linuxTrayHost : undefined,
event: (event, join) => {
- begin({ title: event.title, event, app: null })
+ const m = begin({ title: event.title, event, app: null })
+ if (join && m) watcher.joined(m.id)
if (join && event.url) openExternally(event.url.trim())
},
})
diff --git a/app/src/main/watch.ts b/app/src/main/watch.ts
index 806511f2..4b4ca1d3 100644
--- a/app/src/main/watch.ts
+++ b/app/src/main/watch.ts
@@ -53,6 +53,9 @@ export class Watcher {
constructor(private d: WatchDeps) {}
+ /** recordings started with Join and record: plainly a call, so it may stop by itself once that call has ended (#100) */
+ private joins = new Set<string>()
+ joined(meetingId: string) { this.joins.add(meetingId) }
/** the person closed the start card */
dismiss(key: string) { this.dismissed.add(key); this.shown = null }
/** "Keep going": ask again in a while, not every tick */
@@ -112,8 +115,9 @@ export class Watcher {
private recording(m: Meeting, s: Signals, now: number) {
const starting = this.rec?.id !== m.id
- // started by hand (no call app yet: New note, the agenda): never stopped by itself, only asked about
- const byHand = starting ? !m.app : this.rec!.byHand
+ // started by hand (no call app yet: New note, the agenda): never stopped by itself, only asked about. Join and record
+ // starts with no app too, but it is a call: like a card start it stops once its call app was on the mic and has gone
+ const byHand = starting ? !m.app && !this.joins.has(m.id) : this.rec!.byHand
const recent = starting && this.idleCall && now - this.idleCall.at <= 6000 ? this.idleCall.app : null
const observed = decide({ ...s, recording: false }, now, new Set())?.app ?? null
if (!m.app && (observed || recent)) {
diff --git a/app/test/watch.test.ts b/app/test/watch.test.ts
index 182dda2e..b5769a35 100644
--- a/app/test/watch.test.ts
+++ b/app/test/watch.test.ts
@@ -255,6 +255,31 @@ describe('stops by itself when the call ends', () => {
reading = { micApps: [], events: [] }; clock += 30_000; await w.tick()
expect(log).toEqual(['stop'])
})
+ // #100: Join and record is plainly a call. It starts with no call app (the browser or Zoom opens after), so it would
+ // count as started by hand; once its call app has been on the mic and the call ends, it stops by itself like a card start.
+ it('Join and record stops by itself once its call has ended, like a recording started from the card', async () => {
+ active = meeting({ app: null })
+ w.joined('m1')
+ reading = { micApps: [], events: [] }; await w.tick()
+ reading = { micApps: [zoom], events: [] }; clock += 3_000; await w.tick()
+ expect(active!.app).toBe('Zoom')
+ reading = { micApps: [], events: [] }; clock += 5_000; await w.tick()
+ expect(log).toEqual(['auto:m1'])
+ })
+ it('Join and record whose call never reached the mic is not stopped', async () => {
+ active = meeting({ app: null })
+ w.joined('m1')
+ reading = { micApps: [], events: [] }
+ await w.tick(); clock += 10 * MIN; await w.tick()
+ expect(log.filter((l) => l.startsWith('auto'))).toEqual([])
+ })
+ it('New note and the agenda stay started by hand: asked, never stopped by itself', async () => {
+ active = meeting({ app: null })
+ reading = { micApps: [], events: [] }; await w.tick()
+ reading = { micApps: [zoom], events: [] }; clock += 3_000; await w.tick()
+ reading = { micApps: [], events: [] }; clock += 31_000; await w.tick()
+ expect(log.filter((l) => l.startsWith('auto'))).toEqual([])
+ })
it('a recording started by hand with no call is never stopped', async () => {
active = meeting({ app: null })
reading = { micApps: [], events: [] }