GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(ai): send the OpenAI system prompt as a developer message by rekram1-node · Pull Request #64542 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Nov 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Issue for this PR

No issue. A user reported that GPT-6.2 models no longer cache the top-level instructions field of a Responses request, which is where OpenCode puts the system prompt.

Type of change

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

What does this PR do?

On gpt-6.2-sol and gpt-6.2-astra the system prompt was billed as uncached input on every step. I measured it, and the report is right: on 6.2 the instructions tokens are never written to or read from the prompt cache, while the same text as a leading developer message in input caches from the second step on. gpt-6.1-sol and older cache both shapes.

So the OpenAI Responses protocol now sends the system prompt as the first developer message instead of instructions:

 {
   "model": "gpt-6.2-sol",
-  "instructions": "<system prompt>",
   "input": [
+    { "type": "message", "role": "developer", "content": "<system prompt>" },
     { "type": "message", "role": "user", "content": [...] }
   ],
   ...
 }

On models that declare tools in a leading additional_tools item, the system prompt goes right after that item. The text is the same joined string as before, so it is byte-stable across steps. Mid-conversation system updates were already developer messages and are unchanged.

Measured with raw streaming requests, store: false, one prompt_cache_key per run, a ~9.2k-token system prompt and five tools. Cells are cached_tokens / input_tokens per step.

Endpoint Model instructions (before) Leading developer message (after)
API key gpt-6.2-sol 0/9637, 0/9670, 0/9706, 0/9746 0/9635, 9632/9663, 9660/9694, 9691/9733
API key gpt-6.2-astra 0/9641, 0/9669, 0/9712 0/9645, 9642/9674, 9671/9705
API key gpt-6.1-sol 0/9641, 9638/9674, 9671/9709, 9706/9762 0/9645, 9642/9674, 9671/9705, 9702/9757
ChatGPT sign-in gpt-6.2-sol 0/9639, 0/9672, 0/9708, 0/9752 0/9635, 9472/9663, 9472/9694, 9472/9738
ChatGPT sign-in gpt-6.2-astra 0/9643, 0/9671, 0/9709 0/9639, 9472/9667, 9472/9698
ChatGPT sign-in gpt-6.1-sol 0/9645, 9472/9678, 9600/9709, 9600/9758 0/9639, 9472/9672, 9600/9707, 9600/9763

In OpenCode itself (three one-line prompts in one session, ChatGPT sign-in, gpt-6.2-sol, about 17k input tokens per step), uncached input per step went from 16969, 16992, 14457 on dev to 16969, 352, 121 with this change.

OpenAI's cache diagnostics (prompt_cache_options.comparison_response_id) reported cache_hit on the 6.2 instructions runs while cached_tokens and cache_write_tokens were both 0, so usage is the number to trust.

Things worth knowing when reviewing:

  • Scope. This is the OpenAI Responses protocol only: OpenAI, ChatGPT sign-in, Azure, Cloudflare AI Gateway's OpenAI route, and catalog providers that use the OpenAI package. xAI, Meta, Alibaba and the OpenAI-compatible Responses routes still send instructions. I applied it to every model rather than only 6.2 so the prefix has one shape: a leading developer message was accepted and cached on gpt-6.1-sol, gpt-6-sol, gpt-5.6-sol, gpt-5.5, gpt-5-mini, gpt-4.1-mini and gpt-4o-mini, on Azure (gpt-5.6-luna) and through Cloudflare AI Gateway.
  • WebSocket. A continuation used to resend instructions next to previous_response_id. Now the system prompt is part of the first send's input, so a continuation sends only the new items. A changed system prompt still forces a full send, because the input prefix no longer matches.
  • /responses/compact keeps instructions. With a developer message in input the endpoint echoes it back in its output window. With instructions it returns the usual window, and on gpt-6.2-sol it still read the prefix that developer-message requests had cached (9236 of 9275 tokens). Trigger compaction goes through the normal request and gets the developer message.
  • http.body.instructions overlays. A raw body overlay that sets instructions used to replace the system prompt. It now adds to it, since the system prompt is no longer in that field.
  • GitHub Copilot is not fixed here. Its GPT models go through the OpenAI-compatible Responses route, which this PR leaves alone. On github-copilot/gpt-6.2-sol a step still sends 14163 uncached tokens and reads 2584 from cache. With a local experiment that sent the developer message on that route too, the same session read 16744 from cache, so Copilot wants the same change. I left it out because that route also serves non-OpenAI models and needs a per-model switch.
  • Codex sign-in (chatgpt.com/backend-api/codex): accepts requests with no instructions (200 on every request). On gpt-6.2-sol over 6 turns, instructions cached 0 of 5 later turns; the developer message cached 4 of 5 (7,808 to 8,064 tokens). This backend's caching is noisier than the API's: gpt-6.1-sol also missed some turns either way.

How did you verify your code works?

  • New recorded test caches the system prompt on gpt-6.2-sol: two identical requests through LLMClient. On the old lowering it fails while recording (cache write 0). With this change it records a 4761-token write, then a 4761-token read.
  • Ran a 3-step conversation through @opencode/ai from this branch on gpt-6.2-sol (~10.6k input tokens): API over HTTP cached 10611 then 10639, API over WebSocket cached 10607 then 10635 with one-item incremental sends, ChatGPT sign-in cached 10496 on both later steps. gpt-6.2-astra over HTTP cached 10605 then 10633.
  • Ran this branch's CLI against a private server: ChatGPT sign-in numbers above, and opencode/gpt-6.2-sol wrote 16966 tokens on the first step and read 16966 and 16989 on the next two with 3 uncached.
  • Re-recorded the OpenAI cassettes whose request shape changed (gpt-5.5 golden scenarios, cache, PDF tool result, the three WebSocket scenarios). The two Cloudflare AI Gateway cassettes could not be re-recorded because the gateway account has no balance, so I only rewrote their request bodies to the new shape and kept the recorded responses. A live request through the gateway with the new shape returned 200.
  • bun typecheck and bun test in packages/ai pass, and bun run check passes at the root. bun run test in packages/core passes except three shell-parsing tests (tool-shell.test.ts, shell-scan/compound-parity.test.ts) that fail the same way on my machine without this change.

Screenshots / recordings

Not a UI change.

Checklist

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

Added by the opencode bot (AI-generated).

Related: #63434

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
fix(ai): send the OpenAI system prompt as a developer message
cf19c43
GPT-6.2 models do not cache the top-level instructions field of a Responses request, so the system prompt was billed as uncached input on every step. Send it as the leading developer message in input instead. The compaction endpoint keeps instructions because it echoes a leading developer message back in its output window.
opencodejr[bot]
opencodejr Bot reviewed Nov 17, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Looks sound. I couldn't measure the cache effect without OpenAI credentials. I confirmed the request shape: the PR's updated openai-responses tests fail against the base source, which sends top-level instructions. With this change the system prompt is the leading developer message, after any leading additional_tools item. The related provider, WebSocket, checkpoint and compaction tests in packages/ai pass, as does model-resolver.test.ts in packages/core. tsc --noEmit on packages/ai is clean.

I checked a few edge cases:

  • No other request fields are lost from the conversation lowering.
  • WebSocket continuations still compare the input prefix, which now includes the system prompt.
  • Keeping instructions for /responses/compact is the right call: its response check only accepts user and assistant messages, so an echoed system-prompt developer message would be rejected, the same failure as #63434.

Public API: unchanged. The only outward difference is in the request sent to the provider: a raw http.body.instructions overlay now adds to the system prompt instead of replacing it, as the description notes. No OpenCode code relies on that overlay.

Related: #63434

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
rekram1-node enabled auto-merge (squash) November 17, 2026 23:52
@rekram1-node
rekram1-node merged commit 7ca7b3f into dev Nov 17, 2026
15 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the openai-developer-prompt branch November 17, 2026 23:58
@rekram1-node rekram1-node mentioned this pull request Nov 17, 2026
fix(ai): send the system prompt as a developer message on every Responses route #64544
Merged
3 of 6 tasks
@hcrosse hcrosse mentioned this pull request Nov 18, 2026
GPT-6.2: system prompt in top-level instructions is excluded from prompt caching #64550
Closed
@opencodejr opencodejr Bot mentioned this pull request Nov 18, 2026
release: v2.3.2 #64567
Closed
@BrewTestBot BrewTestBot mentioned this pull request Nov 18, 2026
opencode 2.3.2 Homebrew/homebrew-core#326256
Merged
@chpock chpock mentioned this pull request Nov 18, 2026
openai-codex: GPT-6.2 Sol reports lower system prompt cache reuse than 6.1 earendil-works/pi#12273
Closed
@github-actions github-actions Bot mentioned this pull request Nov 18, 2026
feat: opencode release v2.3.2 sprisa/opencode-server#91
Closed
@caozhiyuan caozhiyuan mentioned this pull request Nov 18, 2026
fix(responses): send system prompt as developer message caozhiyuan/copilot-api#523
Merged
5 tasks done
@qiankun229 qiankun229 mentioned this pull request Nov 18, 2026
Bump bundled opencode to 2.3.2+ so GPT-6.2 sessions cache their system prompt openchamber/openchamber#7166
Closed
@Edo771977 Edo771977 mentioned this pull request Nov 18, 2026
chore: merge upstream/dev into the fork Edo771977/opencode#92
Merged
@xuesecanmeng xuesecanmeng mentioned this pull request Nov 18, 2026
[Bug] OpenAI (ChatGPT Plus/Pro) 登录下 GPT-6.2 Sol / Astra 的系统提示无法复用缓存 vastsa/PI-Desktop#2419
Closed
@QuaanNguyen QuaanNguyen mentioned this pull request Nov 18, 2026
Check xor against OpenCode v2.2.0 (breaking plugin changes) QuaanNguyen/xor#87
Open
5 tasks
@thannous thannous mentioned this pull request Nov 18, 2026
fix(ai): send the rules as a developer message, not top-level instructions thannous/HEX_BC#377
Merged
This was referenced Nov 18, 2026
fix(openai): put the hybrid Responses breakpoint on OpenCode 2.3.2's developer system prompt noppu-labs/opencode-cache-manager#51
Merged
chore(deps): bump @opencode/plugin and @opencode/client to 2.3.2 noppu-labs/opencode-permission-reviewer#157
Merged
@gruher gruher mentioned this pull request Nov 18, 2026
Send the OpenAI Responses system prompt as the first developer message gruher/adk-python#4
Draft
@mdrxy mdrxy mentioned this pull request Nov 18, 2026
fix(openai): enable Codex prompt caching on GPT-6.2 langchain-ai/langchain#41949
Merged
This was referenced Nov 18, 2026
fix(responses): scope cacheable system input to stateless requests BerriAI/litellm#52694
Merged
fix(responses): cache bridged chat system prompts on lts/1.108.x BerriAI/litellm#52621
Merged
mdrxy added a commit to langchain-ai/langchain that referenced this pull request Nov 19, 2026
@mdrxy @open-swe
fix(openai): enable Codex prompt caching on GPT-6.2 (#41949)
c3f18fa
`_ChatOpenAICodex` now sends the system prompt as the first `developer`
message instead of in `instructions`, and sends a `session-id` header
(new `session_id` field) so GPT-6.2 can cache the prompt. A per-call
`instructions=` now adds to the system prompt instead of replacing it.

---

On GPT-6.2 models, `_ChatOpenAICodex` (the ChatGPT sign-in version of
`ChatOpenAI`) never got prompt-cache hits, so the whole system prompt
was billed at full price on every turn. Two changes fix it, and both are
needed:

1. **System prompt moves out of top-level `instructions`** and into the
first `developer` message in `input`. GPT-6.2 doesn't cache top-level
`instructions`.
2. **New `session-id` request header.** The ChatGPT backend only caches
across requests that share one. OpenCode and the Codex CLI both send it.

```diff
+session-id: 3f2c…
 {
-  "instructions": "<system prompt>",
   "input": [
+    {"role": "developer", "content": "<system prompt>"},
     {"role": "user", "content": "..."}
   ]
 }
```

- New `session_id` field: a random UUID per instance by default. Pass a
conversation id per call (`model.invoke(..., session_id=thread_id)`)
when one instance serves many conversations, or set `None` to omit the
header.
- `instructions` is no longer sent by default; the ChatGPT backend
accepts requests without it.
- `instructions=` passed on a single call is still sent as
`instructions`. It now adds guidance for that turn instead of replacing
the system prompt.
- Codex tests and docstrings now use `gpt-6.2-sol`. The ChatGPT backend
no longer accepts `gpt-5.5`.
- `scripts/record_codex_cassettes.sh` imported the token classes without
their leading underscore and failed before recording. Fixed.

## Cache hits

`gpt-6.2-sol`, ~4.8k-token system prompt, 4 turns, tokens read from
cache per turn:

| Request shape | Turns 1–4 |
|---|---|
| Before (`instructions`, no `session-id`) | 0 / 0 / 0 / 0 |
| Developer message, no `session-id` | 0 / 0 / 0 / 0 |
| Developer message + `session-id` (this PR) | 0 / 4736 / 0 / 4736 |

Hits after the first turn are intermittent on this backend. OpenCode
reports the same
([anomalyco/opencode#64542](anomalyco/opencode#64542)).

## References
- [Slack
thread](https://langchain.slack.com/archives/C0BGM15CBT9/p1795044530572699)

Made by [Robin](https://github.com/langchain-ai/open-swe) · [view
thread](https://robin.langchain.dev/agents/c23e57d5-802c-5ae9-a219-0a8c0fbfc56f)
· anthropic:claude-opus-5-5 (high)

---------

Co-authored-by: Mason Daugherty <[email protected]>
Co-authored-by: Robin <[email protected]>
@lotsofone lotsofone mentioned this pull request Nov 19, 2026
GPT-6.2: system prompt in instructions not cached, need a opencode.jsonc flag to apply the new policy for custom router. #64783
Closed
@abhiramshaji-cyber abhiramshaji-cyber mentioned this pull request Nov 19, 2026
fix(ai): accept developer messages in native compaction responses #63437
Closed
3 of 6 tasks
@BearHuddleston BearHuddleston mentioned this pull request Nov 19, 2026
fix(codex): send GPT-6.2+ system prompt as leading developer input item NousResearch/hermes-agent#157705
Merged
1 task done
@neriousy neriousy mentioned this pull request Nov 19, 2026
Native compaction rejects retained developer messages from live instruction updates #63434
Closed
@ichinya ichinya mentioned this pull request Nov 19, 2026
Usage и tracing: вклад ARIEL в cost_per_verified_success ichinya/ariel#49
Open
3 tasks
@dsfaccini dsfaccini mentioned this pull request Nov 19, 2026
[P2] Send static instructions as leading input messages by default on GPT-6.2, where top-level instructions are never cached pydantic/pydantic-ai#13923
Open
@Rycen7822 Rycen7822 mentioned this pull request Nov 19, 2026
fix(openai-codex): 将 Pi v1.6.0 的 GPT‑6.2 缓存修复带入 Metis Rycen7822/metis-pi#49
Closed
4 tasks
@Lewik Lewik mentioned this pull request Nov 19, 2026
Preserve reasoning across serial and proactive native compaction Lewik/gromozeka#222
Open
10 tasks done
@onlyfeng onlyfeng mentioned this pull request Nov 20, 2026
fix(provider): cache GPT-6.2 Responses system prompts on Codex and Copilot onlyfeng/MiMo-Code#262
Merged
@avifenesh avifenesh mentioned this pull request Nov 20, 2026
Tool release: OpenCode 2 v2.3.2 (was v2.3.0) agent-sh/agnix#1863
Closed
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
feat: opencode release v2.3.2 sprisa/opencode-server#94
Merged
@ucirello ucirello mentioned this pull request Nov 20, 2026
internal/rocketclaw: let GPT-6.2 models cache the system prompt Rocketable/platform#1560
Merged
@zicochaos zicochaos mentioned this pull request Nov 21, 2026
Responses API / Codex OAuth: GPT-6.2 prompt cache misses on top-level instructions mcowger/plexus#1083
Closed
This was referenced Nov 21, 2026
[Bug] Claude Code 经 Codex OAuth 使用 GPT‑6.2 时,顶层 instructions 缓存复用偏低 farion1231/cc-switch#9847
Closed
fix(proxy): 改善 GPT‑6.2 在 Codex OAuth 路由上的提示缓存 farion1231/cc-switch#9848
Merged
This was referenced Nov 21, 2026
chore(sync): integrate official dev e31eb1eb 521ox/OpenCode-V2-zh-CN#16
Closed
chore(sync): integrate official dev e31eb1eb 521ox/OpenCode-V2-zh-CN#17
Merged
@Podwarden Podwarden mentioned this pull request Nov 22, 2026
Developer role and the system prompt shapes: loose/2 proposal (decision 0005) Podwarden/kvsig#4
Merged
internetisalie added a commit to internetisalie/opencode that referenced this pull request Nov 22, 2026
@internetisalie @jlongster
@opencode-agent @adamdotdevin @rekram1-node @iamdavidhill @ssskay @claude @R44VC0RP @Hona @thdxr @github-actions @arvsrn @usrnk1 @neriousy Filip Hejmowski @opencodejr @Tarquinen @MrMushrooooom @vaprdev @kitlangton James Long Brendan @heimoshuiyu @aidenanomaly @yhibo
chore(opencode): merge upstream v2.3.2 and remove Loom session mirror…
d80874c
…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 <[email protected]>

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

Co-authored-by: ssskay <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

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

Co-authored-by: R44VC0RP <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

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

Co-authored-by: Walter <[email protected]>

* 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 <[email protected]>
Co-authored-by: neriousy <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>

---------

Co-authored-by: James Long <[email protected]>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Adam <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: David Hill <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Sara Kay <[email protected]>
Co-authored-by: ssskay <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: R44VC0RP <[email protected]>
Co-authored-by: Luke Parker <[email protected]>
Co-authored-by: Dax <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aarav Sareen <[email protected]>
Co-authored-by: usrnk1 <[email protected]>
Co-authored-by: Filip Hejmowski <[email protected]>
Co-authored-by: Filip Hejmowski <[email protected]>
Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
Co-authored-by: Dan Smolsky <[email protected]>
Co-authored-by: Jack <[email protected]>
Co-authored-by: MrMushrooooom <[email protected]>
Co-authored-by: vprdev <[email protected]>
Co-authored-by: Kit Langton <[email protected]>
Co-authored-by: James Long <[email protected]>
Co-authored-by: Brendan <[email protected]>
Co-authored-by: Walter <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: neriousy <[email protected]>
Co-authored-by: Yhibo <[email protected]>
alexandrereyes pushed a commit to alexandrereyes/opencode that referenced this pull request Nov 23, 2026
Alexandre Martins
chore: merge upstream 2.3.2 into custom
a4a17b6
Integrates de291ab (upstream/dev, source of the published 2.3.2 release), which sends
the system prompt as a leading developer message on every Responses route (anomalyco#64542, anomalyco#64544)
instead of the uncached top-level `instructions`.

Conflicts in core/src/generate.ts, plugin/src/effect/plugin.ts and
server/test/schema-error.test.ts keep the custom `textStream` next to upstream's video
jobs; upstream's new video tests stub it too. Open upstream overrides reconciled and the
integration recorded in docs/upstream-integrations.md.
@shaba shaba mentioned this pull request Nov 23, 2026
fix(providers): send the Responses system prompt as a developer message 🤖🤖🤖 tontinton/maki#1787
Merged
@roomote-community roomote-community Bot mentioned this pull request Nov 26, 2026
[Feature]: Upgrade OpenCode for GPT-6.2 prompt caching RooCodeInc/Roomote#3743
Open
2 tasks done
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@rekram1-node
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.