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:
Chinesezjc
2026-08-08 02:27:37 +08:00
parent 94abd8631a
commit 3f9d0436eb
28 changed files with 394 additions and 18 deletions

View File

@@ -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)
}
}