feat(feedback): disclose session sharing in the /feedback acknowledgement
The /feedback acknowledgement now echoes the receiving session id and reports the mounted telemetry backend's sharing policy: the telemetry seam exposes a backend-independent TelemetrySharingStatus through a required abstract sharing member on the Telemetry service, the OTel backend maps its mode onto it, and the command appends one policy-only sharing sentence (full / feedback-only / disabled / not configured) to the acknowledgement. The web client renders the text through the existing command row without a client change; a new assembled-browser e2e mounts the shipped telemetry row in FULL mode against a local dead endpoint and pins the shipped default sentence as a keyless golden.
This commit is contained in:
@@ -83,6 +83,9 @@ export function recordFeedback(session: Session, text: string): void {
|
||||
* @returns an acknowledgement containing the receiving session and anonymous
|
||||
* user ids plus the session-sharing disclosure, or a usage error when no
|
||||
* feedback text was supplied.
|
||||
* @returns an acknowledgement containing the receiving session id and the
|
||||
* session-sharing disclosure, or a usage error when no feedback text was supplied.
|
||||
>>>>>>> 632abf2957 (feat(feedback): disclose session sharing in the /feedback acknowledgement)
|
||||
*/
|
||||
function executeFeedbackCommand(invocation: CommandInvocation, ctx: Context): CommandResult {
|
||||
if (invocation.rawInput.trim().length === 0) {
|
||||
@@ -93,6 +96,8 @@ function executeFeedbackCommand(invocation: CommandInvocation, ctx: Context): Co
|
||||
return {
|
||||
kind: 'success',
|
||||
text: `Feedback recorded for session ${invocation.agent.session.id}\nUser: ${getOrCreateAnonymousUserId()}. ${sharingDisclosure(telemetry)}`,
|
||||
text: `Feedback recorded for session ${invocation.agent.session.id}. ${sharingDisclosure(telemetry)}`,
|
||||
>>>>>>> 632abf2957 (feat(feedback): disclose session sharing in the /feedback acknowledgement)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user