unix update command for wsl users on UpdateBanner (#395)

This commit is contained in:
Alexandre Silvestri
2026-03-25 15:06:29 -03:00
committed by GitHub
parent 090b8d9fc2
commit 81f29dfe6e
7 changed files with 26 additions and 9 deletions
+3
View File
@@ -17,6 +17,7 @@ import { handleImage, handleUpload, handleServerReady, handleDraftSave, handleDr
import { handleDoc, handleFileBrowserFiles } from "./reference-handlers";
import { contentHash, deleteDraft } from "./draft";
import { dirname } from "path";
import { isWSL } from "./browser";
// Re-export utilities
export { isRemoteSession, getServerPort } from "./remote";
@@ -95,6 +96,7 @@ export async function startAnnotateServer(
const isRemote = isRemoteSession();
const configuredPort = getServerPort();
const wslFlag = await isWSL();
const draftKey = contentHash(markdown);
// Detect repo info (cached for this session)
@@ -135,6 +137,7 @@ export async function startAnnotateServer(
pasteApiUrl,
repoInfo,
projectRoot: folderPath || process.cwd(),
isWSL: wslFlag,
});
}