Skip to content

Add a suggestion to Architect to summarize the current session and continue with Coder #15512

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

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

JonasHelming
Copy link
Contributor

What it does

  • Adds a suggestion to Architect to summarize the current session and continue with Coder

based on #15427

How to test

  • Prompt Architect with a task, then click on the suggestion "Summarize this session as a task for Coder".
  • Review the created summary by clicking on it (it should be in the context of the new chat)
  • Prompt coder to "implement now"

Follow-ups

Coder could immediatly start to implement or at least provide this as a suggestion

Breaking changes

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

Attribution

Review checklist

Reminder for reviewers

@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Apr 24, 2025
@JonasHelming JonasHelming changed the title Gh 15511 Add a suggestion to Architect to summarize the current session and continue with Coder Apr 24, 2025

import { Command } from '@theia/core';

export const AI_SUMMARIZE_SESSION_AS_TASK_FOR_CODER: Command = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Going with a command even though I set up the callback system!? ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this, because I wanted to have the nice progress bar, so it felt natural. I would use call back for actions that stay within the session for example pre-defined user message. Does this make sense to you?

Copy link
Contributor

Choose a reason for hiding this comment

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

The command approach was my preference, so I'm happy either way. Re: the progress bar, its display is part of the behavior of TaskContextService.summarize, so as long as you call that, whether in a command or a callback, you should get the progress bar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is good to support both!

Do you have any other comments on this PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

No - not sure if it makes sense to approve it while #15427 is still pending? Or would you like this to go in instead?

JonasHelming and others added 4 commits April 24, 2025 16:12
Co-authored-by: colin-grant-work <cgrant.ext@eclipsesource.com>
Co-authored-by: colin-grant-work <cgrant.ext@eclipsesource.com>
Co-authored-by: colin-grant-work <cgrant.ext@eclipsesource.com>
Co-authored-by: colin-grant-work <cgrant.ext@eclipsesource.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting on reviewers
Development

Successfully merging this pull request may close these issues.

2 participants