Skip to content

Conversation

@Scoteezy
Copy link
Contributor

Summary

This PR fixes two issues:

  1. Working directories with spaces weren't handled correctly, causing session file
    lookup failures
  2. MCP SDK type instantiation errors (TS2589) breaking the build

Changes

Fix: Spaces in paths

Added space character to path sanitization regex to match Claude CLI's behavior for
session file lookup.

// Before
const projectId = resolve(workingDirectory).replace(/[\\\/\.:]/g, '-');

// After
const projectId = resolve(workingDirectory).replace(/[\\\/.: ]/g, '-');

Fix: MCP SDK TS2589 errors

Added @ts-expect-error directives to suppress "Type instantiation is excessively deep
and possibly infinite" errors caused by MCP SDK's complex generic types.

Affected files:
- src/claude/utils/startHappyServer.ts
- src/codex/codexMcpClient.ts

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.

1 participant