refactor(auto-update-checker): remove config path from startup toast
Remove the config file path from the startup toast message. The toast now
only displays 'OpenCode is now on Steroids. oMoMoMoMo...' for a cleaner
user experience. Also removed the unused getUserConfigPath import.
🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
@@ -3,7 +3,6 @@ import { checkForUpdate, getCachedVersion, getLocalDevVersion } from "./checker"
|
||||
import { invalidatePackage } from "./cache"
|
||||
import { PACKAGE_NAME } from "./constants"
|
||||
import { log } from "../../shared/logger"
|
||||
import { getUserConfigPath } from "../../shared/config-path"
|
||||
import { getConfigLoadErrors, clearConfigLoadErrors } from "../../shared/config-errors"
|
||||
import type { AutoUpdateCheckerOptions } from "./types"
|
||||
|
||||
@@ -94,12 +93,11 @@ async function showConfigErrorsIfAny(ctx: PluginInput): Promise<void> {
|
||||
|
||||
async function showVersionToast(ctx: PluginInput, version: string | null): Promise<void> {
|
||||
const displayVersion = version ?? "unknown"
|
||||
const configPath = getUserConfigPath()
|
||||
await ctx.client.tui
|
||||
.showToast({
|
||||
body: {
|
||||
title: `OhMyOpenCode ${displayVersion}`,
|
||||
message: `OpenCode is now on Steroids. oMoMoMoMo...\nConfig: ${configPath}`,
|
||||
message: `OpenCode is now on Steroids. oMoMoMoMo...`,
|
||||
variant: "info" as const,
|
||||
duration: 5000,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user