Skip to content

Commit e19eb87

Browse files
Fix project info not sent in Agent/Interactive mode when project selected via popup (#288)
* Initial plan * Fix project info not sent in Agent/Interactive mode when project not pre-selected (#287) Co-authored-by: jGauravGupta <15934072+jGauravGupta@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jGauravGupta <15934072+jGauravGupta@users.noreply.github.com>
1 parent 705c5aa commit e19eb87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/io/github/jeddict/ai/hints/AssistantChatManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ private void handlePrompt(String question, boolean newQuery) {
651651
// project rules; the agent is instructed to gather the
652652
// information it requires using tools
653653
//
654-
final String projectInfo = ProjectMetadataInfo.get(selectedProject);
654+
String projectInfo = ProjectMetadataInfo.get(selectedProject);
655655
if (!agentEnabled) {
656656
final Set<FileObject> mainSessionContext;
657657
final String sessionScopeContent;
@@ -692,6 +692,7 @@ private void handlePrompt(String question, boolean newQuery) {
692692
if (agentEnabled && (selectedProject == null)) {
693693
ac.selectProject();
694694
selectedProject = getProject();
695+
projectInfo = ProjectMetadataInfo.get(selectedProject);
695696
}
696697
final Hacker h = hacker(listener, modelName, ac.interactiveMode());
697698
if (pm.isStreamEnabled()) {

0 commit comments

Comments
 (0)