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 — refactor(schema): remove unused session.compacted event by rekram1-node · Pull Request #57167 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Oct 19, 2026

Copy link
Copy Markdown
Member

Problem

session.compacted is still defined in @opencode/schema and registered in the event manifest, but nothing publishes it. It came over from the V1 package when event definitions moved into packages/schema (#33579); V1 compaction emitted it, and that package has since been removed. Compaction now reports through session.compaction.started, .delta, .ended, and .failed.

Change

 packages/schema/src/
-├── session-compaction-event.ts    # session.compacted, never published
 └── event-manifest.ts
-      ...SessionCompactionEvent.Definitions,
  • Generated OpenAPI and clients: no change. The event was never part of them, and check:generated passes without regenerating.
  • Subscribers: none in this repo. An external subscriber never received the event, so nothing changes at runtime.
  • Stored data: none. The event was ephemeral.

Out of scope

  • session.compacted in the docs' V1 plugin event list (packages/web/src/content/docs/**/plugins.mdx), which describes V1 plugins.

Verification

Package Command Result
schema bun test (includes event-manifest.test.ts) 85 pass
server bun test 85 pass
core bun test test/worktree.test.ts 35 pass
schema, core, server, client, protocol bun typecheck clean
protocol, client, services/www bun run check:generated ok

Sorry, something went wrong.

Uh oh!

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

All reactions
@rekram1-node
refactor(schema): remove unused session.compacted event
830c970
@rekram1-node
rekram1-node merged commit 4acb7ff into v2.1 Oct 19, 2026
19 checks passed

Uh oh!

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

@rekram1-node
rekram1-node deleted the remove-compacted-event branch October 19, 2026 19:54
@rekram1-node rekram1-node mentioned this pull request Oct 20, 2026
refactor: v2.1 minor breaking changes #57260
Merged
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

@rekram1-node
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.