Skip to content

Commit 06db2ef

Browse files
committed
fix: remove tui.showToast calls that caused startup hang
1 parent 5fb368b commit 06db2ef

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencode-codetime",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "CodeTime plugin for OpenCode - Track AI coding activity and time spent with codetime.dev",
55
"type": "module",
66
"main": "dist/index.js",

src/index.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,6 @@ export const plugin: Plugin = async (ctx) => {
267267
"CODETIME_TOKEN not set. CodeTime tracking disabled. " +
268268
"Get your token from https://codetime.dev/dashboard/settings",
269269
).catch(() => {});
270-
try {
271-
await (client as any).tui.showToast({
272-
body: {
273-
title: "CodeTime",
274-
message: "CODETIME_TOKEN not set. Tracking disabled.",
275-
variant: "error",
276-
},
277-
});
278-
} catch {}
279270
return {};
280271
}
281272

@@ -285,15 +276,6 @@ export const plugin: Plugin = async (ctx) => {
285276
await error(
286277
"Invalid CODETIME_TOKEN. Please check your token at https://codetime.dev/dashboard/settings",
287278
).catch(() => {});
288-
try {
289-
await (client as any).tui.showToast({
290-
body: {
291-
title: "CodeTime",
292-
message: "Invalid token. Check https://codetime.dev/dashboard/settings",
293-
variant: "error",
294-
},
295-
});
296-
} catch {}
297279
_token = null;
298280
return {};
299281
}

0 commit comments

Comments
 (0)