test(app): add a golden path for mocked e2e prompts (#20593)
This commit is contained in:
parent
363891126c
commit
c3ef69c866
35 changed files with 2467 additions and 2138 deletions
|
|
@ -13,6 +13,7 @@ import { usePermission } from "@/context/permission"
|
|||
import { type ContextItem, type ImageAttachmentPart, type Prompt, usePrompt } from "@/context/prompt"
|
||||
import { useSDK } from "@/context/sdk"
|
||||
import { useSync } from "@/context/sync"
|
||||
import { promptProbe } from "@/testing/prompt"
|
||||
import { Identifier } from "@/utils/id"
|
||||
import { Worktree as WorktreeState } from "@/utils/worktree"
|
||||
import { buildRequestParts } from "./build-request-parts"
|
||||
|
|
@ -307,6 +308,7 @@ export function createPromptSubmit(input: PromptSubmitInput) {
|
|||
|
||||
input.addToHistory(currentPrompt, mode)
|
||||
input.resetHistoryNavigation()
|
||||
promptProbe.start()
|
||||
|
||||
const projectDirectory = sdk.directory
|
||||
const isNewSession = !params.id
|
||||
|
|
@ -426,6 +428,7 @@ export function createPromptSubmit(input: PromptSubmitInput) {
|
|||
return
|
||||
}
|
||||
|
||||
promptProbe.submit({ sessionID: session.id, directory: sessionDirectory })
|
||||
input.onSubmit?.()
|
||||
|
||||
if (mode === "shell") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue