Skip to content

[epic] Tauri/React performance & architecture improvements (terminal, IPC, main-thread, worktree) #81

@Zeus-Deus

Description

@Zeus-Deus

Context

A performance/architecture review of comparable Tauri-based agentic development environments (against the official Tauri v2 and xterm.js docs) surfaced a set of concrete improvements for Codemux's stack (Tauri + Rust + React/TS). This is the tracking issue.

Already in good shape (validated, no action): Bun-based agent sidecar runtime, per-workspace port + CODEMUX_* env isolation, desktop setup-script hook, PTY output already streamed over a Tauri Channel, and chat messages already React.memo'd with stable keys + tail-isolated streaming.

The items below are the real gaps. Each linked issue is self-contained (file:line evidence, steps, acceptance criteria, verify commands).

Recommended sequence

Start with the terminal + main-thread wins — highest leverage, lowest risk, and several reuse code already in the tree.

Tier 1 — quick / high-leverage

Tier 2 — high-leverage, medium effort

Tier 3 — lower urgency / larger

Optional / feature

Explicitly out of scope (reviewed and rejected)

  • Migrating React Router → TanStack Router for perf — the claimed gain could not be substantiated.
  • Idle-agent shutdown + --resume <uuid> lifecycle changes — unsubstantiated; our Bun sidecar model already differs.
  • Switching the agent runtime to Bun — already done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions