Skip to content

fix(patch): cherry-pick 858918f to release/v0.29.0-pr-19460 to patch version v0.29.0 and create version 0.29.1#19480

Merged
skeshive merged 1 commit into
release/v0.29.0-pr-19460from
hotfix/v0.29.0/0.29.1/stable/cherry-pick-858918f/pr-19460
Feb 18, 2026
Merged

fix(patch): cherry-pick 858918f to release/v0.29.0-pr-19460 to patch version v0.29.0 and create version 0.29.1#19480
skeshive merged 1 commit into
release/v0.29.0-pr-19460from
hotfix/v0.29.0/0.29.1/stable/cherry-pick-858918f/pr-19460

Conversation

@gemini-cli-robot

Copy link
Copy Markdown
Collaborator

This PR automatically cherry-picks commit 858918f to patch version v0.29.0 in the stable release to create version 0.29.1.

@gemini-cli-robot gemini-cli-robot requested a review from a team as a code owner February 18, 2026 22:15
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @gemini-cli-robot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request facilitates an automated patch release, advancing the project version from v0.29.0 to v0.29.1. The primary changes involve updates to the package-lock.json to reflect peer dependency declarations for several packages and the addition of a new color-convert dependency within the CLI module.

Highlights

  • Automated Patch Release: This pull request was automatically generated to cherry-pick a specific commit (858918f) to create a patch version v0.29.1 from v0.29.0.
  • Dependency Metadata Update: The package-lock.json file was updated to explicitly mark numerous dependencies with "peer": true, clarifying their peer dependency status.
  • New Dependency Added: The color-convert package was introduced as a new dependency for the CLI package.
Changelog
  • package-lock.json
    • Added "peer": true flag to multiple dependency entries, including @octokit/graphql, @opentelemetry/api, @opentelemetry/core, @opentelemetry/resource-detector-gcp, @opentelemetry/sdk-metrics, @opentelemetry/sdk-trace-base, @types/react, @typescript-eslint/eslint-plugin, acorn, eslint, express, @jrichman/ink, react, react-dev-utils, picomatch, tslib, tsx, typescript, vite, vitest, zod, and picomatch (again).
    • Added a new entry for the color-convert package.
  • packages/cli/package.json
    • Added color-convert as a new dependency with version ^2.0.1.
Activity
  • This pull request was automatically generated by a robot to cherry-pick a specific commit for a patch version update.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@skeshive skeshive enabled auto-merge (squash) February 18, 2026 22:16

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request appears to be an automated cherry-pick intended to patch version v0.29.0. The main change is the addition of the color-convert dependency. However, the corresponding code changes to utilize this new dependency seem to be missing, leaving an existing bug in the theme selection logic unfixed. My review identifies this as a critical issue, as the patch is incomplete. The provided comment highlights this problem and suggests a concrete fix.

Comment thread packages/cli/package.json
"chalk": "^4.1.2",
"cli-spinners": "^2.9.2",
"clipboardy": "^5.0.0",
"color-convert": "^2.0.1",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The color-convert dependency is added here, but it's not used anywhere in the codebase. This suggests an incomplete fix, which is critical for a patch release.

There's a bug in the getLuminance function in packages/cli/src/ui/themes/color-utils.ts where it incorrectly handles non-hex color values (like 'white' or 'black'). This can cause incorrect automatic theme selection. This new dependency was likely intended to fix this.

The current buggy getLuminance function:

export function getLuminance(backgroundColor: string): number {
  let hex = backgroundColor.replace(/^#/, '');
  if (hex.length === 3) {
    hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
  }
  const r = parseInt(hex.substring(0, 2), 16);
  const g = parseInt(hex.substring(2, 4), 16);
  const b = parseInt(hex.substring(4, 6), 16);

  return 0.2126 * r + 0.7152 * g + 0.0722 * b;
}

To correctly fix this, getLuminance should be updated to use color-convert to handle different color formats. Here's a suggested implementation:

import convert from 'color-convert';
import { debugLogger } from '@google/gemini-cli-core';

export function getLuminance(backgroundColor: string): number {
  try {
    const rgb = backgroundColor.startsWith('#')
      ? convert.hex.rgb(backgroundColor.slice(1))
      : convert.keyword.rgb(backgroundColor.toLowerCase() as any);
    const [r, g, b] = rgb;
    return 0.2126 * r + 0.7152 * g + 0.0722 * b;
  } catch (e) {
    debugLogger.warn(`Could not parse color "${backgroundColor}" to calculate luminance.`);
    return 0; // Default to dark for safety
  }
}

Please ensure the full fix is included in this patch release.

import convert from 'color-convert';
import { debugLogger } from '@google/gemini-cli-core';

export function getLuminance(backgroundColor: string): number {
  try {
    const rgb = backgroundColor.startsWith('#')
      ? convert.hex.rgb(backgroundColor.slice(1))
      : convert.keyword.rgb(backgroundColor.toLowerCase() as any);
    const [r, g, b] = rgb;
    return 0.2126 * r + 0.7152 * g + 0.0722 * b;
  } catch (e) {
    debugLogger.warn(`Could not parse color "${backgroundColor}" to calculate luminance.`);
    return 0; // Default to dark for safety
  }
}

@github-actions

Copy link
Copy Markdown

Size Change: -2 B (0%)

Total Size: 23.9 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 23.9 MB -2 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B

compressed-size-action

@skeshive skeshive merged commit 9a947f5 into release/v0.29.0-pr-19460 Feb 18, 2026
27 checks passed
@skeshive skeshive deleted the hotfix/v0.29.0/0.29.1/stable/cherry-pick-858918f/pr-19460 branch February 18, 2026 22:25
kuishou68 pushed a commit to iOfficeAI/gemini-cli-pro that referenced this pull request Feb 27, 2026
…version v0.29.0 and create version 0.29.1 (google-gemini#19480)

Co-authored-by: christine betts <chrstn@uw.edu>
@sripasg sripasg added the size/s A small PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s A small PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants