Skip to content

0.36.1: persisted Sessions without a version restore at 0.4 (TypeScript) - #15

Merged
echarles merged 1 commit into
mainfrom
fix/session-restore-legacy-version
Nov 16, 2026
Merged

echarles merged 1 commit into
mainfrom
fix/session-restore-legacy-version

Conversation

@echarles

Copy link
Copy Markdown
Member

Follow-up to #14 (review comment on src/sessions.ts): PapSession.fromJson() now restores a Session persisted without protocol_version at 0.4, as Python's PapSession.from_json() already does, instead of the new 1.0 default under the same sid. A persisted version is kept; new Sessions default to 1.0. Tests in both SDKs; version 0.36.1, changelog and compatibility row.

…peScript, as in Python

PapSession.fromJson() passed no protocol version for a Session persisted before 0.36, so the
new 1.0 default applied under the same sid and changed Poppy-Version mid-Session. It now
restores such a Session at 0.4 (PROTOCOL_PROFILE), as PapSession.from_json() does; a Session
persisted with its version keeps it, and a new one defaults to 1.0. Tests in both SDKs.
Copilot AI balanced review requested due to automatic review settings November 16, 2026 09:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the session-restoration compatibility change.

No open issues 🎉

What changed in this PR

This patch aligns TypeScript session restoration with Python after the 1.0 default introduced in #14. Persisted sessions without a protocol version restore as 0.4, while explicit versions are preserved and new sessions still default to 1.0.

Changes:

  • Fix TypeScript’s fallback for persisted sessions missing protocol_version.
  • Add regression tests in both SDKs for restored and newly created sessions.
  • Bump package and plugin versions to 0.36.1 and update release documentation.
File Description
src/​sessions.ts Restore versionless persisted sessions as 0.4.
src/​reactor.ts Bump the TypeScript core plugin version.
src/​company/​index.ts Bump the TypeScript company plugin version.
src/​__tests__/​sessions.test.mjs Test restored versions and the new-session default.
personal_agent_protocol/​reactor.py Bump the Python core plugin version.
personal_agent_protocol/​company/​__init__.py Bump the Python company plugin version.
personal_agent_protocol/​__version__.py Set the Python SDK version to 0.36.1.
personal_agent_protocol/​__tests__/​test_sessions.py Add matching session-version regression tests.
package.json Set the npm package version to 0.36.1.
docs/​docs/​releases/​compatibility.mdx Document the patch’s compatibility behavior.
docs/​docs/​protocol/​conformance-report.mdx Update the report’s SDK version label.
CHANGELOG.md Describe the restoration fix in the 0.36.1 entry.

Review effort: Balanced

@echarles
echarles merged commit b578782 into main Nov 16, 2026
18 checks passed
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