Skip to content

wsd: extract AI chat into its own AIChatSession class#15567

Open
Rash419 wants to merge 1 commit intomainfrom
rashesh/pr-extract-aichat
Open

wsd: extract AI chat into its own AIChatSession class#15567
Rash419 wants to merge 1 commit intomainfrom
rashesh/pr-extract-aichat

Conversation

@Rash419
Copy link
Copy Markdown
Contributor

@Rash419 Rash419 commented Apr 17, 2026

ClientSession had ~1950 lines of AI chat code - the LLM tool loop, tool dispatchers, image generation, approval gating, and kit-response intercepts - mixed in with tile flow, clipboard, saveAs, etc. Pull it out into a new class that ClientSession owns and delegates to for the aichat:/aichatcancel:/aichatapprove: messages and five kit responses.

Pure move, no behavior changes.

ClientSession had ~1950 lines of AI chat code - the LLM tool loop,
tool dispatchers, image generation, approval gating, and kit-response
intercepts - mixed in with tile flow, clipboard, saveAs, etc. Pull it
out into a new class that ClientSession owns and delegates to for the
aichat:/aichatcancel:/aichatapprove: messages and five kit responses.

Pure move, no behavior changes.

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: Ieb43640f2d950956bafbcf01c2927e5396d4725d
Comment thread wsd/ClientSession.cpp
return augmented;
auto iter = std::find_if(_tilesOnFly.begin(), _tilesOnFly.end(),
[wireId](const std::pair<TileWireId, std::chrono::steady_clock::time_point>& curTile)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Review

Development

Successfully merging this pull request may close these issues.

2 participants