You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 097f319
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mmx-octopus): cross-session awareness is off by default and really stops collecting (v1.10.0) (#138)
* fix(mmx-octopus): cross-session awareness is off by default and really stops collecting (v1.10.0)
The marketplace review (issue #136) found two real problems, and both were ours:
- petAware defaulted to true. A privacy-sensitive cross-session feature has to be
off by default, so a fresh install now starts with it off and the user turns
it on themselves.
- Turning it off only stopped the summary from reaching the prompt; the
collection kept going. observe({all:true}) and sessions() were still called.
The switch now reaches the collection layer: while it is off the package does
not subscribe to session events, does not list sessions, and does not put
anything about other sessions into her prompt. Turning it off at runtime
aborts the subscription, stops the board timer and clears what the board had
already shown. A restart keeps it off.
Also: the README said the package needs MiniMax Code 3.1.5; it needs 3.1.6.
Version 1.9.0 -> 1.10.0.
* test(mmx-octopus): ship the petAware scenarios so the default-off behaviour is verifiable
* docs(mmx-octopus): point the self-check note at the bundled test command
* fix(mmx-octopus): reset cross-session awareness on upgrade unless the user opted in
The marketplace review (2026-11-17) pointed out that an existing state.json with
petAware: true kept that value after upgrading, so cross-session collection
continued without a new opt-in. 1.9.0 persisted true because that was its
default, and a saved true does not show that the user ever enabled collection.
- state.mjs: new pure function migratePetAware() is the single place holding the
rule. Only a saved petAwareOptIn marker counts as an explicit opt-in; older
states are reset to off and the panel keeps a "please turn it on again" note.
setPetAware(true) is the only place that records the opt-in; setPetAware(false)
withdraws it. The reset is written back to disk so the old true cannot be read
back as a choice.
- client: the panel shows the upgrade note while the switch is reset.
- tests: the regression the review asked for, in the shared scenario module that
the bundled test and the internal self-check both run: start from a legacy
state.json with petAware: true, assert the switch is off and that no observe or
sessions() call happens, then assert that turning it on starts collection and
that the opt-in survives a restart. Plus a negative injection that puts the
old read-back rule back and must turn the check red.
- README (both languages): the upgrade section says the switch is reset to off.
---------
Co-authored-by: antianqi <antianqi@users.noreply.github.com>
0 commit comments