Skip to content

fix(chat): show history after quiet routines - #95

Closed
afeefuddin wants to merge 1 commit into
DuskBotAI:devfrom
afeefuddin:fix/blank-chat-after-routines
Closed

afeefuddin wants to merge 1 commit into
DuskBotAI:devfrom
afeefuddin:fix/blank-chat-after-routines

Conversation

@afeefuddin

Copy link
Copy Markdown
Contributor

What and why

A chat could open blank after several quiet routines. The initial window counted stored entries before the renderer hid routine prompts and tool activity. Those entries could fill the window and push the last visible reply out of view until the user scrolled up.

The chat now extends its initial window to include the newest visible message. If the loaded history contains only hidden entries, it requests earlier pages until it finds a visible row or reaches the start of the thread. A stalled or failed request for the same cursor does not repeat automatically.

How it was checked

  • Built the dev baseline and the patched renderer. Opened the same synthetic chat in two isolated fixtures. Before, 173 hidden entries left the chat blank until scrolling up. After, the older reply appeared on open.
  • Verified that the patched renderer made two earlier-page requests when the last visible reply was behind 425 hidden entries. The reply appeared without scrolling.
  • All 67 focused chat and transcript tests passed. pnpm lint and the frontend typecheck (pnpm exec tsc -b) passed.
  • Full pnpm typecheck reported the same five errors on the patch and its unchanged dev base. The full pnpm test run was stopped after server and driver tests timed out.

Watch the before-and-after recording (MP4)

Before After
The chat opens blank The older reply is visible on open
  • pnpm typecheck, pnpm lint and pnpm test pass
  • New behaviour has a test
  • No secrets, personal data or local paths in the diff or screenshots

@afeefuddin
afeefuddin marked this pull request as ready for review November 18, 2026 23:29
@SiddDevZ

Copy link
Copy Markdown
Contributor

Thanks @afeefuddin, great catch and a clear write-up. Merged into dev as 7e42f25 with you as the author; it ships in the next release.

@SiddDevZ SiddDevZ closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants