Skip to content

Bug: Symbolic link policy files are silently ignored #20281

@berzrPTH

Description

@berzrPTH

What happened?

Summary

The system fails to resolve policy files when they are implemented as symbolic links, leading to policies being ignored during execution.

Steps to Reproduce

  1. Create a policy file as a regular file somewhere.
  2. Create a symbolic link in the workspace pointing to that policy file.
  3. Run the Gemini CLI and prompt /policies list

What did you expect to happen?

The system should resolve the symbolic link and apply the policies. Users should be able to see the policies via /policies list.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                                                            │
│ About Gemini CLI                                                                                                                                           │
│                                                                                                                                                            │
│ CLI Version                                           0.30.0-nightly.20260210.a2174751d-git.15f6c8b                                                        │
│ Git Commit                                            15f6c8b                                                                                              │
│ Model                                                 gemini-3.1-pro-preview                                                                               │
│ Sandbox                                               no sandbox                                                                                           │
│ OS                                                    linux                                                                                                │
│                                                                                                                                                            │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

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