-
- )}
-
-
-
- {language.t("command.file.open")}
- 0}>
-
-
- >
+ tabs().close(SESSION_PREVIEW_TAB)}
+ aria-label={language.t("common.closeTab")}
+ />
+
}
- placement="bottom"
- class="flex items-center"
+ hideCloseButton
+ onMiddleClick={() => tabs().close(SESSION_PREVIEW_TAB)}
>
-
}
- variant="ghost-muted"
- size="large"
- onClick={() => openFileBrowser()}
- aria-label={language.t("command.file.open")}
- />
-
+
+
event.stopPropagation()}
@@ -754,6 +736,14 @@ export function SessionSidePanel(props: {
+
+
+
+
+
+
+
+
fs.writeWithDirs(file, ctx.payload.content)).pipe(Effect.orDie)
+ return { ok: true as const }
+ })
+
return handlers
.handle("findText", findText)
.handle("findFile", findFile)
@@ -135,5 +143,6 @@ export const fileHandlers = HttpApiBuilder.group(InstanceHttpApi, "file", (handl
.handle("list", list)
.handle("content", content)
.handle("status", status)
+ .handle("write", write)
}),
).pipe(Layer.provide(locationServiceMapLayer))