Skip to content

Conversation

eneufeld
Copy link
Contributor

@eneufeld eneufeld commented Jul 2, 2025

What it does

  • add "listLaunchConfigurations"
  • add "runLaunchConfiguration"
  • add "stopLaunchConfiguration"

This allows to start and stop existing run configurations.

How to test

Start the app, use AppTester Agent and provide it the three functions.
Ask it to start an application , do something in the app and then stop it.

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

Review checklist

Reminder for reviewers

@eneufeld eneufeld requested a review from ndoschek July 2, 2025 20:37
@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Jul 2, 2025
@eneufeld eneufeld force-pushed the feat/supportLaunchConfig branch 3 times, most recently from 3841899 to ebe0b48 Compare July 3, 2025 10:50
Copy link
Contributor

@ndoschek ndoschek 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 @eneufeld, this is an awesome improvement! 🚀
I tested the AppTester quite a bit, and using the new functions is a pleasure.

I noticed that it sometimes fails to stop the launch configurations when it starts the application with a compound launch configuration (e.g., "Launch Browser Backend & Frontend"; see the screenshot below).
If the instructions are more specific than in my example, it worked as expected everytime. I'm not sure whether we can do anything about this, but I wanted to mention it here.

Screenshot

image

Besides that, as I mentioned in your other PR, I noticed quite a few changes that are essentially only code formatting. If you find the time, could you revert those? Thanks in advance! TIA

Copy link
Contributor

Choose a reason for hiding this comment

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

Especially in this file it is hard to get the actual changes due to the many formatting changes.

@eneufeld eneufeld force-pushed the feat/supportLaunchConfig branch 2 times, most recently from 6379dd0 to b1a1a95 Compare July 4, 2025 21:01
@eneufeld
Copy link
Contributor Author

eneufeld commented Jul 4, 2025

@ndoschek updated the formatting

Copy link
Contributor

@ndoschek ndoschek left a comment

Choose a reason for hiding this comment

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

Thanks @eneufeld, LGTM just a few nitpicks, but besides that I think we are good to go.
@sdirix Could you please also have a quick look too, as we need an approval from a committer, thanks!

Regarding my earlier comment about the compound configurations:
Do you think this could be solved? If so, we could also consider opening a follow-up.


await this.debugConfigurationManager.load();

// Find the configuration by name
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

Suggested change
// Find the configuration by name

return `Did not find a launch configuration for the name: '${args.configurationName}'`;
}

// Start the debug session
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

Suggested change
// Start the debug session

return `Failed to start launch configuration '${args.configurationName}'`;
}

// Handle cancellation
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

Suggested change
// Handle cancellation

Comment on lines 23 to 24
export const LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID =
'listLaunchConfigurations';
Copy link
Contributor

Choose a reason for hiding this comment

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

nit

Suggested change
export const LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID =
'listLaunchConfigurations';
export const LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = 'listLaunchConfigurations';

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

LGTM but did not test it

@github-project-automation github-project-automation bot moved this from Waiting on reviewers to Needs merge in PR Backlog Jul 8, 2025
@ndoschek ndoschek mentioned this pull request Jul 11, 2025
15 tasks
- add "listLaunchConfigurations"
- add "runLaunchConfiguration"
- add "stopLaunchConfiguration"

This allows to start and stop existing run configurations.

- Also removed a circular dependency by duplicating label
resolution
@eneufeld eneufeld force-pushed the feat/supportLaunchConfig branch from b1a1a95 to e3c398c Compare July 16, 2025 20:50
@eneufeld eneufeld requested review from ndoschek and sdirix July 16, 2025 20:50
@JonasHelming
Copy link
Contributor

@sdirix As Nina is on vacation, could you have a final look?

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

Works for me!

Follow up work: Via these functions the LLM is not provided information about which configurations are currently running, it assumes this from history alone which is not sufficient if the user manually started/stopped configurations. Please create a ticket for this.

@eneufeld
Copy link
Contributor Author

Created follow-up: #16065

@eneufeld eneufeld merged commit baf0871 into master Jul 29, 2025
10 of 11 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Jul 29, 2025
@github-actions github-actions bot added this to the 1.64.0 milestone Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants