Commit graph

22634 commits

Author SHA1 Message Date
Luke Parker
be740a5d01 fix(browser): revoke attach grants left behind by a server that was killed
The attach grant is a stored session rule, but its revoke runs only from the
plugin's finalizer. After SIGKILL, a crash or a stop timeout, the session kept
browser:* and skill:browser allows with no attachment behind them, so the next
server listed the browser tools and every call failed with
[browser.disconnected].

Each grant is now recorded in plugin storage with the server process that wrote
it (host and process ID) and its location, before the grant is written; a
successful revoke removes the record. When the plugin starts for a location, and
before it registers the browser RPC so no attach can race it, it revokes the
grants recorded for that location by a process that no longer runs.

Several server processes can share one database (a desktop's server and a
manual `opencode serve` both use opencode.db), so a sweep of every session in
the location could revoke another server's live grant. The sweep skips records
of a running process and of another host, which cannot be checked. Grants
written before this change have no record and are left alone; the next attach
and detach of their session removes them.

The startup sweep before RPC registration, its location scoping and ignoring
per-session failures come from #61639.

Fixes #61609

Co-authored-by: Chen Yufeiyang <fei76161@gmail.com>
2026-11-13 08:25:22 +10:00
Luke Parker
5778f64f3d fix(browser): revoke the attach grant a subagent inherits from its parent
A child session copies its parent's permissions, so a subagent spawned from an
attached session got the browser:* and skill:browser allows but no attachment.
It listed the browser tools and the Browser skill, every call failed with
[browser.disconnected], and the copied allow outlived the parent's attachment.

The plugin now revokes the grant from a child session while the child's prompt
is admitted (session prompt hook), before any step of the child can list the
tools, so there is no race with its first step. It holds the attachment lock
while it checks and writes, and skips a child that has an attachment of its own.
A subagent whose agent denies the browser stays denied even when the desktop
attaches to it, through the check from the previous commit.

Refs #61238
2026-11-13 08:25:05 +10:00
Luke Parker
34490b7c7d fix(browser): let a configured browser deny win over the desktop's attach grant
Attaching a desktop browser writes browser:* and skill:browser allows into the
session's permissions. Session rules are evaluated after agent rules, so the
grant overrode a browser deny from config, an agent definition (for example a
"*" deny) or the session itself. Browser tools never called the permission
check either, so tool.use policies did not apply.

The plugin now records each agent's rules before it appends its own default
deny. A browser call is refused when those rules, plus the session's rules
without the grant, deny the browser, decided the way core's tool filter decides.
The call then runs the permission check with the operation as its resource, so
permission.evaluate hooks such as tool.use policies apply. Sessions without a
deny behave as before: the grant allows the check, so nothing prompts.

Refs #54044, #53294, #56869
2026-11-13 08:16:25 +10:00
Adam
f179e6e5f0
fix(tui): drop tool-result image bytes from the transcript store unless image previews are on (#63577)
Some checks are pending
deploy / data-build (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-6vcpu-macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-deploy (push) Blocked by required conditions
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-11-12 15:17:44 -06:00
James Long
fd6a1167b4
fix(tui): give shell mode its own prompt color under new designs (#63605) 2026-11-12 16:09:20 -05:00
David Hill
9bc30594ab
refactor(site): put every neutral grey on one shared scale (#63604)
Some checks are pending
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy-update / update-build (push) Waiting to run
deploy-update / update-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
2026-11-12 20:57:16 +00:00
Aiden Cline
a3d6e54b3d
fix(codemode): decode UTF-8 across chunk boundaries (#63600) 2026-11-12 20:30:06 +00:00
Aiden Cline
8921769577
fix(core): drop stale thinking when Claude Agent prompts or tools change (#63592) 2026-11-12 13:56:50 -06:00
Adam
ebf6e00ad3
docs(console): document Send identity on custom providers (#63596) 2026-11-12 13:49:08 -06:00
James Long
a1aa513f78
fix(core): resume directly driven child sessions after restart (#63415) 2026-11-12 14:23:00 -05:00
opencode-agent[bot]
8c809fb1f8
docs(console): add Gemini 4 Hydrogen to Zen (#63589)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
2026-11-12 11:10:55 -08:00
James Long
6cca598863
fix(session-ui): keep links whose label contains inline code (#63587) 2026-11-12 13:51:17 -05:00
James Long
becb9c7c9f
fix(app): order Recent sessions by the last list reload and drop the rename guard (#63370) 2026-11-12 13:45:04 -05:00
usrnk1
f738b32d23
feat(app): jump to an earlier prompt by searching session messages (#63585) 2026-11-12 19:41:08 +01:00
James Long
a73657f3f9
refactor(codemode): flatten the VM into src and remove two-engine leftovers (#63377) 2026-11-12 13:39:15 -05:00
James Long
3cfe63a182
fix(tui): restore pasted text when undo brings back its placeholder (#63265) 2026-11-12 13:34:17 -05:00
James Long
89e66ae70e
fix(tui): restore the live draft after browsing prompt history (#63262) 2026-11-12 13:33:17 -05:00
Aarav Sareen
0996030161
feat(app): show a free limit panel in place of the composer (#63531) 2026-11-13 00:01:25 +05:30
Luke Parker
5418e010d7
chore(perf): bench with strobe 0.32.0 (#63575) 2026-11-12 16:58:55 +00:00
James Long
28f74f8591
fix(tui): copy the paste inside the prompt selection (#63275) 2026-11-12 16:50:11 +00:00
James Long
32a00c976d
fix(tui): keep the Mini draft caret when closing the command palette (#63260) 2026-11-12 16:49:22 +00:00
Dax
71b27c4cd8
fix(app): reuse mention suggestions while typing (#63572) 2026-11-12 11:46:46 -05:00
Aiden Cline
f96b54590d
docs: describe tools exposed directly when execute is denied (#63566) 2026-11-12 10:28:25 -06:00
David Hill
33aefad13c
chore(site): serve OG Studio link cards from the files bucket, add docs previews (#63560)
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
2026-11-12 10:00:20 -06:00
David Hill
1a85993784
chore(site): render Ukrainian and Russian link cards in OpenTUI Mono's Cyrillic (#63556) 2026-11-12 09:30:37 -06:00
Filip
ec263d62b6
fix(core): keep plugin swaps going when a cleanup fails (#63548)
Co-authored-by: Filip Hejmowski <fhejmowski@simplito.com>
2026-11-12 16:15:41 +01:00
usrnk1
96d950178c
fix(app): advance SSH prompts and close the dialog on connection (#63544) 2026-11-12 15:14:43 +00:00
opencode-agent[bot]
b268a4e8b0
feat(session-ui): maximize Mermaid diagrams to zoom and pan them (#59250) 2026-11-12 15:02:33 +00:00
usrnk1
1c53e40a7f
feat(app): choose each server's terminal shell from its menu (#63539) 2026-11-12 15:37:30 +01:00
James Long
98def2f90e
test(app): update e2e specs for always-background subagents (#63538) 2026-11-12 09:08:25 -05:00
Dax
196a5ee922
chore: only require code owner review for .github (#63543) 2026-11-12 08:54:05 -05:00
Luke Parker
3d308eae2e
chore(perf): bench with strobe 0.31.0 (#63515)
Some checks are pending
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-6vcpu-macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
2026-11-12 11:03:03 +00:00
Adam
9d236eb0c8
fix(site): ship the link-card videos with the site's static assets (#63459)
Some checks are pending
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy-update / update-build (push) Waiting to run
deploy-update / update-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
2026-11-12 04:56:04 -06:00
Aarav Sareen
82e39cce28
fix(app): restore message footers in the New timeline (#63513) 2026-11-12 16:08:23 +05:30
opencode-agent[bot]
d7ae4f2e3c
fix(site): keep the page when leaving the Markdown view on static pages (#63503)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
2026-11-12 10:56:00 +01:00
Filip
cbcd846a57
fix(app): retry browser pane when server plugins finish loading (#63500) 2026-11-12 10:45:34 +01:00
Luke Parker
df7911ab8b
chore(perf): bench with strobe 0.30.0 (#63497) 2026-11-12 09:17:00 +00:00
Dax Raad
101776024c fix(release): limit stable releases to named actors
Some checks failed
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-6vcpu-macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
Process daemon / Miri (callback ownership) (push) Has been cancelled
Process daemon / Core (blacksmith-6vcpu-macos-15) (push) Has been cancelled
Process daemon / Core (ubuntu-22.04) (push) Has been cancelled
Process daemon / Windows (arm64) (push) Has been cancelled
Process daemon / Windows (x64) (push) Has been cancelled
2026-11-11 23:08:45 -05:00
Aiden Cline
2c1e17b581
feat(core): publish MCP events on the bus (#63261) 2026-11-11 21:41:31 -06:00
Luke Parker
4f51455a5d
chore(perf): bench with strobe 0.29.0 (#63441) 2026-11-12 03:01:34 +00:00
Aiden Cline
647e5a7b18
fix(ai): accept System One refusals and send PDFs in the OpenRouter state (#63443) 2026-11-12 03:00:45 +00:00
opencode-agent[bot]
5c965609cf
docs(console): add GPT 6 Luna Decision and Gemini Decision 1 (#63440)
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
2026-11-11 18:54:37 -08:00
Dax Raad
f5ca39a97d fix(tui): open session list at the top instead of the current session 2026-11-11 20:56:14 -05:00
Dax
6c34e24488
feat(app): hide and mute sessions in Recent sidebar (#63427) 2026-11-11 20:27:07 -05:00
Dax Raad
a7041d45d6 isolate release credentials and process daemon publishing 2026-11-11 20:21:45 -05:00
Dax
b451fe3952
fix(legacy): keep github app secrets in production (#63423) 2026-11-11 19:49:20 -05:00
James Long
6d023043ca
refactor(core): remove the subagent notify option (#63413) 2026-11-11 18:44:14 -05:00
James Long
63dd3f1c6c
feat(core): run local Windows shell commands in the process daemon (#63409) 2026-11-11 18:32:15 -05:00
Aiden Cline
464688ba68
fix(core): stop keeping the whole file in memory for tail reads (#63030) 2026-11-11 17:30:09 -06:00
Dan Smolsky
6b8c796eeb
fix(core): use the localhost redirect when an MCP OAuth server rewrites 127.0.0.1 (#63403) 2026-11-11 18:04:54 -05:00