[PR #5924] feat(server): expose auto param in session.summarize for plugins #11650

Closed
opened 2026-02-16 18:16:33 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5924

State: closed
Merged: Yes


Summary

  • Exposes auto parameter in /session/:sessionID/summarize API endpoint, allowing plugins to trigger auto-continuation after compaction

Motivation

Previously, the auto parameter was hardcoded to false in the summarize endpoint. Plugins calling client.session.summarize() couldn't enable auto-continuation behavior after compaction.

With this change, plugins can now call:

await client.session.summarize({
  sessionID,
  providerID,
  modelID,
  auto: true  // enables "Continue if you have next steps" after compaction
})

Changes

  • Added auto: z.boolean().optional().default(false) to request schema
  • Changed auto: false to auto: body.auto in SessionCompaction.create() call

🤖 GENERATED WITH ASSISTANCE OF OhMyOpenCode

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5924 **State:** closed **Merged:** Yes --- ## Summary - Exposes `auto` parameter in `/session/:sessionID/summarize` API endpoint, allowing plugins to trigger auto-continuation after compaction ## Motivation Previously, the `auto` parameter was hardcoded to `false` in the summarize endpoint. Plugins calling `client.session.summarize()` couldn't enable auto-continuation behavior after compaction. With this change, plugins can now call: ```typescript await client.session.summarize({ sessionID, providerID, modelID, auto: true // enables "Continue if you have next steps" after compaction }) ``` ## Changes - Added `auto: z.boolean().optional().default(false)` to request schema - Changed `auto: false` to `auto: body.auto` in `SessionCompaction.create()` call --- 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
yindo added the pull-request label 2026-02-16 18:16:33 -05:00
yindo closed this issue 2026-02-16 18:16:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11650