@@ -299,7 +299,11 @@ export interface SessionServiceDeps {
299299 setAdapter ( taskRunId : string , adapter : Adapter ) : void ;
300300 removeAdapter ( taskRunId : string ) : void ;
301301 } ;
302- readonly settings : { customInstructions ?: string | null } ;
302+ readonly settings : {
303+ customInstructions ?: string | null ;
304+ rtkEnabledLocal ?: boolean ;
305+ rtkEnabledCloud ?: boolean ;
306+ } ;
303307 usageLimit : { show : ( ...args : any [ ] ) => any } ;
304308 readonly addDirectoryDialog : { open : boolean } ;
305309 taskViewedApi : { markActivity ( taskId : string ) : void } ;
@@ -1027,11 +1031,12 @@ export class SessionService {
10271031 this . d . log . warn ( "Failed to verify workspace" , { taskId, err } ) ;
10281032 } ) ;
10291033
1030- const { customInstructions } = this . d . settings ;
1034+ const { customInstructions, rtkEnabledLocal } = this . d . settings ;
10311035 const result = await this . d . trpc . agent . reconnect . mutate ( {
10321036 taskId,
10331037 taskRunId,
10341038 repoPath,
1039+ rtkEnabled : rtkEnabledLocal ,
10351040 apiHost : auth . apiHost ,
10361041 projectId : auth . projectId ,
10371042 logUrl,
@@ -1362,6 +1367,7 @@ export class SessionService {
13621367 permissionMode : executionMode ,
13631368 adapter,
13641369 customInstructions : startCustomInstructions || undefined ,
1370+ rtkEnabled : this . d . settings . rtkEnabledLocal ,
13651371 effort : effortLevelSchema . safeParse ( reasoningLevel ) . success
13661372 ? ( reasoningLevel as EffortLevel )
13671373 : undefined ,
@@ -3087,6 +3093,7 @@ export class SessionService {
30873093 artifactIds . length > 0 ? artifactIds : undefined ,
30883094 prAuthorshipMode,
30893095 autoPublish : previousState . auto_publish === true || undefined ,
3096+ rtkEnabled : this . d . settings . rtkEnabledCloud ,
30903097 runSource : getCloudRunSource ( previousState ) ,
30913098 signalReportId :
30923099 typeof previousState . signal_report_id === "string"
0 commit comments