Repository navigation
[Bug] dsh-session 0.2.0-rc.2: Session.append cannot write the ignorable marker the event design relies on
#9063
xiangxiaoyong
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Version: 0.2.0-rc.2 (
@deepseek-ai/dsh-session)Problem. The design note
2026-08-30-retain-ignorable-external-session-events.mdandknown-event-types.tsclassify downstream events by the persisted envelope markerSessionEvent.ignorable, and event-name registration is rejected. Readers, seeds, JSONL persistence and the wire all preserve the marker. ButSession.appendin 0.2.0-rc.2 has no way to write it. So a plugin cannot produce the records the design expects, and a reader without that plugin refuses the whole Session instead of skipping the plugin's events.Repro. A plugin appends
myplugin/thingwithsession.append('myplugin/thing', data). Restore the Session in a process that does not load the plugin, or run the V3βV4 migration: the unknown type is refused.What we do today. A ~5-line local patch adds a writer option,
session.append(type, data, { ignorable: true }). It is allowed only for types outside the harness vocabulary and never for surface events. Everything else is unchanged.Ask. An official writer option, or another supported way, to append log-only downstream events carrying
ignorable: true. We will drop our patch as soon as one exists.All reactions