Repository navigation
fix(deps): patch runtime vulnerabilities and update dependencies - #1051
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 20, 2026 08:31
This was referenced Nov 20, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 20, 2026
## Changes - Expire old, unpublished events in the contiguous replication prefix while honoring active leases and the 10,000-record replay window. Expired clients can recover from source history. - Deduplicate exact transcript payloads, including tool JSON and diffs. Preserve full-content replay and reuse the existing content reference when a large preview needs further trimming. - Sweep the worker's preview cache hourly and at startup. Keep files referenced by pending journal events or in-flight writes. - Cap Electron's HTTP disk cache at 64 MiB. Fix a packaged Desktop regression where an origin captured by the bundled adapter caused valid forms to return HTTP 403 in Local or Remote mode. Foreign origins still receive HTTP 403. - Recover Codex turns from native archived and Zstandard-compressed rollouts. Automatic compression remains deferred while import and CLI rollback support are incomplete. The PostgreSQL 17 fixture with 600 items used 21.74 MiB across the three measured relations, down from 26.08 MiB (16.6%). An isolated Electron run retained 60 MiB after receiving 152 MiB of cacheable data. Both measurements are from test fixtures. ## Verification - Ran 460 non-live integration and focused test files on isolated databases. The first run had 2,880 passes, 12 skips and 13 failures. All 13 failing cases passed on focused reruns after fixture isolation and link-readiness fixes or when rerun without the parallel load. - Reran 34 tests for first and subsequent prompts, file and image delivery to Codex, Claude and Grok stand-ins, linked attachment reads, and client continuity. - In a real browser against the test stack, created a thread with a prompt, TXT and PNG, verified the worker received both files, and reopened the conversation. Also verified a follow-up with an attachment and opened the text and image previews. - Built the Linux x64 Desktop bundle. All five packaged-runtime tests and the Electron shell smoke passed. - Targeted typechecks, lint and formatting passed. GitHub CI will run the repository-wide gates for this revision. The mobile Connect transport and history tests ran in the integration suite. The changed form-origin handling and HTTP disk cache are Electron-specific. Native iOS and Android UI and live provider calls were outside this local run. No user-facing copy changed. Refs: #864 Refs: #1051
nixuuu
added a commit
that referenced
this pull request
Nov 22, 2026
## Changes - Pin patched `minimatch` 11.0.9 for `app-builder-lib`, `@electron/universal`, and `@expo/fingerprint`. Pin Bun 1.4.5 in the EAS build profiles to read the resulting v3 lockfile. - Update Effect and its PostgreSQL adapter together, plus Svelte and SvelteKit, Marked, SemVer and its types, Simple Icons, and electron-updater. - Adapt Desktop's download staging to the new electron-updater result type. Keep the prior installer available when an attempted replacement fails. ## Security audit - `bun audit --production --json` reports zero advisories. Installed copies of `minimatch` were checked for all three override targets. - The full audit still reports two moderate findings in `npm`, which `@semantic-release/npm` installs as a release-tool dependency. Current npm 11 and 12 tarballs bundle affected copies of `glob` and `minimatch`. Bun can change the displayed lockfile resolution while the files from the npm tarball remain in place. Canopy's release config uses the GitHub plugin for publication. Reassess these findings when npm ships patched bundles. [CVE-2026-118773](GHSA-3g3m-2fjr-6pw4) · [CVE-2026-118764](GHSA-g3hv-75wg-m249) - Major upgrades, the Claude Agent SDK, and native Expo ecosystem upgrades are deferred for separate compatibility testing. Related: #1051 ## Verification - 212 tests across 18 focused files via `check:tmp`, covering real PostgreSQL, gateway/worker gRPC, BFF, phone and Desktop pairing, packaged Desktop runtime, updater feed/staging and rollback, Markdown, and release planning. - Built the production web bundle, Linux Desktop AppImage and deb packages, and the final Electron shell. In Chrome, navigated onboarding and Settings against a disposable gateway and database, then verified that a changed preference survived reload. - Generated Android and iOS Expo fingerprints and exported Hermes bundles for both platforms. Gateway, Desktop, mobile and web type checks passed. Scoped formatting and lint passed, as did a frozen install and diff check. - GitHub CI covers the full repository gate. Native signed updates on macOS/Windows, native mobile launch, and an EAS cloud build remain unverified.
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.
Changes
Security audit
The Expo and TypeScript ESLint dependency paths to vulnerable packages were removed. The audit still reports CVE-2026-118773 and CVE-2026-118764 at moderate severity through the remaining release, packaging and Expo Fingerprint dependencies. Those packages constrain the patched major versions, and npm bundles its own affected copies.
Verification
No release or deployment was performed.