Skip to content

Session: remove changesets catalogue from SessionSummary#193

Merged
lszomoru merged 2 commits into
mainfrom
agents/let-s-remove-the-changesets-from-the-sessionsumm-0fef9243
Jun 4, 2026
Merged

Session: remove changesets catalogue from SessionSummary#193
lszomoru merged 2 commits into
mainfrom
agents/let-s-remove-the-changesets-from-the-sessionsumm-0fef9243

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Jun 4, 2026

What

Drops the changesets field from SessionSummary and the matching session/changesetsChanged action. The per-changeset changeset/* channel and Changeset type are unchanged — clients now obtain changeset URIs out of band (e.g. by expanding a provider-documented URI template) and subscribe to them directly.

Why

The catalogue field on SessionSummary is no longer needed: clients don't rely on it for discovery, and removing it shrinks the summary payload that's broadcast on every root/sessionSummaryChanged.

Changes

  • Spec (types/): remove SessionSummary.changesets, SessionChangesetsChangedAction, the session/changesetsChanged ActionType, the reducer case, the version-registry entry, and the two associated reducer test fixtures.
  • Generators: drop the session/changesetsChanged entry from scripts/generate-{rust,kotlin,swift,go}.ts and the now-unused Changeset import from the Rust actions generator.
  • Generated client code: regenerated Rust, Go, Kotlin, Swift, and TypeScript types/schema.
  • Hand-written client code: remove the corresponding reducer branches (Go, Rust, Kotlin, Swift) and the changes.changesets merge in the TS/Swift/Rust host-runtime and AHPApp AppStore; clean up Rust test fixtures.
  • Docs: update docs/guide/changesets.md (catalogue → out-of-band discovery), docs/guide/state-model.md, the root/sessionSummaryChanged doc comment, and the channels-migration skill.
  • CHANGELOGs: entries added to the root spec and all five client CHANGELOGs.

Verification

  • npm test (root)
  • npm run typecheck && npm test (TypeScript client)
  • go build ./... && go test ./... (Go client)
  • cargo build --workspace && cargo test --workspace (Rust workspace)

Drop the `changesets` field from `SessionSummary` and the matching
`session/changesetsChanged` action. The per-changeset `changeset/*`
channel and `Changeset` type remain; clients now obtain changeset URIs
out of band and subscribe to them directly.

Updates the spec types, reducer, version registry, code generators,
schemas, generated client code, and the hand-written reducer/runtime
code in the Rust, Go, Kotlin, Swift, and TypeScript clients. Refreshes
the changesets guide, state-model doc, and channels-migration skill to
remove the catalogue concept, and adds CHANGELOG entries to the root
spec and every client.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lszomoru lszomoru requested a review from connor4312 June 4, 2026 15:09
@lszomoru lszomoru self-assigned this Jun 4, 2026
@lszomoru lszomoru changed the title session: remove changesets catalogue from SessionSummary Session: remove changesets catalogue from SessionSummary Jun 4, 2026
@lszomoru lszomoru marked this pull request as ready for review June 4, 2026 15:13
@lszomoru lszomoru enabled auto-merge June 4, 2026 15:13
Restore the changeset catalogue moved out of `SessionSummary` in the
previous commit, placing it on `SessionState` instead. The
`session/changesetsChanged` action now mutates `state.changesets`
directly so the catalogue lives alongside the rest of the per-session
state rather than on the lightweight summary used by
`root/sessionSummaryChanged`.

Re-adds the action across the spec, reducer, version registry, code
generators, schemas, regenerated client code, hand-written reducer
cases in Rust/Go/Kotlin/Swift, and the reducer test fixtures (now
asserting against `state.changesets`). Refreshes the changesets
guide and channels-migration skill, and updates CHANGELOGs to
describe the move rather than a removal.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lszomoru lszomoru merged commit 1972e91 into main Jun 4, 2026
8 checks passed
@lszomoru lszomoru deleted the agents/let-s-remove-the-changesets-from-the-sessionsumm-0fef9243 branch June 4, 2026 19:02
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