diff --git a/codex-cli/tests/agent-cancel-prev-response.test.ts b/codex-cli/tests/agent-cancel-prev-response.test.ts index 08d37e7b76..9e7c397425 100644 --- a/codex-cli/tests/agent-cancel-prev-response.test.ts +++ b/codex-cli/tests/agent-cancel-prev-response.test.ts @@ -132,8 +132,6 @@ describe("cancel clears previous_response_id", () => { ] as any); const bodies = _test.getBodies(); - // eslint-disable-next-line no-console - console.log(JSON.stringify(bodies, null, 2)); expect(bodies.length).toBeGreaterThanOrEqual(2); // The *last* invocation belongs to the second run (after cancellation). diff --git a/codex-rs/tui/src/conversation_history_widget.rs b/codex-rs/tui/src/conversation_history_widget.rs index 3246fe7263..64fa4f6dd3 100644 --- a/codex-rs/tui/src/conversation_history_widget.rs +++ b/codex-rs/tui/src/conversation_history_widget.rs @@ -438,6 +438,8 @@ impl WidgetRef for ConversationHistoryWidget { .wrap(wrap_cfg()) .scroll((offset_into_first as u16, 0)); + // Clear the widget area to avoid visual artifacts from previous frames. + Clear.render(area, buf); paragraph.render(area, buf); // Draw scrollbar if necessary.