[Fix]: P2E base path is always the project directory, P2E when completed stays in your current file (#7091)

* fix: fixes for p2e

* fix: yep tsc fixes

* fix: fixing reject workflow and navigate
This commit is contained in:
Kevin Nadro
2025-05-19 19:05:38 -05:00
committed by GitHub
parent 2b9d26e2ff
commit 8c24e29081
6 changed files with 165 additions and 10 deletions

View File

@ -415,6 +415,7 @@ export async function promptToEditFlow({
token,
artifactGraph,
projectName,
filePath,
}: {
prompt: string
selections: Selections
@ -422,6 +423,7 @@ export async function promptToEditFlow({
token?: string
artifactGraph: ArtifactGraph
projectName: string
filePath: string | undefined
}) {
const result = await doPromptEdit({
prompt,
@ -498,6 +500,7 @@ export async function promptToEditFlow({
await writeOverFilesAndExecute({
requestedFiles,
projectName,
filePath,
})
} else {
const newCode = result.outputs['main.kcl']