Repository navigation
Proposal: document ctx.uiSession.pendingInteractions as the browser-side signal for pending user interactions #5898
andreagosto
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
The only reliable browser-side signal for "a session is waiting on the user" (approval or user-question pending) is the undocumented
ctx.uiSession.pendingInteractionsprojection (dsh-client-ui-session). Passive out-of-tree browser plugins cannot depend on theuser-questions/request/approval/requestwaterfall events (see discussion on the closed forwarded-event surface #5897): they are single-consumer and claimed by the official answerers in registration order, and the forwarded request does not carry a stable agent/session identity.Observed facts
ctx.uiSession.pendingInteractions.getSnapshot()returnsMap<sessionId, interaction>whereinteraction.kind∈approval|question|plan-review, fed by the official UI answerers viaregisterPendingInteraction(precedence)while they wait for the user, and cleared when the interaction resolves. It is not mentioned anywhere indocs/(0 matches).Suggested behavior
Document
pendingInteractions(andsubscribe) as the supported observation point for pending user interactions ondsh-client-ui-session, ideally promoted to a stable contract:Map<sessionId, { kind: 'approval' | 'question' | 'plan-review', ... }>)label/human description helper would also help passive notifiers.Alternatively/additionally expose a dedicated public event or projection so observers do not reach into a UI service.
Motivation / affected users
Community plugin authors (topic
dsh-plugin) building attention/notification/watchdog-style browser features. Concrete consumer: https://github.com/andreagosto/dsh-tab-watchdog.All reactions