@@ -38,7 +38,7 @@ function formatTaskStatusCell(status: string, rich: boolean) {
3838 if ( ! rich ) {
3939 return padded ;
4040 }
41- if ( status === "done " ) {
41+ if ( status === "succeeded " ) {
4242 return theme . success ( padded ) ;
4343 }
4444 if ( status === "failed" || status === "lost" || status === "timed_out" ) {
@@ -53,7 +53,7 @@ function formatTaskStatusCell(status: string, rich: boolean) {
5353function formatTaskRows ( tasks : TaskRecord [ ] , rich : boolean ) {
5454 const header = [
5555 "Task" . padEnd ( ID_PAD ) ,
56- "Runtime " . padEnd ( RUNTIME_PAD ) ,
56+ "Kind " . padEnd ( RUNTIME_PAD ) ,
5757 "Status" . padEnd ( STATUS_PAD ) ,
5858 "Delivery" . padEnd ( DELIVERY_PAD ) ,
5959 "Run" . padEnd ( RUN_PAD ) ,
@@ -151,21 +151,24 @@ export async function tasksShowCommand(
151151 const lines = [
152152 "Background task:" ,
153153 `taskId: ${ task . taskId } ` ,
154- `runtime: ${ task . runtime } ` ,
154+ `kind: ${ task . runtime } ` ,
155+ `sourceId: ${ task . sourceId ?? "n/a" } ` ,
155156 `status: ${ task . status } ` ,
157+ `result: ${ task . terminalOutcome ?? "n/a" } ` ,
156158 `delivery: ${ task . deliveryStatus } ` ,
157159 `notify: ${ task . notifyPolicy } ` ,
158- `source: ${ task . source } ` ,
159160 `requesterSessionKey: ${ task . requesterSessionKey } ` ,
160161 `childSessionKey: ${ task . childSessionKey ?? "n/a" } ` ,
162+ `parentTaskId: ${ task . parentTaskId ?? "n/a" } ` ,
163+ `agentId: ${ task . agentId ?? "n/a" } ` ,
161164 `runId: ${ task . runId ?? "n/a" } ` ,
162- `bindingTargetKind: ${ task . bindingTargetKind ?? "n/a" } ` ,
163165 `label: ${ task . label ?? "n/a" } ` ,
164166 `task: ${ task . task } ` ,
165167 `createdAt: ${ new Date ( task . createdAt ) . toISOString ( ) } ` ,
166168 `startedAt: ${ task . startedAt ? new Date ( task . startedAt ) . toISOString ( ) : "n/a" } ` ,
167169 `endedAt: ${ task . endedAt ? new Date ( task . endedAt ) . toISOString ( ) : "n/a" } ` ,
168170 `lastEventAt: ${ task . lastEventAt ? new Date ( task . lastEventAt ) . toISOString ( ) : "n/a" } ` ,
171+ `cleanupAfter: ${ task . cleanupAfter ? new Date ( task . cleanupAfter ) . toISOString ( ) : "n/a" } ` ,
169172 ...( task . error ? [ `error: ${ task . error } ` ] : [ ] ) ,
170173 ...( task . progressSummary ? [ `progressSummary: ${ task . progressSummary } ` ] : [ ] ) ,
171174 ...( task . terminalSummary ? [ `terminalSummary: ${ task . terminalSummary } ` ] : [ ] ) ,
@@ -177,10 +180,6 @@ export async function tasksShowCommand(
177180 } `,
178181 )
179182 : [ ] ) ,
180- ...( task . streamLogPath ? [ `streamLogPath: ${ task . streamLogPath } ` ] : [ ] ) ,
181- ...( task . transcriptPath ? [ `transcriptPath: ${ task . transcriptPath } ` ] : [ ] ) ,
182- ...( task . agentSessionId ? [ `agentSessionId: ${ task . agentSessionId } ` ] : [ ] ) ,
183- ...( task . backendSessionId ? [ `backendSessionId: ${ task . backendSessionId } ` ] : [ ] ) ,
184183 ] ;
185184 for ( const line of lines ) {
186185 runtime . log ( line ) ;
0 commit comments