fix(patch): cherry-pick 1b274b0 to release/v0.27.0-preview.4-pr-17852 to patch version v0.27.0-preview.4 and create version 0.27.0-preview.5 (#18207)

Co-authored-by: Gaurav <39389231+gsquared94@users.noreply.github.com>
This commit is contained in:
gemini-cli-robot
2026-02-03 09:46:40 -08:00
committed by GitHub
parent fd85363d13
commit f55b52ab58
3 changed files with 50 additions and 8 deletions

View File

@@ -305,6 +305,9 @@ describe('clipboardUtils', () => {
});
it('should return null if tool is not yet detected', async () => {
// Unset session type to ensure no tool is detected automatically
delete process.env['XDG_SESSION_TYPE'];
// Don't prime the tool
const result = await clipboardUtils.saveClipboardImage(mockTargetDir);
expect(result).toBe(null);