Python
fix(observability): call the Steps panel Trace (T3-13)
Devika Vermab7596644ea1c
diff --git a/surfaces/gui/src/App.tsx b/surfaces/gui/src/App.tsxindex 50e3583b..d2537c2e 100644--- a/surfaces/gui/src/App.tsx+++ b/surfaces/gui/src/App.tsx@@ -2296,7 +2296,7 @@ export function App() {aria-pressed={stepsOpen}data-testid="steps-open">- <span>{t("steps.open")}</span>+ <span>{t("steps.open_session")}</span></button>)}{/* §32: the panel toggle is the ONE session-panel entry, for every non-chat personadiff --git a/surfaces/gui/src/components/TurnFooter.test.tsx b/surfaces/gui/src/components/TurnFooter.test.tsxindex 13afd7e7..3385797d 100644--- a/surfaces/gui/src/components/TurnFooter.test.tsx+++ b/surfaces/gui/src/components/TurnFooter.test.tsx@@ -30,6 +30,7 @@ describe("TurnFooterLine", () => {expect(text).toContain("1 issue");expect(text).toContain("1 auto-approved");expect(text).not.toContain("asked you");+ expect(screen.getByTestId("turn-footer-steps").textContent).toBe("Trace"); // T3-13});it("a 👎 opens the card; Send stores the reasons and the note and says where it went", async () => {diff --git a/surfaces/gui/src/locales/en.json b/surfaces/gui/src/locales/en.jsonindex f6914485..ba210ce3 100644--- a/surfaces/gui/src/locales/en.json+++ b/surfaces/gui/src/locales/en.json@@ -3254,8 +3254,8 @@"information": "information","fine": "Checked and fine · {{n}}","no_plan": "No plan to check against",- "unseen_one": "{{count}} issue in Steps you have not looked at",- "unseen_other": "{{count}} issues in Steps you have not looked at",+ "unseen_one": "{{count}} issue in the trace you have not looked at",+ "unseen_other": "{{count}} issues in the trace you have not looked at","title": {"repeated_step": "Repeated the same step","off_plan": "Left its plan",@@ -3366,10 +3366,11 @@"reviewer_could_not_run_shadow_other": "Shadow reviewer checked {{count}} actions; none failed to run"}},- "title": "Steps",- "open": "Steps",+ "title": "Trace",+ "open": "Trace",+ "open_session": "Session trace","open_title": "Every step of each turn, and where the time and tokens went",- "close": "Close steps",+ "close": "Close the trace","prev_turn": "Previous turn","next_turn": "Next turn","turn_of": "Turn {{n}} of {{total}}",@@ -3461,8 +3462,8 @@"runner": "runner {{version}}"},"loading": "Loading…",- "load_error": "Steps could not be loaded.",- "not_recorded": "No recorded steps yet. Steps are recorded for turns run from now on.",+ "load_error": "The trace could not be loaded.",+ "not_recorded": "Nothing recorded yet. A trace is recorded for each turn run from now on.","tab": {"timeline": "Timeline","usage": "Usage"@@ -3794,7 +3795,7 @@},"obs": {"title": "Observability",- "sub": "Every step your coworkers take is recorded on this machine so you can see it under Steps. You can also send these recordings to a tool your company uses. They use the OpenTelemetry standard.",+ "sub": "Every step your coworkers take is recorded on this machine so you can see it in its trace. You can also send these recordings to a tool your company uses. They use the OpenTelemetry standard.","load_failed": "Could not read this machine's observability settings.","error_save": "Could not save.","error_address": "Enter an address that starts with http:// or https://.",@@ -3820,8 +3821,8 @@},"record": {"title": "Record steps",- "sub": "Needed for Steps, Issues and Usage. About 2.5 MB a day for typical use.",- "off": "Off: new sessions are not recorded. Steps, Issues and Usage stay empty for them."+ "sub": "Needed for Trace, Issues and Usage. About 2.5 MB a day for typical use.",+ "off": "Off: new sessions are not recorded. Trace, Issues and Usage stay empty for them."},"keep": {"title": "Keep recordings for",@@ -3887,8 +3888,8 @@"counts": "Today: {{sent}} steps sent · {{failed}} failed · {{dropped}} dropped.","resumes": "If the destination stops answering, nothing is lost: sending resumes where it stopped.","failed_sub": "Sending has stopped until the settings change.",- "outside_one": "Today: {{count}} model call from outside any session ({{tokens}} tokens), through this machine's model address. They are not in any session's Steps or Usage.",- "outside_other": "Today: {{count}} model calls from outside any session ({{tokens}} tokens), through this machine's model address. They are not in any session's Steps or Usage."+ "outside_one": "Today: {{count}} model call from outside any session ({{tokens}} tokens), through this machine's model address. They are not in any session's trace or Usage.",+ "outside_other": "Today: {{count}} model calls from outside any session ({{tokens}} tokens), through this machine's model address. They are not in any session's trace or Usage."},"state": {"off": "Off",@@ -4089,7 +4090,7 @@"events": "Team events that used to be silent","issue": "issue","info": "info",- "events_note": "Each line opens the Steps of the turn involved."+ "events_note": "Each line opens the trace of the turn involved."},"ev": {"wake_capped": "Team paused at the wake cap (60 this hour) · this wake waited {{min}} min",diff --git a/surfaces/gui/src/locales/zh.json b/surfaces/gui/src/locales/zh.jsonindex 7ec1611a..2d228c22 100644--- a/surfaces/gui/src/locales/zh.json+++ b/surfaces/gui/src/locales/zh.json@@ -3210,7 +3210,7 @@"information": "信息","fine": "已检查,正常 · {{n}}","no_plan": "没有可对照的计划",- "unseen_other": "Steps 中有 {{count}} 个你还没看的问题",+ "unseen_other": "追踪中有 {{count}} 个你还没看的问题","title": {"repeated_step": "重复了同一步骤","off_plan": "偏离了计划",@@ -3319,10 +3319,11 @@"reviewer_could_not_run_shadow_other": "影子审阅者检查了 {{count}} 个操作;全部正常运行"}},- "title": "步骤",- "open": "步骤",+ "title": "追踪",+ "open": "追踪",+ "open_session": "会话追踪","open_title": "每一轮的每个步骤,以及时间和令牌用在了哪里",- "close": "关闭步骤",+ "close": "关闭追踪","prev_turn": "上一轮","next_turn": "下一轮","turn_of": "第 {{n}} 轮,共 {{total}} 轮",@@ -3412,8 +3413,8 @@"joined_line_one": "此调用有 {{count}} 条记录:{{stages}}"},"loading": "加载中…",- "load_error": "无法加载步骤。",- "not_recorded": "还没有记录的步骤。从现在起运行的轮次会被记录。",+ "load_error": "无法加载追踪。",+ "not_recorded": "还没有记录。从现在起运行的每个轮次都会记录一条追踪。","tab": {"timeline": "时间线","usage": "用量"@@ -3738,7 +3739,7 @@},"obs": {"title": "可观测性",- "sub": "你的同事执行的每一步都会记录在这台机器上,你可以在“步骤”中查看。你也可以把这些记录发送到公司使用的工具。记录采用 OpenTelemetry 标准。",+ "sub": "你的同事执行的每一步都会记录在这台机器上,你可以在“追踪”中查看。你也可以把这些记录发送到公司使用的工具。记录采用 OpenTelemetry 标准。","load_failed": "无法读取这台机器的可观测性设置。","error_save": "无法保存。","error_address": "请输入以 http:// 或 https:// 开头的地址。",@@ -3764,8 +3765,8 @@},"record": {"title": "记录步骤",- "sub": "“步骤”“问题”和“用量”需要它。一般使用每天约 2.5 MB。",- "off": "已关闭:新会话不会被记录,它们的“步骤”“问题”和“用量”将为空。"+ "sub": "“追踪”“问题”和“用量”需要它。一般使用每天约 2.5 MB。",+ "off": "已关闭:新会话不会被记录,它们的“追踪”“问题”和“用量”将为空。"},"keep": {"title": "记录保留时长",@@ -3830,8 +3831,8 @@"counts": "今天:已发送 {{sent}} 个步骤 · {{failed}} 次失败 · {{dropped}} 个已丢弃。","resumes": "如果目标停止响应,不会丢失任何内容:发送会从中断处继续。","failed_sub": "在设置更改之前,发送已停止。",- "outside_one": "今天:{{count}} 次来自会话之外的模型调用({{tokens}} token),经由本机的模型地址。它们不在任何会话的步骤或用量中。",- "outside_other": "今天:{{count}} 次来自会话之外的模型调用({{tokens}} token),经由本机的模型地址。它们不在任何会话的步骤或用量中。"+ "outside_one": "今天:{{count}} 次来自会话之外的模型调用({{tokens}} token),经由本机的模型地址。它们不在任何会话的追踪或用量中。",+ "outside_other": "今天:{{count}} 次来自会话之外的模型调用({{tokens}} token),经由本机的模型地址。它们不在任何会话的追踪或用量中。"},"state": {"off": "关闭",@@ -4023,7 +4024,7 @@"events": "以前不显示的团队事件","issue": "问题","info": "信息",- "events_note": "每一行都会打开相关轮次的步骤。"+ "events_note": "每一行都会打开相关轮次的追踪。"},"ev": {"wake_capped": "团队在唤醒上限处暂停(本小时 60 次)· 这次唤醒等了 {{min}} 分钟",