Missing summary.body generation #7943

Open
opened 2026-02-16 18:08:44 -05:00 by yindo · 2 comments
Owner

Originally created by @kynnyhsap on GitHub (Jan 29, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Summary generation was removed accidentally in this commit https://github.com/anomalyco/opencode/commit/71a7ad1a4

Since v1.1.15+ session messages no longer have summary.body. Before that version summary object contained both title and body.

These are very useful for telling other agents what was done in this session so far

Plugins

No response

OpenCode version

1.1.42

Steps to reproduce

  1. Create this plugin to logs events:
import type { Plugin } from '@opencode-ai/plugin'

import * as fs from 'fs'
import * as path from 'path'

export const plugin: Plugin = async ({ directory }) => {
  const logPath = path.join(directory, '.opencode', 'events.log')

  fs.mkdirSync(path.dirname(logPath), { recursive: true })

  return {
    event: async (input) => {
      const timestamp = new Date().toISOString()
      const properties = JSON.stringify(input.event.properties, null, 2)
      const line = `[${timestamp}] ${input.event.type} ${properties}\n`

      fs.appendFileSync(logPath, line)
    },
  }
}

  1. Launch opencode and ask any question.

  2. Look inside .opencode/events.log file with grep -i '"body":' .opencode/events.log to see that no summary body was generated.

Screenshot and/or share link

https://opncd.ai/share/fHadAC16 - no session.body present. session.title IS generated tho

session.body exists in type message type, but not in reality.

Image Image

Operating System

macOS 26.2

Terminal

Ghostty

Originally created by @kynnyhsap on GitHub (Jan 29, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Summary generation was removed accidentally in this commit https://github.com/anomalyco/opencode/commit/71a7ad1a4 Since v1.1.15+ session messages no longer have `summary.body`. Before that version summary object contained both `title` and `body`. > These are very useful for telling other agents what was done in this session so far ### Plugins _No response_ ### OpenCode version 1.1.42 ### Steps to reproduce 1. Create this plugin to logs events: ```typescript import type { Plugin } from '@opencode-ai/plugin' import * as fs from 'fs' import * as path from 'path' export const plugin: Plugin = async ({ directory }) => { const logPath = path.join(directory, '.opencode', 'events.log') fs.mkdirSync(path.dirname(logPath), { recursive: true }) return { event: async (input) => { const timestamp = new Date().toISOString() const properties = JSON.stringify(input.event.properties, null, 2) const line = `[${timestamp}] ${input.event.type} ${properties}\n` fs.appendFileSync(logPath, line) }, } } ``` 2. Launch `opencode` and ask any question. 3. Look inside `.opencode/events.log` file with `grep -i '"body":' .opencode/events.log` to see that no summary body was generated. ### Screenshot and/or share link https://opncd.ai/share/fHadAC16 - no `session.body` present. `session.title` IS generated tho `session.body` exists in type message type, but not in reality. <img width="1218" height="920" alt="Image" src="https://github.com/user-attachments/assets/edb39220-e2d4-4faf-8136-e75c8f88ffde" /> <img width="1076" height="1076" alt="Image" src="https://github.com/user-attachments/assets/f8424a90-ab9e-4f9a-a379-2330d2c4515d" /> ### Operating System macOS 26.2 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:08:44 -05:00
Author
Owner

@kynnyhsap commented on GitHub (Jan 29, 2026):

PR to fix it: https://github.com/anomalyco/opencode/pull/11132

@kynnyhsap commented on GitHub (Jan 29, 2026): PR to fix it: https://github.com/anomalyco/opencode/pull/11132
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10749: Unnecessary LLM call for unused message summary title
  • #9460: [Sessions] Title generation is requested on every message
  • #7175: The token cost generated by session titles, message summary titles, and body summaries has not been accounted for (explicitly mentions body summaries)
  • #6228: [FEATURE]: Configuration option to disable message summary generation
  • #6827: Session summary mixes spanish and Russian
  • #7262: Session titles stopped auto-generating (stuck on 'New session - timestamp')

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #10749: Unnecessary LLM call for unused message summary title - #9460: [Sessions] Title generation is requested on every message - #7175: The token cost generated by session titles, message summary titles, and body summaries has not been accounted for (explicitly mentions body summaries) - #6228: [FEATURE]: Configuration option to disable message summary generation - #6827: Session summary mixes spanish and Russian - #7262: Session titles stopped auto-generating (stuck on 'New session - timestamp') Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7943