Skip to content

Conversation

@ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Nov 28, 2025

Reverts:

Due to a huge number of regressions.

Generated with mux

Reverts:
- 470e4eb perf: fix streaming content delay from ORPC schema validation (#774)
- b437977 feat: add backend support for soft-interrupts (#767)
- df30cbc fix: use ResultSchema for sendMessage output to prevent field stripping (#773)
- 41c77ef fix: testUtils formatting (#771)
- 3ee7288 refactor: migrate IPC layer to ORPC for type-safe RPC (#763)
@ethanndickson ethanndickson added this pull request to the merge queue Nov 28, 2025
Merged via the queue into main with commit a2a417e Nov 28, 2025
14 of 15 checks passed
@ethanndickson ethanndickson deleted the revert-commits-from-main branch November 28, 2025 04:38
ThomasK33 added a commit that referenced this pull request Nov 29, 2025
This commit reintroduces the ORPC refactoring that was originally merged
in #763 and subsequently reverted in #777 due to regressions.

## Original PR: #763
Replaces the custom IPC layer with oRPC for type-safe RPC between
browser/renderer and backend processes.

## Why it was reverted (#777)
The original migration caused regressions including:
- Streaming content delay from ORPC schema validation
- Field stripping issues in sendMessage output
- Auto-compaction trigger deletion

## What's different this time
- Rebased onto latest main which includes fixes that were developed
  post-revert (model favorites, auto-compaction, etc.)
- Conflict resolution preserves upstream features added after revert:
  - Workspace name collision retry with hash suffix
  - Mux Gateway coupon code handling with default models
  - AWS Bedrock credential nested structure

## Key Changes

### Architecture
- New ORPC router (src/node/orpc/router.ts) - Central router with Zod schemas
- Schema definitions (src/common/orpc/schemas.ts) - Shared validation
- ServiceContainer (src/node/services/serviceContainer.ts) - DI container
- React integration (src/browser/orpc/react.tsx) - ORPCProvider and useORPC()

### Transport
- Desktop (Electron): MessagePort-based RPC via @orpc/server/message-port
- Server mode: HTTP + WebSocket via @orpc/server/node and @orpc/server/ws
- Auth middleware with timing-safe token comparison

### Removed
- src/browser/api.ts (old HTTP/WS client)
- src/node/services/ipcMain.ts (old IPC handler registration)
- Old IPC method definitions in preload.ts

---
_Generated with mux_
ThomasK33 added a commit that referenced this pull request Nov 29, 2025
This commit reintroduces the ORPC refactoring that was originally merged
in #763 and subsequently reverted in #777 due to regressions.

## Original PR: #763
Replaces the custom IPC layer with oRPC for type-safe RPC between
browser/renderer and backend processes.

## Why it was reverted (#777)
The original migration caused regressions including:
- Streaming content delay from ORPC schema validation
- Field stripping issues in sendMessage output
- Auto-compaction trigger deletion

## What's different this time
- Rebased onto latest main which includes fixes that were developed
  post-revert (model favorites, auto-compaction, etc.)
- Conflict resolution preserves upstream features added after revert:
  - Workspace name collision retry with hash suffix
  - Mux Gateway coupon code handling with default models
  - AWS Bedrock credential nested structure

## Key Changes

### Architecture
- New ORPC router (src/node/orpc/router.ts) - Central router with Zod schemas
- Schema definitions (src/common/orpc/schemas.ts) - Shared validation
- ServiceContainer (src/node/services/serviceContainer.ts) - DI container
- React integration (src/browser/orpc/react.tsx) - ORPCProvider and useORPC()

### Transport
- Desktop (Electron): MessagePort-based RPC via @orpc/server/message-port
- Server mode: HTTP + WebSocket via @orpc/server/node and @orpc/server/ws
- Auth middleware with timing-safe token comparison

### Removed
- src/browser/api.ts (old HTTP/WS client)
- src/node/services/ipcMain.ts (old IPC handler registration)
- Old IPC method definitions in preload.ts

---
_Generated with mux_
ThomasK33 added a commit that referenced this pull request Nov 30, 2025
This commit reintroduces the ORPC refactoring that was originally merged
in #763 and subsequently reverted in #777 due to regressions.

## Original PR: #763
Replaces the custom IPC layer with oRPC for type-safe RPC between
browser/renderer and backend processes.

## Why it was reverted (#777)
The original migration caused regressions including:
- Streaming content delay from ORPC schema validation
- Field stripping issues in sendMessage output
- Auto-compaction trigger deletion

## What's different this time
- Rebased onto latest main which includes fixes that were developed
  post-revert (model favorites, auto-compaction, etc.)
- Conflict resolution preserves upstream features added after revert:
  - Workspace name collision retry with hash suffix
  - Mux Gateway coupon code handling with default models
  - AWS Bedrock credential nested structure

## Key Changes

### Architecture
- New ORPC router (src/node/orpc/router.ts) - Central router with Zod schemas
- Schema definitions (src/common/orpc/schemas.ts) - Shared validation
- ServiceContainer (src/node/services/serviceContainer.ts) - DI container
- React integration (src/browser/orpc/react.tsx) - ORPCProvider and useORPC()

### Transport
- Desktop (Electron): MessagePort-based RPC via @orpc/server/message-port
- Server mode: HTTP + WebSocket via @orpc/server/node and @orpc/server/ws
- Auth middleware with timing-safe token comparison

### Removed
- src/browser/api.ts (old HTTP/WS client)
- src/node/services/ipcMain.ts (old IPC handler registration)
- Old IPC method definitions in preload.ts

---
_Generated with mux_
ThomasK33 added a commit that referenced this pull request Nov 30, 2025
This commit reintroduces the ORPC refactoring that was originally merged
in #763 and subsequently reverted in #777 due to regressions.

## Original PR: #763
Replaces the custom IPC layer with oRPC for type-safe RPC between
browser/renderer and backend processes.

## Why it was reverted (#777)
The original migration caused regressions including:
- Streaming content delay from ORPC schema validation
- Field stripping issues in sendMessage output
- Auto-compaction trigger deletion

## What's different this time
- Rebased onto latest main which includes fixes that were developed
  post-revert (model favorites, auto-compaction, etc.)
- Conflict resolution preserves upstream features added after revert:
  - Workspace name collision retry with hash suffix
  - Mux Gateway coupon code handling with default models
  - AWS Bedrock credential nested structure

## Key Changes

### Architecture
- New ORPC router (src/node/orpc/router.ts) - Central router with Zod schemas
- Schema definitions (src/common/orpc/schemas.ts) - Shared validation
- ServiceContainer (src/node/services/serviceContainer.ts) - DI container
- React integration (src/browser/orpc/react.tsx) - ORPCProvider and useORPC()

### Transport
- Desktop (Electron): MessagePort-based RPC via @orpc/server/message-port
- Server mode: HTTP + WebSocket via @orpc/server/node and @orpc/server/ws
- Auth middleware with timing-safe token comparison

### Removed
- src/browser/api.ts (old HTTP/WS client)
- src/node/services/ipcMain.ts (old IPC handler registration)
- Old IPC method definitions in preload.ts

---
_Generated with mux_
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.

2 participants