// Renderer-side controller for P1 batch C: workflow/tasks/web/skill/resume. // // Self-contained IIFE that installs its own `window.dsh.onNotify` listener + // mounts a bottom "Background tasks" drawer + adds a "History" group to the // sidebar. Nothing in renderer.js is modified beyond three thin wire-lines // (a resumeSession IPC bridge and a hook after refreshSessionList). // // Six event/tool surfaces get dedicated rendering: // - tool `web_search` result → structured result-list card (URL links) // - tool `skill` result → "skill loaded: " badge + folded body // - tool `workflow` call/result → orchestration skeleton card // - tools `task_output/list/kill` → background-task drawer (aggregated view) // - `session/list` history split → sidebar "History" section (resume-capable) // - Debug mock buttons for the workflow surface (upstream workflow/* events // don't hit the wire today; the mock proves the card path) // // Wire-up model: our onNotify listener runs AFTER renderer.js's own listener // because our