Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
856 commits
Select commit Hold shift + click to select a range
320a434
Update Nix flake.lock and hashes
actions-user Dec 22, 2025
64a50bb
remove actions artifact uploading
Brendonovich Dec 22, 2025
2e7086e
try uploading artifacts in workflow
Brendonovich Dec 22, 2025
2ea1057
ci: import bun shell
Brendonovich Dec 22, 2025
1282f34
ci: replace with just upload-artifact whole dir
Brendonovich Dec 22, 2025
5a84872
feat(desktop): arm64 build for linux (#5935)
NN708 Dec 22, 2025
18ff962
ci: try downloading artifact in desktop prepare
Brendonovich Dec 22, 2025
ddab63b
ci: run prepare step for tauri build
Brendonovich Dec 22, 2025
b1cd7d6
chore: generate
actions-user Dec 22, 2025
599da3e
ci: verbose build and re-enable appimage
Brendonovich Dec 22, 2025
24ed94b
ci: fix tauri build args
Brendonovich Dec 22, 2025
9f4c5d6
feat: polish dialog & list styles for the desktop app, add fixed logo…
aaroniker Dec 22, 2025
355323f
fix: use current page port instead of hardcoded 4096 (#5949)
majiayu000 Dec 22, 2025
309e594
feat(desktop): better task tool rendering
adamdotdevin Dec 21, 2025
806c21c
fix(desktop): filter child sessions from header
adamdotdevin Dec 21, 2025
249431d
feat(desktop): mobile responsiveness
adamdotdevin Dec 22, 2025
dcee57f
fix(desktop): cleanup auto scroll
adamdotdevin Dec 22, 2025
86d34ae
Revert "fix: use current page port instead of hardcoded 4096 (#5949)"
adamdotdevin Dec 22, 2025
3c6c7c5
server: ensure frontend has correct port for PTY websocket connection…
ashutoshpw Dec 22, 2025
73e8caa
fix: server
adamdotdevin Dec 22, 2025
bfcbdac
ignore: update download stats 2025-12-22
actions-user Dec 22, 2025
b0c860a
Revert "fix: server"
adamdotdevin Dec 22, 2025
cc57234
Revert "server: ensure frontend has correct port for PTY websocket co…
adamdotdevin Dec 22, 2025
ac03ab1
release: v1.0.186
Dec 22, 2025
e70ae66
fix(read): narrow .env file blocking to not block .envrc (#5654)
bukzor Dec 22, 2025
99e04ad
chore: generate
actions-user Dec 22, 2025
fa9edbe
fix url for web
thdxr Dec 22, 2025
9236478
fix(desktop): diff readability (colors)
adamdotdevin Dec 22, 2025
59cc15e
fix: duplicate words in dialog options (#5944)
Leka74 Dec 22, 2025
0b7b6d1
ci: limit to opencode repo
rekram1-node Dec 22, 2025
f8b0ee9
fix(share): expanded state and responsiveness
adamdotdevin Dec 22, 2025
b6089e4
GitHub pull request event (#5335)
dbpolito Dec 22, 2025
c9a42f7
ci: tweak docs prompt
rekram1-node Dec 22, 2025
e81c496
Add keybindable commands to navigate between user messages (#5078)
will-marella Dec 22, 2025
61be2c7
chore: generate
actions-user Dec 22, 2025
2fb2120
chore(desktop): auto scroll utility
adamdotdevin Dec 22, 2025
8ca4fda
docs: Github Auto Pull Request Docs (#5974)
dbpolito Dec 22, 2025
344cdbb
fix(prompt): better summary prompt
adamdotdevin Dec 22, 2025
cf3d91e
[FEATURE]: Show context usage in OpenCode Desktop Context usage (#5979)
ShpetimA Dec 22, 2025
439af17
support clojure projects with built-in lsp (#5975)
Azd325 Dec 22, 2025
2cf69ec
upgrade opentui to v0.1.63, enabling kitty alternate keys by default
kommander Dec 22, 2025
811c8aa
Update Nix flake.lock and hashes
actions-user Dec 22, 2025
21d81dc
feat(lsp): add Tinymist LSP support for Typst (#5933)
anntnzrb Dec 22, 2025
72a9e23
Add OpenChamber to ecosystem documentation (#5978)
wienans Dec 22, 2025
e79b9ad
chore: generate
actions-user Dec 22, 2025
f309920
feat(tui): go to parent keybind for subagents (#5762)
rgodha24 Dec 22, 2025
141d24c
fix: bundle more providers to fix breaking ai sdk issue
rekram1-node Dec 22, 2025
a9ae1ef
Update Nix flake.lock and hashes
actions-user Dec 22, 2025
2fd2371
fix(providers.opencode): check config for api key in addition to auth…
PowerUser64 Dec 22, 2025
1ac00ce
docs: add opencode-morph-fast-apply plugin to ecosystem (#5992)
JRedeker Dec 22, 2025
67db1ef
fix: stop auto execute on sendText vscode extension (#5994)
ShpetimA Dec 22, 2025
baee918
fix: disable claude skill loading for now
rekram1-node Dec 22, 2025
de20383
test: rm claude skills test
rekram1-node Dec 22, 2025
cc4a1e8
ci: add failure case for changelog
rekram1-node Dec 22, 2025
82826c0
release: v1.0.187
Dec 22, 2025
f4bd11a
ignore: update GitHub stars to 41K and project stats to reflect curre…
jayair Dec 22, 2025
73578d6
chore: generate
actions-user Dec 22, 2025
64a8852
support glm 4.7
Dec 22, 2025
d5bf844
Add gitlab-opencode to GitLab docs
nagyv Dec 10, 2025
834f144
feat(desktop): review pane toggle
adamdotdevin Dec 22, 2025
523ed96
ignore: agents.md
rekram1-node Dec 22, 2025
35e6fc4
zen: add glm 4.7
Dec 22, 2025
10745d5
fix(tui): resize textarea if text inserted via `appendPrompt` TUI API…
joshuadavidthomas Dec 22, 2025
4a34758
remove sharp
Dec 22, 2025
997f84a
Update Nix flake.lock and hashes
actions-user Dec 22, 2025
58a9cb9
release: v1.0.188
Dec 22, 2025
b0c8892
docs: edit gitlab
jayair Dec 22, 2025
15c6052
chore: generate
actions-user Dec 22, 2025
8614882
release: v1.0.189
Dec 22, 2025
d3eb85e
feat: add native skill tool with permission system (#5930)
malhashemi Dec 22, 2025
6f4ddd1
chore: generate
actions-user Dec 22, 2025
f8563e9
release: v1.0.190
Dec 22, 2025
c81633a
tui: change task tool container to block layout for better subagent s…
thdxr Dec 22, 2025
2d22216
chore: generate
actions-user Dec 22, 2025
e96fdcf
feat: better styling for small screens (short and/or not wide) (#5968)
rekram1-node Dec 23, 2025
1d71f33
zen: glm 4.7
Dec 23, 2025
30e6af1
feat(skill): add per-agent filtering to skill tool description (#6000)
malhashemi Dec 23, 2025
3fef2d3
fix(desktop): better error messages on connection failure
adamdotdevin Dec 23, 2025
4ccd407
chore: generate
actions-user Dec 23, 2025
992327a
chore: rename packages/desktop -> packages/app
adamdotdevin Dec 23, 2025
ed59558
Update Nix flake.lock and hashes
actions-user Dec 23, 2025
1187862
chore: rename packages/tauri -> packages/desktop
adamdotdevin Dec 23, 2025
cc35060
Update Nix flake.lock and hashes
actions-user Dec 23, 2025
0ccf6a8
ci: rename tauri -> desktop
Brendonovich Dec 23, 2025
ce8ea03
feat(plugin): allow compaction hook to replace prompt entirely (#5907)
joelhooks Dec 23, 2025
139eb94
fix: handle Windows CRLF line endings in grep tool (#5948)
majiayu000 Dec 23, 2025
0c4b36a
docs: new `/global/health` API (#6006)
opencode-agent[bot] Dec 23, 2025
d1581fb
ci: docs sync
rekram1-node Dec 23, 2025
9ffa3ab
improve `mcp` CLI + ability to debug MCP oauth (#5980)
elithrar Dec 23, 2025
dd4b348
chore: generate
actions-user Dec 23, 2025
4c4bbc8
console: add AppImage download link
Brendonovich Dec 23, 2025
0cf94b9
chore: generate
actions-user Dec 23, 2025
4a6face
release: v1.0.191
Dec 23, 2025
80333e1
deps: diffs, shiki updates
adamdotdevin Dec 23, 2025
5ce08ba
chore: generate
actions-user Dec 23, 2025
d5fd078
Update Nix flake.lock and hashes
actions-user Dec 23, 2025
38a67c2
desktop: kill_sidecar before update install on windows
Brendonovich Dec 23, 2025
45a1478
chore: generate
actions-user Dec 23, 2025
3341f3a
no intermediate autocomplete result to avoid flickering
kommander Dec 23, 2025
e2b65f6
ignore: update download stats 2025-12-23
actions-user Dec 23, 2025
b926c4f
ci: fix
Dec 23, 2025
2d6c3a8
ci: fix
Dec 23, 2025
a73a36e
zen: glm 4.7
Dec 23, 2025
6d1a922
release: v1.0.192
Dec 23, 2025
eb5c544
indent wrapped todo items properly
kommander Dec 23, 2025
327dd22
chore: generate
actions-user Dec 23, 2025
aafa717
release: v1.0.193
Dec 23, 2025
9c2d6c7
Fix Github Pull Request Event (#6037)
dbpolito Dec 23, 2025
7dc18c3
chore: generate
actions-user Dec 23, 2025
5d0fd6e
[feat]: prompt stashing (#6021)
RhysSullivan Dec 23, 2025
c19a0c5
chore: generate
actions-user Dec 23, 2025
ad93850
ci: fix
Dec 23, 2025
441f5ba
fix(tui): prevent keybinds from executing when dialog is open (#6017)
anntnzrb Dec 23, 2025
7692af4
ci: update zed sync script
rekram1-node Dec 23, 2025
72cb02f
docs: add MCP OAuth debugging section (#6047)
elithrar Dec 23, 2025
dfdde09
fix: favorites and recents stay visible when filtering models (#6053)
DanielFGray Dec 23, 2025
6417a72
"Did you know?" start screen tips (#5982)
iamdavidhill Dec 23, 2025
74cd545
chore: generate
actions-user Dec 23, 2025
3b45199
Add animated braille spinner to terminal title when agent is running …
iamdavidhill Dec 23, 2025
e2e36ad
feat(install): add standard CLI flags (--help, --version, --no-modify…
anntnzrb Dec 23, 2025
180e1f3
Add opencode-shell-strategy plugin to ecosystem (#5995)
JRedeker Dec 23, 2025
3f9ee33
chore: generate
actions-user Dec 23, 2025
67e74ae
tweak: update import & pr commands to use new share link ur
rekram1-node Dec 23, 2025
3612e09
Revert "Add animated braille spinner to terminal title when agent is …
rekram1-node Dec 23, 2025
0e6be83
Update Nix flake.lock and hashes
actions-user Dec 23, 2025
459db5c
Update gitlab.mdx to use the 2.x component version (#6062)
nagyv Dec 23, 2025
e7cf8b0
fix: remove desktop dup
adamdotdevin Dec 23, 2025
0e50b4a
ci: adam is not a full stack engineer
Dec 23, 2025
1f2a453
providers: add Cloudflare AI Gateway (#5174)
elithrar Dec 23, 2025
466ed74
fix: resize textarea when pasting prompt less than 150 chars (#6070)
OpeOginni Dec 24, 2025
523c47d
feat(tui): console copy-to-clipboard via opentui (#5658)
edlsh Dec 24, 2025
24f9ce3
style: update current todo style (#6077)
iamdavidhill Dec 24, 2025
6ef69dd
chore: update AGENTS.md to ~150 lines (#5955)
roerohan Dec 24, 2025
8767cca
make 'The socket connection was closed unexpectedly' errors retryable
rekram1-node Dec 24, 2025
e8bce0a
chore: generate
actions-user Dec 24, 2025
fe91899
chore: regen sdk
rekram1-node Dec 24, 2025
3f2aa25
test: add test for retry
rekram1-node Dec 24, 2025
0877ba3
feat(mcp): handle tools/list_changed notifications (#5913)
seuros Dec 24, 2025
245a63e
zen: sync
Dec 24, 2025
b8c2f9d
chore: generate
actions-user Dec 24, 2025
e8ca1d1
tweak: retry err
rekram1-node Dec 24, 2025
05e8dfb
docs: add Neovim to the list of editors (#6081)
xiantang Dec 24, 2025
e94499d
docs: skill tool/perm + parent keybind (#6001)
opencode-agent[bot] Dec 24, 2025
7ea4a63
docs: experimental LSP tool (#5943)
opencode-agent[bot] Dec 24, 2025
73e5315
docs: tweak lsp.mdx
rekram1-node Dec 24, 2025
f22dd06
fix: remove SVG favicon to improve SEO (#5755)
R44VC0RP Dec 24, 2025
fa53ab0
fix(desktop): conditionally show review pane toggle
adamdotdevin Dec 24, 2025
df04dfc
fix(desktop): hang on backtracing-prone regex
adamdotdevin Dec 24, 2025
6cd9e5d
deps: update marked and marked-shiki
adamdotdevin Dec 24, 2025
c1cea00
Update Nix flake.lock and hashes
actions-user Dec 24, 2025
270505b
fix: don't disable text selection
adamdotdevin Dec 24, 2025
78046d0
fix(desktop): auto-scroll
adamdotdevin Dec 24, 2025
2ade0d8
fix(desktop): exclude deprecated models
adamdotdevin Dec 24, 2025
0ff2987
ignore: update download stats 2025-12-24
actions-user Dec 24, 2025
4b23645
fix(share): page title should be session title
adamdotdevin Dec 24, 2025
d06aae5
fix(desktop): session sort when multiple active
adamdotdevin Dec 24, 2025
59f1b41
chore: cleanup
adamdotdevin Dec 24, 2025
74a93f8
release: v1.0.194
Dec 24, 2025
a806023
refactor(ui): rewrite createAutoScroll with robust event tracking to …
adamdotdevin Dec 24, 2025
a2cd45a
chore: generate
actions-user Dec 24, 2025
754d332
chore: cleanup
adamdotdevin Dec 24, 2025
c8b69d2
release: v1.0.195
Dec 24, 2025
7fe4e76
fix(desktop): better session navigation, hide child sessions
adamdotdevin Dec 24, 2025
4dcd196
chore: generate
actions-user Dec 24, 2025
4154067
feat(desktop): show read tool args
adamdotdevin Dec 24, 2025
a663ab8
fix(desktop): summary flicker
adamdotdevin Dec 24, 2025
5de8dd1
chore: cleanup
adamdotdevin Dec 24, 2025
cdc9c00
docs: make MCP server documentation more scannable and add Sentry exa…
jayair Dec 24, 2025
f2ceb55
docs: add comprehensive CLI command documentation for agent, mcp, ses…
jayair Dec 24, 2025
32cf23f
docs: edits
jayair Dec 24, 2025
807d61c
fix(desktop): render perf
adamdotdevin Dec 24, 2025
b47c9a4
fix(desktop): last text part streaming
adamdotdevin Dec 24, 2025
f6a622d
release: v1.0.196
Dec 24, 2025
7b89bb2
docs: add infos about server debugging (#6085)
pschiel Dec 24, 2025
571a6ec
chore: generate
actions-user Dec 24, 2025
b59a021
Revert "feat: better styling for small screens (short and/or not wide…
thdxr Dec 24, 2025
49fa4fc
release: v1.0.197
Dec 24, 2025
073fba0
ci
thdxr Dec 24, 2025
a062184
chore: generate
actions-user Dec 24, 2025
8a1c370
ci
thdxr Dec 24, 2025
fd56d8d
release: v1.0.198
Dec 24, 2025
b4d25ef
CI
thdxr Dec 24, 2025
19c1ed1
tui: disable tips display in home route
thdxr Dec 24, 2025
b43a91d
chore: generate
actions-user Dec 24, 2025
6242bae
docs: Corrected the number of built-in subagents in documentation (#6…
robbtolli Dec 25, 2025
cc39dbe
docs: update skills to use canonical `~/.config/opencode` location (#…
connorads Dec 25, 2025
b39cf15
fix: correct Content-Type headers for static assets on app.opencode.a…
sourman Dec 25, 2025
b3ab52f
fix(desktop): show server connection failure
adamdotdevin Dec 25, 2025
52d81bd
chore: show version on error page
adamdotdevin Dec 25, 2025
d2da59f
chore: cleanup dead code
adamdotdevin Dec 25, 2025
7466c08
chore: toast on file load error
adamdotdevin Dec 25, 2025
4c44a09
release: v1.0.199
Dec 25, 2025
1285f67
fix(desktop): reconcile session diff updates
adamdotdevin Dec 25, 2025
37f98de
fix(desktop): override agent model
adamdotdevin Dec 25, 2025
8d85f97
chore: generate
actions-user Dec 25, 2025
87d9044
fix(desktop): scroll jank in session turn and review
adamdotdevin Dec 25, 2025
371a1fd
release: v1.0.200
Dec 25, 2025
0b5df9c
remove list tool
thdxr Dec 25, 2025
512b308
chore: generate
actions-user Dec 25, 2025
f918398
ignore: update download stats 2025-12-25
actions-user Dec 25, 2025
b5e5bf5
fix(desktop): so many prompt input fixes, merry christmas
adamdotdevin Dec 25, 2025
7c4d1e9
release: v1.0.201
Dec 25, 2025
e42d586
feat(desktop): better indicator that session is busy
adamdotdevin Dec 25, 2025
61bad1f
chore(ui): radio group primitive
adamdotdevin Dec 26, 2025
fefb9e5
fix(desktop): can't collapse project with active session
adamdotdevin Dec 26, 2025
9a2f955
chore: generate
actions-user Dec 26, 2025
3c5529b
fix(desktop): markdown rendering perf
adamdotdevin Dec 26, 2025
01dd70e
fix(desktop): missing keybinds in tooltips
adamdotdevin Dec 26, 2025
4ed0dc1
fix(desktop): move session context to top-right
adamdotdevin Dec 26, 2025
2381a83
fix(desktop): padding
adamdotdevin Dec 26, 2025
6fab9d2
fix(desktop): user message display
adamdotdevin Dec 26, 2025
13b6a47
chore: brain icon
adamdotdevin Dec 26, 2025
01ca397
release: v1.0.202
Dec 26, 2025
a64e24a
feat: haskell lsp support (#6141)
amerocu Dec 26, 2025
e60ef02
chore: generate
actions-user Dec 26, 2025
e98a2a5
fix(lsp): make JDTLS use the correct config directory on Windows (#6121)
apersomany Dec 26, 2025
95074ab
prompt update to prevent searching via bash tool
thdxr Dec 26, 2025
fbc9120
release: v1.0.203
Dec 26, 2025
b479893
fix: only show diagnostics block when errors exist (#6175)
JackNorris Dec 26, 2025
b6d8779
chore: generate
actions-user Dec 26, 2025
b40852a
tweak: update transform for gemini models so that topP and topK match…
rekram1-node Dec 26, 2025
bbf59fc
ignore: update download stats 2025-12-26
actions-user Dec 26, 2025
ccd182f
doc: fix typos in various files (#6196)
didier-durand Dec 26, 2025
3e4b8e2
chore: generate
actions-user Dec 26, 2025
3f3c0f3
feat(core): optional mdns service (#6192)
adamdotdevin Dec 26, 2025
fbe676d
chore: generate
actions-user Dec 26, 2025
822c20b
Desktop: MCP UI (#6162)
dbpolito Dec 26, 2025
c1d21f9
fix(dep): Update package.json - fix perplexity provider version (#6199)
robertocarvajal Dec 26, 2025
1c35e59
chore: createOpencodeServer expose `logLevel` (#6202)
AyushWalekar Dec 26, 2025
dcc5b7d
chore: generate
actions-user Dec 26, 2025
58c643f
Update Nix flake.lock and hashes
actions-user Dec 26, 2025
d6899cf
tweak: make install script handle 404s better
rekram1-node Dec 26, 2025
3fc23c3
feat: add shfmt formatter for shell scripts (#6204)
anntnzrb Dec 26, 2025
57ad821
chore: kill the dead Polaris Alpha code (#6193)
ariane-emory Dec 26, 2025
af89e7f
fix: `opencode web` baseURL error (#6181)
rgodha24 Dec 26, 2025
336d165
fix: adjust upgrade command to use gh releases page if not npm/bun/pn…
rekram1-node Dec 26, 2025
f28628b
chore: rm comments
rekram1-node Dec 26, 2025
0762a79
Revert "feat(core): optional mdns service (#6192)"
rekram1-node Dec 26, 2025
dcfeeb6
chore: generate
actions-user Dec 26, 2025
b279da3
Update Nix flake.lock and hashes
actions-user Dec 26, 2025
b112c81
ci: update zed extension sync
rekram1-node Dec 26, 2025
1bf9501
ci: fix var
rekram1-node Dec 26, 2025
06307dc
ci: fix token for gh
rekram1-node Dec 26, 2025
fa64085
ci: re-enable sync zed
rekram1-node Dec 26, 2025
21e4fe3
github: support issues and workflow_dispatch events (#6157)
elithrar Dec 26, 2025
a92af6b
tweak: bash tool description to avoid unnecessary 'cd &&' usage
rekram1-node Dec 26, 2025
d7a3a13
test: add more tests to make sure that cwd is locked for read tool
rekram1-node Dec 26, 2025
3127f4f
chore: kill some unused tools
rekram1-node Dec 26, 2025
f6b24d8
wip
rekram1-node Dec 27, 2025
ccf1826
wip
rekram1-node Dec 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 0 additions & 63 deletions .github/workflows/auto-label-tui.yml

This file was deleted.

69 changes: 69 additions & 0 deletions .github/workflows/docs-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Docs Update

on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:

jobs:
update-docs:
if: github.repository == 'sst/opencode'
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history to access commits

- name: Setup Bun
uses: ./.github/actions/setup-bun

- name: Get recent commits
id: commits
run: |
COMMITS=$(git log --since="4 hours ago" --pretty=format:"- %h %s" 2>/dev/null || echo "")
if [ -z "$COMMITS" ]; then
echo "No commits in the last 4 hours"
echo "has_commits=false" >> $GITHUB_OUTPUT
else
echo "has_commits=true" >> $GITHUB_OUTPUT
{
echo "list<<EOF"
echo "$COMMITS"
echo "EOF"
} >> $GITHUB_OUTPUT
fi

- name: Run opencode
if: steps.commits.outputs.has_commits == 'true'
uses: sst/opencode/github@latest
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
with:
model: opencode/gpt-5.2
agent: docs
prompt: |
Review the following commits from the last 4 hours and identify any new features that may need documentation.

<recent_commits>
${{ steps.commits.outputs.list }}
</recent_commits>

Steps:
1. For each commit that looks like a new feature or significant change:
- Read the changed files to understand what was added
- Check if the feature is already documented in packages/web/src/content/docs/*
2. If you find undocumented features:
- Update the relevant documentation files in packages/web/src/content/docs/*
- Follow the existing documentation style and structure
- Make sure to document the feature clearly with examples where appropriate
3. If all new features are already documented, report that no updates are needed
4. If you are creating a new documentation file be sure to update packages/web/astro.config.mjs too.

Focus on user-facing features and API changes. Skip internal refactors, bug fixes, and test updates unless they affect user-facing behavior.
Don't feel the need to document every little thing. It is perfectly okay to make 0 changes at all.
Try to keep documentation only for large features or changes that already have a good spot to be documented.
2 changes: 2 additions & 0 deletions .github/workflows/duplicate-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
with:
fetch-depth: 1

- uses: ./.github/actions/setup-bun

- name: Install opencode
run: curl -fsSL https://opencode.ai/install | bash

Expand Down
43 changes: 28 additions & 15 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ name: generate

on:
push:
branches-ignore:
- production
pull_request:
branches-ignore:
- production
branches:
- dev
workflow_dispatch:

jobs:
generate:
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -25,14 +23,29 @@ jobs:
- name: Setup Bun
uses: ./.github/actions/setup-bun

- name: Generate SDK
run: |
bun ./packages/sdk/js/script/build.ts
(cd packages/opencode && bun dev generate > ../sdk/openapi.json)
bun x prettier --write packages/sdk/openapi.json
- name: Generate
run: ./script/generate.ts

- name: Format
run: ./script/format.ts
env:
CI: true
PUSH_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
- name: Commit and push
run: |
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit"
exit 0
fi
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git commit -m "chore: generate"
git push origin HEAD:${{ github.ref_name }} --no-verify
# if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then
# echo ""
# echo "============================================"
# echo "Failed to push generated code."
# echo "Please run locally and push:"
# echo ""
# echo " ./script/generate.ts"
# echo " git add -A && git commit -m \"chore: generate\" && git push"
# echo ""
# echo "============================================"
# exit 1
# fi
2 changes: 1 addition & 1 deletion .github/workflows/notify-discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: discord

on:
release:
types: [published] # fires only when a release is published
types: [released] # fires when a draft release is published

jobs:
notify:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/opencode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
OPENCODE_PERMISSION: '{"bash": "deny"}'
with:
model: opencode/claude-haiku-4-5
model: opencode/claude-opus-4-5
Loading