WINDOWS - Can't disable /share function #2773

Closed
opened 2026-02-16 17:37:11 -05:00 by yindo · 6 comments
Owner

Originally created by @ovdijk on GitHub (Nov 11, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When trying to disable the /share function, this does not work and still comes up with the /share function

OpenCode version

1.0.35 (Windows Executable trough powershell)

Steps to reproduce

  1. Set Environmental variables (on variable Path and custom "OPENCODE_CONFIG")
    OPENCODE_CONFIG path: C:\Users{my user}\opencode-windows-x64\opencode.json
  2. place opencode.json in path specified in Environmental variable
  3. Try if /share function is still available

Screenshot and/or share link

Image Image

Operating System

Windows 11 23H2

Terminal

Windows Powershell

Originally created by @ovdijk on GitHub (Nov 11, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When trying to disable the /share function, this does not work and still comes up with the /share function ### OpenCode version 1.0.35 (Windows Executable trough powershell) ### Steps to reproduce 1. Set Environmental variables (on variable Path and custom "OPENCODE_CONFIG") OPENCODE_CONFIG path: C:\Users\{my user}\opencode-windows-x64\opencode.json 2. place opencode.json in path specified in Environmental variable 3. Try if /share function is still available ### Screenshot and/or share link <img width="659" height="175" alt="Image" src="https://github.com/user-attachments/assets/b248e16a-58cc-4d1a-9e2f-3d4ce0da640b" /> <img width="396" height="377" alt="Image" src="https://github.com/user-attachments/assets/226fb8db-fe12-49ff-8651-14edd603efc0" /> ### Operating System Windows 11 23H2 ### Terminal Windows Powershell
yindo added the opentuibug labels 2026-02-16 17:37:11 -05:00
yindo closed this issue 2026-02-16 17:37:11 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 11, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3417: when a provider is defined and added to disabled - it is still used
  • #3610: OPENCODE_CONFIG_DIR is broken since 0.15.30 when only world-readable
  • #341: Add configuration to /share to localhost

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 11, 2025): This issue might be a duplicate of existing issues. Please check: - #3417: when a provider is defined and added to disabled - it is still used - #3610: OPENCODE_CONFIG_DIR is broken since 0.15.30 when only world-readable - #341: Add configuration to /share to localhost Feel free to ignore if none of these address your specific case.
Author
Owner

@OpeOginni commented on GitHub (Nov 11, 2025):

Hey @ovdijk Have you seen or tried this from the docs https://opencode.ai/docs/share#disabled ?

@OpeOginni commented on GitHub (Nov 11, 2025): Hey @ovdijk Have you seen or tried this from the docs https://opencode.ai/docs/share#disabled ?
Author
Owner

@ovdijk commented on GitHub (Nov 11, 2025):

HI @OpeOginni,

I've did exactly what's being stated in the docs, the Environmental variables make sure that Opencode is looking at the specific file as well. Here is a screenshot of the content inside of the opencode.json

Image

Maybe you (or someone else) might be able to reproduce what's going on? maybe there are some things i can try?

@ovdijk commented on GitHub (Nov 11, 2025): HI @OpeOginni, I've did exactly what's being stated in the docs, the Environmental variables make sure that Opencode is looking at the specific file as well. Here is a screenshot of the content inside of the opencode.json <img width="415" height="181" alt="Image" src="https://github.com/user-attachments/assets/28e83b66-0eb3-48bd-a7ca-d47b6ef5b22a" /> Maybe you (or someone else) might be able to reproduce what's going on? maybe there are some things i can try?
Author
Owner

@OpeOginni commented on GitHub (Nov 11, 2025):

@ovdijk could you run this command and show what gets sent in opencode run hey --print-logs.

You might have to edit your computer username a lot, but it helps.

@OpeOginni commented on GitHub (Nov 11, 2025): @ovdijk could you run this command and show what gets sent in `opencode run hey --print-logs`. You might have to edit your computer username a lot, but it helps.
Author
Owner

@OpeOginni commented on GitHub (Nov 11, 2025):

@ovdijk You can also run this command to figure out what exactly opencode sees in your config opencode debug config, was looking for the command.

@OpeOginni commented on GitHub (Nov 11, 2025): @ovdijk You can also run this command to figure out what exactly opencode sees in your config `opencode debug config`, was looking for the command.
Author
Owner

@rekram1-node commented on GitHub (Nov 11, 2025):

@ovdijk we will fix this, the /share will not run if sharing is disabled but the slash command needs to be hidden too, we will fix that

@rekram1-node commented on GitHub (Nov 11, 2025): @ovdijk we will fix this, the /share will not run if sharing is disabled but the slash command needs to be hidden too, we will fix that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2773