Skip to content

Conversation

@code-yeongyu
Copy link
Contributor

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

…endpoint

Allows plugins to call summarize with auto: true to enable auto-continuation after session compaction completes. Adds optional auto parameter to request schema with default value of false.

🤖 Generated with assistance of OhMyOpenCode (https://github.com/code-yeongyu/oh-my-opencode)
@code-yeongyu code-yeongyu marked this pull request as ready for review December 22, 2025 02:41
@rekram1-node rekram1-node merged commit b906f2d into anomalyco:dev Dec 22, 2025
2 checks passed
shuv1337 pushed a commit to Latitudes-Dev/shuvcode that referenced this pull request Dec 22, 2025
oneopane pushed a commit to oneopane/opencode that referenced this pull request Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants