Skip to content

Commit 4cd2745

Browse files
committed
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
1 parent 8cf713e commit 4cd2745

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hooks/auto-update-checker/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { checkForUpdate, getCachedVersion, getLocalDevVersion } from "./checker"
33
import { invalidatePackage } from "./cache"
44
import { PACKAGE_NAME } from "./constants"
55
import { log } from "../../shared/logger"
6-
import { getUserConfigPath } from "../../shared/config-path"
76
import { getConfigLoadErrors, clearConfigLoadErrors } from "../../shared/config-errors"
87
import type { AutoUpdateCheckerOptions } from "./types"
98

@@ -94,12 +93,11 @@ async function showConfigErrorsIfAny(ctx: PluginInput): Promise<void> {
9493

9594
async function showVersionToast(ctx: PluginInput, version: string | null): Promise<void> {
9695
const displayVersion = version ?? "unknown"
97-
const configPath = getUserConfigPath()
9896
await ctx.client.tui
9997
.showToast({
10098
body: {
10199
title: `OhMyOpenCode ${displayVersion}`,
102-
message: `OpenCode is now on Steroids. oMoMoMoMo...\nConfig: ${configPath}`,
100+
message: `OpenCode is now on Steroids. oMoMoMoMo...`,
103101
variant: "info" as const,
104102
duration: 5000,
105103
},

0 commit comments

Comments
 (0)