Skip to content

feat(TUI): add a button 'load previous messages' when it got its limitation#18210

Open
PatricYan wants to merge 2 commits intoanomalyco:devfrom
PatricYan:view-more-context-of-session
Open

feat(TUI): add a button 'load previous messages' when it got its limitation#18210
PatricYan wants to merge 2 commits intoanomalyco:devfrom
PatricYan:view-more-context-of-session

Conversation

@PatricYan
Copy link

@PatricYan PatricYan commented Mar 19, 2026

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The TUI could only display the n(like 100)most recent messages per session. If a session had n+(like 100+ ) messages, the older ones were invisible and unreachable.

  1. Open a session, see the 100 most recent messages
  2. If older messages exist, "▲ Load previous messages" appears at the top with a count like "100 messages loaded"
  3. Click the button or press e, 100 older messages load, scroll position stays stable
  4. Repeat until all history is loaded, the button disappears when no more pages exist
  5. No hard cap, the user controls how much history to load by clicking the button

How did you verify your code works?

run it locally to test

Screenshots / recordings

  • image show the button
image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@PatricYan PatricYan requested a review from adamdotdevin as a code owner March 19, 2026 09:05
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Mar 19, 2026
@github-actions
Copy link
Contributor

Hey! Your PR title add a button 'load previous messages' when it got its limitation doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

@PatricYan PatricYan changed the title add a button 'load previous messages' when it got its limitation feat(TUI): add a button 'load previous messages' when it got its limitation Mar 19, 2026
@github-actions github-actions bot removed needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Mar 19, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

1 participant