Aiden Cline
98d51dde6a
acp: slash commands, agents, permissions, @ references, code cleanup ( #3403 )
...
Co-authored-by: yetone <yetoneful@gmail.com>
2025-10-25 01:32:46 -05:00
Dax Raad
cee7106054
session summaries in data
2025-10-23 16:28:20 -04:00
Dax Raad
f4dfae0bb0
ignore: diff stuff
2025-10-23 16:04:58 -04:00
Dax Raad
e9996342a7
core: provide line-level statistics in file diffs to help users understand the scale of changes
2025-10-21 11:54:41 -04:00
Dax Raad
a0a09f421c
core: add session diff API to show file changes between snapshots
2025-10-20 17:59:26 -04:00
Aiden Cline
d69366b00c
Revert "try to avoid persisting empty thinking/text blocks"
...
This reverts commit d8a15e7bc9 .
2025-10-16 22:04:55 -05:00
Dax Raad
d8a15e7bc9
try to avoid persisting empty thinking/text blocks
2025-10-16 10:54:10 -04:00
Dax Raad
10998d62b9
core: improve session API reliability with proper input validation
2025-10-06 19:37:44 -04:00
Dax Raad
9a0735de76
Add session forking functionality and simplify remove logic
2025-10-06 18:50:56 -04:00
Dax Raad
3aeac02bf1
enable session pruning and allow disabling with OPENCODE_DISABLE_PRUNE
2025-09-16 04:53:17 -04:00
Dax
c1b4e1f19d
Upgrade to Zod v4 ( #2605 )
...
Co-authored-by: GitHub Action <action@github.com>
2025-09-15 03:12:07 -04: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
Dax Raad
555fb53505
nudge llm to continue properly after compaction
2025-09-13 01:23:54 -04:00
Stephen Murray
c02f58c2af
fix: await cleanupRevert() to prevent dupe msgs after undo ( #2572 )
2025-09-12 18:42:39 -05:00
Dax Raad
f2094b7bb3
temporarily disable midstream compaction
2025-09-12 14:00:54 -04:00
Dax Raad
3e2478ebf9
undo session pruning
2025-09-12 13:20:13 -04:00
Dax Raad
0290b4aaf0
ignore: internal
2025-09-12 10:45:44 +00:00
Dax Raad
469dc9095f
add microcompact
2025-09-12 06:38:47 -04:00
Dax Raad
983e3b2ee3
fix compaction issues
2025-09-12 06:01:11 -04:00
Dax Raad
4c94753eda
compaction improvements
2025-09-11 02:22:51 -04:00
Aiden Cline
29310957c8
fix: handle @dir in command ( #2533 )
2025-09-10 13:27:44 -05:00
Aiden Cline
bdc0f7c86d
tweak: wrap build-switch w/ system-reminder ( #2525 )
2025-09-09 23:57:13 -05:00
Dax Raad
e69d10b6c9
repair tool calls when casing is wrong
2025-09-09 23:25:27 -04:00
Aiden Cline
74469a0d3d
fix: shell invocations are dropped if last interaction was revert ( #2485 )
2025-09-07 21:45:13 -05:00
Ytzhak
4654fb88de
fix: max output tokens when setting budget thinking tokens ( #2056 )
...
Co-authored-by: rekram1-node <aidenpcline@gmail.com>
2025-09-07 13:15:53 -05:00
Aiden Cline
93c2f5060e
fix: title gen w/ gpt-5-nano ( #2473 )
2025-09-06 22:50:16 -05:00
Aiden Cline
564143071e
fix: title not generated if first msg is shell invocation ( #2451 )
2025-09-06 09:47:42 -05:00
Aiden Cline
bffe547417
fix: command model selection ( #2448 )
2025-09-05 20:54:39 -05:00
Adam
f171250033
fix: better file/content return
2025-09-04 12:39:49 -05:00
Aiden Cline
f740663ded
fix: more durable @ references for commands ( #2386 )
2025-09-02 21:24:56 -05:00
Adam Spiers
47d4c87bdd
make @file references in custom slash commands more robust ( #2203 )
...
Co-authored-by: Adam Spiers <opencode@adamspiers.org>
Co-authored-by: rekram1-node <aidenpcline@gmail.com>
2025-09-01 21:14:27 -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
029612d8d5
fix: ensure shell cmds can be properly aborted ( #2339 )
2025-08-31 12:48:30 -05:00
Aiden Cline
a3f4a030b4
fix: mcp tool not triggering hooks ( #2320 )
2025-08-29 21:51:06 -05:00
Aiden Cline
7f5e5fccc8
ignore: add error log for title gen failures ( #2309 )
2025-08-29 10:53:58 -05:00
Aiden Cline
1a5b456bb6
fix: add additional encouragement for title gen ( #2298 )
2025-08-29 09:47:08 -05:00
Aiden Cline
6daf0fdb2b
allow slash commands to resolve ~/ references ( #2295 )
2025-08-28 17:31:03 -05:00
Aiden Cline
ad8ea82611
add synthetic user message before bash execution (when using !) ( #2283 )
2025-08-27 17:41:24 -05:00
Aiden Cline
2d794ed03d
fix: ensure / commands dont try to resolve @ references from cmd outputs ( #2282 )
2025-08-27 15:59:33 -05:00
Aiden Cline
cc66e06101
fix: command model selection ( #2219 )
2025-08-24 12:06:48 -05:00
Aiden Cline
1f57b9a70f
fix: count reasoning tokens ( #2187 )
2025-08-22 18:21:39 -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
9231043eb4
tweak: adjust plan -> build transition prompt ( #2111 )
2025-08-21 06:52:38 -05:00
Dax Raad
aa10f8a7f6
sonic model
2025-08-20 01:02:41 -04:00
Aiden Cline
25f43adaa0
tweak: notify agent it is in build mode when switching from plan mode ( #2065 )
2025-08-19 15:32:31 -05:00
Yihui Khuu
70f14cccd6
feat(shell): load .zshenv and respect ZDOTDIR if present ( #1958 )
2025-08-15 13:24:34 -05:00
Yihui Khuu
86df4073d1
fix(shell): commands expecting stdin will be "working" indefinitely ( #1964 )
2025-08-15 13:23:59 -05:00
adamdotdevin
07dbc30c63
feat(tui): navigate child sessions (subagents)
2025-08-15 10:16:08 -05:00
Mariano Uvalle
0befc5d602
Feat: Render tool metadata after permission rejection. ( #1949 )
...
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-08-15 06:16:40 -05:00
Aiden Cline
62fed8d2ce
fix: fish shell ( #1950 )
2025-08-15 06:11:09 -05:00
Aiden Cline
6eaaaffcdd
fix: small tweak to support nushell ( #1943 )
2025-08-14 17:54:22 -05:00
Dax Raad
796bc390db
fix for session stuck in "Working..."
2025-08-14 12:20:22 -04:00
Aiden Cline
4dea0209bb
fix: support fish shell ( #1911 )
2025-08-13 20:04:04 -05:00
Aiden Cline
118617473e
fix: bash should hide stdout from zshrc ( #1909 )
2025-08-13 17:04:32 -04: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
Dax Raad
e729eed34d
wip: bash
2025-08-13 14:14:27 -04:00
Dax Raad
c6344c5714
wip: bash
2025-08-13 13:31:29 -04:00
Dax Raad
7505fa61b9
wip: bash commands
2025-08-13 13:29:06 -04:00
adamdotdevin
f2021a85d6
fix: allow attachments outside cwd, and support svg
2025-08-13 10:36:50 -05:00
Dax Raad
5785ded6e2
add openai prompt cache key
2025-08-12 17:37:15 -04:00
Dax Raad
fab0e5de04
fix issue when @ tagging fiels throwing error
2025-08-12 13:30:52 -04:00
Dax
10735f93ca
Add agent-level permissions with whitelist/blacklist support ( #1862 )
2025-08-12 11:39:39 -04:00
Dax Raad
1ec71e419b
support wildcard matching tool names in config
2025-08-11 23:37:09 -04:00
adamdotdevin
5e777fd2a2
feat: toggle tool details visible
2025-08-11 11:58:46 -05:00
Dax Raad
457386ad08
fix plan mode bash tool making changes
2025-08-11 01:15:12 -04:00
Dax Raad
13d3fba86b
switch gpt-5 to codex prompt
2025-08-10 20:47:38 -04:00
Dax Raad
3ab4f42ebb
support agent options
2025-08-10 20:30:37 -04:00
adamdotdevin
b8d2aebf09
feat: thinking blocks rendered in tui and share page
2025-08-10 19:25:03 -05:00
Dax Raad
d3ff66e911
use minimal reasoning effort for gpt-5
2025-08-09 15:38:48 -04:00
Aiden Cline
e2fac991dc
better permissions ux when denying ( #1747 )
2025-08-09 11:03:33 -05:00
Dax Raad
7bbc643600
remove synthetic message in plan mode, fixes being confused in build mode
2025-08-08 20:45:24 -04:00
Dax Raad
53630ebdce
gpt-5 lower verbosity
2025-08-08 20:42:22 -04:00
Dax Raad
4f164c53d2
temporary fix for max output token
2025-08-07 22:54:59 -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
Aiden Cline
a48274f82b
permissions disallow support ( #1627 )
2025-08-05 19:14:28 -05:00
Timo Clasen
49aa48ce58
fix: prevent title regeneration on auto compact ( #1628 )
2025-08-05 17:15:50 -05:00
Dax Raad
857a3cd522
hint back to llm when tool does not exist
2025-08-05 15:58:12 -04:00
Timo Clasen
4957fca718
fix(plugins): improve session idle event ( #1615 )
2025-08-05 05:16:43 -05:00
Mahamed-Belkheir
5bf7691ea6
fix: default value for models with no cost object ( #1601 )
2025-08-04 16:45:35 -05:00
Dax Raad
0a42068fbb
hack to return tool call errors back to model
2025-08-04 12:15:24 -04:00
Dax Raad
21c52fd5cb
fix bash tool getting stuck on interactive commands
2025-08-03 13:52:50 -04:00
Dax Raad
06830327e7
more efficient snapshots in parallel toolcalls
2025-08-03 12:12:28 -04:00
Dax Raad
ca031278ca
wip: plugins
2025-08-02 18:50:19 -04:00
Dax Raad
e1b7e25f4d
make top_p configurable
2025-08-01 17:03:33 -04:00
Dax Raad
3aa6eeb426
do not mark errored tool calls as aborted
2025-07-31 21:45:40 -04:00
Dax Raad
a2191ce6fb
wip: permissions
2025-07-31 16:38:37 -04:00
Aiden Cline
f5f55062f1
fix: session ordering ( #1474 )
2025-07-31 14:17:47 -05:00
adamdotdevin
5500698734
wip: tui permissions
2025-07-31 09:59:17 -05:00
Aiden Cline
3c49a9b7dd
fix: process revert cleanup before creating new messages ( #1448 )
2025-07-31 05:07:59 -05:00
Dax
18888351e9
use treesitter to parse bash commands and catch commands that go outside of cwd ( #1443 )
2025-07-30 20:57:52 -04:00
Dax Raad
6ef4cfa2fa
lower max retries to 3 - ai sdk currently cannot abort during a retry delay so things appear to be frozen
2025-07-30 15:08:25 -04:00
Dax Raad
9cb0f21b4e
trim opencode title
2025-07-28 23:24:38 -04:00
Dax Raad
9c9cbb3e81
wip: undo properly remove messages from UI
2025-07-28 22:58:31 -04:00
Dax Raad
c24fbb4292
wip: snapshot
2025-07-28 22:58:31 -04:00
Dax Raad
f2bdb8159f
fix phantom tool call failed messages and empty text parts with some models
2025-07-28 12:19:38 -04:00
Aiden Cline
b18b646f8e
fix: attachment bugs ( #1335 )
2025-07-27 12:21:31 -05:00
Aiden Cline
ad8a4bc744
fix: strip thinking blocks from title ( #1325 )
2025-07-26 08:29:04 -05:00
Dax Raad
10ae43a121
wip: sync
2025-07-25 15:52:27 -04:00
Dax Raad
c85b970903
wip: drop
2025-07-25 15:51:02 -04:00