Commit Graph

88 Commits

Author SHA1 Message Date
Dax Raad 7bcf5e40ec refactor: extract text variable and skip empty output 2026-02-02 13:06:34 -05:00
Dax Raad f21f8bb4c7 temp: disable reasoning output with early continue 2026-02-02 12:59:47 -05:00
Dax Raad 714ea57952 cli: trim both ends of reasoning text 2026-02-02 12:59:06 -05:00
Dax Raad 0bb2c77bb8 cli: add empty lines around thinking output 2026-02-02 12:57:37 -05:00
Dax Raad 48db3981e4 cli: re-enable reasoning output with italic formatting 2026-02-02 12:56:45 -05:00
Dax Raad 2aaf6ca27d Trim text output in run command 2026-02-02 12:54:07 -05:00
Dax Raad 54eb8ff6c7 cli: skip reasoning output with early continue 2026-02-02 12:53:37 -05:00
Dax Raad 1c07b14545 cli: remove ANSI formatting from reasoning output 2026-02-02 12:51:53 -05:00
Dax Raad 38efdf82a1 cli: add UI.empty() calls around reasoning output 2026-02-02 12:49:42 -05:00
Dax Raad 176f26850d cli: remove UI.empty() call from reasoning output 2026-02-02 12:48:05 -05:00
Dax Raad 8047f2052a cli: remove empty line after reasoning output 2026-02-02 12:45:17 -05:00
Dax Raad 2a38007101 cli: prefix reasoning output with 'Thinking:' and use trimEnd() 2026-02-02 12:40:40 -05:00
Dax Raad d3d261d37e cli: use ANSI escape codes for reasoning output formatting 2026-02-02 12:39:53 -05:00
Dax Raad 2a7869dbf8 add reasoning support to run command 2026-02-02 12:38:54 -05:00
Dax Raad 666ffa2832 cli: refactor run command 2026-02-02 12:37:52 -05:00
Dax Raad 390f90ef47 cli: make run non-interactive 2026-02-02 10:55:05 -05:00
Dax Raad 1954c1255e 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 e37fd9c105 core: add interactive question tool for gathering user preferences and clarifying instructions (#7268) 2026-01-07 22:29:42 -05:00
shuv 72cef0d9e7 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 351ddeed91 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 8f6c8844d7 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 be8116e2ea fix: preserve argument boundaries in run command (#4979) 2025-12-16 06:21:51 -06:00
Ravi Kumar 54569b5552 fix(session): fix unshare command not clearing share state (#5523) 2025-12-14 22:05:06 -06:00
Dax ea7ec60f51 v2 SDK (#5216)
Co-authored-by: GitHub Action <action@github.com>
2025-12-07 19:04:14 -05:00
U Cirello 6ce1de476a fix(run): allow messages to start with dash (-) (#4904) 2025-12-02 12:52:05 -06:00
GitHub Action 34ff87d504 chore: format code 2025-11-08 01:59:02 +00:00
Aiden Cline de1278414f fix: opencode run not parsing model string 2025-11-06 12:09:13 -06:00
Dax Raad 1ea3a8eb9b big format 2025-11-06 13:03:12 -05:00
monke-yo ee8b81269b feat: add --attach flag to opencode run (#3889) 2025-11-05 11:31:01 -06:00
Ritoban Dutta a3ba740de4 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 37380e1f94 add --title flag to opencode run (#3507) 2025-10-28 13:32:36 -05:00
Haris Gušić 97c7e941eb fix: opencode run shouldn't print to stderr (#3341) 2025-10-21 19:53:09 -05:00
Cheol Kang 2f66055d25 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 10998d62b9 core: improve session API reliability with proper input validation 2025-10-06 19:37:44 -04:00
Aiden Cline 860e47edea fix: run cmd json format when running command (#2926) 2025-10-02 10:37:42 -05:00
Arjun Singh 8a28d34fe9 Include step-start and step-finish for cost tracking (#2810) 2025-09-27 03:45:36 -04:00
Siddhant Choudhary 449994f120 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 4bf0541bd6 log bash output when using opencode run (#2595) 2025-09-14 09:03:40 -05:00
Dax 9bb25a9260 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 fde03d3c93 fix: exit code being non zero when using run cmd (#2523) 2025-09-09 12:00:55 -05:00
Dax f993541e0b 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 e2df3eb44d add --command to opencode run (#2348) 2025-09-01 14:19:18 -05:00
Aiden Cline 3625766ad4 tweak: ensure run command doesn't send request if no prompt present (#2332) 2025-08-30 10:39:28 -05:00
Timo Clasen 012a292948 fix: model flag in non interactive mode (#2249) 2025-08-25 15:06:54 -05:00
Aiden Cline a2db58f125 fix: don't let --continue access subagent session (#2091) 2025-08-19 22:40:07 -05:00
Timo Clasen af5f7d0887 fix: run command (#1971) 2025-08-15 15:58:20 -05:00
Dax Raad 6145dfcca0 fix run command to be less messy 2025-08-11 01:45:05 -04:00
Dax c34aec060f 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
Yihui Khuu 90d2b26426 fix: run command should use specified model from cli args if provided (#1648) 2025-08-06 05:39:44 -05:00
Dax d56dec4ba7 wip: optional IDs in api (#1128)
publish / publish (push) Has been cancelled
2025-07-18 13:42:50 -04:00