Skip to content

Commit 0e8ed8f

Browse files
Merge pull request #363 from parthlambdatest/tunnel_session_caps
add is start exec for session caps
2 parents 6daa126 + 24beb63 commit 0e8ed8f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/lib/httpClient.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export default class httpClient {
281281
}
282282

283283

284-
getSmartUICapabilities(sessionId: string, config: any, git: any, log: Logger) {
284+
getSmartUICapabilities(sessionId: string, config: any, git: any, log: Logger, isStartExec: boolean) {
285285
return this.request({
286286
url: '/sessions/capabilities',
287287
method: 'GET',
@@ -290,7 +290,8 @@ export default class httpClient {
290290
},
291291
data: {
292292
git,
293-
config
293+
config,
294+
isStartExec
294295
},
295296
headers: {
296297
projectToken: '',

src/lib/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default async (ctx: Context): Promise<FastifyInstance<Server, IncomingMes
5353
} else {
5454
// If not cached, fetch from API and cache it
5555
try {
56-
let fetchedCapabilitiesResp = await ctx.client.getSmartUICapabilities(sessionId, ctx.config, ctx.git, ctx.log);
56+
let fetchedCapabilitiesResp = await ctx.client.getSmartUICapabilities(sessionId, ctx.config, ctx.git, ctx.log, ctx.isStartExec);
5757
capsBuildId = fetchedCapabilitiesResp?.buildId || ''
5858
ctx.log.debug(`fetch caps for sessionId: ${sessionId} are ${JSON.stringify(fetchedCapabilitiesResp)}`)
5959
if (capsBuildId) {

0 commit comments

Comments
 (0)