Files
doona/changes
Zakk 9839b3430f fix(events): key event rows by kind and id (#502)
A user on beta.14 (Chrome 154, 32 GB) hit "Out of Memory" on the Events
page by switching between Connections and Events. Reproduced in the KVM
lab against honk debug.2026.10.4.native-api.2: 30 switches crash the
tab; JS event listeners on Events grew from 546 to 4813 in 3 minutes
while DOM stayed flat, and the heap held a chain of React Aria
`setFocusedKey` wrappers retaining old collections.

Cause: an event's id is its stream cursor, and the `stream.ready` that
opens a resumed stream repeats the cursor of the event before it (see
`src/store/events.ts`). The Events table (`src/features/events/view.ts`)
and the notices (`src/features/activity/view.ts`, notice feed in
`src/store/logs.ts`) keyed rows by id alone, so each reconnect, which
every Connections/Events switch causes, added a duplicate key.

Fix: `eventKey` (kind + id) for those rows and the notice feed, as the
events feed already keyed. With row keys changed to kind + id, the same
30-switch run no longer crashes.

No UI change. Unit tests updated; e2e runs in CI.
2026-10-06 04:10:20 +11:00
..

Changelog fragments

For each pull request, add one Markdown file named after the branch slug: replace / and other non-alphanumeric characters with -, use lowercase, and collapse repeated hyphens. For example, fix/dns-worker-timeout becomes changes/fix-dns-worker-timeout.md.

The first line is one of Added, Changed, Fixed, Removed, Security, or Internal. Follow it with one or more - bullet lines, each describing a change. Blank lines are allowed. Do not add a PR number: the renderer looks up the commit that added the fragment.

Fixed

- DNS workers stop waiting when a request times out.
- Retrying a timed-out request starts a new worker.
Internal

- Contributors write changelog fragments instead of editing the shared Unreleased section.

Use Internal for contributor-facing changes. Fragments are grouped as Added, Changed, Fixed, Removed, Security, then Internal, with filenames sorted within each group. README.md is not a fragment.

PRs that touch shipped code in src/, mock/, install/, or public/ must add a new fragment. Modifying or renaming an existing fragment does not count. Test-only changes (*.test.ts, *.test.tsx, *.test.mjs, and e2e specs) and documentation-only changes (*.md except CHANGELOG.md) do not require one; their check lanes stay unchanged. A PR that also changes shipped code still needs a fragment. Maintainers can apply the no-changelog label when an entry is unnecessary.

CI validates every added or changed fragment from the PR head with the release parser, including fragment-only PRs and PRs labeled no-changelog. Invalid fragments fail with their filename and the parser's reason.

Preview and release

From the repository root, with Node and pnpm installed:

pnpm changelog:render

This prints the generated ## [Unreleased] section without changing files. Install and authenticate GitHub CLI to include PR numbers. The renderer uses gh api repos/{owner}/{repo}/commits/{sha}/pulls for the commit that added each fragment; it prefers a merged PR when GitHub returns several. If Git history or GitHub is unavailable, it warns on stderr and leaves the number out.

After the existing handwritten Unreleased entries have been released, collect fragments for a release:

pnpm changelog:release 0.1.0-beta.14 2026-10-10

This creates ## [0.1.0-beta.14] - 2026-10-10 in CHANGELOG.md, updates its comparison links, and deletes the consumed fragments. The Unreleased heading and fragment note remain. It refuses to overwrite handwritten Unreleased entries. Review warnings before publishing: offline release entries have no PR numbers. Commit the changelog and fragment deletions with the other release changes; this command does not update the package version or create a tag.