Skip to content

Regression: Folder trust changes no longer trigger restart prompt #8031

@Lyonk71

Description

@Lyonk71

Issue

When a user changes the folder trust status (from trusted to untrusted or vice versa), the CLI should prompt them to restart to apply the security changes. Currently, the restart prompt never appears because the isRestarting state is hardcoded to false and the logic to detect trust status changes was removed during the UI refactor in PR #5488.

What should happen

When the folder trust status changes, the CLI should:

  1. Detect that the trust level has changed from its previous state
  2. Set isRestarting to true and keep the dialog open
  3. Display the message "To see changes, Gemini CLI must be restarted. Press r to exit and apply changes now."
  4. Allow the user to press 'r' to restart the CLI and apply the new trust settings

Currently, the dialog just closes immediately after selection without prompting for a restart, leaving the security changes unapplied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2Important but can be addressed in a future release.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions