Skip to content

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

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

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

Conversation

@max-wittig
Copy link
Copy Markdown

@max-wittig max-wittig commented May 20, 2026

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

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No issue referenced. Please add Closes #<number> linking to the relevant issue.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 20, 2026
@github-actions github-actions Bot closed this May 20, 2026
@max-wittig
Copy link
Copy Markdown
Author

Reopen. I'm complying

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