Skip to content

Conversation

@Ricky-Hao
Copy link
Contributor

@Ricky-Hao Ricky-Hao commented Jan 7, 2026

The history (context turn limit) button was missing from the chat input action bar in the next branch. Added 'history' action to leftActions in:

  • chat/MainChatInput
  • group/MainChatInput
  • group/GroupChat

This restores the ability to control conversation context history limit that was available in previous versions.

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

🔀 Description of Change

🧪 How to Test

  • Tested locally
  • Added/updated tests
  • No tests needed

📸 Screenshots / Videos

Before After
... ...

📝 Additional Information

Summary by Sourcery

Bug Fixes:

  • Re-add the history/context turn limit action to the left action bar in main and group chat inputs so users can again control conversation history.

The history (context turn limit) button was missing from the chat input
action bar in the next branch. Added 'history' action to leftActions in:
- chat/MainChatInput
- group/MainChatInput
- group/GroupChat

This restores the ability to control conversation context history limit
that was available in previous versions.
@vercel
Copy link

vercel bot commented Jan 7, 2026

@Ricky-Hao is attempting to deploy a commit to the LobeHub OSS Team on Vercel.

A member of the Team first needs to authorize it.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Jan 7, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Restores the missing history/context-turn-limit control in the chat input action bar for both direct and group conversations by reintroducing the history action into the left-side action configuration arrays.

Flow diagram for history action in leftActions configuration

flowchart LR
  User[User] --> ChatInputUI[ChatInputActionBar]
  ChatInputUI --> LeftActionsConfig[leftActions_configuration]
  LeftActionsConfig --> HistoryAction[history_action_button]
  HistoryAction --> ContextLimitModal[Context_turn_limit_controls]
  ContextLimitModal --> UpdatedSettings[Updated_conversation_context_limit]

  subgraph DirectChat
    DCFile[src_app_chat_MainChatInput_index_tsx]
    DCFile --> LeftActionsConfig
  end

  subgraph GroupChat
    GCMain[src_app_group_MainChatInput_index_tsx]
    GCChat[src_app_group_MainChatInput_GroupChat_tsx]
    GCMain --> LeftActionsConfig
    GCChat --> LeftActionsConfig
  end
Loading

File-Level Changes

Change Details Files
Reintroduce the history/context limit control into the main chat input left action bar configuration.
  • Update the leftActions array to include the 'history' action alongside other grouped tool actions
  • Ensure the history button appears between 'tools' and 'params' within the grouped action list
src/app/[variants]/(main)/chat/features/Conversation/MainChatInput/index.tsx
Align group conversation chat input with main chat input by restoring the history action in its left action bar.
  • Update group conversation MainChatInput leftActions to include 'history' within the grouped tool actions
  • Maintain consistent ordering of actions: 'tools', 'history', 'params', 'clear' across group chat components
src/app/[variants]/(main)/group/features/Conversation/MainChatInput/GroupChat.tsx
src/app/[variants]/(main)/group/features/Conversation/MainChatInput/index.tsx

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 7, 2026
@gru-agent
Copy link
Contributor

gru-agent bot commented Jan 7, 2026

TestGru Assignment

Summary

Link CommitId Status Reason
Detail ea895ba 🚫 Skipped No files need to be tested {"src/app/[variants]/(main)/chat/features/Conversation/MainChatInput/index.tsx":"File path does not match include patterns.","src/app/[variants]/(main)/group/features/Conversation/MainChatInput/GroupChat.tsx":"File path does not match include patterns.","src/app/[variants]/(main)/group/features/Conversation/MainChatInput/index.tsx":"File path does not match include patterns."}

History Assignment

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Since the leftActions configuration is now duplicated across three components, consider extracting this array (or the common portion of it) into a shared constant/helper to keep the action set in sync and avoid regressions like the missing history action in the future.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Since the `leftActions` configuration is now duplicated across three components, consider extracting this array (or the common portion of it) into a shared constant/helper to keep the action set in sync and avoid regressions like the missing `history` action in the future.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant