Explorar o código

fix(cli): keep meta as a fresh-session command

Turtle hai 1 mes
pai
achega
d44fce8a39
Modificáronse 2 ficheiros con 3 adicións e 6 borrados
  1. 1 1
      apps/cli/src/bin.ts
  2. 2 5
      apps/cli/src/tui.ts

+ 1 - 1
apps/cli/src/bin.ts

@@ -45,7 +45,7 @@ switch (invocation.mode) {
   }
   case 'meta': {
     const { runMeta } = await import('./tui.ts')
-    await runMeta(invocation.resume)
+    await runMeta()
     break
   }
   case 'migrate':

+ 2 - 5
apps/cli/src/tui.ts

@@ -82,12 +82,9 @@ export function launcherSessionsRoot(): string {
 /**
  * Run the interactive TUI with this harness checkout as the workspace
  * (`dsh meta`), whatever directory it was launched from.
- * @param resumeSessionId - a persisted session id to resume, or `undefined`;
- * see {@link runTui}. Meta-mode sessions live under the checkout, so an id from
- * an ordinary `dsh` run in another directory is not found here.
  */
-export async function runMeta(resumeSessionId: string | undefined): Promise<void> {
-  return runTui(undefined, resumeSessionId, SOURCE_ROOT)
+export async function runMeta(): Promise<void> {
+  return runTui(undefined, undefined, SOURCE_ROOT)
 }
 
 /**