feat(background-task): rendu live des tâches de fond — subscriber UI + canal IPC (#58)
Câble un canal attachable au flux de sortie d'une tâche de fond (runner infrastructure + commande app-tauri + port/adaptateurs frontend) et le panneau ProjectWorkStatePanel s'y abonne pour un rendu live au lieu d'un état figé au dernier snapshot. Validations obtenues avant commit : - cargo test -p infrastructure --test background_task_runner : vert - cargo check -p backend -p app-tauri : vert - npx vitest run src/features/workstate/workstate.test.tsx : vert - npm run typecheck : vert - verdict QA #58 : vert Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@ -66,6 +66,12 @@ function fixedWorkState(): WorkStateGateway {
|
||||
};
|
||||
return {
|
||||
getProjectWorkState: async () => structuredClone(state),
|
||||
attachBackgroundTask: async (taskId) => ({
|
||||
taskId,
|
||||
scrollback: new Uint8Array(),
|
||||
live: false,
|
||||
detach: () => {},
|
||||
}),
|
||||
cancelBackgroundTask: async () => {},
|
||||
retryBackgroundTask: async () => {},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user