diff --git a/packages/webui/src/public/bus.js b/packages/webui/src/public/bus.js index 40c6b6758..e29e67aa8 100644 --- a/packages/webui/src/public/bus.js +++ b/packages/webui/src/public/bus.js @@ -588,7 +588,8 @@ catch{settingsReceipt='Outcome unknown. Read current settings before trying again. Draft kept.';}finally{settingsSaving=false;if(!out())render(false);} }); // Row 125 (#1619, REQ-LIMIT-3, REQ-LIMIT-4): each token limit as the bus's checks report it. A - // limit no switched-on check counts reads "not enforced". Reset counts it again from now. + // limit no switched-on check counts reads "not enforced". Reset counts it again from now. Row 126 + // (#1620): any daily quota row adds one line saying the count is this stack's own use only. let resetReceipt=''; function tokenLimits(rows, refused) { const title = '

Token limits

'; @@ -600,7 +601,7 @@ : t.status === 'not-enforced' ? `not enforced${t.reason ? `: ${txt(t.reason)}` : ''}` : `check failed: ${txt(t.code)}${t.check ? ` (${txt(t.check)})` : ''}`; const body = rows.map(t => `${txt((t.path || []).join(' / '))}${txt(t.limit)}${txt(t.since)}${state(t)}`).join(''); - return `
${title}

A count is every token kind since the limit was set or reset. Unknown turns add nothing to it.

${body}
SubjectLimitSinceCountReset

${canSend ? 'A reset is logged with your identity.' : 'Resetting requires signed-in send mode.'}

${txt(resetReceipt)}

`; + return `
${title}

A count is every token kind since the limit was set or reset. Unknown turns add nothing to it.

${body}
SubjectLimitSinceCountReset
${rows.some(t => t.path?.[1] === 'daily') ? '

Daily quotas count only this stack\'s own use of the account, not its use anywhere else.

' : ''}

${canSend ? 'A reset is logged with your identity.' : 'Resetting requires signed-in send mode.'}

${txt(resetReceipt)}

`; } document.addEventListener('click',async e=>{ const path=e.target.dataset?.limitReset;if(path===undefined||!canSend||out()||settingsSaving)return;