Skip to content

chore: upgrade vite and undici to latest majors #1117

Closed

Description

@Astro-Han

Current versions

  • vite@^7.2.7 (locked 7.3.3) → latest 8.1.5
  • @vitejs/plugin-react@^5.1.2 (locked 5.2.0) → latest 6.0.3
  • undici@^6.25.0 (locked 6.27.0) → latest 8.7.0

Why upgrade

  • vite + plugin-react are a full major version behind and are paired upgrades.
  • undici is two majors behind and is used for core runtime networking:
    • WebSocket clients for bot bridges (discord-bridge.ts, dingtalk-bridge.ts, qq-bridge.ts)
    • Proxied fetch (proxied-fetch.ts)
    • Proxy dispatcher (proxy-dispatcher.ts)

Risks to review

Proposal

  • Open a worktree chore/vite-undici-upgrade.
  • Read the undici v7/v8 and vite 8 migration notes before applying changes.
  • Run npm run build, npm run test, and the E2E provider smoke tests.
  • Manually test the bot bridges and proxy paths if automated coverage is thin.

Activity

  1. added
    enhancement
    on Jul 16, 2026
  2. Nyvo-io commented on Jul 19, 2026

    @Nyvo-io
    Contributor

    I would like to claim #1117.

    Proposed scope:

    • upgrade Vite and @vitejs/plugin-react as a paired major migration, with only the configuration or renderer changes required by their migration contracts;
    • upgrade Undici separately within the same issue, preserving the existing WebSocket, proxied fetch, ProxyAgent, connector, and dispatcher semantics;
    • keep the build-stack and network-stack changes in separate commits so compatibility evidence and rollback boundaries remain clear;
    • add or tighten focused coverage where the current bot-bridge/proxy tests do not exercise an affected Undici contract;
    • run the relevant Desktop build/typecheck/E2E checks, runtime bot/proxy tests, and the repository-wide test/typecheck gates.

    I will keep TypeScript 7, AI SDK 7, unrelated dependency refreshes, and behavioral redesigns out of scope. I will wait for assignment and maintainer confirmation before creating a branch or starting implementation.

  3. Astro-Han commented on Jul 19, 2026

    @Astro-Han
    ContributorAuthor

    Assigned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions