Skip to content

Feat: DevTools Improvements#25469

Open
M-DEV-1 wants to merge 6 commits intogoogle-gemini:mainfrom
M-DEV-1:devtools-improvements
Open

Feat: DevTools Improvements#25469
M-DEV-1 wants to merge 6 commits intogoogle-gemini:mainfrom
M-DEV-1:devtools-improvements

Conversation

@M-DEV-1
Copy link
Copy Markdown

@M-DEV-1 M-DEV-1 commented Apr 15, 2026

Summary

Changes have been made to enhance debugging productivity using the Gemini CLI DevTools.

Enhancements include:

  • Network UI filters with RegEx, text highlighting, toggle-buttons for methods and status of requests
  • Similar filter upgrades in Console for logs
  • Users can now filter specific HTTP requests, error payloads, and Regex pattern strings simultaneously with matched strings visually highlighted.

Details

  • UI filtering: added a FilterBar component. Search inputs will now dynamically drill down url logs (in console, and network tab). Users can also make use of RegEx for their searches. Network methods, and Status Codes are also filterable (only appear as required).
  • server autostart: automatically detects when it acts as the primary runtime entry script and correctly hooks onto the 25417. Faced some issues when using npm run start and this seemed to be the fix.

Before

Console

Screenshot 2026-04-15 211118

Network Tab

Screenshot 2026-04-15 211147

After

Console

Screenshot 2026-04-15 214620

Network Tab

Screenshot 2026-04-15 214225

Related Issues

This PR addresses #21993

How to Validate

git fetch origin
git checkout devtools-improvements
npm install
npm run build
npm run bundle
npm run start

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run
      • npx
      • Docker
      • Podman
      • Seatbelt
    • Windows
      • npm run
      • npx
      • Docker
    • Linux
      • npm run
      • npx
      • Docker

M-DEV-1 added 2 commits April 15, 2026 21:44
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
@M-DEV-1 M-DEV-1 requested a review from a team as a code owner April 15, 2026 16:33
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 significantly upgrades the Gemini CLI DevTools by integrating robust filtering and search functionalities across its console and network panels. Users can now efficiently narrow down logs and network requests using regular expressions, case-sensitive searches, and specific toggles for log levels, HTTP methods, and status codes. These enhancements, combined with visual highlighting of search results and an improved server auto-start mechanism, aim to provide a more intuitive and productive debugging experience.

Highlights

  • Enhanced Filtering Capabilities: Introduced a new FilterBar component and useSearch hook, enabling advanced filtering for both console and network logs with support for RegEx, case sensitivity, and inversion.
  • Console Log Filtering: Added the ability to filter console logs by type (error, warn, log, info, debug) with persistent state saved in local storage.
  • Network Log Filtering: Implemented filtering for network requests based on HTTP methods and status code classes (e.g., 2xx, 4xx, 5xx).
  • Visual Search Highlighting: Integrated text highlighting for matched search terms within both console and network log entries.
  • Keyboard Shortcut for Filters: Added a keyboard shortcut (Ctrl+F / Cmd+F) to quickly focus the filter input field in the active DevTools tab.
  • DevTools Server Auto-Start: Configured the DevTools server to automatically start when its module is run directly, improving the npm run start experience.
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.

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.

@M-DEV-1
Copy link
Copy Markdown
Author

M-DEV-1 commented Apr 15, 2026

@cocosheng-g @rnett

I've made the required changes, do take a look when time permits!

Copy link
Copy Markdown
Contributor

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

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 comprehensive search and filtering system for the DevTools client, featuring regex support, case sensitivity, and inverted filtering for both console and network logs. It adds persistent log level selection for the console and method/status class filtering for network requests, along with a keyboard shortcut for quick filter access. Review feedback highlights a critical concern regarding the auto-start logic in the DevTools entry point, which could lead to unintended server execution when the module is imported, and suggests performance optimizations for log rendering to prevent UI lag during filtering.

Note: Security Review is unavailable for this PR.

Comment thread packages/devtools/src/index.ts Outdated
Comment thread packages/devtools/client/src/App.tsx Outdated
M-DEV-1 added 2 commits April 15, 2026 22:28
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
@M-DEV-1
Copy link
Copy Markdown
Author

M-DEV-1 commented Apr 15, 2026

@sehoon38 I used the /code-reviewer skill today for the first time, and it did flag some parts of the code which I corrected (refer last commit)

this is a v good skill!

@gemini-cli gemini-cli bot added area/core Issues related to User Interface, OS Support, Core Functionality help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support! labels Apr 15, 2026
Signed-off-by: M-DEV-1 <mahadevankizhakkedathu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Issues related to User Interface, OS Support, Core Functionality help wanted We will accept PRs from all issues marked as "help wanted". Thanks for your support!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant