Skip to content

Unignoring the .gitignore with .ignore should allow reading the file #4739

@jcubic

Description

@jcubic

Description

I'm working on a reproduction of a bug, and created a dummy .env file that was ignored by .gitignore (config from Next.js).

I added the file to .ignore as:

!.env

Now the file is visible in OpenCode. I can select it, but the Agent is not allowed to read that file. I think that it's a bug if I unignore I want the agent to read the file, not only allow to find its name on the file system.

OpenCode version

1.0.110

Operating System

Fedora 43

Terminal

Xfce Terminal (VTE)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions