Skip to content

docs: add missing docs for global config endpoints#25166

Open
abzy128 wants to merge 1 commit intoanomalyco:devfrom
abzy128:dev
Open

docs: add missing docs for global config endpoints#25166
abzy128 wants to merge 1 commit intoanomalyco:devfrom
abzy128:dev

Conversation

@abzy128
Copy link
Copy Markdown

@abzy128 abzy128 commented Apr 30, 2026

Issue for this PR

Closes #24949

Type of change

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

What does this PR do?

I have been using opencode server and controlling it remotely with API based on info on docs. I have pulled the repo and let 5.4 analyze the hono server and found out that /global/config is undocumented. So, I updated the docs with 5.4 and changes in this PR showcase it.

How did you verify your code works?

It is not code change, only docs. I did PATCH /config and PATCH /global/config to test out my theories before

Screenshots / recordings

no ui changes, only docs.

Checklist

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

@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title add missing docs for global config endpoints doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@abzy128 abzy128 changed the title add missing docs for global config endpoints docs: add missing docs for global config endpoints Apr 30, 2026
@abzy128 abzy128 marked this pull request as ready for review April 30, 2026 21:39
@abzy128
Copy link
Copy Markdown
Author

abzy128 commented Apr 30, 2026

should I update docs for i18n languages too? I can only translate and verify en and ru

@abzy128
Copy link
Copy Markdown
Author

abzy128 commented Apr 30, 2026

I also went through other hono updates, but not sure if it should be in scope of this PR (abzy128#1)

@abzy128
Copy link
Copy Markdown
Author

abzy128 commented Apr 30, 2026

currently patching and getting global config of server running in container is working and I am happy)

curl -s http://localhost:4096/global/config -u "opencode:$OPENCODE_PASSWORD" | jq
{
  "$schema": "https://opencode.ai/config.json",
  "enabled_providers": [
    "anthropic",
    "openai"
  ],
  "model": "openai/gpt-5.4",
  "small_model": "openai/gpt-5.4-mini"
}

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request May 1, 2026
Four PRs across opencode (3) and codex (1):
- anomalyco/opencode#25166: merge-as-is, server.mdx adds /global/config docs
- anomalyco/opencode#25143: merge-as-is, ecosystem.mdx adds opencode-swarm row
- anomalyco/opencode#25180: merge-after-nits, pre-stream Token.estimate
  proactive compaction at processor.ts:543-568 + 3 new overflow regex arms
- openai/codex#20524: merge-as-is, notify deprecation across README +
  TOML doc + JSON schema + struct doc + 2 metrics + DeprecationNotice
  event + 153-line user_notification.rs delete
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.

core: PATCH /config call to server does not change config

1 participant