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
ui-react: agent policy warning claims 'Enforcing the last valid version' while facts are refreshing #4433
Changing policy enforcement, policy loading semantics, or trust CRUD behavior.
Context
Parent epic: #3597. Follow-up from the final triage of review round 3 of #4425 at 60e9d32f6. This is deferred follow-up work, with no release commitment.
packages/ui-react/src/components/settings/agent-policy-group.tsx:13,26-28,43 retains the previous last-valid warning during refresh. Its wording says “Enforcing the last valid version” and names the old hash even while currentFacts is false. Changing the separate version label to “Last read version” does not remove this current-enforcement claim. The existing T22 defaults case has no last-valid hash in its warning.
Scope
Make the last-valid warning accurately describe stale facts while refresh is pending or unavailable.
Acceptance criteria
No warning claims current enforcement while currentFacts is false.
A T22 last_valid case verifies warning wording while a refresh is pending and after it settles.
Fresh facts still show the appropriate last-valid policy warning.
Verification
Real browser T22 last_valid case, failing before the fix and with a mutation restoring the stale current-enforcement claim.
Contract impact
None; UI wording and state presentation only.
2026-11-23 triage at main a3395c4: verified the cited anchors (AgentPolicyGroup, packages/ui-react/src/components/settings/agent-policy-group.tsx:8, lines 13, 26-28 and 43; T22 cases at packages/ui-react/tests/browser/hit-reach.trust-settings.pointer.tsx:418 and :479); they hold. Replaced non-manifest type: bug with type: fix; changed priority: p3 to priority: p2, because this restores an honest enforcement claim and needs no further driving use case, matching sibling #4436.
Activity