You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Breakdown GeminiClient.startChat into modular methods/flow controller #10
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.
Activity
rakyll commentedon Apr 19, 2025
Fixed by #42.
Merge pull request google-gemini#10 from gen-cli/sync-upstream2
gemini-cli commentedon Sep 11, 2026
Effort Analysis:
The failure to resume ACP sessions on Windows originates from two architectural synchronization issues. First,
getProjectHashinpackages/core/src/utils/paths.tscalculates the SHA256 hash of theprojectRootstring without prior normalization. On Windows, inconsistencies in drive letter casing (e.g.,C:\vsc:\) and the use of mixed path separators lead to divergent hashes for the same project directory, causingSessionSelectorinpackages/cli/src/utils/sessionUtils.tsto search the wrong chat directory. Second, thenewSessionmethod inpackages/cli/src/acp/acpSessionManager.tsindiscriminately generates a new UUID for every session and ignores any potentialsessionIdpassed in theNewSessionRequest. 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 acrosspackages/cliandpackages/coreto ensure reliable session discovery.fix: address gemini-code-assist review feedback