Skip to content

Conversation

@kandros
Copy link
Contributor

@kandros kandros commented Nov 25, 2025

No description provided.

@rekram1-node
Copy link
Collaborator

Does it need to be a config thing or can we just make it togglable via the command bar and then persist the choice to kv?

@kandros
Copy link
Contributor Author

kandros commented Nov 25, 2025

Does it need to be a config thing or can we just make it togglable via the command bar and then persist the choice to kv?

Open to ideas, anything that allows setting it globally is fine, making it togglable even better

@rekram1-node
Copy link
Collaborator

Yeah let's make it togglable then using the kv store & command palette and then drop global config

@ariane-emory
Copy link
Contributor

ariane-emory commented Nov 26, 2025

Good feature, I'd love to see this merged... a few years back I made the unfortunate choice years ago of using my real name as my username on my MacBook and on a few occasions I've come pretty close to accidentally posting opencode screenshots including my username without redacting them first, having a way to persistently hide it to make sure that can never happen would be great.

@kandros
Copy link
Contributor Author

kandros commented Nov 26, 2025

Yeah let's make it togglable then using the kv store & command palette and then drop global config

Any other features doing it this way to take as a reference?

@ariane-emory
Copy link
Contributor

@kandros Glancing at my own ~/.local/state/opencode/kv.json file, I see this:

{
  "openrouter_warning": true,
  "theme": "my-mellow",
  "sidebar": "hide"
}

So, perhaps the toggleable sidebar visibility state might be a good example of such a feature.

@rekram1-node
Copy link
Collaborator

the kv is super simple it just has get and set methods you should be able to find the example for light vs dark mode pretty easily i dont recall exactly where it is

@kandros kandros force-pushed the hide-tui-username branch 3 times, most recently from 68bba2a to 91dd779 Compare November 26, 2025 11:47
@kandros
Copy link
Contributor Author

kandros commented Nov 26, 2025

✅ updated to use KV
✅ username visible by default is no value in KV
✅ setting preserved globally

CleanShot.2025-11-26.at.12.42.33.mp4

@rekram1-node rekram1-node changed the title add config to hide username in TUI toggle to hide username in TUI Dec 2, 2025
@rekram1-node rekram1-node merged commit f17e1de into anomalyco:dev Dec 2, 2025
3 checks passed
spmurrayzzz pushed a commit to spmurrayzzz/opencode that referenced this pull request Dec 5, 2025
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
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.

3 participants