Skip to content

feat: add OpenCode preset support#114

Closed
conscientiousness wants to merge 2 commits intoopenabdev:mainfrom
conscientiousness:feat/opencode-support
Closed

feat: add OpenCode preset support#114
conscientiousness wants to merge 2 commits intoopenabdev:mainfrom
conscientiousness:feat/opencode-support

Conversation

@conscientiousness
Copy link
Copy Markdown

@conscientiousness conscientiousness commented Apr 7, 2026

Summary

  • add a dedicated Dockerfile.opencode image that bundles openab with the OpenCode CLI
  • add an opencode Helm preset and wire it into the image/command/args helpers and Helm NOTES
  • align the OpenCode runtime with the node:22-bookworm-slim base image by using /home/node and the existing node user
  • update CI, release docs, and config examples to cover OpenCode install and auth flows

Validation

  • cargo +1.88.0 test
  • helm template openab charts/openab --set discord.botToken=dummy --set-string 'discord.allowedChannels[0]=1234567890' --set agent.preset=opencode
  • helm lint charts/openab --set discord.botToken=dummy --set-string 'discord.allowedChannels[0]=1234567890' --set agent.preset=opencode
  • docker build -f Dockerfile.opencode -t ghcr.io/openabdev/openab-opencode:test .
  • docker run --rm --entrypoint sh openab-opencode:test -lc 'whoami && echo $HOME && command -v openab && command -v opencode'
  • docker run --rm --entrypoint opencode openab-opencode:test acp --help
  • Docker Desktop kubeadm deployment with image.pullPolicy=Never
  • kubectl exec -it deployment/openab -- opencode auth login
  • Discord end-to-end flow: new mention creates a thread, OpenCode handles file creation, and /home/node/smoke.txt persists after kubectl rollout restart deployment/openab

@conscientiousness
Copy link
Copy Markdown
Author

I did a full local smoke test and this is working end-to-end for me. I verified the image build, Docker Desktop k8s deploy, OpenCode login, Discord replies in new threads, agent file operations.

Screenshot 2026-04-07 at 11 43 00 PM

@thepagent
Copy link
Copy Markdown
Collaborator

Impressive!

@thepagent thepagent added enhancement New feature or request p1 High — address this sprint labels Apr 7, 2026
@thepagent
Copy link
Copy Markdown
Collaborator

depend on #54

@neilkuan
Copy link
Copy Markdown
Contributor

neilkuan commented Apr 8, 2026

thanks @conscientiousness can not wait see this feature support,
#54 was merged.
please rebase main branch, thanks~

@conscientiousness
Copy link
Copy Markdown
Author

Rebased onto the latest \main and aligned this PR with the post-#54 chart structure. I also re-ran the local end-to end validation for the OpenCode preset. Please take another look when you have a chance.

@thepagent
Copy link
Copy Markdown
Collaborator

close in favor of #258

@thepagent thepagent closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request p1 High — address this sprint pending-maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants