The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 02:00 UTC
fix(web): Markdown tasks no longer stay checked after their source is unchecked (#27353)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 8, 2026 at 21:15 UTC
202e8ef77cf537dfcf65db157f5ca89b99bdbe06
1 file changed
+19
apps/web/src/components/ChatMarkdown.browser.test.tsx
+19
@@ -324,6 +324,25 @@ describe("ChatMarkdown streaming", () => {
324
expect(checkboxes()[1]).toBe(original);
325
expect(checkboxes()[1]!.checked).toBe(false);
326
});
327
+
328
+ it.each([
329
+ ["read-only", undefined],
330
+ ["editable", () => {}],
331
+ ])(
332
+ "unchecks the remaining %s task when the checked row above it is removed",
333
+ async (_, onTaskListChange) => {
334
+ setup();
335
+ const message = (text: string) => (
336
+ <ChatMarkdown cwd="/tmp/project" text={text} onTaskListChange={onTaskListChange} />
337
+ );
338
+ await using screen = await render(message("- [x] Completed item\n- [ ] Pending item"));
339
+ await screen.rerender(message("- [ ] Pending item"));
340
+ const checkboxes =
341
+ screen.container.querySelectorAll<HTMLInputElement>('input[type="checkbox"]');
342
+ expect(checkboxes).toHaveLength(1);
343
+ expect(checkboxes[0]!.checked).toBe(false);
344
+ },
345
+ );
346
});
347
348
describe("ChatMarkdown workspace file opens", () => {