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

This commit is contained in:
Turtle
2026-07-29 17:59:28 +08:00
parent 857a4941be
commit d44fce8a39
2 changed files with 3 additions and 6 deletions

View File

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

View File

@@ -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)
}
/**