Kit Langton
b6aa472839
Move service state into InstanceState, flatten service facades ( #18483 )
2026-03-21 04:51:35 +00:00
Kit Langton
2a6909cd07
refactor(truncation): effectify TruncateService, delete Scheduler ( #17957 )
2026-03-17 21:59:54 -04:00
Dax Raad
7e10f80b49
refactor(server): extract createApp function for server initialization
...
- Replace Server.App() with Server.Default() for internal server access
- Extract server app creation into Server.createApp(opts) for testability
- Move CORS whitelist from module-level variable to function parameter
- Update all tests to use Server.Default() instead of Server.App()
2026-03-09 17:13:52 -04:00
Dax Raad
c854a6917d
refactor: change pathToFileURL imports from bun to url module
2026-03-09 14:52:25 -04:00
Eric Clemmons
dec0a3b85f
fix(opencode): pass missing auth headers in run --attach ( #16097 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: Shoubhit Dash <shoubhit2005@gmail.com >
2026-03-09 07:32:13 +00:00
Dax
0e44e3803a
fix: restore Bun stdin reads for prompt input ( #16300 )
2026-03-06 02:08:10 -05:00
Dax Raad
a289e15cb0
refactor: use node:stream/consumers for stdin reading
2026-03-05 22:08:50 -05:00
Dax Raad
1aa25a9ea3
refactor: replace Bun.stdin.text with Node.js stream reading
2026-03-05 22:04:20 -05:00
Andrea Alberti
f85648c660
fix: run --attach agent validation ( #11812 )
...
Co-authored-by: LukeParkerDev <10430890+Hona@users.noreply.github.com >
2026-03-03 22:30:16 +00:00
Aiden Cline
b755d919a4
fix: opencode run crashing, and show errored tool calls in output ( #14206 )
2026-02-18 17:13:01 -06:00
Dax
a8cf960a09
refactor: migrate cli/cmd/run.ts from Bun.file() to Filesystem/stat modules ( #14155 )
2026-02-18 17:22:46 +00:00
Kevin
3585a8b57a
fix: prevent opencode run crash on malformed tool inputs ( #13051 )
...
Co-authored-by: 0xK3vin <kevin@git-pu.sh >
2026-02-13 20:54:20 -06:00
Rahul Mishra
f8e94fd002
feat(cli): add --dir option to run command ( #12443 )
2026-02-13 00:59:37 -06:00
Khang Ha (Kelvin)
c908bc5c51
fix: properly encode file URLs with special characters ( #12424 )
2026-02-06 16:16:56 -06:00
opencode-agent[bot]
bf819f3636
chore: generate
2026-02-06 19:16:36 +00:00
Ariane Emory
dea36da633
feat(tui): add Claude Code-style --fork flag to duplicate sessions before continuing ( resolves #11137 ) ( #11340 )
2026-02-06 13:15:47 -06:00
Dax
5634443181
cli: add --thinking flag to show reasoning blocks in run command ( #12013 )
2026-02-03 20:49:15 +00:00
Dax
122a765c48
cli: make run non-interactive ( #11814 )
2026-02-02 23:35:23 -05:00
Dax Raad
0ddb992bd6
core: add password authentication and improve server security
...
- Add OPENCODE_PASSWORD flag for basic auth protection
- Show security warnings when password is not set
- Remove deprecated spawn command
- Improve error handling with HTTPException responses
2026-01-12 15:23:19 -05:00
Dax
544f398374
core: add interactive question tool for gathering user preferences and clarifying instructions ( #7268 )
2026-01-07 22:29:42 -05:00
shuv
72a186c6b7
feat: add --variant flag to run command ( #6805 )
...
Co-authored-by: shuv <shuv@shuv.dev >
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com >
2026-01-04 00:08:34 -06:00
Dax
e839c1522d
Permission rework ( #6319 )
...
Co-authored-by: Github Action <action@github.com >
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com >
2026-01-01 17:54:11 -05:00
Matt Silverlock
f33003881d
feat: support configuring a default_agent across all API/user surfaces ( #5843 )
...
publish-github-action / publish (push) Has been cancelled
Update Nix Hashes / update (push) Has been cancelled
Co-authored-by: observerw <observerw@users.noreply.github.com >
2025-12-20 11:49:23 -06:00
Simon D'Morias
26a71d29aa
fix: preserve argument boundaries in run command ( #4979 )
2025-12-16 06:21:51 -06:00
Ravi Kumar
f757fd55a1
fix(session): fix unshare command not clearing share state ( #5523 )
2025-12-14 22:05:06 -06:00
Dax
616265d0ef
v2 SDK ( #5216 )
...
Co-authored-by: GitHub Action <action@github.com >
2025-12-07 19:04:14 -05:00
U Cirello
25284c39e4
fix(run): allow messages to start with dash (-) ( #4904 )
2025-12-02 12:52:05 -06:00
GitHub Action
9855771157
chore: format code
2025-11-08 01:59:02 +00:00
Aiden Cline
de093ce764
fix: opencode run not parsing model string
2025-11-06 12:09:13 -06:00
Dax Raad
ed8913324e
big format
2025-11-06 13:03:12 -05:00
monke-yo
5b0468031f
feat: add --attach flag to opencode run ( #3889 )
2025-11-05 11:31:01 -06:00
Ritoban Dutta
1557068185
fix: resolve hanging permission prompts in headless mode ( #3522 )
...
Co-authored-by: Aiden Cline <aidenpcline@gmail.com >
2025-10-30 15:37:41 -05:00
Aiden Cline
945fb316bc
add --title flag to opencode run ( #3507 )
2025-10-28 13:32:36 -05:00
Haris Gušić
ef2f094cdc
fix: opencode run shouldn't print to stderr ( #3341 )
2025-10-21 19:53:09 -05:00
Cheol Kang
5a41b3ff7a
feat: add -f/--file flag to opencode run command ( #3295 )
...
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com >
Co-authored-by: Aiden Cline <aidenpcline@gmail.com >
2025-10-20 23:25:54 -05:00
Dax Raad
87f71e2183
core: improve session API reliability with proper input validation
2025-10-06 19:37:44 -04:00
Aiden Cline
f58fe4e866
fix: run cmd json format when running command ( #2926 )
2025-10-02 10:37:42 -05:00
Arjun Singh
72295261e6
Include step-start and step-finish for cost tracking ( #2810 )
2025-09-27 03:45:36 -04:00
Siddhant Choudhary
e83e6c595c
feat: output-format flag to stream json output ( #2471 )
...
Co-authored-by: Siddhant Choudhary <sid@treaps.com >
Co-authored-by: rekram1-node <aidenpcline@gmail.com >
2025-09-23 16:19:32 -05:00
Tommy D. Rossi
7ebbcbec17
log bash output when using opencode run ( #2595 )
2025-09-14 09:03:40 -05:00
Dax
7d8d63faff
Session management and prompt handling improvements ( #2577 )
...
Co-authored-by: GitHub Action <action@github.com >
2025-09-13 05:46:14 -04:00
Aiden Cline
ddb9d6626c
fix: exit code being non zero when using run cmd ( #2523 )
2025-09-09 12:00:55 -05:00
Dax
aea78046d0
Refactor to support multiple instances inside single opencode process ( #2360 )
...
This release has a bunch of minor breaking changes if you are using opencode plugins or sdk
1. storage events have been removed (we might bring this back but had some issues)
2. concept of `app` is gone - there is a new concept called `project` and endpoints to list projects and get the current project
3. plugin receives `directory` which is cwd and `worktree` which is where the root of the project is if it's a git repo
4. the session.chat function has been renamed to session.prompt in sdk. it no longer requires model to be passed in (model is now an object)
5. every endpoint takes an optional `directory` parameter to operate as though opencode is running in that directory
2025-09-01 17:15:49 -04:00
Aiden Cline
cb5bf46f18
add --command to opencode run ( #2348 )
2025-09-01 14:19:18 -05:00
Aiden Cline
4b2c8c1528
tweak: ensure run command doesn't send request if no prompt present ( #2332 )
2025-08-30 10:39:28 -05:00
Timo Clasen
e18b2dc58e
fix: model flag in non interactive mode ( #2249 )
2025-08-25 15:06:54 -05:00
Aiden Cline
3c1e9c3498
fix: don't let --continue access subagent session ( #2091 )
2025-08-19 22:40:07 -05:00
Timo Clasen
bbb9eb80b4
fix: run command ( #1971 )
2025-08-15 15:58:20 -05:00
Dax Raad
fce733492d
fix run command to be less messy
2025-08-11 01:45:05 -04:00
Dax
77c101d742
Merge agent and mode into one ( #1689 )
...
The concept of mode has been deprecated, there is now only the agent field in the config.
An agent can be cycled through as your primary agent with <tab> or you can spawn a subagent by @ mentioning it. if you include a description of when to use it, the primary agent will try to automatically use it
Full docs here: https://opencode.ai/docs/agents/
2025-08-07 16:32:12 -04:00