The best way to control Claude Code, Codex and more from any computer or phone
fix(web): screen readers at Everything hear context compaction start (#35739)
Julius Marminge committed
Nov 12, 2026 at 17:06 UTC
4137412fe933b873692cdb270ffe8ab50834e8ff
2 files changed
+22
-3
apps/web/src/components/chat/turnDetailAnnouncement.test.ts
+21
-2
@@ -116,11 +116,30 @@ describe("turnDetail", () => {
116
activity: null,
117
},
118
{
119
- name: "nothing while the context is compacted",
119
+ name: "the context being compacted",
120
entries: [
121
prompt,
122
command("git"),
123
- work("compact", { tone: "info", sourceActivityKind: "context-compaction" }),
123
+ work("compact", {
124
+ tone: "info",
125
+ sourceActivityKind: "context-compaction",
126
+ label: "Compacting context",
127
+ toolLifecycleStatus: "inProgress",
128
+ }),
129
+ ],
130
+ activity: "Compacting context",
131
+ },
132
+ {
133
+ name: "nothing once the context is compacted",
134
+ entries: [
135
+ prompt,
136
+ command("git"),
137
+ work("compact", {
138
+ tone: "info",
139
+ sourceActivityKind: "context-compaction",
140
+ label: "Context compacted",
141
+ toolLifecycleStatus: "completed",
142
+ }),
143
],
144
activity: null,
145
},
apps/web/src/components/chat/turnDetailAnnouncement.ts
+1
-1
@@ -106,7 +106,7 @@ export function turnDetail(
106
if (entry.kind === "work") {
107
const work = entry.entry;
108
if (work.sourceActivityKind === "context-compaction") {
109
- activity ??= null;
109
+ activity ??= work.toolLifecycleStatus === "inProgress" ? work.label : null;
110
continue;
111
}
112
// Notices, todo lists and checkpoints sit beside the turn's steps without being one.