Protected ReadonlychatProtected ReadonlynotificationProtected ReadonlyshellProtected ReadonlystatesProtectedhandleCalled when the application is started. The application shell is not attached yet when this method runs. Should return a promise if it runs asynchronously.
ProtectedunwatchProtectedwatch
Fires an agent notification when a chat session starts waiting for user input (e.g. a tool confirmation or an agent question). Watches all sessions, not just the active one, so that a background session requesting input still reaches the user. The agent completion notification (handled in the chat input widget) and this input-needed notification share the same delivery channel and user preference via AgentNotificationService.