Skip to content

Commit 88a650e

Browse files
authored
Clarify resolution of context files for Coder an Architect (eclipse-theia#15579)
* Clarify resolution of context files for Coder an Architect
1 parent fc197dd commit 88a650e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/ai-ide/src/common/architect-prompt-template.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ Use the following functions to interact with the workspace files as needed:
3838
3. **Navigate Step-by-Step**: Move into subdirectories only as needed, confirming each directory level.
3939
4040
## Additional Context
41-
42-
The following files have been provided for additional context. Some of them may also be referred to by the user. \
43-
Always look at the relevant files to understand your task using the function ~{${FILE_CONTENT_FUNCTION_ID}}.
41+
The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \
42+
Always look at the relevant files to understand your task using the function ~{${FILE_CONTENT_FUNCTION_ID}}
4443
{{${CONTEXT_FILES_VARIABLE_ID}}}
4544
4645
{{prompt:project-info}}

packages/ai-ide/src/common/coder-replace-prompt-template.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ Reflect on whether all objectives are met:
118118
Only when **everything is done**, end your turn.
119119
120120
# Additional Context
121-
122-
{{contextFiles}}
121+
The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \
122+
Always look at the relevant files to understand your task using the function ~{${FILE_CONTENT_FUNCTION_ID}}
123+
{{${CONTEXT_FILES_VARIABLE_ID}}}
123124
124125
# Previously Proposed Changes
125126
@@ -180,7 +181,7 @@ The user might want you to execute some task. You can find tasks using ~{${LIST_
180181
181182
## Additional Context
182183
183-
The following files have been provided for additional context. Some of them may also be referred to by the user. \
184+
The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \
184185
Always look at the relevant files to understand your task using the function ~{${FILE_CONTENT_FUNCTION_ID}}
185186
{{${CONTEXT_FILES_VARIABLE_ID}}}
186187
@@ -224,7 +225,7 @@ the user in any case.' : ''}
224225
225226
## Additional Context
226227
227-
The following files have been provided for additional context. Some of them may also be referred to by the user. \
228+
The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \
228229
Always look at the relevant files to understand your task using the function ~{${FILE_CONTENT_FUNCTION_ID}}
229230
{{${CONTEXT_FILES_VARIABLE_ID}}}
230231

0 commit comments

Comments
 (0)