Commit Graph

83 Commits

Author SHA1 Message Date
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
2946898934 fix: ensure command uses currently selected model (#2336) 2025-08-30 15:41:06 -05:00
Aiden Cline
d7a9f343c5 tui: show actual error if command fails (#2296) 2025-08-28 18:42:55 -05:00
Aiden Cline
37cf262094 fix: tui not showing err toasts (#2290) 2025-08-28 10:55:47 -05:00
Aiden Cline
cc66e06101 fix: command model selection (#2219) 2025-08-24 12:06:48 -05:00
Dax
133fe41cd5 slash commands (#2157)
Co-authored-by: adamdotdevin <2363879+adamdottv@users.noreply.github.com>
2025-08-22 17:04:28 -04:00
Aiden Cline
574be9febf fix: keybind panic (#2092) 2025-08-19 22:39:59 -05:00
Ytzhak
667ff90dd6 feat: add shimmer text rendering (#2027) 2025-08-18 05:55:01 -05:00
Aiden Cline
dc01071498 feat: add scroll speed to config (#1968) 2025-08-15 13:21:02 -05:00
Yihui Khuu
92d4366a20 feat(tui): support cycling recent models in reverse (#1953) 2025-08-15 06:20:07 -05:00
Dax Raad
796bc390db fix for session stuck in "Working..." 2025-08-14 12:20:22 -04:00
adamdotdevin
a4beb60e19 chore: rename bash -> shell 2025-08-13 15:11:30 -05:00
Dax Raad
93b71477e6 support !shell commands 2025-08-13 15:26:13 -04:00
adamdotdevin
1357319f6f feat: bash commands 2025-08-13 13:28:22 -05:00
spoons-and-mirrors
47c327641b feat: add session rename functionality to TUI modal (#1821)
Co-authored-by: opencode <noreply@opencode.ai>
Co-authored-by: Dax Raad <d@ironbay.co>
Co-authored-by: Dax <mail@thdxr.com>
2025-08-12 16:22:03 -04:00
spoons-and-mirrors
81583cddbd refactor(agent-modal): revamped UI/UX for the agent modal (#1838)
Co-authored-by: Dax Raad <d@ironbay.co>
Co-authored-by: Dax <mail@thdxr.com>
2025-08-12 16:21:57 -04:00
Aiden Cline
b2a4f57d64 feat: add -c and -s args to tui command following run command pattern (#1835) 2025-08-11 18:32:09 -05:00
spoons-and-mirrors
8780fa6ccf Fix: Respect agent's preferred model at TUI startup (#1683)
Co-authored-by: opencode <noreply@opencode.ai>
2025-08-11 08:51:35 -05:00
spoons-and-mirrors
73a8356b10 Feat: Add F2 Keybind to Cycle Through the 5 Most Recent Models (#1778) 2025-08-11 07:00:32 -05:00
Aiden Cline
62b8c7aee0 feat (tui): agents dialog (#1802) 2025-08-11 01:46:38 -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
Dominik Engelhardt
42a5fcead4 Choose model according to the docs (#1536) 2025-08-02 09:29:03 -05:00
adamdotdevin
936f4cb0c6 fix: permission state hangs 2025-07-31 11:36:08 -05:00
adamdotdevin
5500698734 wip: tui permissions 2025-07-31 09:59:17 -05:00
Dax Raad
190dee080c release undo/redo 2025-07-30 13:09:18 -04:00
Dax Raad
ff23f67ad5 disable undo/redo for now 2025-07-23 21:02:13 -04:00
Dax
96866e52ce basic undo feature (#1268)
Co-authored-by: adamdotdevin <2363879+adamdottv@users.noreply.github.com>
Co-authored-by: Jay V <air@live.ca>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Andrew Joslin <andrew@ajoslin.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Tobias Walle <9933601+tobias-walle@users.noreply.github.com>
2025-07-23 20:30:46 -04:00
Aiden Cline
b7b0cdbd7c tweak: ensure most recently interacted with session appears at the top (#1239) 2025-07-22 22:37:36 -05:00
Dax
1ded535175 message queuing (#1200) 2025-07-21 15:14:54 -04:00
adamelmore
0aa0e740cd docs: cleanup 2025-07-21 10:02:58 -05:00
adamelmore
bb17d14665 feat(tui): theme override with OPENCODE_THEME 2025-07-21 10:02:57 -05:00
adamdotdevin
8e8796507d feat(tui): message history select with up/down arrows 2025-07-21 05:52:11 -05:00
Dax Raad
adc8b90e0f implement copy paste much wow can you believe we went this long without it so stupid i blame adam 2025-07-20 19:05:38 -04:00
Dax
d56dec4ba7 wip: optional IDs in api (#1128) 2025-07-18 13:42:50 -04:00
Dax Raad
c952e9ae3d message rendering performance improvements 2025-07-18 13:40:07 -04:00
adamdotdevin
cdc1d8a94d feat(tui): layout config to render full width 2025-07-16 12:43:02 -05:00
Adi Yeroslav
57d1a60efc feat(tui): shift+tab to cycle modes backward (#1049) 2025-07-16 07:43:48 -05:00
Aiden Cline
636fe0fb64 Fix: failed to open session (#999) 2025-07-15 05:40:29 -05:00
Dax Raad
31e0326f78 fix init command and escape to cancel 2025-07-14 10:48:17 -04:00
Dax
90d6c4ab41 Part data model (#950) 2025-07-13 17:22:11 -04:00
adamdotdevin
54fe3504ba feat(tui): accent editor border on leader key 2025-07-10 12:57:22 -05:00
adamdottv
6603d9a9f0 feat: --mode flag passed to tui 2025-07-10 10:19:25 -05:00
adamdottv
ce4cb820f7 feat(tui): modes 2025-07-10 10:06:51 -05:00
Adi Yeroslav
a1701678cd feat(tui): /editor - change the auto-send behavior to put content in input box instead (#827) 2025-07-10 05:57:52 -05:00
adamdottv
3f25e5bf86 chore: internal clipboard package 2025-07-09 04:55:24 -05:00
Timo Clasen
1e07384364 fix: make compact command interruptible (#691)
Co-authored-by: GitHub Action <action@github.com>
2025-07-08 15:37:25 -05:00
adamdottv
c659496b96 fix(tui): model/provider arg parsing 2025-07-08 14:11:57 -05:00
adamdottv
662d022a48 feat(tui): paste images and pdfs 2025-07-08 08:09:01 -05:00
adamdottv
ea96ead346 feat(tui): handle --model and --prompt flags 2025-07-08 05:50:18 -05:00
Dax
f884766445 v2 message format and upgrade to ai sdk v5 (#743)
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Liang-Shih Lin <liangshihlin@proton.me>
Co-authored-by: Dominik Engelhardt <dominikengelhardt@ymail.com>
Co-authored-by: Jay V <air@live.ca>
Co-authored-by: adamdottv <2363879+adamdottv@users.noreply.github.com>
2025-07-07 15:53:43 -04:00