Skip to content

Cherrypick #10900#11116

Merged
chrstnb merged 1 commit into
release/v0.9.0-preview.3from
release/v0.9.0-preview.4
Oct 14, 2025
Merged

Cherrypick #10900#11116
chrstnb merged 1 commit into
release/v0.9.0-preview.3from
release/v0.9.0-preview.4

Conversation

@chrstnb

@chrstnb chrstnb commented Oct 14, 2025

Copy link
Copy Markdown
Contributor

TLDR

Dive Deeper

Reviewer Test Plan

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

@chrstnb chrstnb requested a review from a team as a code owner October 14, 2025 15:55
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @chrstnb, 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 enhances accessibility by introducing a new ui.accessibility.screenReader setting. This feature allows the application to render output in a plain-text format, making it more compatible with screen readers. The changes include updating the configuration documentation, setting the default value for this new option, and implementing a user-friendly notification within the UI to inform users when screen reader mode is active and guide them on how to toggle it off.

Highlights

  • New Accessibility Setting: Introduced a new configuration setting, ui.accessibility.screenReader, which enables a plaintext interactive view for improved screen reader compatibility.
  • Documentation Update: The docs/get-started/configuration.md file has been updated to include details about the new ui.accessibility.screenReader setting, its description, and its default value.
  • Screen Reader Mode Notification: A new notification has been added to the UI that appears when screen reader mode is active. This notification informs the user about the mode and provides clear instructions on how to disable it by editing the settings file.
  • Default Setting Value: The settingsSchema.ts file has been updated to explicitly set the default value for ui.accessibility.screenReader to false.
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.

@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 introduces a new ui.accessibility.screenReader setting. The changes include adding documentation, updating the settings schema, and adding a notification in the UI when this mode is active. My review focuses on a potential usability issue with the new notification message. I've identified a high-severity issue where a hardcoded file path in the notification could mislead users, and I've provided suggestions to make the message more robust and accurate.

Comment on lines +14 to +17
import { homedir } from 'node:os';
import path from 'node:path';

const settingsPath = path.join(homedir(), '.gemini', 'settings.json');

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.

high

This hardcoded path to the user settings file is problematic because the screenReader setting can be configured in multiple locations (e.g., project or system-level files). Instructing the user to edit this specific file can be misleading. As this constant and its imports will be unused with the suggested change to the notification message, these lines should be removed.

Comment on lines +38 to +43
{isScreenReaderEnabled && (
<Text>
You are currently in screen reader-friendly view. To switch out, open{' '}
{settingsPath} and remove the entry for {'"screenReader"'}.
</Text>
)}

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.

high

To avoid confusing users by pointing them to a potentially incorrect settings file, the notification message should be made more generic. Instead of a specific file path, it's better to refer to the setting name. Ideally, you could guide them to use the settings dialog, since showInDialog is enabled for this option.

Suggested change
{isScreenReaderEnabled && (
<Text>
You are currently in screen reader-friendly view. To switch out, open{' '}
{settingsPath} and remove the entry for {'"screenReader"'}.
</Text>
)}
{isScreenReaderEnabled && (
<Text>
You are currently in screen reader-friendly view. To switch out, disable
the 'ui.accessibility.screenReader' setting in your Gemini
configuration.
</Text>
)}

@github-actions

Copy link
Copy Markdown

Size Change: +540 B (0%)

Total Size: 17.7 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 17.7 MB +540 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 830 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

@chrstnb chrstnb merged commit 9defae4 into release/v0.9.0-preview.3 Oct 14, 2025
33 checks passed
@chrstnb chrstnb deleted the release/v0.9.0-preview.4 branch October 14, 2025 16:06
@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.

3 participants