Skip to content

Revert "Fix: UI chat should pass pass_all_history_messages=false in 1.0 go" - #19618

Merged
wangq8 merged 1 commit into
mainfrom
revert-19602-fix-agent-prologue
Sep 14, 2026
Merged

wangq8 merged 1 commit into
mainfrom
revert-19602-fix-agent-prologue

Conversation

@wangq8

@wangq8 wangq8 commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Reverts #19602 for python.

@wangq8 wangq8 added the ci Continue Integration label Sep 14, 2026
@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: dd5ba9f5-5cec-44be-b8b5-fbc929a534ae

📥 Commits

Reviewing files that changed from the base of the PR and between 0a00a73 and df1ba96.

📒 Files selected for processing (2)
  • web/src/pages/next-chats/hooks/use-send-single-message.ts
  • web/src/services/chat-completion-stream.ts

📝 Walkthrough

Walkthrough

The chat message hook and streaming service now set pass_all_history_messages to true for every backend. Backend detection, its import, and the related callback dependency were removed.

Changes

History forwarding

Layer / File(s) Summary
Unify history payload construction
web/src/pages/next-chats/hooks/use-send-single-message.ts, web/src/services/chat-completion-stream.ts
Both request paths remove backend-specific branching and send pass_all_history_messages: true. The hook no longer tracks backend state or depends on it in its callback.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: cike8899


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit hops where chat streams flow
All history joins the payload row
No backend branch can split the way
True carries every word today
Ears up, the messages go!

Comment @coderabbitai help to get the list of available commands.

@wangq8
wangq8 merged commit 521d264 into main Sep 14, 2026
7 of 9 checks passed
@yingfeng
yingfeng deleted the revert-19602-fix-agent-prologue branch September 16, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant