Skip to content

fix(v3): October 29 nightly fixes and dependency cleanup - #6519

Merged
leaanthony merged 3 commits into
masterfrom
codex/nightly-2026-10-29-public
Oct 30, 2026
Merged

leaanthony merged 3 commits into
masterfrom
codex/nightly-2026-10-29-public

Conversation

@taliesin-ai

Copy link
Copy Markdown
Collaborator

Summary

Port the 29 October nightly fixes, dependency cleanup, performance improvements and regression tests onto current public master. This is a draft for review, not release approval. Bug fixes belong to nightly patches, outside the feature-only v3.1.0 milestone.

The source work comprised 95 commits: 30 fixes, 61 performance/maintenance/refactor changes and 4 supporting test changes. The public port is squashed onto public history and reconciles changes already made on master.

Public-base reconciliation and security correction

  • Retain the established macOS keyring backend. Security review found the proposed replacement exposed signing secrets in process arguments and did not decode credentials from prior releases. Keeping the existing backend preserves stdin-based secret delivery and stored-value compatibility. Consequently, the keyring dependency remains; Linux/Windows adapters and the individual Secret Service item-unlock fix are included.
  • Preserve newer dependency versions, current release-tag filtering and its ten-page bound, runtime version pins in generated templates, and the generator's current typechecking workflow. Reconcile lockfiles and rebuild both embedded runtime bundles and the runtime package output.
  • Preserve the public CLI copy fix that obtains permissions from the same opened source being copied, while streaming contents through the existing copier. Keep same-file/hard-link protection.
  • Apply the Svelte dependency cleanup to the renamed package.json.tmpl.
  • Exclude the translation-helper performance change because that helper no longer exists on public master; its tests and benchmark are also excluded. No removed website functionality is restored. Pin website installs to pnpm 10.34.7 with a frozen lockfile.
  • Do not carry repository-specific agent-instruction changes into this code port.

Complete list of fixes

  • fix(wake): preserve explicit zero and negative test counts
  • fix(wake): use shell fallback for argument expansion
  • fix(updater): restrict private-key permissions before overwriting
  • fix(wake): preserve trailing Go test flags for backend validation
  • fix(term): align table columns by terminal display width
  • fix(cli): reject empty Mac icon bundles before writing output
  • fix(fileexplorer): parse quoted desktop launch arguments
  • fix(cli): bound GitHub metadata requests with a deadline
  • fix(wake): retain flags on Go module tidy commands
  • fix(github): reject empty version tags before lookup
  • fix(wake): preserve Go fmt flags and package arguments
  • fix(wake): preserve Go vet flags and package scope
  • fix(download): publish files only after complete transfers
  • fix(wake): preserve frontend installer and script arguments
  • fix(wake): preserve all Go install targets and flags
  • fix(assets): retain request context in HTTP asset logs
  • fix(wake): preserve Go run application flags after the target
  • fix(devproxy): avoid replaying non-idempotent requests by default
  • fix(wake): preserve complete Go test argument vectors
  • fix(assets): format root WebView request URIs as HTTP targets
  • fix(wake): route unquoted file globs through the shell
  • fix(wake): track native sources in implicit Go build cache inputs
  • fix(wake): invalidate Go cache when the source file set changes
  • fix(windows): propagate file dialog COM failures
  • fix(server-example): refresh stale local module requirements
  • fix(service): import HTTP and logging packages in generated handlers
  • fix(cleanup): scope package artifacts and skip Git metadata
  • fix(website): install the locked graph with the pinned pnpm version
  • fix(semver): reject empty prerelease and build suffixes
  • fix(credentials): unlock individual Secret Service items before access

Performance and maintenance scope

Reduce direct dependency use in icons/universal binaries, user paths, doctor hardware/PCI reports, generator constraints, WebView2 IDL/download tooling, runtime docs/builds/tests, starter manifests and examples. Optimize semver/changelog processing, terminal widths, Wake cache hashes/build tags, binding flags, content lengths and streaming file copies. Direct dependency removals are not equivalent to transitive graph removals; several dependencies remain indirectly selected, and macOS keyring is intentionally retained.

Security scan and fresh validation

  • Gitleaks scanned the source patch and the public diff plus source commit messages. The only finding was the published RFC 6455 sample WebSocket handshake nonce used by a regression fixture; excluding that exact public nonce yields no detected secrets. The final public commit history scan also found no secrets; the PR text and final diff were scanned before publication.
  • Targeted manual review and an independent reviewer inspected credentials, staged downloads, private-key permissions, proxy retries, shell routing and file-copy boundaries. The macOS credential regression above was corrected before publication.
  • Ripwire structural triage covered credential/download code, credential sink calls, bounded call-graph reach and integration seams. A v3-wide scan of unsafe C functions, C-style casts and weak crypto reported uncapped output; its 274 cast hits were outside changed files, with no unsafe-function or weak-crypto hits. This is not a taint proof. Existing WebSocket example permissive-origin behavior and Linux local D-Bus plain-session behavior were not introduced here.
  • CodeRabbit's aggregate review was attempted but exceeded its 150-file plan limit. A focused credential-store review identified the macOS issue above; the final 7-file credential-store rerun reported no new findings. The prior findings target the removed Darwin helper. This is not a claim that the entire diff passed CodeRabbit.
  • Focused Go tests passed for commands, templates, the generator, updater and providers, icons, hardware, user paths and GitHub semver/tag handling. Race tests passed for credentials, staged downloads, GitHub helpers, Wake, asset serving/proxy retry behavior, terminal tables, type constraints, universal binaries, generated services and cleanup/sed tasks. Focused vet passed.
  • WebView2 scripts-module tests passed. Generator cycle-check tests passed (14), generated TypeScript typechecking and circular-import checks passed.
  • Runtime tests passed: 1,208 tests across 7 files, plus 12 rebuilt-bundle tests. The runtime package and embedded debug/production bundles were rebuilt. Runtime npm audit reported zero vulnerabilities for its resolved graph.
  • Darwin and Windows credential packages cross-compiled. These were not native macOS/Windows execution tests. No full desktop/UI, website locale build, live credential service, or complete release matrix was run. Compiler deprecation warnings from GTK headers remain.

Complete source change inventory

Chronological inventory; the adaptation notes above explain differences in the public port. These are change descriptions, not links to unpublished history.

  • fix(wake): preserve explicit zero and negative test counts
  • perf(term): avoid repeated string growth while padding tables
  • fix(wake): use shell fallback for argument expansion
  • fix(updater): restrict private-key permissions before overwriting
  • perf(changelog): validate lines without allocating a split slice
  • chore(deps): replace winicon with local iconfile generation
  • chore(deps): remove benchmark-only experimental JSON module
  • perf(cli): increment prerelease digits without big integers
  • fix(wake): preserve trailing Go test flags for backend validation
  • fix(term): align table columns by terminal display width
  • fix(cli): reject empty Mac icon bundles before writing output
  • perf(term): measure display widths without allocating line slices
  • perf(deps): replace ICNS dependency with local icon-family encoding
  • fix(fileexplorer): parse quoted desktop launch arguments
  • fix(cli): bound GitHub metadata requests with a deadline
  • perf(changelog): validate bullets without capture allocations
  • perf(semver): compare prerelease identifiers without split allocations
  • perf(changelog): parse bullets without allocating regex captures
  • perf(semver): avoid character-set setup for numeric identifiers
  • fix(wake): retain flags on Go module tidy commands
  • fix(github): reject empty version tags before lookup
  • fix(wake): preserve Go fmt flags and package arguments
  • fix(wake): preserve Go vet flags and package scope
  • fix(download): publish files only after complete transfers
  • fix(wake): preserve frontend installer and script arguments
  • perf(assets): format content lengths without generic formatting
  • fix(wake): preserve all Go install targets and flags
  • fix(assets): retain request context in HTTP asset logs
  • fix(wake): preserve Go run application flags after the target
  • fix(devproxy): avoid replaying non-idempotent requests by default
  • perf(wake): join build tags with one allocation
  • fix(wake): preserve complete Go test argument vectors
  • fix(assets): format root WebView request URIs as HTTP targets
  • perf(cli): request larger pages for GitHub version tags
  • fix(wake): route unquoted file globs through the shell
  • perf(semver): parse core fields without allocating a split slice
  • perf(wake): encode command cache hashes without generic formatting
  • perf(cli): stream tool cp through the existing file copier
  • perf(bindings): avoid cloning flag bytes before string conversion
  • fix(wake): track native sources in implicit Go build cache inputs
  • chore(deps): replace lipo with local universal-binary encoding
  • fix(wake): invalidate Go cache when the source file set changes
  • chore(deps): consolidate the WebSocket example onto coder/websocket
  • test(transport): verify consolidated WebSocket wire compatibility
  • chore(deps): consolidate tests onto the existing assertion library
  • chore(deps): use standard slices in the WebView2 generator
  • chore(deps): replace updater Resty downloads with net/http
  • chore(deps): resolve standard user paths in a local package
  • chore(deps): use standard Go helpers for updater fixture tests
  • chore(deps): reuse x/term for development logger terminal checks
  • chore(deps): collect doctor hardware in a local hostinfo package
  • chore(deps): localize doctor report copying using existing platform s…
  • chore(deps): use Node filesystem cleanup instead of Rimraf
  • chore(deps): read doctor PCI names in a local purpose-built package
  • chore(deps): make the Svelte starter compiler config self-contained
  • chore(deps): check generated import cycles with the existing TypeScri…
  • chore(deps): consolidate simple test comparisons onto existing helpers
  • chore(deps): normalize generator constraints in a local package
  • chore(deps): keep terminal logging outside generator configuration
  • chore(deps): read WebView2 IDL with a local grammar-specific parser
  • fix(windows): propagate file dialog COM failures
  • fix(server-example): refresh stale local module requirements
  • chore(deps): prune obsolete modules from Gin examples
  • chore(deps): prune stale modules from print and visibility apps
  • chore(deps): prune retired modules from remaining local demos
  • chore(deps): use native Windows console colors for development logs
  • refactor(deps): isolate release rendering from GitHub lookups
  • refactor(deps): write ICO directories without Windows resource library
  • test(deps): remove terminal UI libraries from analyser fixtures
  • chore(deps): document runtime helper types with a local TypeDoc adapter
  • chore(deps): resolve runtime MDN links through native TypeDoc mappings
  • test(docs): guard all runtime MDN targets after dependency removal
  • chore(deps): run protocol tests with a local browsing-context fixture
  • test(stream): control close-during-open timing and clean up failures
  • perf(icons): reuse PNG compression buffers within icon builds
  • chore(deps): stop seeding starters with obsolete indirect module pins
  • fix(service): import HTTP and logging packages in generated handlers
  • chore(deps): use standard flags in the standalone sed task
  • chore(deps): prune retired requirements from generated service modules
  • fix(cleanup): scope package artifacts and skip Git metadata
  • refactor(deps): store signing credentials through local platform adap…
  • chore(deps): build embedded runtime with the existing Vite toolchain
  • refactor(deps): use Bubble Tea's timer for doctor loading animation
  • chore(deps): remove unused website compiler dependencies
  • chore(deps): prune stale colour requirements from Gin examples
  • chore(deps): drop redundant setup-wizard PostCSS requirement
  • chore(deps): let the classic preset own the website search theme
  • chore(deps): stop installing unused runtimes in mobile examples
  • fix(website): install the locked graph with the pinned pnpm version
  • chore(deps): stop installing an unused runtime in the iOS example
  • fix(semver): reject empty prerelease and build suffixes
  • chore(deps): remove the website's legacy class-name helper
  • fix(credentials): unlock individual Secret Service items before access
  • perf(semver): format version strings with standard append helpers
  • perf(website): skip translation dependencies without credentials — excluded: helper absent from current public master

Preserve current public dependency versions and release behavior. Retain the established macOS keyring backend after security review to avoid exposing secrets in process arguments and preserve stored credential compatibility.
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@leaanthony
leaanthony marked this pull request as ready for review October 30, 2026 11:26
Copilot AI balanced review requested due to automatic review settings October 30, 2026 11:26
@leaanthony
leaanthony enabled auto-merge October 30, 2026 11:26
@leaanthony
leaanthony merged commit bcbdad0 into master Oct 30, 2026
59 checks passed
@leaanthony
leaanthony deleted the codex/nightly-2026-10-29-public branch October 30, 2026 11:30
leaanthony pushed a commit that referenced this pull request Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The change is an exceptionally large squashed port spanning 95 commits across security-sensitive areas like credential storage, updater key permissions, and download staging, yet native platform execution and full validation remain unperformed, requiring broader quorum review.

No open issues 🎉

8 files not reviewed
  • v3/examples/android/frontend/package-lock.json: Generated file
  • v3/examples/ios/frontend/package-lock.json: Generated file
  • v3/examples/mobile/frontend/package-lock.json: Generated file
  • v3/internal/generator/testdata/package-lock.json: Generated file
  • v3/internal/runtime/desktop/@wailsio/runtime/package-lock.json: Generated file
  • v3/internal/setupwizard/frontend/package-lock.json: Generated file
  • website/package-lock.json: Generated file
  • website/pnpm-lock.yaml: Generated file
What changed in this PR

This PR ports the 29 October nightly bug-fix and dependency-cleanup work onto public master as a draft. It reconciles three threads: (1) correctness fixes to the Wake build runner, file dialogs, asset server, updater, credentials, semver/changelog handling and Linux file-explorer launching; (2) a large dependency reduction that replaces third‑party libraries (ghw, winicon, icns, lipo, resty, participle, slicer, go-isatty/go-colorable, adrg/xdg, matryer/is, go-cmp) with small internal packages or stdlib/x/* equivalents; and (3) allocation/throughput optimizations with accompanying benchmarks and regression tests. The macOS keyring backend is intentionally retained (now behind a new per‑OS credentialstore abstraction), and the embedded runtime bundles are rebuilt with a Vite-based pipeline replacing esbuild.

Changes:

  • New internal packages replace external deps: userpaths (xdg), hostinfo/reportcopy (ghw/doctor), iconfile/universalbinary (icns/winicon/lipo), credentialstore (per‑OS keyring/wincred/Secret Service), idlreader/typeconstraints (participle/x-exp), releasenotes, and term logger.
  • Behavioral fixes: preserve full Go test/vet/fmt/install/run/mod argument vectors in Wake, propagate COM HRESULT failures, bound GitHub requests with deadlines, stage downloads before publishing, restrict updater private‑key permissions, and align terminal tables by display width.
  • Dependency/tooling cleanup: website/svelte/example manifests pruned, runtime bundles rebuilt via build-embedded.mjs, and test suites migrated to testify/stdlib.
File Description
v3/​internal/​wake/​cmds/​native.go Preserve vet/install arg vectors; joinTags via strings.Join
v3/​internal/​wake/​cmds/​shell.go (context) Routes args into new Args fields for go subcommands
v3/​internal/​wake/​cmds/​*_test.go, cmds_test.go New/updated offline-go fixtures; removed obsolete count-parse tests
v3/​internal/​wake/​exec/​exec.go, *_test.go RecordGoCmd now takes sources; native-source cache inputs tracked
v3/​internal/​userpaths/​*.go, personal.go New user-path resolver replacing adrg/xdg, per‑OS defaults + user-dirs parsing
v3/​pkg/​application/​path.go, path_test.go Switch path map to userpaths.Resolve()
v3/​internal/​credentialstore/​*.go New per‑OS credential vault; darwin keeps go-keyring, unix uses D-Bus
v3/​internal/​keychain/​keychain.go, _test.go Delegate to credentialstore
v3/​internal/​hostinfo/​*.go New hardware provider replacing ghw in doctor
v3/​internal/​doctor/​doctor.go, doctor-ng/​hardware.go Use hostinfo for CPU/GPU/memory
v3/​internal/​reportcopy/​*.go New clipboard writer for doctor reports
v3/​internal/​iconfile/​*.go, commands/​icons.go Local ICNS/ICO encoders replacing icns/winicon
v3/​internal/​universalbinary (via tool_lipo.go, _test.go) Local universal-binary encoder replacing lipo
v3/​internal/​go-common-file-dialog/​cfd/​hresult*.go, vtblCommonFunc.go, CommonFileDialog_windows.go Fix unsigned HRESULT compare; release dialogs on config error
v3/​internal/​commands/​updater_tool.go, _test.go Restrict private-key mode before overwrite
v3/​internal/​commands/​tool_cp.go, tool_cp_*test.go, msix.go Streamed copy with mode arg; multi-destination/dir support
v3/​internal/​commands/​tool_version.go, _test.go Big-int-free prerelease bump
v3/​internal/​commands/​releasenotes.go, releasenotes/​*.go, github/​*.go Split fetch (GetReleaseNotes) from rendering; deadline-bound requests, 10-page tag paging
v3/​internal/​assetserver/​*.go, _test.go Context-aware logging; HTTP-form RequestURI; strconv content length; idempotent-only dev-proxy retries
v3/​internal/​s/​s.go Download to staging dir then atomic rename
v3/​internal/​term/​*.go Move PtermLogger into term; display-width table alignment
v3/​internal/​changelog/​*.go, semver/​*.go Allocation-free bullet/line/semver processing + benches
v3/​internal/​webview2/​scripts/​**, generator/​** Replace participle parser with idlreader; migrate tests off is/require
v3/​internal/​generator/​**, collect/​predicates.go, config/​log.go, flags/​bindings.go typeconstraints term API; testify migration; drop flag byte clone
v3/​internal/​service/​template/​**, service_test.go Prune obsolete module reqs; import http/log in generated handler
v3/​internal/​runtime/​** Vite build-embedded.mjs, TypeDoc/vitest env scripts, bundle tests; drop esbuild/rimraf/happy-dom
v3/​pkg/​application/​logger_dev*.go, _test.go x/term/native Windows console-color detection
v3/​pkg/​w32/​*_test.go, events_test.go Migrate tests to testify/require
v3/​examples/​**/​go.mod, frontend manifests, jsconfig.json Swap xdg/go-isatty/go-colorable for x/term; prune unused runtime pins
website/​* , setupwizard/​svelte manifests pnpm pinning, drop unused deps (clsx, algolia, postcss, tsconfig/svelte)

Note: the ~30 near-identical example go.mod, jsconfig.json, and package-lock.json edits are grouped above to keep the table readable; each applies the same indirect-dependency swap or unused-runtime removal.

No blocking issues were identified in the diff. Given the breadth, the security-sensitive surface (credential storage, signing-key permissions, download staging), and the author's note that native macOS/Windows execution and full release validation were not run, final approval is best confirmed by a human maintainer.

Review effort: Balanced

opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-wailsapp__wails that referenced this pull request Oct 31, 2026
Replace the shared unreleased changelog and merge-time writer/revert jobs
with release-local notes generated from PRs in the exact tested Git range.
Preserve PR links/authors, stable-versus-nightly boundaries, and the same
notes in release bodies and the published changelog. Verify input provenance
before live release changes and sync weekly sections without losing newer
history. Update contributor guidance and reject recreation of the old file.

Preserve the existing pending PR wailsapp#6519 entry's exact wording in a cutover
seed scoped to its repository and merge commit. Carry it only while that
commit belongs to the selected release range, without duplicate entries.

Validation on current master: release/releasegate race tests and vet;
14 generator scenarios; 8 workflow checks; changelog validator race tests;
strict documentation build and link checks. Real GitHub generation and a
release dry run preserve the pending entry exactly once. No release or merge.
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.

4 participants