Repository navigation
feat(desktop): toggle reading tasks with undo and follow block links - #190
Merged
Merged
Conversation
# Conflicts: # docs/design/app.md # go.mod # go.sum # internal/desktop/reading/view.go # internal/desktop/reading/view_test.go # internal/desktop/window/tabs.go # internal/desktop/window/window_test.go # internal/render/markdown_test.go # packaging/flatpak/go-sources.json
bketelsen
changed the base branch from
fix/render-image-source-span
to
feat/native-media
November 11, 2026 07:47
This was referenced Nov 11, 2026
6 tasks done
frostyard-machines
previously approved these changes
Nov 11, 2026
# Conflicts: # AGENTS.md # go.mod # go.sum # packaging/flatpak/go-sources.json
Closed
3 tasks
5 tasks done
frostyard-machines
approved these changes
Nov 11, 2026
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
Reading-view task clicks change exactly one original task marker through the shared document and support undo/redo, including notes opened directly in reading mode. Generated Markdown includes an optional source-line map so frontmatter, comments and callouts preserve the edit target; embedded notes remain read-only. Block links resolve to their rendered block and repeated clicks scroll again. Stale actions are disabled and rechecked after synchronizing pending editor changes.
Closes #149. Closes #174. Uses the pinned task-action and anchor capabilities from bketelsen/mygo#2, stacked on its line-style PR. Stacked on #189.
Risk tier
Risk tier: 3 —
internal/desktop/reading/view.gois L1. Source edits require the same rendering after buffer sync, a mapped original line and a parsed task marker; generated/embed lines cannot write. Writes use the existing base-aware document save/merge path. The source map is additive and optional; missing maps disable actions.Docs housekeeping
Updated canonical AGENTS.md, app design, rendering/native UI specs and desktop plan with reciprocal links. The contract changed in YAML and was regenerated, including Go, TypeScript and RPC documentation.
Verification
mise exec -- make checkandmake desktop-buildpassed; Flatpak sources include the merged frostui pin and retain the required MyGo fork hooks.Merge order
Remaining merge order: #191 → #188 → #189 → #190. #187 was merged into #188, so its math changes land with #188. Preserve ancestry with merge commits, or rebase the remaining branches after a squash merge. Merge #189 first, then retarget this PR to
main. CI and Flatpak workflows are dispatched on this final branch because PR CI is restricted to amainbase.Fresh checks for
de1ca45: CI and Flatpak. See each run for its current status.Update (2026-11-11): moved onto MyGo v0.9.0 by merging
main(MyGo v0.9.0, build(desktop): move to MyGo v0.9.0 #192) and fix(deps): adopt merged frostui and stabilize async checks #191's updated branch are merged into feat(desktop): style live headings and tasks and render native math #188, then feat(desktop): style live headings and tasks and render native math #188 into feat(desktop): play vault audio and video natively #189, and feat(desktop): play vault audio and video natively #189 into feat(desktop): toggle reading tasks with undo and follow block links #190, without force-pushes. Nothing frommainis rolled back: feat(desktop): style live headings and tasks and render native math #188's diff againstmainis its own work plus fix(deps): adopt merged frostui and stabilize async checks #191's.frostyard/nextatd97fd2e1: v0.9.0 with editor: show elements between lines egoist/mygo#1662, per-line styles, and the Markdown view's task actions and anchors. It replaces the old fork commits5fa528b3andd805de38, which predate v0.9.0. The replace's comment, plan 0009 andAGENTS.mdsay it goes once all of these are in a MyGo release.Local results
On each of #188, #189 and #190, these are green:
make checkgo test -raceover./internal/desktop/...and./internal/render/make desktop-buildmake desktop-evidenceon #190: the tree at a median of 369 µs, the switcher at 4.8 ms, and a phone edit in 8.7 ms.Typing cost: about 2.7 ms a keystroke in source mode, and 11.6 to 12.7 ms in live preview, against
main's 9.0 ms without per-line styles and the 16 ms budget.Not verified yet
make desktop-smokedidn't run locally, because the host has noxvfb-run. Its first run is CI's.pull_requestruns only on PRs tomain, so feat(desktop): play vault audio and video natively #189's and feat(desktop): toggle reading tasks with undo and follow block links #190's CI and Flatpak workflows were started by hand withworkflow_dispatchon their branches. Those runs may not appear among the PR's checks.