Commit graph

22162 commits

Author SHA1 Message Date
Ryan Vogel
251d978448 feat(core): place sessions and subagents on requested workspaces
A session's workspace placement could only be set through the internal Effect
SDK. This opens it to agents, plugins and the HTTP API behind the new
`workspaces` flag:

- `Session.create` accepts `parentID` together with an explicit `location`,
  so a child can run on a different placement; a plain `parentID` child still
  copies its parent.
- The `subagent` tool gains optional `workspaceID` and `directory`; reusing an
  existing child with a different placement fails instead of changing it.
- New `opencode` tools `workspace_providers`, `workspace_create` (create and
  provision) and `workspace_destroy`, permission-gated.
- `session_move` accepts `workspaceID` and passes the session's current one
  when omitted, so moving between directories no longer silently drops a
  workspace placement. Core move skips the host directory stat and host
  project resolution for workspace destinations; the Location layer resolves
  the project.
- Plugin `session.create` accepts `location.workspace`.
- HTTP: `experimental.workspaceID` on `session.create` and `session.move`,
  and a new experimental group `/api/experimental/workspace/*`
  (providers, create, provision, destroy). Generated clients regenerated.

Verified: `bun typecheck` in schema, core, plugin, protocol, server, client
and sdk; `bun run check` at the root; protocol experimental-identifiers test;
core session-create, session-move, tool-opencode, tool-subagent and plugin
tests; server session handler tests; sdk embedded test (child placed on a
workspace while a plain child inherits).
2026-11-05 10:28:23 -05:00
Ryan Vogel
f862f07092 feat(core): let plugins register workspace drivers
Workspace drivers could only be injected by the embedding host through
`OpenCode.create({ workspaceProviders })`. The driver registry is now a
transformable State (same pattern as artifact providers), and plugins get an
`experimental.workspace` domain with `transform` (add/remove a driver),
`providers`, `create`, `provision` and `destroy`. Host-provided drivers remain
the base state; the latest active plugin registration for a name wins and
disposing it restores the previous driver.

State.create gains a `scope: "global"` option so a global registry is not
closed by a Location shutdown batch. The Environment file types move to
`@opencode/plugin/effect/environment-files` so plugin drivers can type their
`connect` result; core re-exports them.

Verified: `bun typecheck` in core, plugin and sdk; `bun test
test/embedded.test.ts` in sdk (plugin-registered driver provisions a
workspace); `bun test test/workspace*.test.ts` in core.
2026-11-05 10:17:02 -05:00
Luke Parker
ee368d2ab0
fix(app): settle quote sends with the composer submit (#62037) 2026-11-05 08:22:33 -06:00
usrnk1
d0045aaab5
feat(app): show a failed dot on tabs whose run failed (#62077) 2026-11-05 15:01:05 +01:00
usrnk1
d7d8581716
fix(app): increase busy tab spinner contrast in dark theme (#62074) 2026-11-05 14:49:07 +01:00
Luke Parker
79de5cb52d
chore: bench with strobe 0.8.0 (#62069) 2026-11-05 07:31:36 -06:00
usrnk1
97be25f046
fix(ui): prevent plain comment clicks from sending prompts (#62070) 2026-11-05 13:28:08 +00:00
usrnk1
fa2843f270
fix(app): show the main checkout's branch for Local in new sessions (#62061) 2026-11-05 14:04:34 +01:00
Kit Langton
893e8dc43f
fix(core): honor an MCP server's startup timeout when waiting for it (#62019) 2026-11-05 00:57:45 -08:00
Kit Langton
7e42be4248
fix(core): follow Console redirects for skills and web search (#62015) 2026-11-05 00:57:37 -08:00
Luke Parker
1c3decd370
fix(app): drive composer history, shell mode and retry IDs through explicit state machines (#62021) 2026-11-05 02:48:43 -06:00
Luke Parker
42be645ad7
fix(app): drive quote comment, upload and @-mention search lifecycles through state machines (#62016) 2026-11-05 02:17:47 -06:00
usrnk1
e99b6c5ddd
fix(session-ui): show token speed with the response footer (#62020) 2026-11-05 09:16:20 +01:00
Luke Parker
3698a9b43f
fix(app): drive the shell panel, route reveal, header actions and kept timeline views with state machines (#62017) 2026-11-05 02:12:10 -06:00
Luke Parker
118d967743
fix(gui-plugins): make file view scroll, Git init and Open in app explicit state machines (#62018) 2026-11-05 02:12:01 -06:00
Luke Parker
008619ae06
fix(app): select the session route view from one resolution machine (#61963) 2026-11-05 01:52:55 -06:00
Luke Parker
883249d729
fix(session-ui): drive markdown readiness, steer grow-in and tool status titles through state machines (#61977) 2026-11-05 01:47:45 -06:00
Luke Parker
af5d3b531d
fix(gui-plugins): make Office sheet pick, grid drag, slide paint and page column explicit state machines (#62009) 2026-11-05 01:39:46 -06:00
Luke Parker
5f0d45c779
fix(app): drive the Go hero loop, model picker flyout and drawer, and project autosave through state machines (#61998) 2026-11-05 01:39:27 -06:00
Luke Parker
2a9c54c04f
fix(gui-plugins): drive the terminal quote toolbar through a state machine (#62004) 2026-11-05 01:37:25 -06:00
Luke Parker
ae3de411ae
fix(app): explicit state machines for timeline sync, quote toolbar, queue panel and scroll reconnect (#62008) 2026-11-05 01:35:01 -06:00
Luke Parker
418f862b4b
fix(gui-plugins): drive ssh, wsl and pairing lifecycles through state machines (#62012) 2026-11-05 01:33:37 -06:00
Luke Parker
96e0422664
fix(gui-plugins): make details list loads, popover open modality and slide fonts explicit state machines (#62011) 2026-11-05 01:32:51 -06:00
Luke Parker
2ec6485737
fix(app): make tab preview, crash page actions, notification focus lock and mobile tabs drawer explicit state machines (#62005) 2026-11-05 01:28:44 -06:00
Luke Parker
fe19d9b799
fix(session-ui): drive file media, find, sources expand and markdown parse jobs through state machines (#61980) 2026-11-05 01:21:02 -06:00
Luke Parker
026dedb16e
fix(gui-plugins): drive context export and scroll, heap capture and memory diagnostics through state machines (#62001) 2026-11-05 01:18:42 -06:00
Luke Parker
621f0ee53f
fix(app): explicit review folder loads, render gate and narrow scroll restore (#61999) 2026-11-05 01:18:37 -06:00
Luke Parker
b6a5a10044
fix(app): keep the Office worker queue moving and bound What's New (#62000) 2026-11-05 01:18:31 -06:00
Luke Parker
ec4f8725b6
fix(desktop): drive browser pane load, profiling, address field and dialogs through state machines (#62003) 2026-11-05 01:12:19 -06:00
Luke Parker
7f40c505f1
fix(app): drive knobs panel, goal pill and catalog sync through state machines (#61997) 2026-11-05 01:11:31 -06:00
James Long
9b86075195
feat(process-daemon): protocol v8 for shell commands (#61875) 2026-11-05 01:08:17 -06:00
Luke Parker
4fa365faf5
feat(app): update the web app and PWA in place (#61995) 2026-11-05 07:05:51 +00:00
Luke Parker
0b21b761aa
fix(ui): drive line comment mentions, popovers, toasts and segmented indicator through state machines (#61990) 2026-11-05 01:05:10 -06:00
Luke Parker
c605ac34f8
fix(gui-plugins): drive the artifact viewer, image pan, video overlay and select preview through state machines (#61993) 2026-11-05 01:04:36 -06:00
Luke Parker
491c8cd754
fix(ui): drive text reveal, copy feedback, menu modality and avatar hover through state machines (#61966) 2026-11-05 01:03:31 -06:00
Luke Parker
8b29d45ec1
fix(browser): drive tunnel, proxy and network hop lifecycles through state machines (#61996) 2026-11-05 01:00:23 -06:00
Luke Parker
dd39237ddf
fix(plugin-browser): drive browser attachments through one state machine (#61985) 2026-11-05 00:56:59 -06:00
Luke Parker
1a1993e4eb
fix(ui): keep theme previews on screen and out of storage (#61979) 2026-11-05 00:56:53 -06:00
Luke Parker
ca1050c86e
fix(app): drive Home's server and project selection with an explicit state machine (#61989) 2026-11-05 00:56:11 -06:00
Luke Parker
4f6a84cf02
fix(app): drive plugin GUI loading, New tabs, deferred menus and composer writes through state machines (#61987) 2026-11-05 00:54:02 -06:00
Luke Parker
00c25e81cd
fix(ui): make scroll thumb, typeahead, resize handle and animated number explicit state machines (#61988) 2026-11-05 00:45:21 -06:00
Luke Parker
3b1ab8d789
fix(app): keep composer comment focus and editor caret through explicit state machines (#61969) 2026-11-05 00:43:39 -06:00
Luke Parker
ae828d7b74
fix(app): settle settings writes, version copy, renames and shortcut recording through state machines (#61968) 2026-11-05 00:42:24 -06:00
Luke Parker
008bb307e4
fix(app): drive the branch picker and wordmark lodger through state machines (#61986) 2026-11-05 00:41:12 -06:00
Luke Parker
b9ead97f54
fix(app): drive shell history, intents, hydration and panel motion through state machines (#61981) 2026-11-05 00:38:18 -06:00
Luke Parker
77a4285296
fix(app): drive titlebar tab rename, tab loads and palette search through state machines (#61971) 2026-11-05 00:35:02 -06:00
Luke Parker
1337df336c
fix(app): settle CSS exit presence through one state machine (#61978) 2026-11-05 00:34:28 -06:00
Luke Parker
bc4a83abe7
chore: bench with strobe 0.7.3 (#61976) 2026-11-05 00:33:11 -06:00
Luke Parker
6eb22e77b7
fix(app): drive usage, worktree delete, MCP toggles and the QR scanner through state machines (#61974) 2026-11-05 00:30:56 -06:00
Luke Parker
c7ee32ba4e
fix(session-ui): retry local Markdown images and stop leaking gutter comment buttons (#61972) 2026-11-05 00:29:45 -06:00