feat: add toast notifications for task execution

- Display toast when background task starts in BackgroundManager
- Display toast when sisyphus_task sync task starts
- Wire up prometheus-md-only hook initialization in main plugin

This provides user feedback in OpenCode TUI where task TUI is not visible.

🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-01-06 11:46:27 +09:00
parent 0c10be4f61
commit f354724e64
3 changed files with 32 additions and 0 deletions
+6
View File
@@ -29,6 +29,7 @@ import {
createTaskResumeInfoHook,
createStartWorkHook,
createSisyphusOrchestratorHook,
createPrometheusMdOnlyHook,
} from "./hooks";
import {
contextCollector,
@@ -198,6 +199,10 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
? createSisyphusOrchestratorHook(ctx)
: null;
const prometheusMdOnly = isHookEnabled("prometheus-md-only")
? createPrometheusMdOnlyHook(ctx)
: null;
const taskResumeInfo = createTaskResumeInfoHook();
const backgroundManager = new BackgroundManager(ctx);
@@ -451,6 +456,7 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
await directoryAgentsInjector?.["tool.execute.before"]?.(input, output);
await directoryReadmeInjector?.["tool.execute.before"]?.(input, output);
await rulesInjector?.["tool.execute.before"]?.(input, output);
await prometheusMdOnly?.["tool.execute.before"]?.(input, output);
if (input.tool === "task") {
const args = output.args as Record<string, unknown>;