Skip to content

fix(desktop): read a repo's terms on time after a merge, and say what's not known yet - #406

Merged
scornz merged 2 commits into
mainfrom
defsfix
Nov 30, 2026
Merged

scornz merged 2 commits into
mainfrom
defsfix

Conversation

@scornz

@scornz scornz commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

After a pull request with terms that wait for it merged, Lo read the repo's definitions minutes later than it says, and meanwhile kept saying Joins the glossary when #N merges under Merged. GitHub answers a ref's read with x-poll-interval: 300, and the reads wanted after a merge went only with the overview's own read and waited for both that floor and the definitions' own five minutes, so they came to one read, up to ten minutes late. Seen against GitHub.

  • The reads a merge calls for have a timer of their own, where a term waits. While the tab is on screen and, as the definitions were last read, at least one term waits for the pull request, they are read as the pull request is found merged, a minute later and once the workflow has had its five minutes: three times at most, whatever comes of them, in the background of the account's queue, and skipped while a failure's wait isn't over. They follow the merge rather than an interval, so x-poll-interval holds only the regular poll, which counts from the last of them. An edit Lo wrote no longer counts as having read what the workflow moved. The background process says which pull requests terms wait for (overview.waits), once for each file; where none waits, only the regular poll reads them, for a suggestion the merge makes too, as its term reads as the glossary has it until then.
  • A tab shown again reads definitions older than 30 s after a merge too. A wanted read used to ignore that the tab was shown.
  • Merged and not known yet is said as that. Such a term is tagged "May have joined", its row says May have joined the glossary when #N merged, and the line at the top "1 term may have joined at merge". i, d d and the dimmed "Edit term…" say "Not known yet whether it joined the glossary".
  • In a pull request's tab, the commands that change a term go by the tab's own chip. With "Offline" up, i, D and the rest are dimmed and say so, where they opened a dialog that then failed, as the definitions' last read could be five minutes old. The draft is kept.
  • Every test that starts Lo passes the stand-in for the system's keychain itself. Playwright's preload adds it, but only to an Electron it finds itself: a launch that names executablePath gets none. startLo's default and six specs' launches relied on Playwright's, and two that run the binary without Playwright had none. The comments now say what holds.
Testing
  • The three reads come by themselves at their times with x-poll-interval: 300, at background priority, whichever way this computer's clock is off from GitHub's, and the poll counts from the last.
  • They come only while the tab is on screen with an overview to show, as it's shown again if one was missed, after an edit's write too, never more than three for a merge (with a server that fails, a merge dated years ahead and a clock that stopped), and not while a failure's wait isn't over.
  • Where no term waits, only the ordinary poll reads them; where they were only kept from before, the first ordinary read decides; and a tab whose own first read isn't due, as another read them since it found the merge, still gets the reads.
  • A tab shown again after a merge reads what's older than 30 s.
  • A term that may have joined: its kind and place in the list, tag, row note, top line and refusal, and that nothing opens on it.
  • Offline, or no response, by the tab's chip: each refusal, that nothing opens, that the draft comes back, and the dimmed "Try again" of a change that failed.
  • Each launch in apps/desktop/e2e has the stand-in for the keychain, read from the source; and the live run's preload removes each such switch that Playwright's own preload, as installed, names.
E2E Testing

The built app, on the replay server with a pull request that merges as it's read and x-poll-interval: 300: the definitions were read 10, 70 and 306 s after the merge and no more, and the terms went from "May have joined" to joined, or to "Not joined yet"; with the reads kept to where a term waits, 10 and 70 s and joined, and with none that waits, no read in the 70 s after it was found merged. With the server gone and "Offline" up, i and D opened nothing and said "Offline". Not run on GitHub itself.

On a Mac, the settings, git, pull, tabs, offline, database, window and reading specs: 80 passed, and one failed over what this doesn't touch, a Mac-only list of the menus in tabs.spec.ts that lacks "View: Refresh".

@scornz
scornz added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit 8d572ac Nov 30, 2026
18 of 19 checks passed
@scornz
scornz deleted the defsfix branch November 30, 2026 18:39
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.

1 participant