Python
fix(observability): plainer "Never sent" note and Status card (T3-9)
Devika Verma5a56aa82c526
diff --git a/surfaces/gui/src/components/ObservabilitySection.test.tsx b/surfaces/gui/src/components/ObservabilitySection.test.tsxindex 0ac18c02..15531488 100644--- a/surfaces/gui/src/components/ObservabilitySection.test.tsx+++ b/surfaces/gui/src/components/ObservabilitySection.test.tsx@@ -74,7 +74,11 @@ describe("Settings ▸ Observability", () => {}expect(screen.getByTestId("obs-keep-30").getAttribute("aria-checked")).toBe("true");await waitFor(() => expect(screen.getByTestId("obs-status-pill").textContent).toBe("Off"));- expect(screen.getByText(/Never sent, whatever is on/)).toBeTruthy();+ // T3-9: plain wording, the status says where to start, and Off is a label without a pill outline+ expect(screen.getByText(/These never leave this machine, whichever switches above are on/)).toBeTruthy();+ expect(screen.getByText(/they can contain file paths, web addresses and emails/)).toBeTruthy();+ expect(screen.getByText(/Pick a destination above \(Langfuse or an OpenTelemetry endpoint\)/)).toBeTruthy();+ expect(screen.getByTestId("obs-status-pill").className).toContain("border-transparent");});it("Langfuse: the address and keys are saved once; keys come back masked, never shown", async () => {diff --git a/surfaces/gui/src/components/ObservabilitySection.tsx b/surfaces/gui/src/components/ObservabilitySection.tsxindex da05c05a..aad3d0d4 100644--- a/surfaces/gui/src/components/ObservabilitySection.tsx+++ b/surfaces/gui/src/components/ObservabilitySection.tsx@@ -36,6 +36,8 @@ const PILL_TONE = {warn: "bg-warnSoft text-warnInk border-transparent",bad: "bg-dangerSoft text-danger border-transparent",plain: "bg-chrome text-muted border-line",+ // T3-9 (c): a state that is only a label (Off) has no pill outline, so it does not read as a switch+ label: "bg-transparent text-muted border-transparent px-0",};const MAX_HEADERS = 8;type Kind = "off" | "langfuse" | "otlp";@@ -253,7 +255,7 @@ export function ObservabilitySection({ machine }: { machine?: Machine | null })</div>{status ? (<Pill- tone={status.state === "sending" || status.state === "managed" ? "ok" : status.state === "retrying" ? "warn" : status.state === "failed" ? "bad" : "plain"}+ tone={status.state === "sending" || status.state === "managed" ? "ok" : status.state === "retrying" ? "warn" : status.state === "failed" ? "bad" : status.state === "off" ? "label" : "plain"}testId="obs-status-pill">{t(`obs.state.${status.state}`)}diff --git a/surfaces/gui/src/locales/en.json b/surfaces/gui/src/locales/en.jsonindex dce4093d..2c6367e0 100644--- a/surfaces/gui/src/locales/en.json+++ b/surfaces/gui/src/locales/en.json@@ -3811,7 +3811,7 @@"refused_key": "The destination refused the key","not_found": "Address not found","record_off_note": "Recording is off, so nothing is sent.",- "never_sent": "Never sent, whatever is on: the model's thinking text, error messages (they hold addresses) and provider-reported cost. Auto-approver verdicts (allowed, blocked, asked you), the reviewer's name and its timings are metadata, so they are always included when sending.",+ "never_sent": "These never leave this machine, whichever switches above are on: the model's thinking text, error messages (they can contain file paths, web addresses and emails), and the cost your provider reports. Always sent while sending is on, because they contain no text from your sessions: the auto-approver's verdicts (allowed, blocked, asked you), which reviewer decided, and how long it took.","sec": {"machine": "On this machine","send_to": "Send recordings to",@@ -3882,7 +3882,7 @@},"status": {"off_title": "Not sending",- "off_sub": "Choose where to send recordings to start. Only turns that end after that are sent.",+ "off_sub": "Pick a destination above (Langfuse or an OpenTelemetry endpoint) to start sending. Only turns that finish after that are sent; earlier ones are not.","nothing_yet": "Nothing sent yet","last_sent": "Last sent {{when}}","counts": "Today: {{sent}} steps sent · {{failed}} failed · {{dropped}} dropped.",diff --git a/surfaces/gui/src/locales/zh.json b/surfaces/gui/src/locales/zh.jsonindex 165622a0..fe779169 100644--- a/surfaces/gui/src/locales/zh.json+++ b/surfaces/gui/src/locales/zh.json@@ -3755,7 +3755,7 @@"refused_key": "目标拒绝了这个密钥","not_found": "找不到该地址","record_off_note": "记录已关闭,因此不会发送任何内容。",- "never_sent": "无论开关如何,以下内容都不会发送:模型的思考文本、错误信息(其中含有地址)以及服务商报告的费用。自动审批的结论(允许、拦截、询问你)、审核者的名称和耗时属于元数据,发送时始终包含。",+ "never_sent": "无论上面哪些开关打开,以下内容都不会离开这台机器:模型的思考文本、错误信息(其中可能含有文件路径、网址和邮箱),以及服务商报告的费用。只要开启发送,以下内容总会发送,因为它们不含你会话中的任何文字:自动审批的结论(允许、拦截、询问你)、由哪个审核者决定,以及用时。","sec": {"machine": "在这台机器上","send_to": "把记录发送到",@@ -3825,7 +3825,7 @@},"status": {"off_title": "未在发送",- "off_sub": "选择发送目标后开始发送。只发送此后结束的轮次。",+ "off_sub": "在上面选择一个目标(Langfuse 或 OpenTelemetry 端点)即可开始发送。只发送此后结束的轮次,之前的不会发送。","nothing_yet": "还没有发送任何内容","last_sent": "上次发送:{{when}}","counts": "今天:已发送 {{sent}} 个步骤 · {{failed}} 次失败 · {{dropped}} 个已丢弃。",