fix(background-agent): force TUI update when notifying parent session

- Use `promptAsync` instead of `prompt` to avoid session state conflicts
- Use `tui.showToast` for immediate visible feedback
- Hack: Trigger `tui.submitPrompt` after message injection to force TUI refresh and trigger AI response
- Update `BackgroundManager` to accept `PluginInput` for directory access
This commit is contained in:
YeonGyu-Kim
2025-12-11 18:13:02 +09:00
parent b422e2f94f
commit 9986841f9b
2 changed files with 34 additions and 8 deletions

View File

@@ -164,7 +164,7 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => {
updateTerminalTitle({ sessionId: "main" });
const backgroundManager = new BackgroundManager(ctx.client);
const backgroundManager = new BackgroundManager(ctx);
const backgroundNotificationHook = createBackgroundNotificationHook(backgroundManager);
const backgroundTools = createBackgroundTools(backgroundManager, ctx.client);