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(session): support assistant message content updates by nexxeln · Pull Request #45015 · anomalyco/opencode

Conversation

@nexxeln

@nexxeln nexxeln commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #44984

Type of change

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

What does this PR do?

Adds PATCH /api/session/:sessionID/message/:messageID to replace completed assistant message content without reviving V1 part resources. Changes are recorded as durable session events, projected into stored messages, and applied to live client state. Active sessions, incomplete messages, and non-assistant messages are rejected.

How did you verify your code works?

  • Focused core, server, client, schema, and protocol tests pass.
  • Full workspace typecheck passes across all 32 packages.
  • Generated client and OpenAPI documentation checks pass.

Screenshots / recordings

Not applicable.

Checklist

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

Sorry, something went wrong.

Uh oh!

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

All reactions
nexxeln added 5 commits August 25, 2026 21:22
@nexxeln
fix(session): support assistant message content updates
a7364b0
@nexxeln
chore: remove unrelated generated documentation
dd2e180
@nexxeln
fix(session): harden assistant content updates
c81a5b5
@nexxeln
refactor(session): use specific message update errors
a4162b9
@nexxeln
refactor(session): reuse message reference for updates
0c4eb09
@nexxeln
nexxeln merged commit e82aa92 into v2 Aug 26, 2026
7 of 8 checks passed

Uh oh!

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

@nexxeln
nexxeln deleted the message-content-update branch August 26, 2026 13:02
@opencode-agent opencode-agent Bot mentioned this pull request Aug 26, 2026
v2: restore part.delete (no way to drop tool/reasoning parts) #44984
Closed
@rekram1-node rekram1-node mentioned this pull request Sep 8, 2026
refactor(session): remove message content mutation API #48043
Merged
@pascalandr pascalandr mentioned this pull request Sep 9, 2026
v2: selective session-content deletion is missing again after #48043 #48090
Open
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
@nexxeln
fix(session): support assistant message content updates (anomalyco#45015
f1630df
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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

@nexxeln
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.