Skip to content

refactor: use communication model in AI history #15540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

sdirix
Copy link
Member

@sdirix sdirix commented Apr 30, 2025

What it does

Follow Up PR to #15409 which introduces a new generic AI communication model.

Refactors the AI history view to use the new AI communication model as
data input. Removes the now obsolete communication recording service.

The history now supports two visual modes: "raw" and "compact" for
easier inspection. Also added an option to toggle newline rendering.

Resolves #15539

How to test

Send requests and check that the AI history view shows the requests and responses. Play around with the new AI history view options: raw/compact mode and enable/disable newline rendering.

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Contributed by STMicroelectronics

Review checklist

Reminder for reviewers

@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Apr 30, 2025
@sdirix sdirix requested a review from planger April 30, 2025 21:26
@sdirix sdirix force-pushed the use-communication-model-in-history branch 3 times, most recently from 4d57aba to 4ae1f25 Compare April 30, 2025 22:26
Copy link
Contributor

@planger planger left a comment

Choose a reason for hiding this comment

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

Thank you very much! This looks great to me and works very well. It is a pleasure to see this manual request recording gone! :-)

Also great work on the history view improvements. Looks good and works well. I especially like the compact and raw view. Great for debugging. I'm just not sure how useful the new-line rendering switch is. As we are just showing pretty-printed JSON, the new lines are encoded anyway, or am I misunderstanding the functionality of this switch?

@github-project-automation github-project-automation bot moved this from Waiting on reviewers to Needs merge in PR Backlog May 12, 2025
@sdirix sdirix force-pushed the use-communication-model-in-history branch from 4ae1f25 to a36d0a3 Compare May 13, 2025 07:43
@sdirix
Copy link
Member Author

sdirix commented May 13, 2025

As #15409 is now merged, I updated the PR to be based on master.

@sdirix sdirix force-pushed the use-communication-model-in-history branch from a36d0a3 to 34fa80d Compare May 26, 2025 21:32
Refactors the AI history view to use the new AI communication model as
data input. Removes the now obsolete communication recording service.

The history now supports two visual modes: "raw" and "compact" for
easier inspection. Also added an option to toggle newline rendering.

The ai-history package now depends on ai-chat-ui instead of the other
way around. Therefore the AI history is now optional.

Resolves eclipse-theia#15539

Contributed on behalf of STMicroelectronics.
@sdirix sdirix force-pushed the use-communication-model-in-history branch from 34fa80d to 55d5b0b Compare May 26, 2025 21:41
@sdirix sdirix marked this pull request as ready for review May 27, 2025 07:09
@sdirix
Copy link
Member Author

sdirix commented May 27, 2025

@planger Can you review this today, so we can get this in until tomorrow?

Changes since your last review:

  • Rebase on latest master
  • Added changelog entry
  • Fixed newline rendering switch

@sdirix sdirix requested a review from planger May 27, 2025 07:11
Copy link
Contributor

@planger planger left a comment

Choose a reason for hiding this comment

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

Thank you for the rebase and the revision! Works great and code looks good!

@sdirix sdirix merged commit f32b1b1 into eclipse-theia:master May 27, 2025
20 of 25 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog May 27, 2025
@sdirix sdirix deleted the use-communication-model-in-history branch May 27, 2025 08:03
@github-actions github-actions bot added this to the 1.62.0 milestone May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Use new communication model in history view
2 participants