Skip to content

refactor(codemode): split the language layer from Code Mode - #64487

Merged
jlongster merged 7 commits into
devfrom
codemode-language-split
Nov 17, 2026
Merged

jlongster merged 7 commits into
devfrom
codemode-language-split

Conversation

@jlongster

@jlongster jlongster commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Issue for this PR

No issue: implements the agreed language/Code Mode split design.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Splits packages/codemode into a language layer (src/language/) and a Code Mode layer (src/codemode/). The language layer runs programs over any host globals and no longer knows what a tool is; Code Mode builds tools, search, extensions, hooks and maxToolCalls on top of it. The public Code Mode API is unchanged, and packages/core needs no changes.

Design

Language API (src/language/index.ts, internal for now)

import { Host, Runtime } from "./src/language/index.js"

const runtime = Runtime.make({
  // Called when a run starts, and again when it resumes.
  globals: (run) => ({
    hash: Host.fn(([text]) => sha256(text)),                                 // "sync" (default): the program blocks
    sleep: Host.fn(([ms]) => Effect.sleep(ms), { type: "async" }),           // the program gets a promise
    find: Host.fn(([q]) => searchIndex(q), { type: "sync-thenable" }),       // the object now, plus hidden then/catch/finally
    lookup: Host.fn(([id], { key }) => Db.get(id, key), { type: "async", idempotent: true }), // rerun on resume
    review: Host.durableFn({ start, wait, cancel }),                         // keeps running across a suspend
    api: Host.namespace({
      keys: (path) => childrenOf(path),
      resolve: (path) => fnAt(path) ?? Host.missing(`No api.${path.join(".")}`, suggestionsFor(path)),
    }),
  }),
  limits: { timeoutMs: 30_000, maxOutputBytes: 1_000_000 },
})

const program = runtime.program(code, { bindings, runId })
yield* program.run()                   // Result (with run.metadata) | Suspended
yield* program.suspend({ maxBytes })
yield* runtime.resume(bytes).run()
  • Host.fn(f, { type, idempotent }): f(args, { key, suspending }), key <runId>:<callId>. idempotent is only allowed with type: "async" (a type error otherwise); without it a suspend is refused while the call runs.
  • Host.durableFn({ start, wait, cancel }): always async; today's Tool.durable semantics.
  • Host.namespace({ keys, resolve }): lazy, path-addressed functions, outside Obj like ToolReference was. Dotted bracket paths, callable namespaces, 11k-tool catalogs and call-time "did you mean" all go through Code Mode's resolve.
  • Host.fail(kind, message, suggestions?) / Host.missing(...): generic diagnostics.
  • run.metadata: JSON the host keeps per run, saved in the snapshot header and given back on resume. Code Mode keeps toolCalls and maxToolCalls there.
  • One structured translation for every host function (Date, Map, Set, Uint8Array, URL, Headers, errors, callable functions in results). fetch's streaming Response stays in the language layer.

Code Mode on top

CodeMode.make({ tools, hooks, extensions, limits }) builds Runtime.make({ globals: (run) => ({ tools: Host.namespace(...), search: Host.fn(..., { type: "sync-thenable" }), ...extensions }) }). Each tool is a Host.fn (async, idempotent for Tool.idempotent) or a Host.durableFn; hooks, admission and JSON conversion of arguments happen inside them. Extension.make is unchanged and becomes Host.fns wrapped with the extension hooks.

Layout

Before After
src/{vm,host,scheduler,async,code,data,generators,internal-prelude,opcodes,snapshot}.ts, src/{compiler,prelude,runtime,snapshot,stdlib}/ src/language/… (same names), plus host-function.ts (Host), runtime.ts (Runtime), streaming-response.ts, index.ts
src/{codemode,extension,namespace,scan,tool,tool-error,tool-runtime,tool-schema,tools}.ts, src/openapi/ src/codemode/…
src/index.ts src/index.ts (unchanged exports)

test/language-boundary.test.ts checks nothing in src/language/ imports the rest of src; the no-Effect-in-the-VM test now covers src/language/.

Coupling points removed

Before After
ToolReference instanceof checks in vm.ts, objects.ts, operations.ts, references.ts, stdlib object/console/web, codec generic HostNamespace { root, path }; keys/calls go to the namespace registered for its global
"tool" | "search" | "extension" host requests, $HostTool/$HostSearch, $vmCross for arguments, crossFast, scheduler.ts request kinds one HostCalls.call path; HostCall { label, path, policy, args } with live fn/work never saved; $vmCross is now $vmResult, used only for the program's result
tools/search installed by runtime/globals.ts removed; Code Mode passes them in globals
snapshot header toolCalls, budget.toolCalls, limits.maxToolCalls; codec knew ToolError/ToolRuntimeError/ToolReference header metadata; codec knows HostFailure and HostNamespace (plus host Date/RegExp for saved arguments); format 3
runtime/errors.ts checks tool error classes; hints say tools.ns.tool(...) HostFailure (from Host.fail) carries kind and suggestions; neutral hints
runtime/driver.ts calls tools.start/wait/search/execute, admission flags on HostCall the driver runs each call's policy (sync/async/idempotent/durable) generically and finds a resumed call's function by its path
extension.before/after read from ctx.tools.hooks in the language hooks live only in Code Mode, around its own host functions

Behaviour changes

  • Error wording: tools.ns.tool hints are neutral; the root namespace call says tools is not a function.; Object.values(tools) explains namespaces; snapshot/extension errors name the host function (The host function fetch …); durable resume errors say "function"; the stuck-program and import messages no longer say "Code Mode".
  • Tool arguments use the structured translation, then Code Mode turns them into JSON: a program's own toJSON no longer applies (accepted), and since it is a function, an object with a toJSON (or any other method) inside a tool argument now fails the call instead of having the method dropped; a promise inside a tool argument also fails the call instead of being awaited; Set → array, URLSearchParams → string, Date → ISO string, Uint8Array is refused, as before.
  • Every host-function call takes a call id, so keys after a sync extension call shift by one.
  • An unknown tool now throws at the call rather than rejecting the call's promise (same diagnostic).
  • A suspended run whose extension is renamed but keeps the same globals and hooks now resumes (the language doesn't know extension names).
  • Snapshot format 3; no compatibility with format 2.

How did you verify your code works?

  • packages/codemode: bun test 14,998 pass, 1 known fail (language/global-code/import.js); test262 unchanged (13,329 passing); bun run test:roundtrip 14,997 pass, same known fail; bun run typecheck:tsc clean; bun run pack OK; script/bench.ts --mixed no regression (tool fan-out min 5.5–5.8 ms before and after).
  • packages/core: test/tool-execute.test.ts, test/codemode, test/codemode.test.ts, automation tests and test/tool-registry.test.ts: 185 pass, 1 fail (Code Mode path > is not available without full_codemode, which fails the same way on origin/dev locally); typecheck:tsc clean.
  • Rebased on dev after feat(codemode): let each run pick which of the runtime's extensions it gets #64482 (per-run extension choice): Code Mode makes one language runtime per chosen set of extensions.
  • packages/server: test/flag-channel.test.ts pass.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Built by Claude Opus 5.5 (opencode/claude-opus-5-5).

Replace ToolReference with a generic HostNamespace value whose keys and
calls come from a handler registered for its global, and the tool error
special cases with HostFailure, which carries its own diagnostic kind and
suggestions. Error hints no longer name tools.

User decisions:
- Split codemode into a language layer and a Code Mode layer, as a folder split
- Error messages may change; no snapshot backwards compatibility
Add the language-level Host API: Host.fn with type sync, async or
sync-thenable and an idempotent flag, Host.durableFn, Host.namespace,
Host.fail and Host.missing. The VM now has one host-call path, and the
driver runs each call's policy generically, finding a resumed call's
function again by its path among the run's globals. Every host function
gets the structured value translation; $vmCross for tool arguments,
crossFast and the $HostTool/$HostSearch intrinsics are gone.

Code Mode now passes tools, search and the extensions in as globals for
each run, keeps toolCalls and maxToolCalls in run.metadata, converts tool
arguments to JSON next to its schemas, and wraps its own hooks around its
host functions. The snapshot header keeps run.metadata instead of the
tool fields (format 3).

User decisions:
- Host functions take type: sync | async | sync-thenable, and idempotent
- Rename the language-level durable to durableFn
- One structured translation for all host functions; tools convert to JSON themselves
- Per-run state as run.metadata saved in snapshots
- Keep fetch's streaming Response in the language layer
- Keep Extension.make as a thin helper
- Error messages may change; no snapshot backwards compatibility
Runtime.make({ globals: (run) => ..., limits }) returns { execute,
program(code, { bindings, runId }), resume }, and owns the program
lifecycle and limit checks. globals is called when a run starts and
again when it resumes, with run.id and the JSON run.metadata the host
keeps there. Code Mode is now built on it and reports run.metadata as
toolCalls. Adds language tests for host functions, namespaces, failures
and per-run state.

User decisions:
- Split codemode into a language layer and a Code Mode layer, as a folder split
- Per-run state as run.metadata saved in snapshots
- Error messages may change; no snapshot backwards compatibility
Move the compiler, VM, runtime, standard library, prelude, scheduler,
snapshots and the Effect driver into src/language/, and tools, schemas,
the catalog, search, scanTools, OpenAPI and CodeMode.make into
src/codemode/. Imports follow the moves; no logic changes. A new test
checks that nothing in src/language/ imports from the rest of src, and
the no-Effect rule now covers src/language/.

User decisions:
- Split codemode into a language layer and a Code Mode layer, as a folder split
Document the src/language/ and src/codemode/ layout, the Host and
Runtime.make API, run.metadata, how tool arguments now cross, and the
updated rules in AGENTS.md.

User decisions:
- Split codemode into a language layer and a Code Mode layer, as a folder split
- One structured translation for all host functions; tools convert to JSON themselves
User decisions:
- Split codemode into a language layer and a Code Mode layer, as a folder split

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The refactor holds up. I ran bun test and test:roundtrip in packages/codemode (1667 pass / 1666 pass + 1 skip) and typecheck:tsc in packages/codemode and packages/core, all clean. The Code Mode tests in packages/core pass (56). I also ran one Code Mode script on the base and on this branch. The tool-call limit, search, tools.search and Object.keys(tools) behave the same; unknown tools and tools() change only as the description says.

Public API: unchanged. src/index.ts exports the same things and the language API is internal. Saved snapshots move to format 3 and format 2 snapshots can no longer be resumed, as described.

One behaviour note: the description says a program's own toJSON "no longer applies", but an argument like { v: { toJSON() { return 1 } } } now stops the run with TypeError: Argument 1 to tools.a.echo contains a function…. On the base the same call succeeded. Any object literal with a method inside a tool argument now throws instead of having the method dropped. That fits the documented "a function inside a tool argument now fails the call", but the toJSON line should say it fails too.

The only other point is the timing-dependent waits in the new test/language.test.ts (inline comment).

Comment thread packages/codemode/test/language.test.ts Outdated
})
const program = runtime.program(`count(); count(); await wait(); return count()`, { runId: "m" })
const fiber = Effect.runFork(program.run())
await Bun.sleep(10)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These three suspend tests use await Bun.sleep(10) and assume the program has reached the host call by then. Under load that may not hold. suspend() could then succeed or catch the program somewhere else, so the { count: 2 }, running: [{ path: "slow" }] and jobs.get("d:0")! expectations would fail now and then. Could each host function resolve a latch when it is called, and the test wait on that instead of sleeping?

@jlongster
jlongster force-pushed the codemode-language-split branch from 69ebdb6 to a57722c Compare November 17, 2026 18:08

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commits rebase the split onto #64482 and reformat it with prettier. Code Mode now makes one language runtime per set of extensions a run picks, in the runtime's order, and caches it; program, execute and resume all go through it, so #64482's ordering and resume behaviour still hold. The formatting commit is layout only. On this head, packages/codemode bun test passes (1669) and packages/core's Code Mode tests pass (60); typecheck:tsc is clean in both. The public API is unchanged.

The earlier thread about the Bun.sleep(10) waits in test/language.test.ts is still open: those waits are unchanged.

…e tests

User decisions:
- Split codemode into a language layer and a Code Mode layer, as a folder split

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sleep thread is addressed: the three suspend tests in test/language.test.ts now wait on a latch the host function resolves when it is called. In the durable test it is in wait, after start has saved the call's data. The file passes normally and in round-trip mode, and stayed green on 5 more runs. Nothing new to raise; the public API is unchanged.

@jlongster
jlongster merged commit b9029e6 into dev Nov 17, 2026
10 checks passed
@jlongster
jlongster deleted the codemode-language-split branch November 17, 2026 20:21
Hona added a commit that referenced this pull request Nov 18, 2026
Conflicts with dev's device toolbar (#63819), text file tabs (#64463), the new icon set (#64466) and the Code Mode split (#64487, #64510):
- chromium.ts: dev's viewport writer, device emulation and per-page reports, with our retry-only detail; pointer commands run in the writer's queue inside our refusal and passkey wrapper; captures share the queue, and a fixed viewport is captured through the device's CDP clip while Auto keeps the fresh-redraw path.
- panel.tsx: dev's device toolbar, preview frame and spotlight, with our extensions menu, options menu (data-browser-popup), prompt-aware native view, error pages and two-view site popover; our page area box is declared again.
- embeds.tsx: our measure and place split and layout spine observers, with dev's scrollport clip in the shown test, the cover rect and the layout key.
- model.ts, pane.ts, ipc users, keys.ts (find previous stays claimed), i18n, fixtures and tests keep both sides.
- artifact-view.tsx: dev's fixed modes; desktop HTML stays source only.
- codemode: a removed tool's sentence is returned as dev's unknown-tool failure; core tool.ts keys the catalog cache by visible names and whether Node's path is on.
- icons: dev's set, our puzzle icon.
internetisalie added a commit to internetisalie/opencode that referenced this pull request Nov 22, 2026
…ing (#24)

* fix(app): order Recent sessions by the last list reload and drop the rename guard (anomalyco#63370)

* fix(session-ui): keep links whose label contains inline code (anomalyco#63587)

* docs(console): add Gemini 4 Hydrogen to Zen (anomalyco#63589)

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* fix(core): resume directly driven child sessions after restart (anomalyco#63415)

* docs(console): document Send identity on custom providers (anomalyco#63596)

* fix(core): drop stale thinking when Claude Agent prompts or tools change (anomalyco#63592)

* fix(codemode): decode UTF-8 across chunk boundaries (anomalyco#63600)

* refactor(site): put every neutral grey on one shared scale (anomalyco#63604)

* fix(tui): give shell mode its own prompt color under new designs (anomalyco#63605)

* fix(tui): drop tool-result image bytes from the transcript store unless image previews are on (anomalyco#63577)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>

* fix(gui-plugins): keep the pairing QR code dark on light in every theme (anomalyco#63220)

Co-authored-by: ssskay <ssskay@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* feat(site): link the Android app on Google Play (anomalyco#62874)

Co-authored-by: R44VC0RP <89211796+R44VC0RP@users.noreply.github.com>

* docs(site): brand colors copy and agent style rules (anomalyco#63621)

* fix(core): return empty structured output from patch (anomalyco#63618)

* refactor(core): return directory and content from the skill tool (anomalyco#63623)

* fix(core): honor plugin tool repairs in Code Mode (anomalyco#63444)

* chore(perf): bench with strobe 0.33.0 (anomalyco#63628)

* fix(core): return write confirmations as strings (anomalyco#63616)

* feat(codemode): stream fetch response bodies (anomalyco#63436)

* revert(core): restore tool dispatch before nested repair (anomalyco#63630)

* refactor(ai): remove Gemini Veo and Runway video protocols (anomalyco#63634)

* fix(core): pass stored message metadata to session request hooks (anomalyco#63590)

* fix(site): update press email (anomalyco#63649)

* docs(protocol): describe parentID on session create (anomalyco#63653)

* refactor(core): expose shell exit code, elapsed time, and log path (anomalyco#63647)

* fix(core): rename instead of deleting when a patch only changes a file's case (anomalyco#63655)

* refactor(core): return the edit summary as a string (anomalyco#63635)

* chore(perf): bench with strobe 0.34.0 (anomalyco#63661)

* feat(ai): graduate video generation with start, status, result and cancel (anomalyco#63657)

* fix(core): only discourage unprompted subagent status checks (anomalyco#63662)

* feat(app): show paced one-time tip toasts (anomalyco#63664)

* feat(app): add hex tip (anomalyco#63668)

* chore(ci): publish dev builds every 6 hours instead of on every push (anomalyco#63674)

* fix(app): remove session search tip and tighten tip copy (anomalyco#63677)

* feat(ai): add OpenRouter video generation (anomalyco#63681)

* fix(core): hide instruction updates a revert left behind (anomalyco#63667)

* feat(ai): add Seedance video generation for Volcengine and BytePlus (anomalyco#63680)

* feat(ai): add MiniMax video generation (anomalyco#63682)

* fix(codemode): suggest tools when a namespace is called (anomalyco#63697)

* feat(plugin): export Tool from the effect entrypoint (anomalyco#63698)

* fix(core): tag subagent reports with pending background work as running (anomalyco#63675)

* feat(ai): add Google Gemini Omni video generation (anomalyco#63683)

* feat(core): present a provider's client certificate on model requests (anomalyco#61832)

* fix(core): give local model discovery 15 seconds instead of 1 (anomalyco#63700)

* fix(core): default a zero shell timeout and stop timed-out background commands (anomalyco#63703)

* feat(ai): add the xAI video entrypoint and keep video provider options (anomalyco#63707)

* feat(core): move timed-out shell commands to the background by default (anomalyco#63699)

* refactor(ai): address video jobs by the provider's job ID (anomalyco#63714)

* docs(core): Console watch tool says CI wakes on a failure and once when all checks finish (anomalyco#63656)

* fix(core): import legacy auth.json only into the user's database file (anomalyco#63716)

* release: v2.3.0 (anomalyco#63719)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(app): keep new timeline status below reports and shorten file lists (anomalyco#63686)

* fix(app): show subagents in grouped activity as events in the New timeline (anomalyco#63685)

* refactor(ai): address async image jobs by ID like video (anomalyco#63720)

* feat(ai): accept only images as video start and end frames (anomalyco#63721)

* feat(core): tell the model its session ID is in OPENCODE_SESSION_ID (anomalyco#63718)

* fix(app): keep subagent rows in order inside grouped activity in the New timeline (anomalyco#63725)

* chore(perf): bench with strobe 0.35.0 (anomalyco#63731)

* fix(app): show hover background on subagent breadcrumbs (anomalyco#63742)

* feat(stories): browse app states in the standalone components lab (anomalyco#63737)

* test(gui-plugins): add interactive workspace, browser, and pairing stories (anomalyco#63734)

* feat(ui): expand interactive stories and compare icon artwork (anomalyco#63735)

* feat(session-ui): make session stories configurable and preview file media (anomalyco#63738)

* fix(app): hide zero session cost for OpenCode Go (anomalyco#63744)

* fix(session-ui): keep message meta lines visible in the New timeline (anomalyco#63749)

* fix(ui): switch submenus without blinking and keep them open on the way in (anomalyco#63739)

Co-authored-by: Filip Hejmowski <fhejmowski@simplito.com>

* fix(app): tidy New timeline questions, moves, compaction and shells (anomalyco#63751)

* fix(tui): drop ttft from the assistant footer (anomalyco#63759)

* feat(app): wait an hour after first launch before the first tip (anomalyco#63760)

* chore(perf): bench with strobe 0.36.0 (anomalyco#63765)

* refactor(ai): ignore video sound on models that can't switch it (anomalyco#63726)

* fix(core): enforce default read limits for small text files (anomalyco#63810)

* fix(core): preserve a single blank line in paged reads (anomalyco#63809)

* test: isolate submenu timing, server config and terminal colors (anomalyco#63803)

* chore(perf): bench with strobe 0.37.0 (anomalyco#63812)

* fix(core): reject a zero limit on read calls (anomalyco#63808)

* fix(core): match both six-byte GIF signatures (anomalyco#63811)

* refactor(core): skip the text MIME scan when checking for media (anomalyco#63823)

* feat(app): find in side panel previews (anomalyco#63663)

* fix(core): keep text starting with BM readable (anomalyco#63822)

* fix(app): polish the connect dialog sign-in steps (anomalyco#63829)

* fix(ui): dismiss tooltips when their trigger is pressed (anomalyco#63834)

* chore(perf): bench with strobe 0.38.0 (anomalyco#63883)

* fix(ui): keep the redirect paste field named after its label only (anomalyco#63885)

Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>

* chore(perf): bench with strobe 0.39.0 (anomalyco#63893)

* chore(perf): bench with strobe 0.40.0 (anomalyco#63914)

* chore(perf): bench with strobe 0.41.0 (anomalyco#63918)

* perf(app): measure main-thread work to scroll history (anomalyco#63923)

* chore(perf): bench with strobe 0.42.0 (anomalyco#63957)

* fix(core): identify invalid filename globs in search tools (anomalyco#63960)

* docs(go): remove Gemini 4 Argon from Go (anomalyco#63963)

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* Revert "docs(go): remove Gemini 4 Argon from Go" (anomalyco#63969)

* fix(app): clarify hex tip copy (anomalyco#63974)

* fix(app): use consistent dialog sizes (anomalyco#63432)

* fix: keep text cuts from splitting characters (anomalyco#63967)

* fix(app): never count subagents in the new timeline (anomalyco#64017)

* fix(core): preserve UTF-8 across shell output pages (anomalyco#63984)

* feat(app): status chips for subagent rows in the new timeline (anomalyco#64102)

* fix(core): keep Claude Agent models from falling back to 200k context (anomalyco#64107)

* fix(core): report subagent state from outstanding work (anomalyco#64026)

* refactor(ai): unify generation status to running, completed and error (anomalyco#64109)

* feat(app): hide the hex tip when hex is installed (anomalyco#64130)

* fix(desktop): match rune hex installation checks (anomalyco#64131)

* fix(app): no spinner on subagent rows in the new timeline (anomalyco#64132)

* feat(app): name a paired server from its QR code (anomalyco#64139)

* docs(go): add Qwen4 Max (anomalyco#64144)

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* fix(server): answer handler defects with a readable 500 instead of an empty one (anomalyco#64022)

* feat(ai): scope HTTP middleware to any call, for every modality (anomalyco#64152)

* fix(ui): don't fade animated-number digits at rest (anomalyco#64155)

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* docs(go): add Hy4 flash Free to Free and Go (anomalyco#64172)

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* chore(site): show New on Hy4 flash Free instead of Hy4 in the Go chart (anomalyco#64178)

* fix(app): restyle the timeline detail slider and visibility buttons (anomalyco#64186)

* fix(app): match the sidebar peek's end inset to its start inset (anomalyco#64192)

* fix(desktop): keep drafts storage out of the CLI database (anomalyco#64203)

* fix(ui): cap large dialogs at 720px and extra-large dialogs at 880px (anomalyco#64206)

* fix(app): add missing translations (anomalyco#64205)

* fix(app): confirm before disconnecting providers or removing accounts in settings (anomalyco#64212)

* fix(browser): space URL bar action buttons 6px apart (anomalyco#64214)

* fix(app): enlarge image attachment thumbnails to 3:2 (anomalyco#64215)

* fix(app): hide the sidebar resize pill (anomalyco#64219)

* fix(app): unify dialog styles (anomalyco#64216)

* feat(app): replace Home in the desktop Projects sidebar (anomalyco#64220)

* test(app): check the eye hover overlay on background-image after the neutral restyle (anomalyco#64209)

Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>

* feat(app): replace Home with Settings in the Customize sidebar (anomalyco#64227)

* fix(stories): let Components Lab load stories that import Navigate (anomalyco#64229)

* fix(app): show the base branch for new worktrees and apply branch picks immediately (anomalyco#64228)

* test(app): use the locale's labels in the background activity alignment e2e (anomalyco#64221)

Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>

* fix(app): show every provider as a card in Manage models (anomalyco#64235)

* fix(ai): drop reasoning details when the model declares another field (anomalyco#64243)

Co-authored-by: MrMushrooooom <19261047+MrMushrooooom@users.noreply.github.com>

* fix(tui): close a tab removed by another TUI to its neighbour (anomalyco#64261)

* fix(cli): stream ACP turns woken by background shells (anomalyco#64262)

* fix(core): match session titles case-insensitively beyond ASCII (anomalyco#64259)

* feat(app): redesign the open project folder picker (anomalyco#64241)

* fix(core): keep unknown ANSI-C escapes the way each shell does (anomalyco#64263)

* docs(site): update the browse page for 0.1.0 (anomalyco#64278)

* docs(go): explain how models share the usage allowance (anomalyco#64288)

* feat(core): add the full_codemode feature flag, off unless opted in (anomalyco#64281)

* feat(core): run background compaction by default (anomalyco#64290)

* feat(core): move shell into Code Mode behind full_codemode (anomalyco#64284)

* ci(process-daemon): pin MSVC 14.51 and cache/prefetch Ghostty dependencies (anomalyco#64285)

* fix(process-daemon): reap shell commands at exit (protocol 9, release 0.6.0) (anomalyco#64266)

* fix(process-daemon): synchronize the controller-switch test with PTY input (anomalyco#64310)

* feat(server): async video generation API with disk-backed media (anomalyco#64140)

* fix(core): give each Code Mode call its own ID (anomalyco#64324)

* docs(console): Go Teams 2-member minimum, and Go workspaces can invite teammates (anomalyco#63627)

* fix(core): honor plugin tool renames in Code Mode (anomalyco#63633)

* docs(go): link Go's per-model lists and tables to Console's Go page (anomalyco#64271)

* docs(go): keep data retention terms until Console shows them (anomalyco#64332)

* fix(core): keep grep results when a match is not valid UTF-8 (anomalyco#62249)

* feat(tui): choose where to save exports in the new export dialog (anomalyco#62490)

* fix(core): ignore a corrupt cached project id (anomalyco#62576)

* feat(core): turn experimental schedules into automations (anomalyco#64160)

* fix(core): return a renamed tool's structured output in Code Mode (anomalyco#64333)

* feat(ai): add mid-conversation tool changes (anomalyco#64166)

* docs(console): move MiniMax M3.1 Flash Free to deprecated models (anomalyco#64342)

Co-authored-by: Jack <jack@anoma.ly>

* fix(core): pin @opencode/pty 0.6.0 and use protocol 9 (anomalyco#64251)

* fix(core): raise the Code Mode tool summary limit to 500 characters (anomalyco#64341)

* fix(codemode): drop the null result line before logs (anomalyco#64344)

* test(cli): wait out Windows EBUSY when removing the ACP fixture root (anomalyco#64346)

Co-authored-by: James Long <james@anoma.ly>

* fix(core): include hidden files in ripgrep file search (anomalyco#62577)

* fix(core): skip unreachable wellknown sources instead of dropping all (anomalyco#62578)

* chore: upgrade oxlint to 1.93.0 (anomalyco#64351)

* fix(codemode): accept a plain string query in search (anomalyco#64347)

* refactor(core): simplify read tool structured output (anomalyco#64361)

* feat(codemode): let a synchronous global block on an Effect (anomalyco#64363)

* feat(codemode): add Node's Buffer (anomalyco#64365)

* feat(core): hide grep and glob when full_codemode is on (anomalyco#64364)

* docs: drop deprecated MiMo V2.5 rows from Go retention table (anomalyco#64370)

* fix(site): drop deprecated MiMo V2.5 models from the Go chart (anomalyco#64371)

* feat(core): hide webfetch when full_codemode is on (anomalyco#64372)

* fix(site): use the gateway id for DeepSeek V4.1 Flash in the Go chart (anomalyco#64373)

* docs: MiMo-V2.6-Flash Free is no longer a privacy exception (anomalyco#64377)

* feat(core): enable read in full Code Mode (anomalyco#64368)

* feat(app): render latex and math code fences as display math (anomalyco#64380)

Co-authored-by: Brendan <brendan@anoma.ly>

* docs(go): raise GLM-5.3 limits to $100 / $200 / $105 (anomalyco#64382)

Co-authored-by: Walter <walter@anoma.ly>

* feat(core): enable editing tools in full Code Mode (anomalyco#64386)

* test(core): remove Code Mode flag coverage (anomalyco#64387)

* fix(site): feature the most-used Go models in the Go chart (anomalyco#64391)

* feat(app): open the model picker flyout from the keyboard and show budgets in it (anomalyco#64409)

* fix(session-ui): select diff text and comment on it from a toolbar (anomalyco#64410)

* fix(app): show either the variant or the budget on a model row, never both (anomalyco#64423)

* feat(opencode): publish artifacts to OpenCode Console through a console artifact provider (anomalyco#63929)

* docs(console): list Google as a ZDR exception (anomalyco#64435)

* feat(app): move long message folding to Timeline preferences (anomalyco#64441)

* fix(app): open settings on the first sidebar item by listing preferences first (anomalyco#64440)

* feat(desktop): browser toolbar with mobile and custom viewport sizes (anomalyco#63819)

* fix(session-ui): improve spacing for wrapped question descriptions (anomalyco#64446)

* fix(app): keep the browser pane live while resizing panels on macOS (anomalyco#64443)

* fix(app): keep Use main checkout on one line in the branch picker (anomalyco#64450)

* fix(app): keep long prompts folded during session creation (anomalyco#64452)

* fix(session-ui): restore fading notice dividers in the new timeline (anomalyco#64453)

* feat(ui): add new artwork for 25 more icons (anomalyco#64451)

* docs(console): set up harnesses with the Console CLI (anomalyco#64459)

* fix(session-ui): use flat muted dividers for timeline notices (anomalyco#64462)

* feat(app): pin and mute sessions in the Projects sidebar (anomalyco#64456)

* feat(app): show copy and download actions in text file tabs (anomalyco#64463)

* feat(core): make shell the only Code Mode shell tool, pinned and annotated (anomalyco#64335)

* feat(app): add focus rings and focus visibility review stories to components lab (anomalyco#64460)

* docs(console): drop retired models and list xAI as a ZDR exception (anomalyco#64465)

* feat(ui): ship the new icons and drop the experiment (anomalyco#64466)

* feat(core): background slow Code Mode scripts behind full_codemode (anomalyco#64343)

* refactor(core): simplify websearch tool results (anomalyco#64471)

* docs(console): document image and voice models (anomalyco#64473)

* fix(core): keep ChatGPT sharing safeguards when a token refresh fails (anomalyco#64470)

* feat(core): enable websearch in full Code Mode (anomalyco#64475)

* fix(core): fall back to CLAUDE.md where no AGENTS.md exists (anomalyco#64474)

Co-authored-by: Aiden Cline <aiden@anoma.ly>
Co-authored-by: neriousy <filip@anoma.ly>

* feat(app): always show the assistant copy button (anomalyco#64478)

* docs(console): hold the voice model out of the docs for now (anomalyco#64477)

* feat(codemode): let each run pick which of the runtime's extensions it gets (anomalyco#64482)

* feat(core): add Node's path to Code Mode behind full_codemode (anomalyco#64476)

* feat(stories): cover device pairing flows in the Components Lab (anomalyco#64490)

* docs: add GPT 6.2 Sol and Astra to Zen (anomalyco#64491)

* feat(server): report plugin readiness on plugin.list (anomalyco#64029)

* fix(app): focus the composer after switching session tabs by shortcut (anomalyco#64418)

* refactor(codemode): split the language layer from Code Mode (anomalyco#64487)

* fix(app): reload Recent only when a root session is created (anomalyco#64503)

* feat(core): pin read, edit, write, and patch in full Code Mode (anomalyco#64497)

* fix(codemode): reject an unknown tool's promise instead of throwing (anomalyco#64510)

* fix(codemode): let the runtime drop functions and await promises in host-call arguments (anomalyco#64513)

* feat(app): check for and install plugin updates in Settings › Extensions (anomalyco#64511)

Co-authored-by: James Long <james@anoma.ly>

* fix(site): permanent redirects for moved docs and marketing pages (anomalyco#64305)

* feat(codemode): let host functions cross back to the host and let globals be constructible (anomalyco#64472)

* feat(core): add GPT 6.2 Sol and Astra to the ChatGPT model list (anomalyco#64508)

* fix(site): list Console pages in llms.txt; describe llms-full.txt accurately (anomalyco#64520)

* docs: real descriptions and distinct titles for docs pages (anomalyco#64521)

* fix(data): stop redirecting /data by language and give the sitemap real dates (anomalyco#64523)

* refactor(server): remove plugin readiness from plugin.list (anomalyco#64524)

* refactor(app): pass composer focus on from the shortcut's control (anomalyco#64504)

* fix(app): keep plugin update findings until the settled list agrees (anomalyco#64525)

Co-authored-by: James Long <james@anoma.ly>

* feat(core): add append to Environment.Files (anomalyco#64517)

* fix(app): stop reading plugin readiness from plugin.list (anomalyco#64527)

* test(core): expect CLAUDE.md fallbacks in the Windows drive-letter test (anomalyco#64530)

Co-authored-by: James Long <james@anoma.ly>

* fix(core): let either Claude Code flag disable every CLAUDE.md (anomalyco#64533)

* refactor(core): drop url and format from webfetch output (anomalyco#64534)

* feat(codemode): let an extension name the modules that load its globals (anomalyco#64516)

* fix(ai): send the OpenAI system prompt as a developer message (anomalyco#64542)

* fix(ai): send the system prompt as a developer message on every Responses route (anomalyco#64544)

* release: v2.3.2

* test(fork): update project and PTY fixtures for v2.3.2

* refactor(session): remove Loom session mirroring from fork

* chore(ci): export the smoke-tested candidate image for system tests

* test(fork): gate backend regressions and verify orphan schedule migration

* ci: run fork docs and ARM macOS checks on hosted runners

* fix(session): settle declined child interactions as user interruptions

* fix(session): preserve accepted denial across reload and shutdown

* ci: run ARM guards after checkout and gate session lifecycle regressions

* fix(session): stop model continuation when permission service closes

* fix(core): wake an idle parent whose subagent notice was admitted before shutdown

A subagent's cancellation notice can be admitted to the parent inbox before the parent takes an execution claim. When shutdown lands in that gap the outbox row is retired and nothing wakes the parent after restart. Restart now finds idle, succeeded parents with an admitted steer notice from a subagent and wakes them once recovery finishes. Parents the restart budget already failed are left alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(core): wake parents of stranded subagent notices whatever their last outcome

The restart sweep woke only parents whose last turn succeeded, while the
normal report path wakes the parent regardless. The sweep now skips only a
parent whose last turn failed, which the restart budget uses to leave its
notices parked. The inbox query moves into SessionInbox, and a test covers
the non-subagent source filter.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: James Long <longster@gmail.com>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: David Hill <1879069+iamdavidhill@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: Sara Kay <47927313+ssskay@users.noreply.github.com>
Co-authored-by: ssskay <ssskay@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: R44VC0RP <89211796+R44VC0RP@users.noreply.github.com>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Dax <mail@thdxr.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aarav Sareen <96787824+arvsrn@users.noreply.github.com>
Co-authored-by: usrnk1 <7547651+usrnk1@users.noreply.github.com>
Co-authored-by: Filip Hejmowski <34747899+neriousy@users.noreply.github.com>
Co-authored-by: Filip Hejmowski <fhejmowski@simplito.com>
Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
Co-authored-by: Dan Smolsky <78942835+Tarquinen@users.noreply.github.com>
Co-authored-by: Jack <jack@anoma.ly>
Co-authored-by: MrMushrooooom <19261047+MrMushrooooom@users.noreply.github.com>
Co-authored-by: vprdev <mail@alanrice.me>
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: James Long <james@anoma.ly>
Co-authored-by: Brendan <brendan@anoma.ly>
Co-authored-by: Walter <walter@anoma.ly>
Co-authored-by: Aiden Cline <aiden@anoma.ly>
Co-authored-by: neriousy <filip@anoma.ly>
Co-authored-by: Yhibo <93679972+yhibo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant