Skip to content

Revert CODEX_ACP_BRIDGE_VERSION and fix main-process log persistence #1367

@kaizhou-lab

Description

@kaizhou-lab

Problem

  1. PR fix(acp): bump bridge versions and fix Windows UTF-8 encoding for npx #1316 bumped CODEX_ACP_BRIDGE_VERSION from 0.9.5 to 0.10.0. Users have reported issues with the new version.
  2. Main-process console.log output was not being persisted to electron-log file transport.
  3. src/index.ts contained too much business logic (~1060 lines), making it hard to maintain.

Solution

  1. Revert CODEX_ACP_BRIDGE_VERSION back to 0.9.5 in src/types/acpTypes.ts
  2. Redirect main-process console to electron-log via Object.assign(console, log.functions)
  3. Extract business code from src/index.ts into dedicated modules:
    • src/process/tray.ts — system tray logic
    • src/process/deepLink.ts — deep link parsing and handling
    • src/process/webuiConfig.ts — WebUI config resolution
    • src/process/mainWindowLifecycle.ts — main window reference binding and show/focus helpers
    • Move DevTools IPC providers to src/process/bridge/applicationBridge.ts

Note: CLAUDE_ACP_BRIDGE_VERSION (0.21.0) is unaffected and remains unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions