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(core): separate v2 message identity by kitlangton · Pull Request #30759 · anomalyco/opencode

Conversation

@kitlangton

@kitlangton kitlangton commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • separate projected Session timeline IDs (msg_*) from durable event envelope IDs (evt_*) with reversible derivation
  • keep synchronized Session event payloads unchanged while translating ownership references at projection and TUI boundaries
  • tighten HTTP sync/global event schemas and regenerated OpenAPI prefix constraints
  • reset disposable pre-launch V2 projection, inbox, event, and event-sequence state during upgrade

Beta reset boundary

This intentionally truncates unreleased beta state in session_input, session_message, event, and event_sequence. Canonical V1 session, message, and part rows remain intact. Accepted but unpromoted beta prompts may be dropped, and existing Sessions temporarily lose workspace-warp replayability until new replayable history is recorded.

Verification

  • bun run test -- test/database-migration.test.ts test/event.test.ts test/session-projector.test.ts test/session-prompt.test.ts test/session-runner.test.ts test/session-tool-progress.test.ts test/session-runner-message.test.ts from packages/core
  • bun run test -- test/v2/session-message-updater.test.ts test/session/processor-effect.test.ts test/cli/tui/sync-v2.test.tsx test/server/httpapi-session.test.ts from packages/opencode
  • bun script/migration.ts --check from packages/core
  • bun turbo typecheck
  • bunx prettier --check ... for changed source files
  • file-scoped bunx oxlint ...
  • git diff --check

Sorry, something went wrong.

Uh oh!

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

All reactions
@kitlangton
refactor(core): separate v2 message identity
f2d133e
@github-actions github-actions Bot added the contributor label Jun 4, 2026
@kitlangton

kitlangton commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Closing this as superseded. The prompt lifecycle needs a different event-sourced shape: accepted prompts become canonical admission facts before promotion, and prompt idempotency stays keyed by the stable message ID rather than reversible event/message ID derivation. I am restarting the implementation from so the replacement is easier to review.

All reactions

Sorry, something went wrong.

Uh oh!

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

@kitlangton kitlangton closed this Jun 4, 2026
@kitlangton kitlangton mentioned this pull request Jun 4, 2026
refactor(core): make v2 session inputs event sourced #30785
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

contributor

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

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