gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Make debug console development only feature

Open Adib234 opened this issue 1 month ago • 2 comments

Summary

  • Debug console will only appear in debug mode
  • ctrl-o is used in place of ctrl-s for showing more lines
  • Errors will now appear in history stream

Details

Related Issues

Closes #10761

How to Validate

Added a console.error in /help command, error appeared in history stream and debug console was not activated

https://github.com/user-attachments/assets/f3db029b-d24d-4aa9-a852-e9d5e37cc38d

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
      • [X] npm run
      • [ ] npx
      • [ ] Docker
      • [ ] Podman
      • [ ] Seatbelt
    • [ ] Windows
      • [ ] npm run
      • [ ] npx
      • [ ] Docker
    • [ ] Linux
      • [ ] npm run
      • [ ] npx
      • [ ] Docker

Adib234 avatar Dec 15 '25 20:12 Adib234

Summary of Changes

Hello @Adib234, I'm Gemini Code Assist[^1]! 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 refines the debug console's behavior, making it a development-only feature and enhancing error visibility. It ensures the debug console only appears when explicitly intended for debugging, preventing accidental exposure in non-development contexts. Additionally, it improves the user experience by remapping a keybinding to avoid conflicts and integrates error messages directly into the history stream, offering a clearer and more accessible view of application issues.

Highlights

  • Debug Console Activation: The debug console will now only activate when the application is running in debug mode, preventing it from appearing in production environments and ensuring it's used as an explicit development tool.
  • Keybinding Change: The keybinding for the SHOW_MORE_LINES command has been updated from Ctrl-S to Ctrl-O to avoid potential conflicts with other system or application shortcuts and improve usability.
  • Error Reporting in History: Unhandled errors and console errors will now be logged directly into the application's history stream, providing a persistent and easily accessible record of issues without automatically opening the debug console.
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 :thumbsup: and :thumbsdown: 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.

[^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[bot] avatar Dec 15 '25 20:12 gemini-code-assist[bot]

Size Change: -21 B (0%)

Total Size: 22.2 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 22.2 MB -21 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

github-actions[bot] avatar Dec 15 '25 20:12 github-actions[bot]