Browse Source

Format background job prompt changes

DanMaly 1 month ago
parent
commit
2f7ce79f3c
1 changed files with 2 additions and 7 deletions
  1. 2 7
      src/utils/background-job-board.ts

+ 2 - 7
src/utils/background-job-board.ts

@@ -483,10 +483,7 @@ export class BackgroundJobBoard implements BackgroundJobStore {
     return errors >= threshold || timeouts >= threshold;
   }
 
-  formatForPrompt(
-    parentSessionID: string,
-    _now?: number,
-  ): string | undefined {
+  formatForPrompt(parentSessionID: string, _now?: number): string | undefined {
     const active = this.list(parentSessionID).filter(
       (job) => job.state === 'running' || job.terminalUnreconciled,
     );
@@ -504,9 +501,7 @@ export class BackgroundJobBoard implements BackgroundJobStore {
         'Cancelled or errored sessions are not reusable.',
         '',
         '#### Active / Unreconciled',
-        ...(active.length > 0
-          ? active.map(formatJob)
-          : ['- none']),
+        ...(active.length > 0 ? active.map(formatJob) : ['- none']),
         '',
         '#### Reusable Sessions',
         ...(reusable.length > 0