Skip to content

Conversation

@stefandevo
Copy link
Collaborator

Summary

  • Add AUTOMAKER_AUTO_LOGIN environment variable that, when set to true, automatically creates a session for web mode users without requiring them to enter the API key
  • Fix formatting issues in console log boxes (proper padding and alignment)

Changes

Auto-login feature (apps/server/src/routes/auth/index.ts)

  • Modified /api/auth/status endpoint to automatically create a session cookie when AUTOMAKER_AUTO_LOGIN=true
  • Useful for development environments where entering the API key on every refresh is tedious

Log box formatting (apps/server/src/lib/auth.ts, apps/server/src/index.ts)

  • Fixed border alignment issues in API key box, Claude warning box, server info box, and port error box
  • Added auto-login status display to API key box
  • Added tips section showing available environment variables

Environment Variables

Variable Description
AUTOMAKER_AUTO_LOGIN=true Skip login prompt, auto-create session
AUTOMAKER_API_KEY Use a fixed API key (existing)
AUTOMAKER_HIDE_API_KEY=true Hide the API key banner (existing)

Test Plan

  • Set AUTOMAKER_AUTO_LOGIN=true and verify no login prompt appears
  • Verify log boxes display with correct alignment in terminal
  • Verify existing auth flows still work (API key entry, Electron mode)

Add AUTOMAKER_AUTO_LOGIN environment variable that, when set to 'true',
automatically creates a session for web mode users without requiring
them to enter the API key. Useful for development environments.

Also fix formatting issues in console log boxes:
- API Key box: add right border, show auto-login status and tips
- Claude auth warning: add separator line, fix emoji spacing
- Server info box: use consistent 71-char width, proper padding
- Port conflict error: use same width, proper dynamic padding

Environment variables:
- AUTOMAKER_AUTO_LOGIN=true: Skip login prompt, auto-create session
- AUTOMAKER_API_KEY: Use a fixed API key (existing)
- AUTOMAKER_HIDE_API_KEY=true: Hide the API key banner (existing)
@coderabbitai
Copy link

coderabbitai bot commented Jan 17, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @stefandevo, 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 enhances the developer experience by streamlining the authentication process in development environments and improving the clarity of console output. The new auto-login feature reduces friction for web mode users, while the refined log box formatting makes critical server information and warnings easier to read and understand.

Highlights

  • Developer Auto-Login: Introduced an AUTOMAKER_AUTO_LOGIN environment variable that, when set to true, automatically creates a session for web mode users, eliminating the need to manually enter an API key during development.
  • Console Log Box Formatting: Addressed and fixed various formatting issues in console log boxes, including the Claude warning, server information, port error, and API key display boxes, ensuring proper padding and alignment for improved readability.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin 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 👍 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.

Copy link
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 helpful auto-login feature for development environments and improves the formatting of several console log messages for better readability. The implementation is straightforward. My feedback includes a suggestion to refactor the duplicated log box formatting logic into a reusable utility for better maintainability, and a note on a potential performance inefficiency in the auto-login flow that could be optimized.

@Shironex Shironex added the Enhancement Improvements to existing functionality or UI. label Jan 17, 2026
Add data-testid with sanitized project name for E2E test assertions.
The testid format is 'project-switcher-project-{name}' where name is
the lowercased project name with spaces replaced by hyphens.

This fixes E2E tests that expect to find projects by name in the
project switcher.
@webdevcody webdevcody deleted the branch AutoMaker-Org:v0.12.0rc January 17, 2026 23:51
@webdevcody webdevcody closed this Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improvements to existing functionality or UI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants