Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
'uses prompt treatments only as a complete pair and permits literal prompts'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'prompt'
,
'onb.newSessionViewV3.promptTemplate'
:
'Inspect this project and suggest the next task.'
,
'onb.newSessionViewV3.placeholder'
:
'[custom task]'
,
}
)
;
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'prompt'
,
'onb.newSessionViewV3.promptTemplate'
:
'Please complete {0}.'
,
}
)
;
.
deepStrictEqual
(
{
:
.
,
:
.
,
}
,
{
:
{
:
'Inspect this project and suggest the next task.'
,
:
2_500
,
:
'[custom task]'
}
,
:
{
:
'Help me complete [describe the coding task] in this project. First, inspect the relevant files and explain your approach briefly. Then implement the solution using existing project conventions, avoid unrelated changes, and run the most relevant tests or checks. If anything is unclear, make a reasonable assumption and state it. When finished, summarize what changed and mention any remaining issues.'
,
:
2_500
,
:
'[describe the coding task]'
,
}
,
}
)
;
}
)
;
test
(
'uses prompt options as the default variation'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
}
)
;
.
deepStrictEqual
(
{
:
.
,
:
summarizePromptOptionStates
(
.
)
,
:
.
,
}
,
{
:
undefined
,
:
[
{
:
'loading'
}
,
{
:
'resolved'
,
:
[
{
:
'Implement a feature'
,
:
'Describe what you want to build'
,
:
{
:
'lightbulb-sparkle-autofix'
,
:
undefined
}
}
,
{
:
'Fix a bug'
,
:
'Describe the unexpected behavior'
,
:
{
:
'bug'
,
:
undefined
}
}
,
{
:
'Fix CI'
,
:
'Describe a failing check or paste a link'
,
:
{
:
'run-errors'
,
:
undefined
}
}
,
]
,
}
,
]
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'options'
,
:
'options'
,
:
'noCandidate'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'uses concise task-specific standard prompts'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
}
)
;
const
=
.
.
find
(
=>
.
===
'resolved'
)
;
.
deepStrictEqual
(
?.
.
map
(
=>
(
{
:
.
,
:
.
,
}
)
)
,
[
{
:
'Help me implement [describe the feature] in this project. Ask me questions if anything is unclear regarding the intended behaviour.'
,
:
'[describe the feature]'
,
}
,
{
:
'Help me fix [describe the bug] in this project. Ask me questions if anything is unclear regarding the bug or the intended behaviour.'
,
:
'[describe the bug]'
,
}
,
{
:
'Help me fix the failing CI for [describe the CI failure or paste a link] in this project. Ask me questions if anything is unclear regarding the CI failure or how it should be fixed.'
,
:
'[describe the CI failure or paste a link]'
,
}
,
]
)
;
}
)
;
test
(
'developer override selects a GitHub CI prompt and reports telemetry'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'prompt'
,
}
,
{
[
ONBOARDING_DEVELOPER_MODE_CONFIG
]
:
{
[
NEW_SESSION_VIEW_V3_TOUR_ID
]
:
true
}
,
[
ONBOARDING_DEVELOPER_MODE_VARIATIONS_CONFIG
]
:
{
[
NEW_SESSION_VIEW_V3_TOUR_ID
]
:
'githubPrompt'
}
,
}
,
{
:
[
pullRequest
(
'Fix CI'
,
'2026-08-07T12:00:00Z'
,
'FAILURE'
)
]
,
:
[
]
,
}
)
;
.
deepStrictEqual
(
{
:
.
,
:
.
,
}
,
{
:
{
:
'The following pull request has failing CI checks: "Fix CI" (https://github.com/o/r/pull/Fix%20CI). Investigate the failures and resolve them.'
,
:
2_500
,
:
''
,
}
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'githubPrompt'
,
:
'githubCiFailure'
,
:
'none'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'developer override classifies a conflicted PR separately from failing CI'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'prompt'
,
}
,
{
[
ONBOARDING_DEVELOPER_MODE_CONFIG
]
:
{
[
NEW_SESSION_VIEW_V3_TOUR_ID
]
:
true
}
,
[
ONBOARDING_DEVELOPER_MODE_VARIATIONS_CONFIG
]
:
{
[
NEW_SESSION_VIEW_V3_TOUR_ID
]
:
'githubPrompt'
}
,
}
,
{
:
[
pullRequest
(
'Resolve me'
,
'2026-08-07T12:00:00Z'
,
'FAILURE'
,
undefined
,
undefined
,
42
,
true
)
]
,
:
[
]
,
}
)
;
.
deepStrictEqual
(
{
:
.
,
:
.
,
}
,
{
:
{
:
'The following pull request has merge conflicts: "Resolve me" (https://github.com/o/r/pull/Resolve%20me). Resolve the conflicts and update the pull request.'
,
:
2_500
,
:
''
,
}
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'githubPrompt'
,
:
'githubMergeConflict'
,
:
'none'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'falls back to the prompt variation when silent GitHub authentication is unavailable'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
,
}
,
{
}
,
new
GitHubAuthenticationError
(
)
)
;
.
deepStrictEqual
(
{
:
.
,
:
.
,
}
,
{
:
{
:
'Help me complete [describe the coding task] in this project. First, inspect the relevant files and explain your approach briefly. Then implement the solution using existing project conventions, avoid unrelated changes, and run the most relevant tests or checks. If anything is unclear, make a reasonable assumption and state it. When finished, summarize what changed and mention any remaining issues.'
,
:
2_500
,
:
'[describe the coding task]'
,
}
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'githubPrompt'
,
:
'prompt'
,
:
'noAuthentication'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'shows loading skeletons and resolves issue-first GitHub prompt options'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'options'
}
,
{
}
,
{
:
[
issue
(
'Older assigned issue'
,
'2026-08-07T11:00:00Z'
,
12
)
,
issue
(
'Newest assigned issue'
,
'2026-08-07T14:00:00Z'
,
14
)
,
issue
(
'Third assigned issue'
,
'2026-08-07T10:00:00Z'
,
10
)
,
]
,
:
[
pullRequest
(
'Conflicted PR'
,
'2026-08-07T14:30:00Z'
,
'FAILURE'
,
undefined
,
undefined
,
20
,
true
)
,
pullRequest
(
'CI is failing'
,
'2026-08-07T13:00:00Z'
,
'FAILURE'
,
undefined
,
undefined
,
21
)
,
pullRequest
(
'Review feedback'
,
'2026-08-07T12:00:00Z'
,
undefined
,
'2026-08-07T09:00:00Z'
,
'2026-08-07T10:00:00Z'
,
22
)
,
]
,
}
,
)
;
.
deepStrictEqual
(
{
:
.
,
:
summarizePromptOptionStates
(
.
)
,
:
.
,
}
,
{
:
undefined
,
:
[
{
:
'loading'
}
,
{
:
'resolved'
,
:
[
{
:
'Tackle issue #14'
,
:
'Newest assigned issue'
,
:
{
:
'issue-opened'
,
:
'charts.green'
}
}
,
{
:
'Tackle issue #12'
,
:
'Older assigned issue'
,
:
{
:
'issue-opened'
,
:
'charts.green'
}
}
,
{
:
'Resolve conflicts #20'
,
:
'Conflicted PR'
,
:
{
:
'git-pull-request-error'
,
:
'charts.orange'
}
}
,
]
,
}
,
]
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'options'
,
:
'options'
,
:
'none'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'reports privacy-safe prompt option selections and closure'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'options'
}
,
{
}
,
{
:
[
issue
(
'Private issue title'
,
'2026-08-07T14:00:00Z'
,
14
)
]
,
:
[
pullRequest
(
'Private CI title'
,
'2026-08-07T13:00:00Z'
,
'FAILURE'
,
undefined
,
undefined
,
21
)
,
pullRequest
(
'Private review title'
,
'2026-08-07T12:00:00Z'
,
undefined
,
'2026-08-07T09:00:00Z'
,
'2026-08-07T10:00:00Z'
,
22
)
,
]
,
}
,
{
:
[
0
,
1
,
2
,
'close'
]
}
,
)
;
.
deepStrictEqual
(
.
.
filter
(
=>
.
===
'onboarding.promptOptionInteraction'
)
,
[
{
:
'onboarding.promptOptionInteraction'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'selected'
,
:
'githubIssue'
,
}
,
}
,
{
:
'onboarding.promptOptionInteraction'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'selected'
,
:
'githubPRCI'
,
}
,
}
,
{
:
'onboarding.promptOptionInteraction'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'selected'
,
:
'githubPRComments'
,
}
,
}
,
{
:
'onboarding.promptOptionInteraction'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'closed'
,
:
'none'
,
}
,
}
,
]
)
;
}
)
;
test
(
'fills missing prompt options from the fixed standard order after a partial timeout'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'options'
}
,
{
}
,
{
:
[
]
,
:
[
issue
(
'Ready issue'
,
'2026-08-07T13:00:00Z'
,
7
)
]
}
,
{
:
true
}
,
)
;
.
deepStrictEqual
(
{
:
summarizePromptOptionStates
(
.
)
,
:
.
,
}
,
{
:
[
{
:
'loading'
}
,
{
:
'resolved'
,
:
[
{
:
'Tackle issue #7'
,
:
'Ready issue'
,
:
{
:
'issue-opened'
,
:
'charts.green'
}
}
,
{
:
'Implement a feature'
,
:
'Describe what you want to build'
,
:
{
:
'lightbulb-sparkle-autofix'
,
:
undefined
}
}
,
{
:
'Fix a bug'
,
:
'Describe the unexpected behavior'
,
:
{
:
'bug'
,
:
undefined
}
}
,
]
,
}
,
]
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'options'
,
:
'options'
,
:
'timeout'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'uses all standard prompt options when GitHub authentication is unavailable'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'options'
}
,
{
}
,
new
GitHubAuthenticationError
(
)
,
)
;
.
deepStrictEqual
(
{
:
summarizePromptOptionStates
(
.
)
,
:
.
,
}
,
{
:
[
{
:
'loading'
}
,
{
:
'resolved'
,
:
[
{
:
'Implement a feature'
,
:
'Describe what you want to build'
,
:
{
:
'lightbulb-sparkle-autofix'
,
:
undefined
}
}
,
{
:
'Fix a bug'
,
:
'Describe the unexpected behavior'
,
:
{
:
'bug'
,
:
undefined
}
}
,
{
:
'Fix CI'
,
:
'Describe a failing check or paste a link'
,
:
{
:
'run-errors'
,
:
undefined
}
}
,
]
,
}
,
]
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'options'
,
:
'options'
,
:
'noAuthentication'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'uses an issue when the pull request summary lookup times out'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
,
{
}
,
{
:
[
]
,
:
[
issue
(
'Ready issue'
,
'2026-08-07T13:00:00Z'
)
]
}
,
{
:
true
}
,
)
;
.
deepStrictEqual
(
{
:
.
,
:
.
,
}
,
{
:
{
:
'Tackle the following issue and create a pull request for it: "Ready issue" (https://github.com/o/r/issues/Ready%20issue).'
,
:
2_500
,
:
''
,
}
,
:
[
{
:
'onboarding.promptStrategy'
,
:
{
:
NEW_SESSION_VIEW_V3_TOUR_ID
,
:
'githubPrompt'
,
:
'githubIssue'
,
:
'none'
,
:
true
,
}
,
}
]
,
}
)
;
}
)
;
test
(
'uses an assigned issue when its pull request linkage lookup times out'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
,
{
}
,
{
:
[
]
,
:
[
issue
(
'Unknown linkage'
,
'2026-08-07T13:00:00Z'
)
]
}
,
{
:
true
}
,
)
;
.
deepStrictEqual
(
.
,
{
:
'Tackle the following issue and create a pull request for it: "Unknown linkage" (https://github.com/o/r/issues/Unknown%20linkage).'
,
:
2_500
,
:
''
,
}
)
;
}
)
;
test
(
'resolves the repository from a cloud GitHub workspace URI'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
,
{
}
,
{
:
[
]
,
:
[
issue
(
'Cloud issue'
,
'2026-08-07T13:00:00Z'
)
]
}
,
{
:
URI
.
from
(
{
:
GITHUB_REMOTE_FILE_SCHEME
,
:
'github'
,
:
'/cloud/repository/HEAD'
}
)
,
:
false
,
}
,
)
;
.
deepStrictEqual
(
{
:
.
,
:
.
,
}
,
{
:
{
:
'Tackle the following issue and create a pull request for it: "Cloud issue" (https://github.com/o/r/issues/Cloud%20issue).'
,
:
2_500
,
:
''
,
}
,
:
[
{
:
'issues'
,
:
'cloud'
,
:
'repository'
}
,
{
:
'pullRequests'
,
:
'cloud'
,
:
'repository'
}
,
{
:
'issueLinkage'
,
:
'cloud'
,
:
'repository'
,
:
[
1
]
}
,
]
,
}
)
;
}
)
;
test
(
'resolves the repository from a local GitHub remote'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
,
{
}
,
{
:
[
]
,
:
[
issue
(
'Local issue'
,
'2026-08-07T13:00:00Z'
)
]
}
,
{
:
false
,
:
'git@github.com:local/repository.git'
,
}
,
)
;
.
deepStrictEqual
(
.
,
[
{
:
'issues'
,
:
'local'
,
:
'repository'
}
,
{
:
'pullRequests'
,
:
'local'
,
:
'repository'
}
,
{
:
'issueLinkage'
,
:
'local'
,
:
'repository'
,
:
[
1
]
}
,
]
)
;
}
)
;
test
(
'resolves the repository from a configured GitHub Enterprise remote'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
,
{
}
,
{
:
[
]
,
:
[
issue
(
'Enterprise issue'
,
'2026-08-07T13:00:00Z'
,
7
)
]
}
,
{
:
false
,
:
'git@ghe.example.com:enterprise/project.git'
,
:
'ghe.example.com'
,
}
,
)
;
.
deepStrictEqual
(
.
,
[
{
:
'issues'
,
:
'enterprise'
,
:
'project'
}
,
{
:
'pullRequests'
,
:
'enterprise'
,
:
'project'
}
,
{
:
'issueLinkage'
,
:
'enterprise'
,
:
'project'
,
:
[
7
]
}
,
]
)
;
}
)
;
test
(
'does not query hostless metadata or github.com remotes through GitHub Enterprise'
,
async
(
)
=>
{
const
=
await
runPrompt
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
,
{
}
,
{
:
[
]
,
:
[
issue
(
'Public issue'
,
'2026-08-07T13:00:00Z'
)
]
}
,
{
:
'git@github.com:public/project.git'
,
:
'ghe.example.com'
,
}
,
)
;
.
deepStrictEqual
(
.
,
[
]
)
;
}
)
;
test
(
'waits for Agent Host git metadata instead of requiring the Git extension'
,
async
(
)
=>
{
const
=
observableValue
(
'workspace'
,
createWorkspace
(
URI
.
file
(
'C:\\repo'
)
,
'r'
,
false
)
)
;
const
=
new
class
extends
mock<IActiveSession>
(
)
{
readonly
=
'local-agent-host'
;
readonly
=
'copilotcli'
;
readonly
=
constObservable
(
false
)
;
readonly
=
;
}
(
)
;
let
=
false
;
let
:
string
|
undefined
;
const
=
new
NewSessionViewV3PromptRunner
(
new
TestAssignmentService
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
)
,
new
TestConfigurationService
(
)
,
new
class
extends
mock<ISessionsService>
(
)
{
readonly
=
constObservable<IActiveSession |undefined>
(
)
;
}
(
)
,
new
class
extends
mock<INewSessionComposerService>
(
)
{
readonly
=
constObservable
(
{
animatePrompt
:
async
(
:
string
)
=>
{
=
;
return
true
;
}
,
showPromptOptions
:
(
)
=>
true
,
}
)
;
}
(
)
,
new
class
extends
mock<IGitService>
(
)
{
async
openRepository
(
)
:
Promise
<
|
undefined
>
{
=
true
;
return
undefined
;
}
}
(
)
,
new
MissingFileService
(
)
,
new
class
extends
mock<IGitHubService>
(
)
{
async
getRecentAssignedIssues
(
)
{
return
[
issue
(
'Metadata issue'
,
'2026-08-07T14:00:00Z'
)
]
;
}
async
getRecentAuthoredPullRequests
(
)
{
return
[
]
;
}
async
getPullRequestReviewThreads
(
)
{
return
[
]
;
}
async
getIssuesWithLinkedPullRequests
(
)
{
return
new
Set<number>
(
)
;
}
}
(
)
,
new
TestTelemetryService
(
)
,
new
NullLogService
(
)
,
{
:
1_000
,
:
100
,
:
100
,
:
100
}
,
)
;
const
=
.
run
(
.
)
;
await
timeout
(
0
)
;
.
set
(
createWorkspace
(
URI
.
file
(
'C:\\repo'
)
,
'r'
,
true
)
,
undefined
)
;
await
;
.
deepStrictEqual
(
{
,
,
}
,
{
:
false
,
:
'Tackle the following issue and create a pull request for it: "Metadata issue" (https://github.com/o/r/issues/Metadata%20issue).'
,
}
)
;
}
)
;
test
(
'discards a result when the selected workspace changes during the request'
,
async
(
)
=>
{
const
=
createWorkspace
(
URI
.
file
(
'C:\\first'
)
,
'first'
)
;
const
=
createWorkspace
(
URI
.
file
(
'C:\\second'
)
,
'second'
)
;
const
=
createSession
(
)
;
const
=
createSession
(
)
;
const
=
observableValue<IActiveSession |undefined>
(
'activeSession'
,
)
;
const
:
{
:
string
;
:
string
}
[
]
=
[
]
;
let
:
string
|
undefined
;
const
=
new
NewSessionViewV3PromptRunner
(
new
TestAssignmentService
(
{
'onb.newSessionViewV3.variation'
:
'githubPrompt'
}
)
,
new
TestConfigurationService
(
)
,
new
class
extends
mock<ISessionsService>
(
)
{
readonly
=
;
}
(
)
,
new
class
extends
mock<INewSessionComposerService>
(
)
{
readonly
=
constObservable
(
{
animatePrompt
:
async
(
:
string
)
=>
{
=
;
return
true
;
}
,
showPromptOptions
:
(
)
=>
true
,
}
)
;
}
(
)
,
new
class
extends
mock<IGitService>
(
)
{
}
(
)
,
new
MissingFileService
(
)
,
new
class
extends
mock<IGitHubService>
(
)
{
async
getRecentAssignedIssues
(
:
string
,
:
string
)
{
return
[
issue
(
===
'first'
?
'Stale issue'
:
'Current issue'
,
'2026-08-07T14:00:00Z'
)
]
;
}
async
getRecentAuthoredPullRequests
(
:
string
,
:
string
)
{
.
push
(
{
,
}
)
;
if
(
.
===
1
)
{
.
set
(
,
undefined
)
;
}
return
[
]
;
}
async
getPullRequestReviewThreads
(
)
{
return
[
]
;
}
async
getIssuesWithLinkedPullRequests
(
)
{
return
new
Set<number>
(
)
;
}
}
(
)
,
new
TestTelemetryService
(
)
,
new
NullLogService
(
)
,
)
;
await
.
run
(
.
)
;
.
deepStrictEqual
(
{
,
,
}
,
{
:
[
{
:
'o'
,
:
'first'
}
,
{
:
'o'
,
:
'second'
}
]
,
:
'Tackle the following issue and create a pull request for it: "Current issue" (https://github.com/o/r/issues/Current%20issue).'