Skip to content

fix(tui): load paginated session history - #44656

Merged
nexxeln merged 1 commit into
v2from
tui-scrollback
Aug 24, 2026
Merged

nexxeln merged 1 commit into
v2from
tui-scrollback

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • load the next server-side message page when TUI scrollback reaches the oldest locally mounted row
  • preserve the visible scroll anchor while older rows are prepended
  • continue previous/first-message navigation across page boundaries
  • keep history loading single-flight and safe across session switches and failed requests

Cause

The shared session data layer now fetches bounded 20-message pages, but the TUI only revealed rows already present in memory and never called loadMore() at the history boundary.

Checks

  • bun test (packages/tui): 758 passed, 5 skipped
  • bun typecheck (packages/tui)
  • bun x prettier --check src/routes/session/index.tsx src/routes/session/history.ts test/cli/tui/session-history.test.ts

Closes #44597

Requested by: @nexxeln (nexxel via Slack)

@nexxeln
nexxeln merged commit 3b8949b into v2 Aug 24, 2026
9 checks passed
@nexxeln
nexxeln deleted the tui-scrollback branch August 24, 2026 10:32
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant