File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export async function processAgentResponse(
128128 agentName
129129 ) ;
130130
131- // Note: Don't mark session as completed here - summaries are generated during
131+ // Note: Session completion is handled by stale cleanup, not here ( summaries are generated during handoffs)
132132
133133 cleanupProcessedMessages ( session , worker ) ;
134134}
Original file line number Diff line number Diff line change @@ -102,13 +102,17 @@ export class PlanRoutes extends BaseRouteHandler {
102102 return ;
103103 }
104104 const firstSpec = specs [ 0 ] ;
105- const content = readFileSync ( firstSpec . filePath , 'utf-8' ) ;
106- res . json ( {
107- content,
108- name : firstSpec . name ,
109- status : firstSpec . status ,
110- filePath : firstSpec . filePath ,
111- } ) ;
105+ try {
106+ const content = readFileSync ( firstSpec . filePath , 'utf-8' ) ;
107+ res . json ( {
108+ content,
109+ name : firstSpec . name ,
110+ status : firstSpec . status ,
111+ filePath : firstSpec . filePath ,
112+ } ) ;
113+ } catch {
114+ res . status ( 404 ) . json ( { error : 'Plan file not found' } ) ;
115+ }
112116 return ;
113117 }
114118
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export function getWorkerEndpointConfig(): WorkerEndpointConfig {
4848 if ( remoteConfig . token ) {
4949 authHeaders [ 'Authorization' ] = `Bearer ${ remoteConfig . token } ` ;
5050 }
51- authHeaders [ 'X-Pilot Memory-Client' ] = 'local-hooks' ;
51+ authHeaders [ 'X-Pilot- Memory-Client' ] = 'local-hooks' ;
5252
5353 cachedEndpoint = {
5454 mode : 'remote' ,
You can’t perform that action at this time.
0 commit comments