Skip to content
Python

fix(observability): CI: Steps button class and a title-call race in a server test (OPE-244)

Devika Verma57589cce14e9
diff --git a/surfaces/gui/src/App.tsx b/surfaces/gui/src/App.tsx
index 4cb7be36..5ade286c 100644
--- a/surfaces/gui/src/App.tsx
+++ b/surfaces/gui/src/App.tsx
@@ -2248,7 +2248,7 @@ export function App() {
{/* UX-059 OB-1: every step of each turn, and where the time and tokens went. */}
{surface === "session" && agent !== "chat" && (
<button
- className={"topbar-artifacts-btn" + (stepsOpen ? " active" : "")}
+ className={"topbar-steps-btn" + (stepsOpen ? " active" : "")}
onMouseDown={(e) => e.stopPropagation()}
onClick={() => {
setStepsOpen(!stepsOpen);
diff --git a/surfaces/gui/src/styles.css b/surfaces/gui/src/styles.css
index b2cfae01..d3835316 100644
--- a/surfaces/gui/src/styles.css
+++ b/surfaces/gui/src/styles.css
@@ -965,15 +965,16 @@ button.btn.danger { color: var(--accent); }
.task-card:hover .task-card-act { opacity: 1; color: var(--accent); }
.task-card.gated .task-card-act { opacity: 1; color: var(--accent); }
-/* Topbar "Artifacts (N)" affordance, shown when the side panel is hidden */
-.topbar-artifacts-btn {
+/* Topbar "Artifacts (N)" affordance, shown when the side panel is hidden; the Steps
+ button (UX-059 OB-1) looks the same */
+.topbar-artifacts-btn, .topbar-steps-btn {
display: inline-flex; align-items: center; gap: 6px;
padding: 5px 10px; margin-right: 6px;
border: 1px solid var(--line-strong); border-radius: 8px;
background: var(--panel); color: var(--muted); cursor: pointer;
font: inherit; font-size: var(--fs-ui);
}
-.topbar-artifacts-btn:hover { color: var(--ink); border-color: var(--accent); }
+.topbar-artifacts-btn:hover, .topbar-steps-btn:hover { color: var(--ink); border-color: var(--accent); }
.topbar-artifacts-count {
/* Neutral count (owner call 2026-08-21): a passive tally is not a primary action,
an active state, or a live signal — the accent budget says no cobalt here. */
diff --git a/tests/test_server.py b/tests/test_server.py
index 10862b94..5fe02790 100644
--- a/tests/test_server.py
+++ b/tests/test_server.py
@@ -549,6 +549,10 @@ def test_ws_error_persists_notice_and_retry_reruns(tmp_path):
self.calls = 0
def complete(self, *, model, messages, tools=None, **settings):
+ # The fire-and-forget auto-title call runs concurrently with the turn; it must
+ # not take the one scripted outage meant for the chat call.
+ if messages and "title chat sessions" in str(messages[0].get("content", "")):
+ return _text("A Title")
self.calls += 1
if self.calls == 1:
raise RuntimeError("outage")