mycf_711 (#3654) saw loomy/DeepSeek-V4.1-Flash told 1000000 (the "*"
window typed on the provider) and its group told 1048576 (the plugin's
declaration), and dsh then sent two histories in one request.
On main the member's entry is already the typed window (WindowOf, since
#2112 and 7aad6a50e), and buildGroupEntries reads that entry, so a group
of it that names no size is told 1000000 too. This test holds that. A
group told more than one member is told is a group with a larger member
in it (#700/#712), which is by design.
The doubling itself was not reproduced: in a sandbox HOME, dsh
0.2.1-rc.2 against a fake server, with the window flipped 1000000 <->
1048576 on resume, live (reload on and off), mid-request, after a
compaction, and with the model id flipped between a group and its
member, every request grew by its own two messages only. dsh builds a
request from session.deriveMessages() alone; a window change only adds a
request/context event.
Run (mote): go test -tags nogui -run
'TestGroupOfAPluginModelToldTheWindowSetOnIt|TestPluginModelWindow'
./internal/provider ok.
Not broken by hand: the test passes on main as it was; it guards, it
doesn't fix. Not tried: dsh's desktop/web profile, and the reporter's
own group (its other members).