Skip to content

refactor(core): mechanism-neutral context entry rendering - #34945

Merged
kitlangton merged 1 commit into
v2from
context-entry-phrasing
Jul 2, 2026
Merged

kitlangton merged 1 commit into
v2from
context-entry-phrasing

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Follow-up to #34941, from review feedback.

The "An API client attached..." preamble leaked the delivery mechanism into the prompt. The model doesn't need to know how context arrived — it just needs the context, and the <context key="..."> block is already self-describing.

  • baseline: bare tagged block, no preamble
  • update: The context under "<key>" changed and supersedes the previous value: + block
  • removed: The context under "<key>" no longer applies. Disregard it.

No wire or schema changes; phrasing is server-owned. A human-readable description payload field remains an add-later-compatible option if a real need appears.

The model sees session context, not how it was attached. Baselines
render as the bare tagged block; only chronological updates and
removals carry narration, phrased without reference to the API.
@kitlangton
kitlangton merged commit dbaa533 into v2 Jul 2, 2026
6 of 8 checks passed
@kitlangton
kitlangton deleted the context-entry-phrasing branch July 2, 2026 14:16
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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