Skip to content

fix(tui): allow file_context to be disabled#28471

Open
max-wittig wants to merge 1 commit into
anomalyco:devfrom
max-wittig:fix/allow-editor-context-disable-2
Open

fix(tui): allow file_context to be disabled#28471
max-wittig wants to merge 1 commit into
anomalyco:devfrom
max-wittig:fix/allow-editor-context-disable-2

Conversation

@max-wittig
Copy link
Copy Markdown

Issue for this PR

Closes #24582

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This allows the user to disable the functionality that was added here: #24034

It allows the user to disable the file_context as it causes issues and also maybe I don't want to give my editor the current file context as I'm working on something else and just want to use opencode in my separate terminal, not connected to my editor.

Add it to the tui.json like this:

{
  "file_context": false
}

How did you verify your code works?

I ran it and verified that the open file does not appear

Screenshots / recordings

image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Open file hint is stuck and can't be removed

1 participant