Skip to content

Breakdown GeminiClient.startChat into modular methods/flow controller #10

Closed

Description

@rakyll

Description of the bug:

No response

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

Activity

  1. rakyll commented on Apr 19, 2025

    @rakyll
    ContributorAuthor

    Fixed by #42.

  2. added a commit that references this issue on Jul 8, 2025
  3. added
    effort/medium
    on Sep 11, 2026
  4. gemini-cli commented on Sep 11, 2026

    @gemini-cli
    Contributor

    Effort Analysis:
    The failure to resume ACP sessions on Windows originates from two architectural synchronization issues. First, getProjectHash in packages/core/src/utils/paths.ts calculates the SHA256 hash of the projectRoot string without prior normalization. On Windows, inconsistencies in drive letter casing (e.g., C:\ vs c:\) and the use of mixed path separators lead to divergent hashes for the same project directory, causing SessionSelector in packages/cli/src/utils/sessionUtils.ts to search the wrong chat directory. Second, the newSession method in packages/cli/src/acp/acpSessionManager.ts indiscriminately generates a new UUID for every session and ignores any potential sessionId passed in the NewSessionRequest. This results in a state mismatch with ACP clients like Zed that track sessions using their own identifiers. The fix requires implementing cross-platform path normalization in the core utility and refactoring the ACP session manager to respect client-provided identifiers, followed by integration testing across packages/cli and packages/core to ensure reliable session discovery.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2status/bot-triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions