Repository navigation
feat(transcripts): show the saved transcript note in the player's Transcript panel - #562
Merged
Merged
Conversation
…nscript panel When an episode's feed publishes no transcript, or its transcript does not load, the Transcript panel now reads the episode's transcript note from the vault and shows its lines, with times to play from, Follow, Find and speaker names. The panel's head reads "Saved note" and keeps Open note. A feed transcript still comes first. The note's times come from the obsidian://podnotes links PodNotes writes, so a format such as mm:ss that leaves out the hours still plays from the right second. A note without links falls back to a leading clock such as [00:12:34], 12:34 or 1:02:03, and a note without any time shows as paragraphs. Frontmatter, headings and the template's header are left out, and the escapes PodNotes writes are undone. The panel reads the note again when it is saved, moved or edited, so a transcription that just finished shows at once. Only the feed's transcript is cached. Fixes #561
… the saved-note transcript measures
chhoumann
marked this pull request as ready for review
November 30, 2026 16:48
Deploying podnotes with
|
| Latest commit: |
1df29ed
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d7690719.podnotes.pages.dev |
| Branch Preview URL: | https://chhoumann-feat-transcript-pa.podnotes.pages.dev |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 75441d3. Configure here.
When the note stood in for a feed transcript that did not load, every save of the note ran the whole load again. The feed's failure is not cached, so each save fetched the feed transcript again, up to its timeout, before the edit showed. An edit now re-reads the note alone, and leaves a feed transcript on screen. A note edited down to no text loads again from the start.
…note re-read measures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
When an episode's feed publishes no transcript, or its transcript does not load (including offline), the full player's Transcript panel now shows the episode's saved transcript note. Its lines get times to play from, Follow, Find and speaker names. Before this, the panel showed only Open note, so a transcript made with your own Whisper server could not follow playback. The panel's head reads Saved note without the Free tag, and keeps Open note. A feed transcript still comes first.
obsidian://podnotes?...&time=link that PodNotes writes, so a timestamp format such asmm:ss, which leaves out the hours, still plays from the right second. Without a link, a leading clock works:[00:12:34],- 12:34(always minutes and seconds) or1:02:03. A note with no time at all shows as paragraphs, which Find can search but which cannot be selected.C:\Userskeeps its backslash. Speaker labels are read with the current Speaker template. If the template changed since the note was saved, the old label stays in the text.modify). A transcription that just finished therefore shows without reopening the panel, and the current lines stay on screen while the note is re-read. An edit re-reads only the note. The feed is not asked again, so a feed transcript that failed is not refetched on every save, and a feed transcript on screen stays there. A note edited down to no text loads again from the start. Only the feed's transcript is cached; the note is read withvault.cachedRead.parseTranscriptNote(src/services/publishedTranscript/note.ts) returns the existingParsedTranscripttype, so it adds nothing for the UI layer to import. It reads speaker labels with the sameformatSpeakerLabelthat writes them. Everything runs on Obsidian APIs that mobile also has, with no Node APIs.Fixes #561
Verification
Obsidian 1.14.4 and 1.13.7, Linux (isolated worktree instance, headless).
Reporter's flow, driven by hand with
.claude/skills/verify. A local fileFixtures/Local Fixture.wav(60 s) was played with Play with PodNotes from the file explorer. Transcription provider was set to OpenAI-compatible server, pointing at the verify fixture serverhttp://podnotes.test:<port>/v1in place of a local Whisper server. I set this provider through the plugin settings object, not the Settings tab. Selecting Transcribe with your server in the panel wrotetranscripts/local file/Local Fixture.mdwith linked times 0 and 12. The panel then switched from "No transcript yet" to Saved note with both lines. Selecting the 0:12 line played from 12 s (currentTime13.99 two seconds later), anddev:errorsreported "No errors captured."820 px pane, dark theme:
Commands, all passing on the final head:
npm run lint,npm run format:check,npm run typecheck,npm run build,npm run size,npm run test(126 files, 3,015 tests),npm run test:tooling(9 files, 56 tests),npm run docs:build. After the re-read fix, the new E2E journey passed again on 1.14.4.E2E:
npm run test:e2e -- tests/e2e/journey-transcript.test.ts: 15/15 on 1.14.4, including the new journey. That journey plays a local file with Play with PodNotes next to a saved PodNotes-format note, selects a line and checks playback position, then edits the note withapp.vault.modifyand checks the panel.PODNOTES_OBSIDIAN_APP=/opt/Obsidian/obsidian npm run test:e2e -- ... -t "saved transcript note shows in the panel": passes on 1.13.7.Plants (
npm run plant; each test failed on the plant and passed once it was restored):loadTranscriptexpected [] to deeply equal [...])time=modifyof the noteoffrefthe modify listenerexpected "vi.fn()" to be called 1 times, but got 2 timeson the code before the fix)Release impact
No settings, storage, API or URI changes.
build(size)commits raise bothnpm run sizebudgets by exactly what this feature measures: +2,782 raw bytes and +1,104 gzip bytes (the feature +2,488 / +1,038, then the re-read fix +294 / +66), measured against a separateorigin/masterexport at 333,899 / 109,091. This follows the convention inscripts/size-baseline.md. The gzip-growth case inscripts/size.test.tsmoves from 110,000 to 111,000 random bytes, because 110,000 random bytes now fit under the new gzip budget. The parser and loader minify to about 1.4 KB and the rest is the panel. Please confirm the raise.docs/STYLE.mdsays docs describe only the latest published release.docs/src/content/docs/player.md("The panel shows only transcripts that feeds publish, so it does not show the note's lines") andtranscripts.mdneed updating after the release that ships this.file-text, so the same page icon shows twice side by side (see the screenshot). The icon matches the agreed spec. A different source icon would be a one-word change.Note
Medium Risk
Touches core transcript loading, vault I/O, and playback seek timing in the player UI, with moderate bundle growth but no settings or persistence schema changes.
Overview
The full player Transcript panel can now render an episode's saved transcript note when the feed has no transcript or the feed fetch fails (including offline). Feed transcripts still win when present; the header switches to Saved note (no Free tag) when the note is the source, with seekable lines, Find, Follow, and speakers where parsing allows.
A new
parseTranscriptNotemodule recovers timed cues from PodNotesobsidian://podnotes?time=links, bare/list clocks, and speaker templates, with untimed fallback for notes without times.loadTranscript/readNotewire that into the panel; vaultmodifyre-reads the note only (no feed refetch on edit) while feed results stay cached.main.jssize budgets rise to 336,681 raw and 110,195 gzip, with matching updates in docs,size.mjs, and tests. Unit, panel, and E2E coverage exercise note fallback, live edits, and precedence over failed feeds.Reviewed by Cursor Bugbot for commit 1df29ed. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Show saved transcript note in the player's Transcript panel
parseTranscriptNotein note.ts, which parses saved note Markdown into timed cues or untimed paragraphs. Timestamps come from timestamp links (including PodNotes Obsidian URLs) or leading clocks; speaker labels match the configured speaker template; returns undefined when the note has no transcript text.loadTranscriptin transcript.ts now returns a source-and-transcript pair: it prefers the feed transcript and falls back to the saved note when the feed has none or fails. A feed failure still rejects when the note is empty.Saved notelabel, rereads the note after it is modified, and cleans up its vault listener and active request.loadTranscript's return shape changed toShownTranscript, and transcript lines now useTranscriptCueinstead ofTranscriptParagraph.Macroscope summarized 1df29ed.