Skip to content

fix(opencode): add authorization header to fetch requests in RunCommand#29877

Open
OpeOginni wants to merge 1 commit into
anomalyco:devfrom
OpeOginni:fix/run-command-auth
Open

fix(opencode): add authorization header to fetch requests in RunCommand#29877
OpeOginni wants to merge 1 commit into
anomalyco:devfrom
OpeOginni:fix/run-command-auth

Conversation

@OpeOginni
Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #24204

Type of change

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

What does this PR do?

  • Inject ServerAuth.header() when set for run command operations.

How did you verify your code works?

  • Typecheck passes
  • Tested with command OPENCODE_SERVER_PASSWORD=changeme123 bun run dev run --model "opencode/kimi-k2.6" "Reply exactly: OK" as works compared to the current opencode version

Screenshots / recordings

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencode run fails with Session not found when OPENCODE_SERVER_PASSWORD is set

1 participant