diff --git a/docs/subsystems/gateway-sessions.md b/docs/subsystems/gateway-sessions.md index 8f99a22a5..a3a1e6519 100644 --- a/docs/subsystems/gateway-sessions.md +++ b/docs/subsystems/gateway-sessions.md @@ -441,11 +441,20 @@ covers them), and `sessions/manage` carries the same as `reads`. While `asked` is false the Sessions page shows the consent (`consentCard` in the sessions plugin): each agent found with a switch, off; Allow selected saves `all: false` with each agent picked or not, Allow all `all: true`. -A choice with `all` false reads no agent it doesn't name, so one found -after it (Antigravity 2.0 installed after Allow selected: baysonfox on -X) is `new` in `found` (on disk, not named, not read), and the Sessions -page asks about those once (`laterCard`): Show their sessions sends -each `true`, Keep off `false`, so it isn't new again. +A choice with `all` false reads no agent it doesn't name. An agent off +and found here is `new` in `found` unless it was turned off on its own: +a post without `all` that sets it `false` (Keep off, a Settings › +Privacy row, `magpie sessions read off `) records it in +`sessionReads.kept`, and one that sets it `true` takes it out. So an +agent found after the first choice, and one left off in that choice's +list (Antigravity 2.0 beside agy CLI: baysonfox on X, whose app calls +made without magpie were counted nowhere), are asked about once more: +on the Sessions page (`laterCard`: Show their sessions sends each +`true`, Keep off `false`) and above Usage › Requests' rows (`readsLater` +in the usage plugin's `page.js`: Count / Don't count, the same posts). +An agent turned off in Settings before `kept` existed has no entry and +is asked once (`TestSessionReadsUncheckedAgentAskedAgain`, +`TestSessionReadsTurnedOffNotAskedAgain`). Settings › Privacy, *Agents' session history* (`renderSessionReads` in the sessions plugin's `settings.js`), has *Agents found later* (`all`, sent with each listed agent at the value its row shows) and a row per agent. diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index c3626bf2e..3b4fea96f 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -1805,6 +1805,10 @@ body.masked :hover > .acct-eye, body.masked .pq-card:hover .acct-eye, body.maske .led-hscroll::-webkit-scrollbar-button, .led-hscroll::-webkit-scrollbar-corner { display: none; } .reads-note { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; } .reads-note p { margin: 0; } +.reads-later { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 9px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; } +.reads-later[hidden] { display: none; } +.reads-later p { margin: 0; flex: 1 1 260px; min-width: 0; color: var(--muted); line-height: 1.45; } +.reads-later-acts { display: flex; gap: 4px; margin-left: auto; } .led-none { padding: 18px 16px; color: var(--muted); text-align: center; line-height: 1.5; } .led-sk { padding: 11px 14px; } .led-sk + .led-sk { border-top: 1px solid var(--line-2); } diff --git a/internal/gui/assets/plugins/usage/client.js b/internal/gui/assets/plugins/usage/client.js index e68b0eeaa..e36fe88dd 100644 --- a/internal/gui/assets/plugins/usage/client.js +++ b/internal/gui/assets/plugins/usage/client.js @@ -76,6 +76,7 @@ magpie.plugin("usage", (ctx) => {

Gateway and session-log calls; local rejections excluded from totals.

+